/** * The IDL of the module. * * @module */ /** The IDL of the module. */ export declare const idl: { readonly module_id: "0x1::block"; readonly doc: "This module defines a struct storing the metadata of the block and new block events."; readonly functions: readonly []; readonly structs: readonly [{ readonly name: "0x1::block::BlockResource"; readonly doc: "Should be in-sync with BlockResource rust struct in new_block.rs"; readonly fields: readonly [{ readonly name: "height"; readonly doc: "Height of the current block"; readonly ty: "u64"; }, { readonly name: "epoch_interval"; readonly doc: "Time period between epochs."; readonly ty: "u64"; }, { readonly name: "new_block_events"; readonly doc: "Handle where events with the time of new blocks are emitted"; readonly ty: { readonly struct: { readonly name: "0x1::event::EventHandle"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::block::NewBlockEvent"; }; }]; }; }; }]; readonly abilities: readonly ["key"]; }, { readonly name: "0x1::block::NewBlockEvent"; readonly doc: "Should be in-sync with NewBlockEvent rust struct in new_block.rs"; readonly fields: readonly [{ readonly name: "epoch"; readonly ty: "u64"; }, { readonly name: "round"; readonly ty: "u64"; }, { readonly name: "height"; readonly ty: "u64"; }, { readonly name: "previous_block_votes_bitvec"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "proposer"; readonly ty: "address"; }, { readonly name: "failed_proposer_indices"; readonly ty: { readonly vector: "u64"; }; }, { readonly name: "time_microseconds"; readonly doc: "On-chain time during the block at the given height"; readonly ty: "u64"; }]; readonly abilities: readonly ["drop", "store"]; }]; readonly errors: { readonly "1": { readonly name: "ENUM_NEW_BLOCK_EVENTS_DOES_NOT_MATCH_BLOCK_HEIGHT"; readonly doc: "The number of new block events does not equal the current block height."; }; readonly "2": { readonly name: "EINVALID_PROPOSER"; readonly doc: "An invalid proposer was provided. Expected the proposer to be the VM or an active validator."; }; readonly "3": { readonly name: "EZERO_EPOCH_INTERVAL"; readonly doc: "Epoch interval cannot be 0."; }; }; }; //# sourceMappingURL=idl.d.ts.map