import { Data, DataAmino, Commit, CommitAmino, BlockID, BlockIDAmino } from "../../../../tendermint/types/types"; import { EvidenceList, EvidenceListAmino } from "../../../../tendermint/types/evidence"; import { Consensus, ConsensusAmino } from "../../../../tendermint/version/types"; import { Timestamp } from "../../../../google/protobuf/timestamp"; import { BinaryReader, BinaryWriter } from "../../../../binary"; 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 | undefined; data: Data | undefined; evidence: EvidenceList | undefined; lastCommit?: Commit | undefined; } export interface BlockProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Block"; value: Uint8Array; } /** * Block is tendermint type Block, with the Header proposer address * field converted to bech32 string. */ export interface BlockAmino { header: HeaderAmino | undefined; data: DataAmino | undefined; evidence: EvidenceListAmino | undefined; last_commit?: CommitAmino | undefined; } export interface BlockAminoMsg { type: "cosmos-sdk/Block"; value: BlockAmino; } /** Header defines the structure of a Tendermint block header. */ export interface Header { /** basic block info */ version: Consensus | undefined; chainId: string; height: bigint; time: Timestamp | undefined; /** prev block info */ lastBlockId: BlockID | undefined; /** hashes of block data */ lastCommitHash: Uint8Array; 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; 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 interface HeaderProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Header"; value: Uint8Array; } /** Header defines the structure of a Tendermint block header. */ export interface HeaderAmino { /** basic block info */ version: ConsensusAmino | undefined; chain_id?: string; height?: string; time: string | undefined; /** prev block info */ last_block_id: BlockIDAmino | undefined; /** hashes of block data */ last_commit_hash?: string; data_hash?: string; /** hashes from the app output from the prev block */ validators_hash?: string; /** validators for the next block */ next_validators_hash?: string; /** consensus params for current block */ consensus_hash?: string; /** state after txs from the previous block */ app_hash?: string; last_results_hash?: string; /** consensus info */ evidence_hash?: string; /** * 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. */ proposer_address?: string; } export interface HeaderAminoMsg { type: "cosmos-sdk/Header"; value: HeaderAmino; } 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): unknown; fromPartial(object: Partial): Block; fromAmino(object: BlockAmino): Block; toAmino(message: Block): BlockAmino; fromAminoMsg(object: BlockAminoMsg): Block; toAminoMsg(message: Block): BlockAminoMsg; fromProtoMsg(message: BlockProtoMsg): Block; toProto(message: Block): Uint8Array; toProtoMsg(message: Block): BlockProtoMsg; }; 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): unknown; fromPartial(object: Partial
): Header; fromAmino(object: HeaderAmino): Header; toAmino(message: Header): HeaderAmino; fromAminoMsg(object: HeaderAminoMsg): Header; toAminoMsg(message: Header): HeaderAminoMsg; fromProtoMsg(message: HeaderProtoMsg): Header; toProto(message: Header): Uint8Array; toProtoMsg(message: Header): HeaderProtoMsg; };