interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
1,117 lines (1,116 loc) • 43.7 kB
TypeScript
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../query/v1beta1/pagination";
import { Any, AnyAmino } from "../../../../google/protobuf/any";
import { BlockID, BlockIDAmino } from "../../../../tendermint/types/types";
import { Block as Block1 } from "../../../../tendermint/types/block";
import { BlockAmino as Block1Amino } from "../../../../tendermint/types/block";
import { Block as Block2 } from "./types";
import { BlockAmino as Block2Amino } from "./types";
import { DefaultNodeInfo, DefaultNodeInfoAmino } from "../../../../tendermint/p2p/types";
import { BinaryReader, BinaryWriter } from "../../../../binary";
import { DeepPartial } from "../../../../helpers";
/**
* GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest
*/
export interface GetValidatorSetByHeightRequest {
height: bigint;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequest;
}
export interface GetValidatorSetByHeightRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest";
value: Uint8Array;
}
/**
* GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest
*/
export interface GetValidatorSetByHeightRequestAmino {
height: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequestAmino;
}
export interface GetValidatorSetByHeightRequestAminoMsg {
type: "cosmos-sdk/GetValidatorSetByHeightRequest";
value: GetValidatorSetByHeightRequestAmino;
}
/**
* GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse
*/
export interface GetValidatorSetByHeightResponse {
blockHeight: bigint;
validators: Validator[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponse;
}
export interface GetValidatorSetByHeightResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse";
value: Uint8Array;
}
/**
* GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse
*/
export interface GetValidatorSetByHeightResponseAmino {
block_height: string;
validators: ValidatorAmino[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponseAmino;
}
export interface GetValidatorSetByHeightResponseAminoMsg {
type: "cosmos-sdk/GetValidatorSetByHeightResponse";
value: GetValidatorSetByHeightResponseAmino;
}
/**
* GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest
*/
export interface GetLatestValidatorSetRequest {
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequest;
}
export interface GetLatestValidatorSetRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest";
value: Uint8Array;
}
/**
* GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest
*/
export interface GetLatestValidatorSetRequestAmino {
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequestAmino;
}
export interface GetLatestValidatorSetRequestAminoMsg {
type: "cosmos-sdk/GetLatestValidatorSetRequest";
value: GetLatestValidatorSetRequestAmino;
}
/**
* GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse
*/
export interface GetLatestValidatorSetResponse {
blockHeight: bigint;
validators: Validator[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponse;
}
export interface GetLatestValidatorSetResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse";
value: Uint8Array;
}
/**
* GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse
*/
export interface GetLatestValidatorSetResponseAmino {
block_height: string;
validators: ValidatorAmino[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponseAmino;
}
export interface GetLatestValidatorSetResponseAminoMsg {
type: "cosmos-sdk/GetLatestValidatorSetResponse";
value: GetLatestValidatorSetResponseAmino;
}
/**
* Validator is the type for the validator-set.
* @name Validator
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Validator
*/
export interface Validator {
address: string;
pubKey?: Any;
votingPower: bigint;
proposerPriority: bigint;
}
export interface ValidatorProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.Validator";
value: Uint8Array;
}
/**
* Validator is the type for the validator-set.
* @name ValidatorAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Validator
*/
export interface ValidatorAmino {
address: string;
pub_key?: AnyAmino;
voting_power: string;
proposer_priority: string;
}
export interface ValidatorAminoMsg {
type: "cosmos-sdk/Validator";
value: ValidatorAmino;
}
/**
* GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest
*/
export interface GetBlockByHeightRequest {
height: bigint;
}
export interface GetBlockByHeightRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest";
value: Uint8Array;
}
/**
* GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest
*/
export interface GetBlockByHeightRequestAmino {
height: string;
}
export interface GetBlockByHeightRequestAminoMsg {
type: "cosmos-sdk/GetBlockByHeightRequest";
value: GetBlockByHeightRequestAmino;
}
/**
* GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse
*/
export interface GetBlockByHeightResponse {
blockId?: BlockID;
/**
* Deprecated: please use `sdk_block` instead
*/
block?: Block1;
/**
* Since: cosmos-sdk 0.47
*/
sdkBlock?: Block2;
}
export interface GetBlockByHeightResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse";
value: Uint8Array;
}
/**
* GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse
*/
export interface GetBlockByHeightResponseAmino {
block_id?: BlockIDAmino;
/**
* Deprecated: please use `sdk_block` instead
*/
block?: Block1Amino;
/**
* Since: cosmos-sdk 0.47
*/
sdk_block?: Block2Amino;
}
export interface GetBlockByHeightResponseAminoMsg {
type: "cosmos-sdk/GetBlockByHeightResponse";
value: GetBlockByHeightResponseAmino;
}
/**
* GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockRequest
*/
export interface GetLatestBlockRequest {
}
export interface GetLatestBlockRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest";
value: Uint8Array;
}
/**
* GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockRequest
*/
export interface GetLatestBlockRequestAmino {
}
export interface GetLatestBlockRequestAminoMsg {
type: "cosmos-sdk/GetLatestBlockRequest";
value: GetLatestBlockRequestAmino;
}
/**
* GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse
*/
export interface GetLatestBlockResponse {
blockId?: BlockID;
/**
* Deprecated: please use `sdk_block` instead
*/
block?: Block1;
/**
* Since: cosmos-sdk 0.47
*/
sdkBlock?: Block2;
}
export interface GetLatestBlockResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse";
value: Uint8Array;
}
/**
* GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse
*/
export interface GetLatestBlockResponseAmino {
block_id?: BlockIDAmino;
/**
* Deprecated: please use `sdk_block` instead
*/
block?: Block1Amino;
/**
* Since: cosmos-sdk 0.47
*/
sdk_block?: Block2Amino;
}
export interface GetLatestBlockResponseAminoMsg {
type: "cosmos-sdk/GetLatestBlockResponse";
value: GetLatestBlockResponseAmino;
}
/**
* GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
* @name GetSyncingRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingRequest
*/
export interface GetSyncingRequest {
}
export interface GetSyncingRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest";
value: Uint8Array;
}
/**
* GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
* @name GetSyncingRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingRequest
*/
export interface GetSyncingRequestAmino {
}
export interface GetSyncingRequestAminoMsg {
type: "cosmos-sdk/GetSyncingRequest";
value: GetSyncingRequestAmino;
}
/**
* GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
* @name GetSyncingResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingResponse
*/
export interface GetSyncingResponse {
syncing: boolean;
}
export interface GetSyncingResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse";
value: Uint8Array;
}
/**
* GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
* @name GetSyncingResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingResponse
*/
export interface GetSyncingResponseAmino {
syncing: boolean;
}
export interface GetSyncingResponseAminoMsg {
type: "cosmos-sdk/GetSyncingResponse";
value: GetSyncingResponseAmino;
}
/**
* GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoRequest
*/
export interface GetNodeInfoRequest {
}
export interface GetNodeInfoRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest";
value: Uint8Array;
}
/**
* GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoRequest
*/
export interface GetNodeInfoRequestAmino {
}
export interface GetNodeInfoRequestAminoMsg {
type: "cosmos-sdk/GetNodeInfoRequest";
value: GetNodeInfoRequestAmino;
}
/**
* GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse
*/
export interface GetNodeInfoResponse {
defaultNodeInfo?: DefaultNodeInfo;
applicationVersion?: VersionInfo;
}
export interface GetNodeInfoResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse";
value: Uint8Array;
}
/**
* GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse
*/
export interface GetNodeInfoResponseAmino {
default_node_info?: DefaultNodeInfoAmino;
application_version?: VersionInfoAmino;
}
export interface GetNodeInfoResponseAminoMsg {
type: "cosmos-sdk/GetNodeInfoResponse";
value: GetNodeInfoResponseAmino;
}
/**
* VersionInfo is the type for the GetNodeInfoResponse message.
* @name VersionInfo
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.VersionInfo
*/
export interface VersionInfo {
name: string;
appName: string;
version: string;
gitCommit: string;
buildTags: string;
goVersion: string;
buildDeps: Module[];
/**
* Since: cosmos-sdk 0.43
*/
cosmosSdkVersion: string;
}
export interface VersionInfoProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo";
value: Uint8Array;
}
/**
* VersionInfo is the type for the GetNodeInfoResponse message.
* @name VersionInfoAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.VersionInfo
*/
export interface VersionInfoAmino {
name: string;
app_name: string;
version: string;
git_commit: string;
build_tags: string;
go_version: string;
build_deps: ModuleAmino[];
/**
* Since: cosmos-sdk 0.43
*/
cosmos_sdk_version: string;
}
export interface VersionInfoAminoMsg {
type: "cosmos-sdk/VersionInfo";
value: VersionInfoAmino;
}
/**
* Module is the type for VersionInfo
* @name Module
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Module
*/
export interface Module {
/**
* module path
*/
path: string;
/**
* module version
*/
version: string;
/**
* checksum
*/
sum: string;
}
export interface ModuleProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.Module";
value: Uint8Array;
}
/**
* Module is the type for VersionInfo
* @name ModuleAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Module
*/
export interface ModuleAmino {
/**
* module path
*/
path: string;
/**
* module version
*/
version: string;
/**
* checksum
*/
sum: string;
}
export interface ModuleAminoMsg {
type: "cosmos-sdk/Module";
value: ModuleAmino;
}
/**
* ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
* @name ABCIQueryRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryRequest
*/
export interface ABCIQueryRequest {
data: Uint8Array;
path: string;
height: bigint;
prove: boolean;
}
export interface ABCIQueryRequestProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest";
value: Uint8Array;
}
/**
* ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
* @name ABCIQueryRequestAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryRequest
*/
export interface ABCIQueryRequestAmino {
data: string;
path: string;
height: string;
prove: boolean;
}
export interface ABCIQueryRequestAminoMsg {
type: "cosmos-sdk/ABCIQueryRequest";
value: ABCIQueryRequestAmino;
}
/**
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
*
* Note: This type is a duplicate of the ResponseQuery proto type defined in
* Tendermint.
* @name ABCIQueryResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryResponse
*/
export interface ABCIQueryResponse {
code: number;
/**
* nondeterministic
*/
log: string;
/**
* nondeterministic
*/
info: string;
index: bigint;
key: Uint8Array;
value: Uint8Array;
proofOps?: ProofOps;
height: bigint;
codespace: string;
}
export interface ABCIQueryResponseProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse";
value: Uint8Array;
}
/**
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
*
* Note: This type is a duplicate of the ResponseQuery proto type defined in
* Tendermint.
* @name ABCIQueryResponseAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryResponse
*/
export interface ABCIQueryResponseAmino {
code: number;
/**
* nondeterministic
*/
log: string;
/**
* nondeterministic
*/
info: string;
index: string;
key: string;
value: string;
proof_ops?: ProofOpsAmino;
height: string;
codespace: string;
}
export interface ABCIQueryResponseAminoMsg {
type: "cosmos-sdk/ABCIQueryResponse";
value: ABCIQueryResponseAmino;
}
/**
* ProofOp defines an operation used for calculating Merkle root. The data could
* be arbitrary format, providing necessary data for example neighbouring node
* hash.
*
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
* @name ProofOp
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOp
*/
export interface ProofOp {
type: string;
key: Uint8Array;
data: Uint8Array;
}
export interface ProofOpProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp";
value: Uint8Array;
}
/**
* ProofOp defines an operation used for calculating Merkle root. The data could
* be arbitrary format, providing necessary data for example neighbouring node
* hash.
*
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
* @name ProofOpAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOp
*/
export interface ProofOpAmino {
type: string;
key: string;
data: string;
}
export interface ProofOpAminoMsg {
type: "cosmos-sdk/ProofOp";
value: ProofOpAmino;
}
/**
* ProofOps is Merkle proof defined by the list of ProofOps.
*
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
* @name ProofOps
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOps
*/
export interface ProofOps {
ops: ProofOp[];
}
export interface ProofOpsProtoMsg {
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps";
value: Uint8Array;
}
/**
* ProofOps is Merkle proof defined by the list of ProofOps.
*
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
* @name ProofOpsAmino
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOps
*/
export interface ProofOpsAmino {
ops: ProofOpAmino[];
}
export interface ProofOpsAminoMsg {
type: "cosmos-sdk/ProofOps";
value: ProofOpsAmino;
}
/**
* GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest
*/
export declare const GetValidatorSetByHeightRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetValidatorSetByHeightRequest;
isAmino(o: any): o is GetValidatorSetByHeightRequestAmino;
encode(message: GetValidatorSetByHeightRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest;
fromPartial(object: DeepPartial<GetValidatorSetByHeightRequest>): GetValidatorSetByHeightRequest;
fromAmino(object: GetValidatorSetByHeightRequestAmino): GetValidatorSetByHeightRequest;
toAmino(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAmino;
fromAminoMsg(object: GetValidatorSetByHeightRequestAminoMsg): GetValidatorSetByHeightRequest;
toAminoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAminoMsg;
fromProtoMsg(message: GetValidatorSetByHeightRequestProtoMsg): GetValidatorSetByHeightRequest;
toProto(message: GetValidatorSetByHeightRequest): Uint8Array;
toProtoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetValidatorSetByHeightResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse
*/
export declare const GetValidatorSetByHeightResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetValidatorSetByHeightResponse;
isAmino(o: any): o is GetValidatorSetByHeightResponseAmino;
encode(message: GetValidatorSetByHeightResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse;
fromPartial(object: DeepPartial<GetValidatorSetByHeightResponse>): GetValidatorSetByHeightResponse;
fromAmino(object: GetValidatorSetByHeightResponseAmino): GetValidatorSetByHeightResponse;
toAmino(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAmino;
fromAminoMsg(object: GetValidatorSetByHeightResponseAminoMsg): GetValidatorSetByHeightResponse;
toAminoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAminoMsg;
fromProtoMsg(message: GetValidatorSetByHeightResponseProtoMsg): GetValidatorSetByHeightResponse;
toProto(message: GetValidatorSetByHeightResponse): Uint8Array;
toProtoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest
*/
export declare const GetLatestValidatorSetRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetLatestValidatorSetRequest;
isAmino(o: any): o is GetLatestValidatorSetRequestAmino;
encode(message: GetLatestValidatorSetRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest;
fromPartial(object: DeepPartial<GetLatestValidatorSetRequest>): GetLatestValidatorSetRequest;
fromAmino(object: GetLatestValidatorSetRequestAmino): GetLatestValidatorSetRequest;
toAmino(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAmino;
fromAminoMsg(object: GetLatestValidatorSetRequestAminoMsg): GetLatestValidatorSetRequest;
toAminoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAminoMsg;
fromProtoMsg(message: GetLatestValidatorSetRequestProtoMsg): GetLatestValidatorSetRequest;
toProto(message: GetLatestValidatorSetRequest): Uint8Array;
toProtoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
* @name GetLatestValidatorSetResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse
*/
export declare const GetLatestValidatorSetResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetLatestValidatorSetResponse;
isAmino(o: any): o is GetLatestValidatorSetResponseAmino;
encode(message: GetLatestValidatorSetResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse;
fromPartial(object: DeepPartial<GetLatestValidatorSetResponse>): GetLatestValidatorSetResponse;
fromAmino(object: GetLatestValidatorSetResponseAmino): GetLatestValidatorSetResponse;
toAmino(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAmino;
fromAminoMsg(object: GetLatestValidatorSetResponseAminoMsg): GetLatestValidatorSetResponse;
toAminoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAminoMsg;
fromProtoMsg(message: GetLatestValidatorSetResponseProtoMsg): GetLatestValidatorSetResponse;
toProto(message: GetLatestValidatorSetResponse): Uint8Array;
toProtoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* Validator is the type for the validator-set.
* @name Validator
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Validator
*/
export declare const Validator: {
typeUrl: string;
aminoType: string;
is(o: any): o is Validator;
isAmino(o: any): o is ValidatorAmino;
encode(message: Validator, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Validator;
fromPartial(object: DeepPartial<Validator>): Validator;
fromAmino(object: ValidatorAmino): Validator;
toAmino(message: Validator): ValidatorAmino;
fromAminoMsg(object: ValidatorAminoMsg): Validator;
toAminoMsg(message: Validator): ValidatorAminoMsg;
fromProtoMsg(message: ValidatorProtoMsg): Validator;
toProto(message: Validator): Uint8Array;
toProtoMsg(message: Validator): ValidatorProtoMsg;
registerTypeUrl(): void;
};
/**
* GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest
*/
export declare const GetBlockByHeightRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetBlockByHeightRequest;
isAmino(o: any): o is GetBlockByHeightRequestAmino;
encode(message: GetBlockByHeightRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest;
fromPartial(object: DeepPartial<GetBlockByHeightRequest>): GetBlockByHeightRequest;
fromAmino(object: GetBlockByHeightRequestAmino): GetBlockByHeightRequest;
toAmino(message: GetBlockByHeightRequest): GetBlockByHeightRequestAmino;
fromAminoMsg(object: GetBlockByHeightRequestAminoMsg): GetBlockByHeightRequest;
toAminoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestAminoMsg;
fromProtoMsg(message: GetBlockByHeightRequestProtoMsg): GetBlockByHeightRequest;
toProto(message: GetBlockByHeightRequest): Uint8Array;
toProtoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
* @name GetBlockByHeightResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse
*/
export declare const GetBlockByHeightResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetBlockByHeightResponse;
isAmino(o: any): o is GetBlockByHeightResponseAmino;
encode(message: GetBlockByHeightResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse;
fromPartial(object: DeepPartial<GetBlockByHeightResponse>): GetBlockByHeightResponse;
fromAmino(object: GetBlockByHeightResponseAmino): GetBlockByHeightResponse;
toAmino(message: GetBlockByHeightResponse): GetBlockByHeightResponseAmino;
fromAminoMsg(object: GetBlockByHeightResponseAminoMsg): GetBlockByHeightResponse;
toAminoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseAminoMsg;
fromProtoMsg(message: GetBlockByHeightResponseProtoMsg): GetBlockByHeightResponse;
toProto(message: GetBlockByHeightResponse): Uint8Array;
toProtoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockRequest
*/
export declare const GetLatestBlockRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetLatestBlockRequest;
isAmino(o: any): o is GetLatestBlockRequestAmino;
encode(_: GetLatestBlockRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest;
fromPartial(_: DeepPartial<GetLatestBlockRequest>): GetLatestBlockRequest;
fromAmino(_: GetLatestBlockRequestAmino): GetLatestBlockRequest;
toAmino(_: GetLatestBlockRequest): GetLatestBlockRequestAmino;
fromAminoMsg(object: GetLatestBlockRequestAminoMsg): GetLatestBlockRequest;
toAminoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestAminoMsg;
fromProtoMsg(message: GetLatestBlockRequestProtoMsg): GetLatestBlockRequest;
toProto(message: GetLatestBlockRequest): Uint8Array;
toProtoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
* @name GetLatestBlockResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse
*/
export declare const GetLatestBlockResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetLatestBlockResponse;
isAmino(o: any): o is GetLatestBlockResponseAmino;
encode(message: GetLatestBlockResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse;
fromPartial(object: DeepPartial<GetLatestBlockResponse>): GetLatestBlockResponse;
fromAmino(object: GetLatestBlockResponseAmino): GetLatestBlockResponse;
toAmino(message: GetLatestBlockResponse): GetLatestBlockResponseAmino;
fromAminoMsg(object: GetLatestBlockResponseAminoMsg): GetLatestBlockResponse;
toAminoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseAminoMsg;
fromProtoMsg(message: GetLatestBlockResponseProtoMsg): GetLatestBlockResponse;
toProto(message: GetLatestBlockResponse): Uint8Array;
toProtoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
* @name GetSyncingRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingRequest
*/
export declare const GetSyncingRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetSyncingRequest;
isAmino(o: any): o is GetSyncingRequestAmino;
encode(_: GetSyncingRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest;
fromPartial(_: DeepPartial<GetSyncingRequest>): GetSyncingRequest;
fromAmino(_: GetSyncingRequestAmino): GetSyncingRequest;
toAmino(_: GetSyncingRequest): GetSyncingRequestAmino;
fromAminoMsg(object: GetSyncingRequestAminoMsg): GetSyncingRequest;
toAminoMsg(message: GetSyncingRequest): GetSyncingRequestAminoMsg;
fromProtoMsg(message: GetSyncingRequestProtoMsg): GetSyncingRequest;
toProto(message: GetSyncingRequest): Uint8Array;
toProtoMsg(message: GetSyncingRequest): GetSyncingRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
* @name GetSyncingResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingResponse
*/
export declare const GetSyncingResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetSyncingResponse;
isAmino(o: any): o is GetSyncingResponseAmino;
encode(message: GetSyncingResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse;
fromPartial(object: DeepPartial<GetSyncingResponse>): GetSyncingResponse;
fromAmino(object: GetSyncingResponseAmino): GetSyncingResponse;
toAmino(message: GetSyncingResponse): GetSyncingResponseAmino;
fromAminoMsg(object: GetSyncingResponseAminoMsg): GetSyncingResponse;
toAminoMsg(message: GetSyncingResponse): GetSyncingResponseAminoMsg;
fromProtoMsg(message: GetSyncingResponseProtoMsg): GetSyncingResponse;
toProto(message: GetSyncingResponse): Uint8Array;
toProtoMsg(message: GetSyncingResponse): GetSyncingResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoRequest
*/
export declare const GetNodeInfoRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetNodeInfoRequest;
isAmino(o: any): o is GetNodeInfoRequestAmino;
encode(_: GetNodeInfoRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest;
fromPartial(_: DeepPartial<GetNodeInfoRequest>): GetNodeInfoRequest;
fromAmino(_: GetNodeInfoRequestAmino): GetNodeInfoRequest;
toAmino(_: GetNodeInfoRequest): GetNodeInfoRequestAmino;
fromAminoMsg(object: GetNodeInfoRequestAminoMsg): GetNodeInfoRequest;
toAminoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestAminoMsg;
fromProtoMsg(message: GetNodeInfoRequestProtoMsg): GetNodeInfoRequest;
toProto(message: GetNodeInfoRequest): Uint8Array;
toProtoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
* @name GetNodeInfoResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse
*/
export declare const GetNodeInfoResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is GetNodeInfoResponse;
isAmino(o: any): o is GetNodeInfoResponseAmino;
encode(message: GetNodeInfoResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse;
fromPartial(object: DeepPartial<GetNodeInfoResponse>): GetNodeInfoResponse;
fromAmino(object: GetNodeInfoResponseAmino): GetNodeInfoResponse;
toAmino(message: GetNodeInfoResponse): GetNodeInfoResponseAmino;
fromAminoMsg(object: GetNodeInfoResponseAminoMsg): GetNodeInfoResponse;
toAminoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseAminoMsg;
fromProtoMsg(message: GetNodeInfoResponseProtoMsg): GetNodeInfoResponse;
toProto(message: GetNodeInfoResponse): Uint8Array;
toProtoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* VersionInfo is the type for the GetNodeInfoResponse message.
* @name VersionInfo
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.VersionInfo
*/
export declare const VersionInfo: {
typeUrl: string;
aminoType: string;
is(o: any): o is VersionInfo;
isAmino(o: any): o is VersionInfoAmino;
encode(message: VersionInfo, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo;
fromPartial(object: DeepPartial<VersionInfo>): VersionInfo;
fromAmino(object: VersionInfoAmino): VersionInfo;
toAmino(message: VersionInfo): VersionInfoAmino;
fromAminoMsg(object: VersionInfoAminoMsg): VersionInfo;
toAminoMsg(message: VersionInfo): VersionInfoAminoMsg;
fromProtoMsg(message: VersionInfoProtoMsg): VersionInfo;
toProto(message: VersionInfo): Uint8Array;
toProtoMsg(message: VersionInfo): VersionInfoProtoMsg;
registerTypeUrl(): void;
};
/**
* Module is the type for VersionInfo
* @name Module
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.Module
*/
export declare const Module: {
typeUrl: string;
aminoType: string;
is(o: any): o is Module;
isAmino(o: any): o is ModuleAmino;
encode(message: Module, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Module;
fromPartial(object: DeepPartial<Module>): Module;
fromAmino(object: ModuleAmino): Module;
toAmino(message: Module): ModuleAmino;
fromAminoMsg(object: ModuleAminoMsg): Module;
toAminoMsg(message: Module): ModuleAminoMsg;
fromProtoMsg(message: ModuleProtoMsg): Module;
toProto(message: Module): Uint8Array;
toProtoMsg(message: Module): ModuleProtoMsg;
registerTypeUrl(): void;
};
/**
* ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
* @name ABCIQueryRequest
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryRequest
*/
export declare const ABCIQueryRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is ABCIQueryRequest;
isAmino(o: any): o is ABCIQueryRequestAmino;
encode(message: ABCIQueryRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest;
fromPartial(object: DeepPartial<ABCIQueryRequest>): ABCIQueryRequest;
fromAmino(object: ABCIQueryRequestAmino): ABCIQueryRequest;
toAmino(message: ABCIQueryRequest): ABCIQueryRequestAmino;
fromAminoMsg(object: ABCIQueryRequestAminoMsg): ABCIQueryRequest;
toAminoMsg(message: ABCIQueryRequest): ABCIQueryRequestAminoMsg;
fromProtoMsg(message: ABCIQueryRequestProtoMsg): ABCIQueryRequest;
toProto(message: ABCIQueryRequest): Uint8Array;
toProtoMsg(message: ABCIQueryRequest): ABCIQueryRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
*
* Note: This type is a duplicate of the ResponseQuery proto type defined in
* Tendermint.
* @name ABCIQueryResponse
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryResponse
*/
export declare const ABCIQueryResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is ABCIQueryResponse;
isAmino(o: any): o is ABCIQueryResponseAmino;
encode(message: ABCIQueryResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse;
fromPartial(object: DeepPartial<ABCIQueryResponse>): ABCIQueryResponse;
fromAmino(object: ABCIQueryResponseAmino): ABCIQueryResponse;
toAmino(message: ABCIQueryResponse): ABCIQueryResponseAmino;
fromAminoMsg(object: ABCIQueryResponseAminoMsg): ABCIQueryResponse;
toAminoMsg(message: ABCIQueryResponse): ABCIQueryResponseAminoMsg;
fromProtoMsg(message: ABCIQueryResponseProtoMsg): ABCIQueryResponse;
toProto(message: ABCIQueryResponse): Uint8Array;
toProtoMsg(message: ABCIQueryResponse): ABCIQueryResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* ProofOp defines an operation used for calculating Merkle root. The data could
* be arbitrary format, providing necessary data for example neighbouring node
* hash.
*
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
* @name ProofOp
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOp
*/
export declare const ProofOp: {
typeUrl: string;
aminoType: string;
is(o: any): o is ProofOp;
isAmino(o: any): o is ProofOpAmino;
encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ProofOp;
fromPartial(object: DeepPartial<ProofOp>): ProofOp;
fromAmino(object: ProofOpAmino): ProofOp;
toAmino(message: ProofOp): ProofOpAmino;
fromAminoMsg(object: ProofOpAminoMsg): ProofOp;
toAminoMsg(message: ProofOp): ProofOpAminoMsg;
fromProtoMsg(message: ProofOpProtoMsg): ProofOp;
toProto(message: ProofOp): Uint8Array;
toProtoMsg(message: ProofOp): ProofOpProtoMsg;
registerTypeUrl(): void;
};
/**
* ProofOps is Merkle proof defined by the list of ProofOps.
*
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
* @name ProofOps
* @package cosmos.base.tendermint.v1beta1
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOps
*/
export declare const ProofOps: {
typeUrl: string;
aminoType: string;
is(o: any): o is ProofOps;
isAmino(o: any): o is ProofOpsAmino;
encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ProofOps;
fromPartial(object: DeepPartial<ProofOps>): ProofOps;
fromAmino(object: ProofOpsAmino): ProofOps;
toAmino(message: ProofOps): ProofOpsAmino;
fromAminoMsg(object: ProofOpsAminoMsg): ProofOps;
toAminoMsg(message: ProofOps): ProofOpsAminoMsg;
fromProtoMsg(message: ProofOpsProtoMsg): ProofOps;
toProto(message: ProofOps): Uint8Array;
toProtoMsg(message: ProofOps): ProofOpsProtoMsg;
registerTypeUrl(): void;
};