import { Address } from '../account/Address'; import { PublicAccount } from '../account/PublicAccount'; import { NetworkType } from '../network/NetworkType'; import { UInt64 } from '../UInt64'; /** * The block info structure describes basic information of a new gernated block (Websocket payload). */ export declare class NewBlock { /** * The block hash. */ readonly hash: string; /** * The generation hash */ readonly generationHash: string; /** * The block signature. * The signature was generated by the signer and can be used to validate that the blockchain * data was not modified by a node. */ readonly signature: string; /** * The public account of block harvester. */ readonly signer: PublicAccount; /** * The network type. */ readonly networkType: NetworkType; /** * The transaction version. */ readonly version: number; /** * The block type. */ readonly type: number; /** * The height of which the block was confirmed. * Each block has a unique height. Subsequent blocks differ in height by 1. */ readonly height: UInt64; /** * The number of milliseconds elapsed since the creation of the nemesis blockchain. */ readonly timestamp: UInt64; /** * The POI difficulty to harvest a block. */ readonly difficulty: UInt64; /** * The feeMultiplier defined by the harvester. */ readonly feeMultiplier: number; readonly totalSupply: UInt64; readonly feeToPay: UInt64; readonly inflation: UInt64; readonly collectedEpochFees: UInt64; readonly inflationMultiplier: UInt64; /** * The last block hash. */ readonly previousBlockHash: string; /** * The block transaction hash. */ readonly blockTransactionsHash: string; /** * The block receipt hash. */ readonly blockReceiptsHash: string; /** * The state hash. */ readonly stateHash: string; /** * The proof gamma. */ readonly proofGamma: string; /** * The proof scalar. */ readonly proofScalar: string; /** * The proof verification hash. */ readonly proofVerificationHash: string; /** * The beneficiary address. */ readonly beneficiaryAddress?: Address | undefined; /** * @param hash * @param generationHash * @param signature * @param signer * @param networkType * @param version * @param type * @param height * @param timestamp * @param difficulty * @param proofGamma * @param proofScalar * @param proofVerificationHash * @param feeMultiplier * @param totalSupply * @param feeToPay * @param inflation * @param collectedEpochFees * @param inflationMultiplier * @param previousBlockHash * @param blockTransactionsHash * @param blockReceiptsHash * @param blockStateHash * @param beneficiaryAddress */ constructor( /** * The block hash. */ hash: string, /** * The generation hash */ generationHash: string, /** * The block signature. * The signature was generated by the signer and can be used to validate that the blockchain * data was not modified by a node. */ signature: string, /** * The public account of block harvester. */ signer: PublicAccount, /** * The network type. */ networkType: NetworkType, /** * The transaction version. */ version: number, /** * The block type. */ type: number, /** * The height of which the block was confirmed. * Each block has a unique height. Subsequent blocks differ in height by 1. */ height: UInt64, /** * The number of milliseconds elapsed since the creation of the nemesis blockchain. */ timestamp: UInt64, /** * The POI difficulty to harvest a block. */ difficulty: UInt64, /** * The feeMultiplier defined by the harvester. */ feeMultiplier: number, totalSupply: UInt64, feeToPay: UInt64, inflation: UInt64, collectedEpochFees: UInt64, inflationMultiplier: UInt64, /** * The last block hash. */ previousBlockHash: string, /** * The block transaction hash. */ blockTransactionsHash: string, /** * The block receipt hash. */ blockReceiptsHash: string, /** * The state hash. */ stateHash: string, /** * The proof gamma. */ proofGamma: string, /** * The proof scalar. */ proofScalar: string, /** * The proof verification hash. */ proofVerificationHash: string, /** * The beneficiary address. */ beneficiaryAddress?: Address | undefined); }