interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
66 lines (65 loc) • 2.47 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../../binary";
import { DeepPartial } from "../../../../helpers";
/**
* CounterpartyInfo defines the key that the counterparty will use to message our client
* @name CounterpartyInfo
* @package ibc.core.client.v2
* @see proto type: ibc.core.client.v2.CounterpartyInfo
*/
export interface CounterpartyInfo {
/**
* merkle prefix key is the prefix that ics provable keys are stored under
*/
merklePrefix: Uint8Array[];
/**
* client identifier is the identifier used to send packet messages to our client
*/
clientId: string;
}
export interface CounterpartyInfoProtoMsg {
typeUrl: "/ibc.core.client.v2.CounterpartyInfo";
value: Uint8Array;
}
/**
* CounterpartyInfo defines the key that the counterparty will use to message our client
* @name CounterpartyInfoAmino
* @package ibc.core.client.v2
* @see proto type: ibc.core.client.v2.CounterpartyInfo
*/
export interface CounterpartyInfoAmino {
/**
* merkle prefix key is the prefix that ics provable keys are stored under
*/
merkle_prefix: string[];
/**
* client identifier is the identifier used to send packet messages to our client
*/
client_id: string;
}
export interface CounterpartyInfoAminoMsg {
type: "cosmos-sdk/CounterpartyInfo";
value: CounterpartyInfoAmino;
}
/**
* CounterpartyInfo defines the key that the counterparty will use to message our client
* @name CounterpartyInfo
* @package ibc.core.client.v2
* @see proto type: ibc.core.client.v2.CounterpartyInfo
*/
export declare const CounterpartyInfo: {
typeUrl: string;
aminoType: string;
is(o: any): o is CounterpartyInfo;
isAmino(o: any): o is CounterpartyInfoAmino;
encode(message: CounterpartyInfo, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): CounterpartyInfo;
fromPartial(object: DeepPartial<CounterpartyInfo>): CounterpartyInfo;
fromAmino(object: CounterpartyInfoAmino): CounterpartyInfo;
toAmino(message: CounterpartyInfo): CounterpartyInfoAmino;
fromAminoMsg(object: CounterpartyInfoAminoMsg): CounterpartyInfo;
toAminoMsg(message: CounterpartyInfo): CounterpartyInfoAminoMsg;
fromProtoMsg(message: CounterpartyInfoProtoMsg): CounterpartyInfo;
toProto(message: CounterpartyInfo): Uint8Array;
toProtoMsg(message: CounterpartyInfo): CounterpartyInfoProtoMsg;
registerTypeUrl(): void;
};