import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "../types/validator"; import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; import { BlockID, BlockIDAmino, BlockIDSDKType } from "../types/types"; import { BinaryReader, BinaryWriter } from "../../binary"; /** * ABCIResponses retains the responses * of the various ABCI calls during block processing. * It is persisted to disk for each height before calling Commit. */ export interface ABCIResponses { } export interface ABCIResponsesProtoMsg { typeUrl: "/tendermint.state.ABCIResponses"; value: Uint8Array; } /** * ABCIResponses retains the responses * of the various ABCI calls during block processing. * It is persisted to disk for each height before calling Commit. * @name ABCIResponsesAmino * @package tendermint.state * @see proto type: tendermint.state.ABCIResponses */ export interface ABCIResponsesAmino { } export interface ABCIResponsesAminoMsg { type: "/tendermint.state.ABCIResponses"; value: ABCIResponsesAmino; } /** * ABCIResponses retains the responses * of the various ABCI calls during block processing. * It is persisted to disk for each height before calling Commit. */ export interface ABCIResponsesSDKType { } /** ValidatorsInfo represents the latest validator set, or the last height it changed */ export interface ValidatorsInfo { validatorSet?: ValidatorSet; lastHeightChanged: bigint; } export interface ValidatorsInfoProtoMsg { typeUrl: "/tendermint.state.ValidatorsInfo"; value: Uint8Array; } /** * ValidatorsInfo represents the latest validator set, or the last height it changed * @name ValidatorsInfoAmino * @package tendermint.state * @see proto type: tendermint.state.ValidatorsInfo */ export interface ValidatorsInfoAmino { validator_set?: ValidatorSetAmino; last_height_changed?: string; } export interface ValidatorsInfoAminoMsg { type: "/tendermint.state.ValidatorsInfo"; value: ValidatorsInfoAmino; } /** ValidatorsInfo represents the latest validator set, or the last height it changed */ export interface ValidatorsInfoSDKType { validator_set?: ValidatorSetSDKType; last_height_changed: bigint; } /** ConsensusParamsInfo represents the latest consensus params, or the last height it changed */ export interface ConsensusParamsInfo { consensusParams: ConsensusParams; lastHeightChanged: bigint; } export interface ConsensusParamsInfoProtoMsg { typeUrl: "/tendermint.state.ConsensusParamsInfo"; value: Uint8Array; } /** * ConsensusParamsInfo represents the latest consensus params, or the last height it changed * @name ConsensusParamsInfoAmino * @package tendermint.state * @see proto type: tendermint.state.ConsensusParamsInfo */ export interface ConsensusParamsInfoAmino { consensus_params?: ConsensusParamsAmino; last_height_changed?: string; } export interface ConsensusParamsInfoAminoMsg { type: "/tendermint.state.ConsensusParamsInfo"; value: ConsensusParamsInfoAmino; } /** ConsensusParamsInfo represents the latest consensus params, or the last height it changed */ export interface ConsensusParamsInfoSDKType { consensus_params: ConsensusParamsSDKType; last_height_changed: bigint; } export interface ABCIResponsesInfo { abciResponses?: ABCIResponses; height: bigint; } export interface ABCIResponsesInfoProtoMsg { typeUrl: "/tendermint.state.ABCIResponsesInfo"; value: Uint8Array; } /** * @name ABCIResponsesInfoAmino * @package tendermint.state * @see proto type: tendermint.state.ABCIResponsesInfo */ export interface ABCIResponsesInfoAmino { abci_responses?: ABCIResponsesAmino; height?: string; } export interface ABCIResponsesInfoAminoMsg { type: "/tendermint.state.ABCIResponsesInfo"; value: ABCIResponsesInfoAmino; } export interface ABCIResponsesInfoSDKType { abci_responses?: ABCIResponsesSDKType; height: bigint; } export interface Version { consensus: Consensus; software: string; } export interface VersionProtoMsg { typeUrl: "/tendermint.state.Version"; value: Uint8Array; } /** * @name VersionAmino * @package tendermint.state * @see proto type: tendermint.state.Version */ export interface VersionAmino { consensus?: ConsensusAmino; software?: string; } export interface VersionAminoMsg { type: "/tendermint.state.Version"; value: VersionAmino; } export interface VersionSDKType { consensus: ConsensusSDKType; software: string; } export interface State { version: Version; /** immutable */ chainId: string; initialHeight: bigint; /** LastBlockHeight=0 at genesis (ie. block(H=0) does not exist) */ lastBlockHeight: bigint; lastBlockId: BlockID; lastBlockTime: Date; /** * LastValidators is used to validate block.LastCommit. * Validators are persisted to the database separately every time they change, * so we can query for historical validator sets. * Note that if s.LastBlockHeight causes a valset change, * we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1 * Extra +1 due to nextValSet delay. */ nextValidators?: ValidatorSet; validators?: ValidatorSet; lastValidators?: ValidatorSet; lastHeightValidatorsChanged: bigint; /** * Consensus parameters used for validating blocks. * Changes returned by EndBlock and updated after Commit. */ consensusParams: ConsensusParams; lastHeightConsensusParamsChanged: bigint; /** Merkle root of the results from executing prev block */ lastResultsHash: Uint8Array; /** the latest AppHash we've received from calling abci.Commit() */ appHash: Uint8Array; } export interface StateProtoMsg { typeUrl: "/tendermint.state.State"; value: Uint8Array; } /** * @name StateAmino * @package tendermint.state * @see proto type: tendermint.state.State */ export interface StateAmino { version?: VersionAmino; /** * immutable */ chain_id?: string; initial_height?: string; /** * LastBlockHeight=0 at genesis (ie. block(H=0) does not exist) */ last_block_height?: string; last_block_id?: BlockIDAmino; last_block_time?: string; /** * LastValidators is used to validate block.LastCommit. * Validators are persisted to the database separately every time they change, * so we can query for historical validator sets. * Note that if s.LastBlockHeight causes a valset change, * we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1 * Extra +1 due to nextValSet delay. */ next_validators?: ValidatorSetAmino; validators?: ValidatorSetAmino; last_validators?: ValidatorSetAmino; last_height_validators_changed?: string; /** * Consensus parameters used for validating blocks. * Changes returned by EndBlock and updated after Commit. */ consensus_params?: ConsensusParamsAmino; last_height_consensus_params_changed?: string; /** * Merkle root of the results from executing prev block */ last_results_hash?: string; /** * the latest AppHash we've received from calling abci.Commit() */ app_hash?: string; } export interface StateAminoMsg { type: "/tendermint.state.State"; value: StateAmino; } export interface StateSDKType { version: VersionSDKType; chain_id: string; initial_height: bigint; last_block_height: bigint; last_block_id: BlockIDSDKType; last_block_time: Date; next_validators?: ValidatorSetSDKType; validators?: ValidatorSetSDKType; last_validators?: ValidatorSetSDKType; last_height_validators_changed: bigint; consensus_params: ConsensusParamsSDKType; last_height_consensus_params_changed: bigint; last_results_hash: Uint8Array; app_hash: Uint8Array; } export declare const ABCIResponses: { typeUrl: string; encode(_: ABCIResponses, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ABCIResponses; fromPartial(_: Partial): ABCIResponses; fromAmino(_: ABCIResponsesAmino): ABCIResponses; toAmino(_: ABCIResponses): ABCIResponsesAmino; fromAminoMsg(object: ABCIResponsesAminoMsg): ABCIResponses; fromProtoMsg(message: ABCIResponsesProtoMsg): ABCIResponses; toProto(message: ABCIResponses): Uint8Array; toProtoMsg(message: ABCIResponses): ABCIResponsesProtoMsg; }; export declare const ValidatorsInfo: { typeUrl: string; encode(message: ValidatorsInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ValidatorsInfo; fromPartial(object: Partial): ValidatorsInfo; fromAmino(object: ValidatorsInfoAmino): ValidatorsInfo; toAmino(message: ValidatorsInfo): ValidatorsInfoAmino; fromAminoMsg(object: ValidatorsInfoAminoMsg): ValidatorsInfo; fromProtoMsg(message: ValidatorsInfoProtoMsg): ValidatorsInfo; toProto(message: ValidatorsInfo): Uint8Array; toProtoMsg(message: ValidatorsInfo): ValidatorsInfoProtoMsg; }; export declare const ConsensusParamsInfo: { typeUrl: string; encode(message: ConsensusParamsInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParamsInfo; fromPartial(object: Partial): ConsensusParamsInfo; fromAmino(object: ConsensusParamsInfoAmino): ConsensusParamsInfo; toAmino(message: ConsensusParamsInfo): ConsensusParamsInfoAmino; fromAminoMsg(object: ConsensusParamsInfoAminoMsg): ConsensusParamsInfo; fromProtoMsg(message: ConsensusParamsInfoProtoMsg): ConsensusParamsInfo; toProto(message: ConsensusParamsInfo): Uint8Array; toProtoMsg(message: ConsensusParamsInfo): ConsensusParamsInfoProtoMsg; }; export declare const ABCIResponsesInfo: { typeUrl: string; encode(message: ABCIResponsesInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ABCIResponsesInfo; fromPartial(object: Partial): ABCIResponsesInfo; fromAmino(object: ABCIResponsesInfoAmino): ABCIResponsesInfo; toAmino(message: ABCIResponsesInfo): ABCIResponsesInfoAmino; fromAminoMsg(object: ABCIResponsesInfoAminoMsg): ABCIResponsesInfo; fromProtoMsg(message: ABCIResponsesInfoProtoMsg): ABCIResponsesInfo; toProto(message: ABCIResponsesInfo): Uint8Array; toProtoMsg(message: ABCIResponsesInfo): ABCIResponsesInfoProtoMsg; }; export declare const Version: { typeUrl: string; encode(message: Version, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Version; fromPartial(object: Partial): Version; fromAmino(object: VersionAmino): Version; toAmino(message: Version): VersionAmino; fromAminoMsg(object: VersionAminoMsg): Version; fromProtoMsg(message: VersionProtoMsg): Version; toProto(message: Version): Uint8Array; toProtoMsg(message: Version): VersionProtoMsg; }; export declare const State: { typeUrl: string; encode(message: State, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): State; fromPartial(object: Partial): State; fromAmino(object: StateAmino): State; toAmino(message: State): StateAmino; fromAminoMsg(object: StateAminoMsg): State; fromProtoMsg(message: StateProtoMsg): State; toProto(message: State): Uint8Array; toProtoMsg(message: State): StateProtoMsg; };