interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
65 lines (64 loc) • 2.42 kB
TypeScript
import { IdentifiedConnection, IdentifiedConnectionAmino, ConnectionPaths, ConnectionPathsAmino, Params, ParamsAmino } from "./connection";
import { BinaryReader, BinaryWriter } from "../../../../binary";
import { DeepPartial } from "../../../../helpers";
/**
* GenesisState defines the ibc connection submodule's genesis state.
* @name GenesisState
* @package ibc.core.connection.v1
* @see proto type: ibc.core.connection.v1.GenesisState
*/
export interface GenesisState {
connections: IdentifiedConnection[];
clientConnectionPaths: ConnectionPaths[];
/**
* the sequence for the next generated connection identifier
*/
nextConnectionSequence: bigint;
params: Params;
}
export interface GenesisStateProtoMsg {
typeUrl: "/ibc.core.connection.v1.GenesisState";
value: Uint8Array;
}
/**
* GenesisState defines the ibc connection submodule's genesis state.
* @name GenesisStateAmino
* @package ibc.core.connection.v1
* @see proto type: ibc.core.connection.v1.GenesisState
*/
export interface GenesisStateAmino {
connections: IdentifiedConnectionAmino[];
client_connection_paths: ConnectionPathsAmino[];
/**
* the sequence for the next generated connection identifier
*/
next_connection_sequence: string;
params: ParamsAmino;
}
export interface GenesisStateAminoMsg {
type: "cosmos-sdk/GenesisState";
value: GenesisStateAmino;
}
/**
* GenesisState defines the ibc connection submodule's genesis state.
* @name GenesisState
* @package ibc.core.connection.v1
* @see proto type: ibc.core.connection.v1.GenesisState
*/
export declare const GenesisState: {
typeUrl: string;
aminoType: string;
is(o: any): o is GenesisState;
isAmino(o: any): o is GenesisStateAmino;
encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState;
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
fromAmino(object: GenesisStateAmino): GenesisState;
toAmino(message: GenesisState): GenesisStateAmino;
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState;
toAminoMsg(message: GenesisState): GenesisStateAminoMsg;
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
toProto(message: GenesisState): Uint8Array;
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
registerTypeUrl(): void;
};