@bandprotocol/bandchain.js
Version:
TypeScript library for Cosmos SDK and BandChain
52 lines (51 loc) • 1.8 kB
TypeScript
import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client";
import { BinaryReader, BinaryWriter } from "../../../../binary";
/**
* ClientState defines a loopback (localhost) client. It requires (read-only)
* access to keys outside the client prefix.
*/
export interface ClientState {
/** self chain ID */
chainId: string;
/** self latest block height */
height: Height;
}
export interface ClientStateProtoMsg {
typeUrl: "/ibc.lightclients.localhost.v1.ClientState";
value: Uint8Array;
}
/**
* ClientState defines a loopback (localhost) client. It requires (read-only)
* access to keys outside the client prefix.
*/
export interface ClientStateAmino {
/** self chain ID */
chain_id?: string;
/** self latest block height */
height?: HeightAmino;
}
export interface ClientStateAminoMsg {
type: "cosmos-sdk/ClientState";
value: ClientStateAmino;
}
/**
* ClientState defines a loopback (localhost) client. It requires (read-only)
* access to keys outside the client prefix.
*/
export interface ClientStateSDKType {
chain_id: string;
height: HeightSDKType;
}
export declare const ClientState: {
typeUrl: string;
encode(message: ClientState, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ClientState;
fromPartial(object: Partial<ClientState>): ClientState;
fromAmino(object: ClientStateAmino): ClientState;
toAmino(message: ClientState): ClientStateAmino;
fromAminoMsg(object: ClientStateAminoMsg): ClientState;
toAminoMsg(message: ClientState): ClientStateAminoMsg;
fromProtoMsg(message: ClientStateProtoMsg): ClientState;
toProto(message: ClientState): Uint8Array;
toProtoMsg(message: ClientState): ClientStateProtoMsg;
};