import { Data, Commit, BlockID } from "../../../../tendermint/types/types"; import { EvidenceList } from "../../../../tendermint/types/evidence"; import { Consensus } from "../../../../tendermint/version/types"; import { Timestamp } from "../../../../google/protobuf/timestamp"; import { BinaryReader, BinaryWriter } from "../../../../binary"; import { DeepPartial, Exact } from "../../../../helpers"; import { JsonSafe } from "../../../../json-safe"; export declare const protobufPackage = "cosmos.base.tendermint.v1beta1"; /** * Block is tendermint type Block, with the Header proposer address * field converted to bech32 string. */ export interface Block { header: Header; data: Data; evidence: EvidenceList; lastCommit?: Commit; } /** Header defines the structure of a Tendermint block header. */ export interface Header { /** basic block info */ version: Consensus; chainId: string; height: bigint; time: Timestamp; /** prev block info */ lastBlockId: BlockID; /** hashes of block data */ lastCommitHash: Uint8Array; /** transactions */ dataHash: Uint8Array; /** hashes from the app output from the prev block */ validatorsHash: Uint8Array; /** validators for the next block */ nextValidatorsHash: Uint8Array; /** consensus params for current block */ consensusHash: Uint8Array; /** state after txs from the previous block */ appHash: Uint8Array; /** root hash of all results from the txs from the previous block */ lastResultsHash: Uint8Array; /** consensus info */ evidenceHash: Uint8Array; /** * proposer_address is the original block proposer address, formatted as a Bech32 string. * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string * for better UX. */ proposerAddress: string; } export declare const Block: { typeUrl: string; encode(message: Block, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Block; fromJSON(object: any): Block; toJSON(message: Block): JsonSafe; fromPartial, I>>(object: I): Block; }; export declare const Header: { typeUrl: string; encode(message: Header, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Header; fromJSON(object: any): Header; toJSON(message: Header): JsonSafe
; fromPartial, I>>(object: I): Header; };