UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

941 lines (940 loc) 28 kB
import { Proof, ProofAmino } from "../crypto/proof"; import { Consensus, ConsensusAmino } from "../version/types"; import { BlockIDFlag, ValidatorSet, ValidatorSetAmino } from "./validator"; import { BinaryReader, BinaryWriter } from "../../binary"; import { DeepPartial } from "../../helpers"; /** SignedMsgType is a type of signed message in the consensus. */ export declare enum SignedMsgType { SIGNED_MSG_TYPE_UNKNOWN = 0, /** SIGNED_MSG_TYPE_PREVOTE - Votes */ SIGNED_MSG_TYPE_PREVOTE = 1, SIGNED_MSG_TYPE_PRECOMMIT = 2, /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ SIGNED_MSG_TYPE_PROPOSAL = 32, UNRECOGNIZED = -1 } export declare const SignedMsgTypeAmino: typeof SignedMsgType; export declare function signedMsgTypeFromJSON(object: any): SignedMsgType; export declare function signedMsgTypeToJSON(object: SignedMsgType): string; /** * PartsetHeader * @name PartSetHeader * @package tendermint.types * @see proto type: tendermint.types.PartSetHeader */ export interface PartSetHeader { total: number; hash: Uint8Array; } export interface PartSetHeaderProtoMsg { typeUrl: "/tendermint.types.PartSetHeader"; value: Uint8Array; } /** * PartsetHeader * @name PartSetHeaderAmino * @package tendermint.types * @see proto type: tendermint.types.PartSetHeader */ export interface PartSetHeaderAmino { total: number; hash: string; } export interface PartSetHeaderAminoMsg { type: "/tendermint.types.PartSetHeader"; value: PartSetHeaderAmino; } /** * @name Part * @package tendermint.types * @see proto type: tendermint.types.Part */ export interface Part { index: number; bytes: Uint8Array; proof: Proof; } export interface PartProtoMsg { typeUrl: "/tendermint.types.Part"; value: Uint8Array; } /** * @name PartAmino * @package tendermint.types * @see proto type: tendermint.types.Part */ export interface PartAmino { index: number; bytes: string; proof: ProofAmino; } export interface PartAminoMsg { type: "/tendermint.types.Part"; value: PartAmino; } /** * BlockID * @name BlockID * @package tendermint.types * @see proto type: tendermint.types.BlockID */ export interface BlockID { hash: Uint8Array; partSetHeader: PartSetHeader; } export interface BlockIDProtoMsg { typeUrl: "/tendermint.types.BlockID"; value: Uint8Array; } /** * BlockID * @name BlockIDAmino * @package tendermint.types * @see proto type: tendermint.types.BlockID */ export interface BlockIDAmino { hash: string; part_set_header: PartSetHeaderAmino; } export interface BlockIDAminoMsg { type: "/tendermint.types.BlockID"; value: BlockIDAmino; } /** * Header defines the structure of a block header. * @name Header * @package tendermint.types * @see proto type: tendermint.types.Header */ export interface Header { /** * basic block info */ version: Consensus; chainId: string; height: bigint; time: Date; /** * 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; /** * original proposer of the block */ proposerAddress: Uint8Array; } export interface HeaderProtoMsg { typeUrl: "/tendermint.types.Header"; value: Uint8Array; } /** * Header defines the structure of a block header. * @name HeaderAmino * @package tendermint.types * @see proto type: tendermint.types.Header */ export interface HeaderAmino { /** * basic block info */ version: ConsensusAmino; chain_id: string; height: string; time: string; /** * prev block info */ last_block_id: BlockIDAmino; /** * hashes of block data */ last_commit_hash: string; /** * transactions */ 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; /** * root hash of all results from the txs from the previous block */ last_results_hash: string; /** * consensus info */ evidence_hash: string; /** * original proposer of the block */ proposer_address: string; } export interface HeaderAminoMsg { type: "/tendermint.types.Header"; value: HeaderAmino; } /** * Data contains the set of transactions included in the block * @name Data * @package tendermint.types * @see proto type: tendermint.types.Data */ export interface Data { /** * Txs that will be applied by state @ block.Height+1. * NOTE: not all txs here are valid. We're just agreeing on the order first. * This means that block.AppHash does not include these txs. */ txs: Uint8Array[]; } export interface DataProtoMsg { typeUrl: "/tendermint.types.Data"; value: Uint8Array; } /** * Data contains the set of transactions included in the block * @name DataAmino * @package tendermint.types * @see proto type: tendermint.types.Data */ export interface DataAmino { /** * Txs that will be applied by state @ block.Height+1. * NOTE: not all txs here are valid. We're just agreeing on the order first. * This means that block.AppHash does not include these txs. */ txs: string[]; } export interface DataAminoMsg { type: "/tendermint.types.Data"; value: DataAmino; } /** * Vote represents a prevote or precommit vote from validators for * consensus. * @name Vote * @package tendermint.types * @see proto type: tendermint.types.Vote */ export interface Vote { type: SignedMsgType; height: bigint; round: number; /** * zero if vote is nil. */ blockId: BlockID; timestamp: Date; validatorAddress: Uint8Array; validatorIndex: number; /** * Vote signature by the validator if they participated in consensus for the * associated block. */ signature: Uint8Array; /** * Vote extension provided by the application. Only valid for precommit * messages. */ extension: Uint8Array; /** * Vote extension signature by the validator if they participated in * consensus for the associated block. * Only valid for precommit messages. */ extensionSignature: Uint8Array; } export interface VoteProtoMsg { typeUrl: "/tendermint.types.Vote"; value: Uint8Array; } /** * Vote represents a prevote or precommit vote from validators for * consensus. * @name VoteAmino * @package tendermint.types * @see proto type: tendermint.types.Vote */ export interface VoteAmino { type: SignedMsgType; height: string; round: number; /** * zero if vote is nil. */ block_id: BlockIDAmino; timestamp: string; validator_address: string; validator_index: number; /** * Vote signature by the validator if they participated in consensus for the * associated block. */ signature: string; /** * Vote extension provided by the application. Only valid for precommit * messages. */ extension: string; /** * Vote extension signature by the validator if they participated in * consensus for the associated block. * Only valid for precommit messages. */ extension_signature: string; } export interface VoteAminoMsg { type: "/tendermint.types.Vote"; value: VoteAmino; } /** * Commit contains the evidence that a block was committed by a set of validators. * @name Commit * @package tendermint.types * @see proto type: tendermint.types.Commit */ export interface Commit { height: bigint; round: number; blockId: BlockID; signatures: CommitSig[]; } export interface CommitProtoMsg { typeUrl: "/tendermint.types.Commit"; value: Uint8Array; } /** * Commit contains the evidence that a block was committed by a set of validators. * @name CommitAmino * @package tendermint.types * @see proto type: tendermint.types.Commit */ export interface CommitAmino { height: string; round: number; block_id: BlockIDAmino; signatures: CommitSigAmino[]; } export interface CommitAminoMsg { type: "/tendermint.types.Commit"; value: CommitAmino; } /** * CommitSig is a part of the Vote included in a Commit. * @name CommitSig * @package tendermint.types * @see proto type: tendermint.types.CommitSig */ export interface CommitSig { blockIdFlag: BlockIDFlag; validatorAddress: Uint8Array; timestamp: Date; signature: Uint8Array; } export interface CommitSigProtoMsg { typeUrl: "/tendermint.types.CommitSig"; value: Uint8Array; } /** * CommitSig is a part of the Vote included in a Commit. * @name CommitSigAmino * @package tendermint.types * @see proto type: tendermint.types.CommitSig */ export interface CommitSigAmino { block_id_flag: BlockIDFlag; validator_address: string; timestamp: string; signature: string; } export interface CommitSigAminoMsg { type: "/tendermint.types.CommitSig"; value: CommitSigAmino; } /** * @name ExtendedCommit * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommit */ export interface ExtendedCommit { height: bigint; round: number; blockId: BlockID; extendedSignatures: ExtendedCommitSig[]; } export interface ExtendedCommitProtoMsg { typeUrl: "/tendermint.types.ExtendedCommit"; value: Uint8Array; } /** * @name ExtendedCommitAmino * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommit */ export interface ExtendedCommitAmino { height: string; round: number; block_id: BlockIDAmino; extended_signatures: ExtendedCommitSigAmino[]; } export interface ExtendedCommitAminoMsg { type: "/tendermint.types.ExtendedCommit"; value: ExtendedCommitAmino; } /** * ExtendedCommitSig retains all the same fields as CommitSig but adds vote * extension-related fields. We use two signatures to ensure backwards compatibility. * That is the digest of the original signature is still the same in prior versions * @name ExtendedCommitSig * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommitSig */ export interface ExtendedCommitSig { blockIdFlag: BlockIDFlag; validatorAddress: Uint8Array; timestamp: Date; signature: Uint8Array; /** * Vote extension data */ extension: Uint8Array; /** * Vote extension signature */ extensionSignature: Uint8Array; } export interface ExtendedCommitSigProtoMsg { typeUrl: "/tendermint.types.ExtendedCommitSig"; value: Uint8Array; } /** * ExtendedCommitSig retains all the same fields as CommitSig but adds vote * extension-related fields. We use two signatures to ensure backwards compatibility. * That is the digest of the original signature is still the same in prior versions * @name ExtendedCommitSigAmino * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommitSig */ export interface ExtendedCommitSigAmino { block_id_flag: BlockIDFlag; validator_address: string; timestamp: string; signature: string; /** * Vote extension data */ extension: string; /** * Vote extension signature */ extension_signature: string; } export interface ExtendedCommitSigAminoMsg { type: "/tendermint.types.ExtendedCommitSig"; value: ExtendedCommitSigAmino; } /** * @name Proposal * @package tendermint.types * @see proto type: tendermint.types.Proposal */ export interface Proposal { type: SignedMsgType; height: bigint; round: number; polRound: number; blockId: BlockID; timestamp: Date; signature: Uint8Array; } export interface ProposalProtoMsg { typeUrl: "/tendermint.types.Proposal"; value: Uint8Array; } /** * @name ProposalAmino * @package tendermint.types * @see proto type: tendermint.types.Proposal */ export interface ProposalAmino { type: SignedMsgType; height: string; round: number; pol_round: number; block_id: BlockIDAmino; timestamp: string; signature: string; } export interface ProposalAminoMsg { type: "/tendermint.types.Proposal"; value: ProposalAmino; } /** * @name SignedHeader * @package tendermint.types * @see proto type: tendermint.types.SignedHeader */ export interface SignedHeader { header?: Header; commit?: Commit; } export interface SignedHeaderProtoMsg { typeUrl: "/tendermint.types.SignedHeader"; value: Uint8Array; } /** * @name SignedHeaderAmino * @package tendermint.types * @see proto type: tendermint.types.SignedHeader */ export interface SignedHeaderAmino { header?: HeaderAmino; commit?: CommitAmino; } export interface SignedHeaderAminoMsg { type: "/tendermint.types.SignedHeader"; value: SignedHeaderAmino; } /** * @name LightBlock * @package tendermint.types * @see proto type: tendermint.types.LightBlock */ export interface LightBlock { signedHeader?: SignedHeader; validatorSet?: ValidatorSet; } export interface LightBlockProtoMsg { typeUrl: "/tendermint.types.LightBlock"; value: Uint8Array; } /** * @name LightBlockAmino * @package tendermint.types * @see proto type: tendermint.types.LightBlock */ export interface LightBlockAmino { signed_header?: SignedHeaderAmino; validator_set?: ValidatorSetAmino; } export interface LightBlockAminoMsg { type: "/tendermint.types.LightBlock"; value: LightBlockAmino; } /** * @name BlockMeta * @package tendermint.types * @see proto type: tendermint.types.BlockMeta */ export interface BlockMeta { blockId: BlockID; blockSize: bigint; header: Header; numTxs: bigint; } export interface BlockMetaProtoMsg { typeUrl: "/tendermint.types.BlockMeta"; value: Uint8Array; } /** * @name BlockMetaAmino * @package tendermint.types * @see proto type: tendermint.types.BlockMeta */ export interface BlockMetaAmino { block_id: BlockIDAmino; block_size: string; header: HeaderAmino; num_txs: string; } export interface BlockMetaAminoMsg { type: "/tendermint.types.BlockMeta"; value: BlockMetaAmino; } /** * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. * @name TxProof * @package tendermint.types * @see proto type: tendermint.types.TxProof */ export interface TxProof { rootHash: Uint8Array; data: Uint8Array; proof?: Proof; } export interface TxProofProtoMsg { typeUrl: "/tendermint.types.TxProof"; value: Uint8Array; } /** * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. * @name TxProofAmino * @package tendermint.types * @see proto type: tendermint.types.TxProof */ export interface TxProofAmino { root_hash: string; data: string; proof?: ProofAmino; } export interface TxProofAminoMsg { type: "/tendermint.types.TxProof"; value: TxProofAmino; } /** * PartsetHeader * @name PartSetHeader * @package tendermint.types * @see proto type: tendermint.types.PartSetHeader */ export declare const PartSetHeader: { typeUrl: string; is(o: any): o is PartSetHeader; isAmino(o: any): o is PartSetHeaderAmino; encode(message: PartSetHeader, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader; fromPartial(object: DeepPartial<PartSetHeader>): PartSetHeader; fromAmino(object: PartSetHeaderAmino): PartSetHeader; toAmino(message: PartSetHeader): PartSetHeaderAmino; fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader; fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader; toProto(message: PartSetHeader): Uint8Array; toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg; registerTypeUrl(): void; }; /** * @name Part * @package tendermint.types * @see proto type: tendermint.types.Part */ export declare const Part: { typeUrl: string; is(o: any): o is Part; isAmino(o: any): o is PartAmino; encode(message: Part, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Part; fromPartial(object: DeepPartial<Part>): Part; fromAmino(object: PartAmino): Part; toAmino(message: Part): PartAmino; fromAminoMsg(object: PartAminoMsg): Part; fromProtoMsg(message: PartProtoMsg): Part; toProto(message: Part): Uint8Array; toProtoMsg(message: Part): PartProtoMsg; registerTypeUrl(): void; }; /** * BlockID * @name BlockID * @package tendermint.types * @see proto type: tendermint.types.BlockID */ export declare const BlockID: { typeUrl: string; is(o: any): o is BlockID; isAmino(o: any): o is BlockIDAmino; encode(message: BlockID, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): BlockID; fromPartial(object: DeepPartial<BlockID>): BlockID; fromAmino(object: BlockIDAmino): BlockID; toAmino(message: BlockID): BlockIDAmino; fromAminoMsg(object: BlockIDAminoMsg): BlockID; fromProtoMsg(message: BlockIDProtoMsg): BlockID; toProto(message: BlockID): Uint8Array; toProtoMsg(message: BlockID): BlockIDProtoMsg; registerTypeUrl(): void; }; /** * Header defines the structure of a block header. * @name Header * @package tendermint.types * @see proto type: tendermint.types.Header */ export declare const Header: { typeUrl: string; is(o: any): o is Header; isAmino(o: any): o is HeaderAmino; encode(message: Header, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Header; fromPartial(object: DeepPartial<Header>): Header; fromAmino(object: HeaderAmino): Header; toAmino(message: Header): HeaderAmino; fromAminoMsg(object: HeaderAminoMsg): Header; fromProtoMsg(message: HeaderProtoMsg): Header; toProto(message: Header): Uint8Array; toProtoMsg(message: Header): HeaderProtoMsg; registerTypeUrl(): void; }; /** * Data contains the set of transactions included in the block * @name Data * @package tendermint.types * @see proto type: tendermint.types.Data */ export declare const Data: { typeUrl: string; is(o: any): o is Data; isAmino(o: any): o is DataAmino; encode(message: Data, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Data; fromPartial(object: DeepPartial<Data>): Data; fromAmino(object: DataAmino): Data; toAmino(message: Data): DataAmino; fromAminoMsg(object: DataAminoMsg): Data; fromProtoMsg(message: DataProtoMsg): Data; toProto(message: Data): Uint8Array; toProtoMsg(message: Data): DataProtoMsg; registerTypeUrl(): void; }; /** * Vote represents a prevote or precommit vote from validators for * consensus. * @name Vote * @package tendermint.types * @see proto type: tendermint.types.Vote */ export declare const Vote: { typeUrl: string; is(o: any): o is Vote; isAmino(o: any): o is VoteAmino; encode(message: Vote, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromPartial(object: DeepPartial<Vote>): Vote; fromAmino(object: VoteAmino): Vote; toAmino(message: Vote): VoteAmino; fromAminoMsg(object: VoteAminoMsg): Vote; fromProtoMsg(message: VoteProtoMsg): Vote; toProto(message: Vote): Uint8Array; toProtoMsg(message: Vote): VoteProtoMsg; registerTypeUrl(): void; }; /** * Commit contains the evidence that a block was committed by a set of validators. * @name Commit * @package tendermint.types * @see proto type: tendermint.types.Commit */ export declare const Commit: { typeUrl: string; is(o: any): o is Commit; isAmino(o: any): o is CommitAmino; encode(message: Commit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Commit; fromPartial(object: DeepPartial<Commit>): Commit; fromAmino(object: CommitAmino): Commit; toAmino(message: Commit): CommitAmino; fromAminoMsg(object: CommitAminoMsg): Commit; fromProtoMsg(message: CommitProtoMsg): Commit; toProto(message: Commit): Uint8Array; toProtoMsg(message: Commit): CommitProtoMsg; registerTypeUrl(): void; }; /** * CommitSig is a part of the Vote included in a Commit. * @name CommitSig * @package tendermint.types * @see proto type: tendermint.types.CommitSig */ export declare const CommitSig: { typeUrl: string; is(o: any): o is CommitSig; isAmino(o: any): o is CommitSigAmino; encode(message: CommitSig, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CommitSig; fromPartial(object: DeepPartial<CommitSig>): CommitSig; fromAmino(object: CommitSigAmino): CommitSig; toAmino(message: CommitSig): CommitSigAmino; fromAminoMsg(object: CommitSigAminoMsg): CommitSig; fromProtoMsg(message: CommitSigProtoMsg): CommitSig; toProto(message: CommitSig): Uint8Array; toProtoMsg(message: CommitSig): CommitSigProtoMsg; registerTypeUrl(): void; }; /** * @name ExtendedCommit * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommit */ export declare const ExtendedCommit: { typeUrl: string; is(o: any): o is ExtendedCommit; isAmino(o: any): o is ExtendedCommitAmino; encode(message: ExtendedCommit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommit; fromPartial(object: DeepPartial<ExtendedCommit>): ExtendedCommit; fromAmino(object: ExtendedCommitAmino): ExtendedCommit; toAmino(message: ExtendedCommit): ExtendedCommitAmino; fromAminoMsg(object: ExtendedCommitAminoMsg): ExtendedCommit; fromProtoMsg(message: ExtendedCommitProtoMsg): ExtendedCommit; toProto(message: ExtendedCommit): Uint8Array; toProtoMsg(message: ExtendedCommit): ExtendedCommitProtoMsg; registerTypeUrl(): void; }; /** * ExtendedCommitSig retains all the same fields as CommitSig but adds vote * extension-related fields. We use two signatures to ensure backwards compatibility. * That is the digest of the original signature is still the same in prior versions * @name ExtendedCommitSig * @package tendermint.types * @see proto type: tendermint.types.ExtendedCommitSig */ export declare const ExtendedCommitSig: { typeUrl: string; is(o: any): o is ExtendedCommitSig; isAmino(o: any): o is ExtendedCommitSigAmino; encode(message: ExtendedCommitSig, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitSig; fromPartial(object: DeepPartial<ExtendedCommitSig>): ExtendedCommitSig; fromAmino(object: ExtendedCommitSigAmino): ExtendedCommitSig; toAmino(message: ExtendedCommitSig): ExtendedCommitSigAmino; fromAminoMsg(object: ExtendedCommitSigAminoMsg): ExtendedCommitSig; fromProtoMsg(message: ExtendedCommitSigProtoMsg): ExtendedCommitSig; toProto(message: ExtendedCommitSig): Uint8Array; toProtoMsg(message: ExtendedCommitSig): ExtendedCommitSigProtoMsg; registerTypeUrl(): void; }; /** * @name Proposal * @package tendermint.types * @see proto type: tendermint.types.Proposal */ export declare const Proposal: { typeUrl: string; is(o: any): o is Proposal; isAmino(o: any): o is ProposalAmino; encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromPartial(object: DeepPartial<Proposal>): Proposal; fromAmino(object: ProposalAmino): Proposal; toAmino(message: Proposal): ProposalAmino; fromAminoMsg(object: ProposalAminoMsg): Proposal; fromProtoMsg(message: ProposalProtoMsg): Proposal; toProto(message: Proposal): Uint8Array; toProtoMsg(message: Proposal): ProposalProtoMsg; registerTypeUrl(): void; }; /** * @name SignedHeader * @package tendermint.types * @see proto type: tendermint.types.SignedHeader */ export declare const SignedHeader: { typeUrl: string; is(o: any): o is SignedHeader; isAmino(o: any): o is SignedHeaderAmino; encode(message: SignedHeader, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader; fromPartial(object: DeepPartial<SignedHeader>): SignedHeader; fromAmino(object: SignedHeaderAmino): SignedHeader; toAmino(message: SignedHeader): SignedHeaderAmino; fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader; fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader; toProto(message: SignedHeader): Uint8Array; toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg; registerTypeUrl(): void; }; /** * @name LightBlock * @package tendermint.types * @see proto type: tendermint.types.LightBlock */ export declare const LightBlock: { typeUrl: string; is(o: any): o is LightBlock; isAmino(o: any): o is LightBlockAmino; encode(message: LightBlock, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): LightBlock; fromPartial(object: DeepPartial<LightBlock>): LightBlock; fromAmino(object: LightBlockAmino): LightBlock; toAmino(message: LightBlock): LightBlockAmino; fromAminoMsg(object: LightBlockAminoMsg): LightBlock; fromProtoMsg(message: LightBlockProtoMsg): LightBlock; toProto(message: LightBlock): Uint8Array; toProtoMsg(message: LightBlock): LightBlockProtoMsg; registerTypeUrl(): void; }; /** * @name BlockMeta * @package tendermint.types * @see proto type: tendermint.types.BlockMeta */ export declare const BlockMeta: { typeUrl: string; is(o: any): o is BlockMeta; isAmino(o: any): o is BlockMetaAmino; encode(message: BlockMeta, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta; fromPartial(object: DeepPartial<BlockMeta>): BlockMeta; fromAmino(object: BlockMetaAmino): BlockMeta; toAmino(message: BlockMeta): BlockMetaAmino; fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta; fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta; toProto(message: BlockMeta): Uint8Array; toProtoMsg(message: BlockMeta): BlockMetaProtoMsg; registerTypeUrl(): void; }; /** * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. * @name TxProof * @package tendermint.types * @see proto type: tendermint.types.TxProof */ export declare const TxProof: { typeUrl: string; is(o: any): o is TxProof; isAmino(o: any): o is TxProofAmino; encode(message: TxProof, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxProof; fromPartial(object: DeepPartial<TxProof>): TxProof; fromAmino(object: TxProofAmino): TxProof; toAmino(message: TxProof): TxProofAmino; fromAminoMsg(object: TxProofAminoMsg): TxProof; fromProtoMsg(message: TxProofProtoMsg): TxProof; toProto(message: TxProof): Uint8Array; toProtoMsg(message: TxProof): TxProofProtoMsg; registerTypeUrl(): void; };