UNPKG

interchainjs

Version:

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

1,805 lines 93.9 kB
import { ConsensusParams, ConsensusParamsAmino } from "../types/params"; import { ProofOps, ProofOpsAmino } from "../crypto/proof"; import { PublicKey, PublicKeyAmino } from "../crypto/keys"; import { BlockIDFlag } from "../types/validator"; import { BinaryReader, BinaryWriter } from "../../binary"; import { DeepPartial } from "../../helpers"; export declare enum CheckTxType { NEW = 0, RECHECK = 1, UNRECOGNIZED = -1 } export declare const CheckTxTypeAmino: typeof CheckTxType; export declare function checkTxTypeFromJSON(object: any): CheckTxType; export declare function checkTxTypeToJSON(object: CheckTxType): string; export declare enum ResponseOfferSnapshot_Result { /** UNKNOWN - Unknown result, abort all snapshot restoration */ UNKNOWN = 0, /** ACCEPT - Snapshot accepted, apply chunks */ ACCEPT = 1, /** ABORT - Abort all snapshot restoration */ ABORT = 2, /** REJECT - Reject this specific snapshot, try others */ REJECT = 3, /** REJECT_FORMAT - Reject all snapshots of this format, try others */ REJECT_FORMAT = 4, /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ REJECT_SENDER = 5, UNRECOGNIZED = -1 } export declare const ResponseOfferSnapshot_ResultAmino: typeof ResponseOfferSnapshot_Result; export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result; export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string; export declare enum ResponseApplySnapshotChunk_Result { /** UNKNOWN - Unknown result, abort all snapshot restoration */ UNKNOWN = 0, /** ACCEPT - Chunk successfully accepted */ ACCEPT = 1, /** ABORT - Abort all snapshot restoration */ ABORT = 2, /** RETRY - Retry chunk (combine with refetch and reject) */ RETRY = 3, /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ RETRY_SNAPSHOT = 4, /** REJECT_SNAPSHOT - Reject this snapshot, try others */ REJECT_SNAPSHOT = 5, UNRECOGNIZED = -1 } export declare const ResponseApplySnapshotChunk_ResultAmino: typeof ResponseApplySnapshotChunk_Result; export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result; export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string; export declare enum ResponseProcessProposal_ProposalStatus { UNKNOWN = 0, ACCEPT = 1, REJECT = 2, UNRECOGNIZED = -1 } export declare const ResponseProcessProposal_ProposalStatusAmino: typeof ResponseProcessProposal_ProposalStatus; export declare function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus; export declare function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string; export declare enum ResponseVerifyVoteExtension_VerifyStatus { UNKNOWN = 0, ACCEPT = 1, /** * REJECT - Rejecting the vote extension will reject the entire precommit by the sender. * Incorrectly implementing this thus has liveness implications as it may affect * CometBFT's ability to receive 2/3+ valid votes to finalize the block. * Honest nodes should never be rejected. */ REJECT = 2, UNRECOGNIZED = -1 } export declare const ResponseVerifyVoteExtension_VerifyStatusAmino: typeof ResponseVerifyVoteExtension_VerifyStatus; export declare function responseVerifyVoteExtension_VerifyStatusFromJSON(object: any): ResponseVerifyVoteExtension_VerifyStatus; export declare function responseVerifyVoteExtension_VerifyStatusToJSON(object: ResponseVerifyVoteExtension_VerifyStatus): string; export declare enum MisbehaviorType { UNKNOWN = 0, DUPLICATE_VOTE = 1, LIGHT_CLIENT_ATTACK = 2, UNRECOGNIZED = -1 } export declare const MisbehaviorTypeAmino: typeof MisbehaviorType; export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType; export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string; /** * @name Request * @package tendermint.abci * @see proto type: tendermint.abci.Request */ export interface Request { echo?: RequestEcho; flush?: RequestFlush; info?: RequestInfo; initChain?: RequestInitChain; query?: RequestQuery; checkTx?: RequestCheckTx; commit?: RequestCommit; listSnapshots?: RequestListSnapshots; offerSnapshot?: RequestOfferSnapshot; loadSnapshotChunk?: RequestLoadSnapshotChunk; applySnapshotChunk?: RequestApplySnapshotChunk; prepareProposal?: RequestPrepareProposal; processProposal?: RequestProcessProposal; extendVote?: RequestExtendVote; verifyVoteExtension?: RequestVerifyVoteExtension; finalizeBlock?: RequestFinalizeBlock; } export interface RequestProtoMsg { typeUrl: "/tendermint.abci.Request"; value: Uint8Array; } /** * @name RequestAmino * @package tendermint.abci * @see proto type: tendermint.abci.Request */ export interface RequestAmino { echo?: RequestEchoAmino; flush?: RequestFlushAmino; info?: RequestInfoAmino; init_chain?: RequestInitChainAmino; query?: RequestQueryAmino; check_tx?: RequestCheckTxAmino; commit?: RequestCommitAmino; list_snapshots?: RequestListSnapshotsAmino; offer_snapshot?: RequestOfferSnapshotAmino; load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; prepare_proposal?: RequestPrepareProposalAmino; process_proposal?: RequestProcessProposalAmino; extend_vote?: RequestExtendVoteAmino; verify_vote_extension?: RequestVerifyVoteExtensionAmino; finalize_block?: RequestFinalizeBlockAmino; } export interface RequestAminoMsg { type: "/tendermint.abci.Request"; value: RequestAmino; } /** * @name RequestEcho * @package tendermint.abci * @see proto type: tendermint.abci.RequestEcho */ export interface RequestEcho { message: string; } export interface RequestEchoProtoMsg { typeUrl: "/tendermint.abci.RequestEcho"; value: Uint8Array; } /** * @name RequestEchoAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestEcho */ export interface RequestEchoAmino { message: string; } export interface RequestEchoAminoMsg { type: "/tendermint.abci.RequestEcho"; value: RequestEchoAmino; } /** * @name RequestFlush * @package tendermint.abci * @see proto type: tendermint.abci.RequestFlush */ export interface RequestFlush { } export interface RequestFlushProtoMsg { typeUrl: "/tendermint.abci.RequestFlush"; value: Uint8Array; } /** * @name RequestFlushAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestFlush */ export interface RequestFlushAmino { } export interface RequestFlushAminoMsg { type: "/tendermint.abci.RequestFlush"; value: RequestFlushAmino; } /** * @name RequestInfo * @package tendermint.abci * @see proto type: tendermint.abci.RequestInfo */ export interface RequestInfo { version: string; blockVersion: bigint; p2pVersion: bigint; abciVersion: string; } export interface RequestInfoProtoMsg { typeUrl: "/tendermint.abci.RequestInfo"; value: Uint8Array; } /** * @name RequestInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestInfo */ export interface RequestInfoAmino { version: string; block_version: string; p2p_version: string; abci_version: string; } export interface RequestInfoAminoMsg { type: "/tendermint.abci.RequestInfo"; value: RequestInfoAmino; } /** * @name RequestInitChain * @package tendermint.abci * @see proto type: tendermint.abci.RequestInitChain */ export interface RequestInitChain { time: Date; chainId: string; consensusParams?: ConsensusParams; validators: ValidatorUpdate[]; appStateBytes: Uint8Array; initialHeight: bigint; } export interface RequestInitChainProtoMsg { typeUrl: "/tendermint.abci.RequestInitChain"; value: Uint8Array; } /** * @name RequestInitChainAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestInitChain */ export interface RequestInitChainAmino { time: string; chain_id: string; consensus_params?: ConsensusParamsAmino; validators: ValidatorUpdateAmino[]; app_state_bytes: string; initial_height: string; } export interface RequestInitChainAminoMsg { type: "/tendermint.abci.RequestInitChain"; value: RequestInitChainAmino; } /** * @name RequestQuery * @package tendermint.abci * @see proto type: tendermint.abci.RequestQuery */ export interface RequestQuery { data: Uint8Array; path: string; height: bigint; prove: boolean; } export interface RequestQueryProtoMsg { typeUrl: "/tendermint.abci.RequestQuery"; value: Uint8Array; } /** * @name RequestQueryAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestQuery */ export interface RequestQueryAmino { data: string; path: string; height: string; prove: boolean; } export interface RequestQueryAminoMsg { type: "/tendermint.abci.RequestQuery"; value: RequestQueryAmino; } /** * @name RequestCheckTx * @package tendermint.abci * @see proto type: tendermint.abci.RequestCheckTx */ export interface RequestCheckTx { tx: Uint8Array; type: CheckTxType; } export interface RequestCheckTxProtoMsg { typeUrl: "/tendermint.abci.RequestCheckTx"; value: Uint8Array; } /** * @name RequestCheckTxAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestCheckTx */ export interface RequestCheckTxAmino { tx: string; type: CheckTxType; } export interface RequestCheckTxAminoMsg { type: "/tendermint.abci.RequestCheckTx"; value: RequestCheckTxAmino; } /** * @name RequestCommit * @package tendermint.abci * @see proto type: tendermint.abci.RequestCommit */ export interface RequestCommit { } export interface RequestCommitProtoMsg { typeUrl: "/tendermint.abci.RequestCommit"; value: Uint8Array; } /** * @name RequestCommitAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestCommit */ export interface RequestCommitAmino { } export interface RequestCommitAminoMsg { type: "/tendermint.abci.RequestCommit"; value: RequestCommitAmino; } /** * lists available snapshots * @name RequestListSnapshots * @package tendermint.abci * @see proto type: tendermint.abci.RequestListSnapshots */ export interface RequestListSnapshots { } export interface RequestListSnapshotsProtoMsg { typeUrl: "/tendermint.abci.RequestListSnapshots"; value: Uint8Array; } /** * lists available snapshots * @name RequestListSnapshotsAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestListSnapshots */ export interface RequestListSnapshotsAmino { } export interface RequestListSnapshotsAminoMsg { type: "/tendermint.abci.RequestListSnapshots"; value: RequestListSnapshotsAmino; } /** * offers a snapshot to the application * @name RequestOfferSnapshot * @package tendermint.abci * @see proto type: tendermint.abci.RequestOfferSnapshot */ export interface RequestOfferSnapshot { /** * snapshot offered by peers */ snapshot?: Snapshot; /** * light client-verified app hash for snapshot height */ appHash: Uint8Array; } export interface RequestOfferSnapshotProtoMsg { typeUrl: "/tendermint.abci.RequestOfferSnapshot"; value: Uint8Array; } /** * offers a snapshot to the application * @name RequestOfferSnapshotAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestOfferSnapshot */ export interface RequestOfferSnapshotAmino { /** * snapshot offered by peers */ snapshot?: SnapshotAmino; /** * light client-verified app hash for snapshot height */ app_hash: string; } export interface RequestOfferSnapshotAminoMsg { type: "/tendermint.abci.RequestOfferSnapshot"; value: RequestOfferSnapshotAmino; } /** * loads a snapshot chunk * @name RequestLoadSnapshotChunk * @package tendermint.abci * @see proto type: tendermint.abci.RequestLoadSnapshotChunk */ export interface RequestLoadSnapshotChunk { height: bigint; format: number; chunk: number; } export interface RequestLoadSnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; value: Uint8Array; } /** * loads a snapshot chunk * @name RequestLoadSnapshotChunkAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestLoadSnapshotChunk */ export interface RequestLoadSnapshotChunkAmino { height: string; format: number; chunk: number; } export interface RequestLoadSnapshotChunkAminoMsg { type: "/tendermint.abci.RequestLoadSnapshotChunk"; value: RequestLoadSnapshotChunkAmino; } /** * Applies a snapshot chunk * @name RequestApplySnapshotChunk * @package tendermint.abci * @see proto type: tendermint.abci.RequestApplySnapshotChunk */ export interface RequestApplySnapshotChunk { index: number; chunk: Uint8Array; sender: string; } export interface RequestApplySnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; value: Uint8Array; } /** * Applies a snapshot chunk * @name RequestApplySnapshotChunkAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestApplySnapshotChunk */ export interface RequestApplySnapshotChunkAmino { index: number; chunk: string; sender: string; } export interface RequestApplySnapshotChunkAminoMsg { type: "/tendermint.abci.RequestApplySnapshotChunk"; value: RequestApplySnapshotChunkAmino; } /** * @name RequestPrepareProposal * @package tendermint.abci * @see proto type: tendermint.abci.RequestPrepareProposal */ export interface RequestPrepareProposal { /** * the modified transactions cannot exceed this size. */ maxTxBytes: bigint; /** * txs is an array of transactions that will be included in a block, * sent to the app for possible modifications. */ txs: Uint8Array[]; localLastCommit: ExtendedCommitInfo; misbehavior: Misbehavior[]; height: bigint; time: Date; nextValidatorsHash: Uint8Array; /** * address of the public key of the validator proposing the block. */ proposerAddress: Uint8Array; } export interface RequestPrepareProposalProtoMsg { typeUrl: "/tendermint.abci.RequestPrepareProposal"; value: Uint8Array; } /** * @name RequestPrepareProposalAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestPrepareProposal */ export interface RequestPrepareProposalAmino { /** * the modified transactions cannot exceed this size. */ max_tx_bytes: string; /** * txs is an array of transactions that will be included in a block, * sent to the app for possible modifications. */ txs: string[]; local_last_commit: ExtendedCommitInfoAmino; misbehavior: MisbehaviorAmino[]; height: string; time: string; next_validators_hash: string; /** * address of the public key of the validator proposing the block. */ proposer_address: string; } export interface RequestPrepareProposalAminoMsg { type: "/tendermint.abci.RequestPrepareProposal"; value: RequestPrepareProposalAmino; } /** * @name RequestProcessProposal * @package tendermint.abci * @see proto type: tendermint.abci.RequestProcessProposal */ export interface RequestProcessProposal { txs: Uint8Array[]; proposedLastCommit: CommitInfo; misbehavior: Misbehavior[]; /** * hash is the merkle root hash of the fields of the proposed block. */ hash: Uint8Array; height: bigint; time: Date; nextValidatorsHash: Uint8Array; /** * address of the public key of the original proposer of the block. */ proposerAddress: Uint8Array; } export interface RequestProcessProposalProtoMsg { typeUrl: "/tendermint.abci.RequestProcessProposal"; value: Uint8Array; } /** * @name RequestProcessProposalAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestProcessProposal */ export interface RequestProcessProposalAmino { txs: string[]; proposed_last_commit: CommitInfoAmino; misbehavior: MisbehaviorAmino[]; /** * hash is the merkle root hash of the fields of the proposed block. */ hash: string; height: string; time: string; next_validators_hash: string; /** * address of the public key of the original proposer of the block. */ proposer_address: string; } export interface RequestProcessProposalAminoMsg { type: "/tendermint.abci.RequestProcessProposal"; value: RequestProcessProposalAmino; } /** * Extends a vote with application-injected data * @name RequestExtendVote * @package tendermint.abci * @see proto type: tendermint.abci.RequestExtendVote */ export interface RequestExtendVote { /** * the hash of the block that this vote may be referring to */ hash: Uint8Array; /** * the height of the extended vote */ height: bigint; /** * info of the block that this vote may be referring to */ time: Date; txs: Uint8Array[]; proposedLastCommit: CommitInfo; misbehavior: Misbehavior[]; nextValidatorsHash: Uint8Array; /** * address of the public key of the original proposer of the block. */ proposerAddress: Uint8Array; } export interface RequestExtendVoteProtoMsg { typeUrl: "/tendermint.abci.RequestExtendVote"; value: Uint8Array; } /** * Extends a vote with application-injected data * @name RequestExtendVoteAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestExtendVote */ export interface RequestExtendVoteAmino { /** * the hash of the block that this vote may be referring to */ hash: string; /** * the height of the extended vote */ height: string; /** * info of the block that this vote may be referring to */ time: string; txs: string[]; proposed_last_commit: CommitInfoAmino; misbehavior: MisbehaviorAmino[]; next_validators_hash: string; /** * address of the public key of the original proposer of the block. */ proposer_address: string; } export interface RequestExtendVoteAminoMsg { type: "/tendermint.abci.RequestExtendVote"; value: RequestExtendVoteAmino; } /** * Verify the vote extension * @name RequestVerifyVoteExtension * @package tendermint.abci * @see proto type: tendermint.abci.RequestVerifyVoteExtension */ export interface RequestVerifyVoteExtension { /** * the hash of the block that this received vote corresponds to */ hash: Uint8Array; /** * the validator that signed the vote extension */ validatorAddress: Uint8Array; height: bigint; voteExtension: Uint8Array; } export interface RequestVerifyVoteExtensionProtoMsg { typeUrl: "/tendermint.abci.RequestVerifyVoteExtension"; value: Uint8Array; } /** * Verify the vote extension * @name RequestVerifyVoteExtensionAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestVerifyVoteExtension */ export interface RequestVerifyVoteExtensionAmino { /** * the hash of the block that this received vote corresponds to */ hash: string; /** * the validator that signed the vote extension */ validator_address: string; height: string; vote_extension: string; } export interface RequestVerifyVoteExtensionAminoMsg { type: "/tendermint.abci.RequestVerifyVoteExtension"; value: RequestVerifyVoteExtensionAmino; } /** * @name RequestFinalizeBlock * @package tendermint.abci * @see proto type: tendermint.abci.RequestFinalizeBlock */ export interface RequestFinalizeBlock { txs: Uint8Array[]; decidedLastCommit: CommitInfo; misbehavior: Misbehavior[]; /** * hash is the merkle root hash of the fields of the decided block. */ hash: Uint8Array; height: bigint; time: Date; nextValidatorsHash: Uint8Array; /** * proposer_address is the address of the public key of the original proposer of the block. */ proposerAddress: Uint8Array; } export interface RequestFinalizeBlockProtoMsg { typeUrl: "/tendermint.abci.RequestFinalizeBlock"; value: Uint8Array; } /** * @name RequestFinalizeBlockAmino * @package tendermint.abci * @see proto type: tendermint.abci.RequestFinalizeBlock */ export interface RequestFinalizeBlockAmino { txs: string[]; decided_last_commit: CommitInfoAmino; misbehavior: MisbehaviorAmino[]; /** * hash is the merkle root hash of the fields of the decided block. */ hash: string; height: string; time: string; next_validators_hash: string; /** * proposer_address is the address of the public key of the original proposer of the block. */ proposer_address: string; } export interface RequestFinalizeBlockAminoMsg { type: "/tendermint.abci.RequestFinalizeBlock"; value: RequestFinalizeBlockAmino; } /** * @name Response * @package tendermint.abci * @see proto type: tendermint.abci.Response */ export interface Response { exception?: ResponseException; echo?: ResponseEcho; flush?: ResponseFlush; info?: ResponseInfo; initChain?: ResponseInitChain; query?: ResponseQuery; checkTx?: ResponseCheckTx; commit?: ResponseCommit; listSnapshots?: ResponseListSnapshots; offerSnapshot?: ResponseOfferSnapshot; loadSnapshotChunk?: ResponseLoadSnapshotChunk; applySnapshotChunk?: ResponseApplySnapshotChunk; prepareProposal?: ResponsePrepareProposal; processProposal?: ResponseProcessProposal; extendVote?: ResponseExtendVote; verifyVoteExtension?: ResponseVerifyVoteExtension; finalizeBlock?: ResponseFinalizeBlock; } export interface ResponseProtoMsg { typeUrl: "/tendermint.abci.Response"; value: Uint8Array; } /** * @name ResponseAmino * @package tendermint.abci * @see proto type: tendermint.abci.Response */ export interface ResponseAmino { exception?: ResponseExceptionAmino; echo?: ResponseEchoAmino; flush?: ResponseFlushAmino; info?: ResponseInfoAmino; init_chain?: ResponseInitChainAmino; query?: ResponseQueryAmino; check_tx?: ResponseCheckTxAmino; commit?: ResponseCommitAmino; list_snapshots?: ResponseListSnapshotsAmino; offer_snapshot?: ResponseOfferSnapshotAmino; load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; prepare_proposal?: ResponsePrepareProposalAmino; process_proposal?: ResponseProcessProposalAmino; extend_vote?: ResponseExtendVoteAmino; verify_vote_extension?: ResponseVerifyVoteExtensionAmino; finalize_block?: ResponseFinalizeBlockAmino; } export interface ResponseAminoMsg { type: "/tendermint.abci.Response"; value: ResponseAmino; } /** * nondeterministic * @name ResponseException * @package tendermint.abci * @see proto type: tendermint.abci.ResponseException */ export interface ResponseException { error: string; } export interface ResponseExceptionProtoMsg { typeUrl: "/tendermint.abci.ResponseException"; value: Uint8Array; } /** * nondeterministic * @name ResponseExceptionAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseException */ export interface ResponseExceptionAmino { error: string; } export interface ResponseExceptionAminoMsg { type: "/tendermint.abci.ResponseException"; value: ResponseExceptionAmino; } /** * @name ResponseEcho * @package tendermint.abci * @see proto type: tendermint.abci.ResponseEcho */ export interface ResponseEcho { message: string; } export interface ResponseEchoProtoMsg { typeUrl: "/tendermint.abci.ResponseEcho"; value: Uint8Array; } /** * @name ResponseEchoAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseEcho */ export interface ResponseEchoAmino { message: string; } export interface ResponseEchoAminoMsg { type: "/tendermint.abci.ResponseEcho"; value: ResponseEchoAmino; } /** * @name ResponseFlush * @package tendermint.abci * @see proto type: tendermint.abci.ResponseFlush */ export interface ResponseFlush { } export interface ResponseFlushProtoMsg { typeUrl: "/tendermint.abci.ResponseFlush"; value: Uint8Array; } /** * @name ResponseFlushAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseFlush */ export interface ResponseFlushAmino { } export interface ResponseFlushAminoMsg { type: "/tendermint.abci.ResponseFlush"; value: ResponseFlushAmino; } /** * @name ResponseInfo * @package tendermint.abci * @see proto type: tendermint.abci.ResponseInfo */ export interface ResponseInfo { data: string; version: string; appVersion: bigint; lastBlockHeight: bigint; lastBlockAppHash: Uint8Array; } export interface ResponseInfoProtoMsg { typeUrl: "/tendermint.abci.ResponseInfo"; value: Uint8Array; } /** * @name ResponseInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseInfo */ export interface ResponseInfoAmino { data: string; version: string; app_version: string; last_block_height: string; last_block_app_hash: string; } export interface ResponseInfoAminoMsg { type: "/tendermint.abci.ResponseInfo"; value: ResponseInfoAmino; } /** * @name ResponseInitChain * @package tendermint.abci * @see proto type: tendermint.abci.ResponseInitChain */ export interface ResponseInitChain { consensusParams?: ConsensusParams; validators: ValidatorUpdate[]; appHash: Uint8Array; } export interface ResponseInitChainProtoMsg { typeUrl: "/tendermint.abci.ResponseInitChain"; value: Uint8Array; } /** * @name ResponseInitChainAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseInitChain */ export interface ResponseInitChainAmino { consensus_params?: ConsensusParamsAmino; validators: ValidatorUpdateAmino[]; app_hash: string; } export interface ResponseInitChainAminoMsg { type: "/tendermint.abci.ResponseInitChain"; value: ResponseInitChainAmino; } /** * @name ResponseQuery * @package tendermint.abci * @see proto type: tendermint.abci.ResponseQuery */ export interface ResponseQuery { code: number; /** * bytes data = 2; // use "value" instead. */ log: string; /** * nondeterministic */ info: string; index: bigint; key: Uint8Array; value: Uint8Array; proofOps?: ProofOps; height: bigint; codespace: string; } export interface ResponseQueryProtoMsg { typeUrl: "/tendermint.abci.ResponseQuery"; value: Uint8Array; } /** * @name ResponseQueryAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseQuery */ export interface ResponseQueryAmino { code: number; /** * bytes data = 2; // use "value" instead. */ log: string; /** * nondeterministic */ info: string; index: string; key: string; value: string; proof_ops?: ProofOpsAmino; height: string; codespace: string; } export interface ResponseQueryAminoMsg { type: "/tendermint.abci.ResponseQuery"; value: ResponseQueryAmino; } /** * @name ResponseCheckTx * @package tendermint.abci * @see proto type: tendermint.abci.ResponseCheckTx */ export interface ResponseCheckTx { code: number; data: Uint8Array; /** * nondeterministic */ log: string; /** * nondeterministic */ info: string; gasWanted: bigint; gasUsed: bigint; events: Event[]; codespace: string; } export interface ResponseCheckTxProtoMsg { typeUrl: "/tendermint.abci.ResponseCheckTx"; value: Uint8Array; } /** * @name ResponseCheckTxAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseCheckTx */ export interface ResponseCheckTxAmino { code: number; data: string; /** * nondeterministic */ log: string; /** * nondeterministic */ info: string; gas_wanted: string; gas_used: string; events: EventAmino[]; codespace: string; } export interface ResponseCheckTxAminoMsg { type: "/tendermint.abci.ResponseCheckTx"; value: ResponseCheckTxAmino; } /** * @name ResponseCommit * @package tendermint.abci * @see proto type: tendermint.abci.ResponseCommit */ export interface ResponseCommit { retainHeight: bigint; } export interface ResponseCommitProtoMsg { typeUrl: "/tendermint.abci.ResponseCommit"; value: Uint8Array; } /** * @name ResponseCommitAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseCommit */ export interface ResponseCommitAmino { retain_height: string; } export interface ResponseCommitAminoMsg { type: "/tendermint.abci.ResponseCommit"; value: ResponseCommitAmino; } /** * @name ResponseListSnapshots * @package tendermint.abci * @see proto type: tendermint.abci.ResponseListSnapshots */ export interface ResponseListSnapshots { snapshots: Snapshot[]; } export interface ResponseListSnapshotsProtoMsg { typeUrl: "/tendermint.abci.ResponseListSnapshots"; value: Uint8Array; } /** * @name ResponseListSnapshotsAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseListSnapshots */ export interface ResponseListSnapshotsAmino { snapshots: SnapshotAmino[]; } export interface ResponseListSnapshotsAminoMsg { type: "/tendermint.abci.ResponseListSnapshots"; value: ResponseListSnapshotsAmino; } /** * @name ResponseOfferSnapshot * @package tendermint.abci * @see proto type: tendermint.abci.ResponseOfferSnapshot */ export interface ResponseOfferSnapshot { result: ResponseOfferSnapshot_Result; } export interface ResponseOfferSnapshotProtoMsg { typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; value: Uint8Array; } /** * @name ResponseOfferSnapshotAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseOfferSnapshot */ export interface ResponseOfferSnapshotAmino { result: ResponseOfferSnapshot_Result; } export interface ResponseOfferSnapshotAminoMsg { type: "/tendermint.abci.ResponseOfferSnapshot"; value: ResponseOfferSnapshotAmino; } /** * @name ResponseLoadSnapshotChunk * @package tendermint.abci * @see proto type: tendermint.abci.ResponseLoadSnapshotChunk */ export interface ResponseLoadSnapshotChunk { chunk: Uint8Array; } export interface ResponseLoadSnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; value: Uint8Array; } /** * @name ResponseLoadSnapshotChunkAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseLoadSnapshotChunk */ export interface ResponseLoadSnapshotChunkAmino { chunk: string; } export interface ResponseLoadSnapshotChunkAminoMsg { type: "/tendermint.abci.ResponseLoadSnapshotChunk"; value: ResponseLoadSnapshotChunkAmino; } /** * @name ResponseApplySnapshotChunk * @package tendermint.abci * @see proto type: tendermint.abci.ResponseApplySnapshotChunk */ export interface ResponseApplySnapshotChunk { result: ResponseApplySnapshotChunk_Result; /** * Chunks to refetch and reapply */ refetchChunks: number[]; /** * Chunk senders to reject and ban */ rejectSenders: string[]; } export interface ResponseApplySnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; value: Uint8Array; } /** * @name ResponseApplySnapshotChunkAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseApplySnapshotChunk */ export interface ResponseApplySnapshotChunkAmino { result: ResponseApplySnapshotChunk_Result; /** * Chunks to refetch and reapply */ refetch_chunks: number[]; /** * Chunk senders to reject and ban */ reject_senders: string[]; } export interface ResponseApplySnapshotChunkAminoMsg { type: "/tendermint.abci.ResponseApplySnapshotChunk"; value: ResponseApplySnapshotChunkAmino; } /** * @name ResponsePrepareProposal * @package tendermint.abci * @see proto type: tendermint.abci.ResponsePrepareProposal */ export interface ResponsePrepareProposal { txs: Uint8Array[]; } export interface ResponsePrepareProposalProtoMsg { typeUrl: "/tendermint.abci.ResponsePrepareProposal"; value: Uint8Array; } /** * @name ResponsePrepareProposalAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponsePrepareProposal */ export interface ResponsePrepareProposalAmino { txs: string[]; } export interface ResponsePrepareProposalAminoMsg { type: "/tendermint.abci.ResponsePrepareProposal"; value: ResponsePrepareProposalAmino; } /** * @name ResponseProcessProposal * @package tendermint.abci * @see proto type: tendermint.abci.ResponseProcessProposal */ export interface ResponseProcessProposal { status: ResponseProcessProposal_ProposalStatus; } export interface ResponseProcessProposalProtoMsg { typeUrl: "/tendermint.abci.ResponseProcessProposal"; value: Uint8Array; } /** * @name ResponseProcessProposalAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseProcessProposal */ export interface ResponseProcessProposalAmino { status: ResponseProcessProposal_ProposalStatus; } export interface ResponseProcessProposalAminoMsg { type: "/tendermint.abci.ResponseProcessProposal"; value: ResponseProcessProposalAmino; } /** * @name ResponseExtendVote * @package tendermint.abci * @see proto type: tendermint.abci.ResponseExtendVote */ export interface ResponseExtendVote { voteExtension: Uint8Array; } export interface ResponseExtendVoteProtoMsg { typeUrl: "/tendermint.abci.ResponseExtendVote"; value: Uint8Array; } /** * @name ResponseExtendVoteAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseExtendVote */ export interface ResponseExtendVoteAmino { vote_extension: string; } export interface ResponseExtendVoteAminoMsg { type: "/tendermint.abci.ResponseExtendVote"; value: ResponseExtendVoteAmino; } /** * @name ResponseVerifyVoteExtension * @package tendermint.abci * @see proto type: tendermint.abci.ResponseVerifyVoteExtension */ export interface ResponseVerifyVoteExtension { status: ResponseVerifyVoteExtension_VerifyStatus; } export interface ResponseVerifyVoteExtensionProtoMsg { typeUrl: "/tendermint.abci.ResponseVerifyVoteExtension"; value: Uint8Array; } /** * @name ResponseVerifyVoteExtensionAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseVerifyVoteExtension */ export interface ResponseVerifyVoteExtensionAmino { status: ResponseVerifyVoteExtension_VerifyStatus; } export interface ResponseVerifyVoteExtensionAminoMsg { type: "/tendermint.abci.ResponseVerifyVoteExtension"; value: ResponseVerifyVoteExtensionAmino; } /** * @name ResponseFinalizeBlock * @package tendermint.abci * @see proto type: tendermint.abci.ResponseFinalizeBlock */ export interface ResponseFinalizeBlock { /** * set of block events emmitted as part of executing the block */ events: Event[]; /** * the result of executing each transaction including the events * the particular transction emitted. This should match the order * of the transactions delivered in the block itself */ txResults: ExecTxResult[]; /** * a list of updates to the validator set. These will reflect the validator set at current height + 2. */ validatorUpdates: ValidatorUpdate[]; /** * updates to the consensus params, if any. */ consensusParamUpdates?: ConsensusParams; /** * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was * deterministic. It is up to the application to decide which algorithm to use. */ appHash: Uint8Array; } export interface ResponseFinalizeBlockProtoMsg { typeUrl: "/tendermint.abci.ResponseFinalizeBlock"; value: Uint8Array; } /** * @name ResponseFinalizeBlockAmino * @package tendermint.abci * @see proto type: tendermint.abci.ResponseFinalizeBlock */ export interface ResponseFinalizeBlockAmino { /** * set of block events emmitted as part of executing the block */ events: EventAmino[]; /** * the result of executing each transaction including the events * the particular transction emitted. This should match the order * of the transactions delivered in the block itself */ tx_results: ExecTxResultAmino[]; /** * a list of updates to the validator set. These will reflect the validator set at current height + 2. */ validator_updates: ValidatorUpdateAmino[]; /** * updates to the consensus params, if any. */ consensus_param_updates?: ConsensusParamsAmino; /** * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was * deterministic. It is up to the application to decide which algorithm to use. */ app_hash: string; } export interface ResponseFinalizeBlockAminoMsg { type: "/tendermint.abci.ResponseFinalizeBlock"; value: ResponseFinalizeBlockAmino; } /** * @name CommitInfo * @package tendermint.abci * @see proto type: tendermint.abci.CommitInfo */ export interface CommitInfo { round: number; votes: VoteInfo[]; } export interface CommitInfoProtoMsg { typeUrl: "/tendermint.abci.CommitInfo"; value: Uint8Array; } /** * @name CommitInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.CommitInfo */ export interface CommitInfoAmino { round: number; votes: VoteInfoAmino[]; } export interface CommitInfoAminoMsg { type: "/tendermint.abci.CommitInfo"; value: CommitInfoAmino; } /** * ExtendedCommitInfo is similar to CommitInfo except that it is only used in * the PrepareProposal request such that CometBFT can provide vote extensions * to the application. * @name ExtendedCommitInfo * @package tendermint.abci * @see proto type: tendermint.abci.ExtendedCommitInfo */ export interface ExtendedCommitInfo { /** * The round at which the block proposer decided in the previous height. */ round: number; /** * List of validators' addresses in the last validator set with their voting * information, including vote extensions. */ votes: ExtendedVoteInfo[]; } export interface ExtendedCommitInfoProtoMsg { typeUrl: "/tendermint.abci.ExtendedCommitInfo"; value: Uint8Array; } /** * ExtendedCommitInfo is similar to CommitInfo except that it is only used in * the PrepareProposal request such that CometBFT can provide vote extensions * to the application. * @name ExtendedCommitInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.ExtendedCommitInfo */ export interface ExtendedCommitInfoAmino { /** * The round at which the block proposer decided in the previous height. */ round: number; /** * List of validators' addresses in the last validator set with their voting * information, including vote extensions. */ votes: ExtendedVoteInfoAmino[]; } export interface ExtendedCommitInfoAminoMsg { type: "/tendermint.abci.ExtendedCommitInfo"; value: ExtendedCommitInfoAmino; } /** * Event allows application developers to attach additional information to * ResponseFinalizeBlock and ResponseCheckTx. * Later, transactions may be queried using these events. * @name Event * @package tendermint.abci * @see proto type: tendermint.abci.Event */ export interface Event { type: string; attributes: EventAttribute[]; } export interface EventProtoMsg { typeUrl: "/tendermint.abci.Event"; value: Uint8Array; } /** * Event allows application developers to attach additional information to * ResponseFinalizeBlock and ResponseCheckTx. * Later, transactions may be queried using these events. * @name EventAmino * @package tendermint.abci * @see proto type: tendermint.abci.Event */ export interface EventAmino { type: string; attributes: EventAttributeAmino[]; } export interface EventAminoMsg { type: "/tendermint.abci.Event"; value: EventAmino; } /** * EventAttribute is a single key-value pair, associated with an event. * @name EventAttribute * @package tendermint.abci * @see proto type: tendermint.abci.EventAttribute */ export interface EventAttribute { key: string; value: string; /** * nondeterministic */ index: boolean; } export interface EventAttributeProtoMsg { typeUrl: "/tendermint.abci.EventAttribute"; value: Uint8Array; } /** * EventAttribute is a single key-value pair, associated with an event. * @name EventAttributeAmino * @package tendermint.abci * @see proto type: tendermint.abci.EventAttribute */ export interface EventAttributeAmino { key: string; value: string; /** * nondeterministic */ index: boolean; } export interface EventAttributeAminoMsg { type: "/tendermint.abci.EventAttribute"; value: EventAttributeAmino; } /** * ExecTxResult contains results of executing one individual transaction. * * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted * @name ExecTxResult * @package tendermint.abci * @see proto type: tendermint.abci.ExecTxResult */ export interface ExecTxResult { code: number; data: Uint8Array; /** * nondeterministic */ log: string; /** * nondeterministic */ info: string; gasWanted: bigint; gasUsed: bigint; events: Event[]; codespace: string; } export interface ExecTxResultProtoMsg { typeUrl: "/tendermint.abci.ExecTxResult"; value: Uint8Array; } /** * ExecTxResult contains results of executing one individual transaction. * * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted * @name ExecTxResultAmino * @package tendermint.abci * @see proto type: tendermint.abci.ExecTxResult */ export interface ExecTxResultAmino { code: number; data: string; /** * nondeterministic */ log: string; /** * nondeterministic */ info: string; gas_wanted: string; gas_used: string; events: EventAmino[]; codespace: string; } export interface ExecTxResultAminoMsg { type: "/tendermint.abci.ExecTxResult"; value: ExecTxResultAmino; } /** * TxResult contains results of executing the transaction. * * One usage is indexing transaction results. * @name TxResult * @package tendermint.abci * @see proto type: tendermint.abci.TxResult */ export interface TxResult { height: bigint; index: number; tx: Uint8Array; result: ExecTxResult; } export interface TxResultProtoMsg { typeUrl: "/tendermint.abci.TxResult"; value: Uint8Array; } /** * TxResult contains results of executing the transaction. * * One usage is indexing transaction results. * @name TxResultAmino * @package tendermint.abci * @see proto type: tendermint.abci.TxResult */ export interface TxResultAmino { height: string; index: number; tx: string; result: ExecTxResultAmino; } export interface TxResultAminoMsg { type: "/tendermint.abci.TxResult"; value: TxResultAmino; } /** * @name Validator * @package tendermint.abci * @see proto type: tendermint.abci.Validator */ export interface Validator { /** * The first 20 bytes of SHA256(public key) */ address: Uint8Array; /** * PubKey pub_key = 2 [(gogoproto.nullable)=false]; */ power: bigint; } export interface ValidatorProtoMsg { typeUrl: "/tendermint.abci.Validator"; value: Uint8Array; } /** * @name ValidatorAmino * @package tendermint.abci * @see proto type: tendermint.abci.Validator */ export interface ValidatorAmino { /** * The first 20 bytes of SHA256(public key) */ address: string; /** * PubKey pub_key = 2 [(gogoproto.nullable)=false]; */ power: string; } export interface ValidatorAminoMsg { type: "/tendermint.abci.Validator"; value: ValidatorAmino; } /** * @name ValidatorUpdate * @package tendermint.abci * @see proto type: tendermint.abci.ValidatorUpdate */ export interface ValidatorUpdate { pubKey: PublicKey; power: bigint; } export interface ValidatorUpdateProtoMsg { typeUrl: "/tendermint.abci.ValidatorUpdate"; value: Uint8Array; } /** * @name ValidatorUpdateAmino * @package tendermint.abci * @see proto type: tendermint.abci.ValidatorUpdate */ export interface ValidatorUpdateAmino { pub_key: PublicKeyAmino; power: string; } export interface ValidatorUpdateAminoMsg { type: "/tendermint.abci.ValidatorUpdate"; value: ValidatorUpdateAmino; } /** * @name VoteInfo * @package tendermint.abci * @see proto type: tendermint.abci.VoteInfo */ export interface VoteInfo { validator: Validator; blockIdFlag: BlockIDFlag; } export interface VoteInfoProtoMsg { typeUrl: "/tendermint.abci.VoteInfo"; value: Uint8Array; } /** * @name VoteInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.VoteInfo */ export interface VoteInfoAmino { validator: ValidatorAmino; block_id_flag: BlockIDFlag; } export interface VoteInfoAminoMsg { type: "/tendermint.abci.VoteInfo"; value: VoteInfoAmino; } /** * @name ExtendedVoteInfo * @package tendermint.abci * @see proto type: tendermint.abci.ExtendedVoteInfo */ export interface ExtendedVoteInfo { /** * The validator that sent the vote. */ validator: Validator; /** * Non-deterministic extension provided by the sending validator's application. */ voteExtension: Uint8Array; /** * Vote extension signature created by CometBFT */ extensionSignature: Uint8Array; /** * block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all */ blockIdFlag: BlockIDFlag; } export interface ExtendedVoteInfoProtoMsg { typeUrl: "/tendermint.abci.ExtendedVoteInfo"; value: Uint8Array; } /** * @name ExtendedVoteInfoAmino * @package tendermint.abci * @see proto type: tendermint.abci.ExtendedVoteInfo */ export interface ExtendedVoteInfoAmino { /** * The validator that sent the vote. */ validator: ValidatorAmino; /** * Non-deterministic extension provided by the sending validator's application. */ vote_extension: string; /** * Vote extension signature created by CometBFT */ extension_signature: string; /** * block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all */ block_id_flag: BlockIDFlag; } export interface ExtendedVoteInfoAminoMsg { type: "/tendermint.abci.ExtendedVoteInfo"; value: ExtendedVoteInfoAmino; } /** * @name Misbehavior * @package tendermint.abci * @see proto type: tendermint.abci.Misbehavior */ export interface Misbehavior { type: MisbehaviorType; /** * The offending validator */ validator: Validator; /** * The height when the offense occurred */ height: bigint; /** * The corresponding time where the offense occurred */ time: Date; /** * Total voting power of the validator set in case the ABCI application does * not store historical validators. * https://github.com/tendermint/tendermint/issues/4581 */ totalVotingPower: bigint; } export interface MisbehaviorProtoMsg { typeUrl: "/tendermint.abci.Misbehavior"; value: Uint8Array; } /** * @name MisbehaviorAmino * @package tendermint.abci * @see proto type: tendermint.abci.Misbehavior */ export interface MisbehaviorAmino { type: MisbehaviorType; /** * The offending validator */ validator: ValidatorAmino; /** * The height when the offense occurred */ height: string; /** * The corresponding time where the offense occurred */ time: string; /** * Total voting power of the validator set in case the ABCI application does * not store historical validators. * https://github.com/tendermint/tendermint/issues/4581 */ total_voting_power: string; } export interface MisbehaviorAminoMsg { type: "/tendermint.abci.Misbehavior"; value: MisbehaviorAmino; } /** * @name Snapshot * @package tendermint.abci * @see proto type: tendermint.abci.Snapshot */ export interface Snapshot { /** * The height at which the snapshot was taken */ height: bigint; /** * The application-specific snapshot format */ format: number; /** * Number of chunks in the snapshot */ chunks: number; /** * Arbitrary snapshot hash, equal only if identical */ hash: Uint8Array; /** * Arbitrary application metadata */ metadata: Uint8Array; } export interface SnapshotProtoMsg { typeUrl: "/tendermint.abci.Snapshot"; value: Uint8Array; } /** * @name SnapshotAmino * @package tendermint.abci * @see proto type: tendermint.abci.Snapshot */ export interface SnapshotAmino { /** * The height at which the snapshot was taken */ height: string; /** * The application-specific snapshot format */ format: number; /** * Number of chunks in the snapshot */ chunks: number; /** * Arbitrary snapshot hash, equal only if identical */ hash: string; /** * Arbitrary application metadata */ metadata: string; } export interface SnapshotAminoMsg { type: "/tendermint.abci.Snapshot"; value: SnapshotAmino; } /** * @name Reque