Interface CosmosInterchainService
interface CosmosInterchainService { makeAccount(chainId: string,
hostConnectionId: `connection-${number}`,
controllerConnectionId: `connection-${number}`,
opts?: ICAChannelAddressOpts): Vow<IcaAccount>; provideICQConnection(controllerConnectionId: `connection-${number}`,
version?: string): Guarded<{ getLocalAddress(): `/ibc-port/${string}`; getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`; query(msgs: { data: string; height: string; path: string; prove: boolean; }[]): Vow<{ code: number; codespace: string; height: string; index: string; info: string; key: string; log: string; proofOps?: { ops: { data: string; key: string; type: string; }[]; }; value: string; }[]>; }> | Vow<Guarded<{ getLocalAddress(): `/ibc-port/${string}`; getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`; query(msgs: { data: string; height: string; path: string; prove: boolean; }[]): Vow<{ code: number; codespace: string; height: string; index: string; info: string; key: string; log: string; proofOps?: { ops: { data: ...
; key: ...
; type: ...
; }[]; }; value: string; }[]>; }>>; } Methods
makeAccount
- makeAccount(chainId, hostConnectionId, controllerConnectionId, opts?): Vow<IcaAccount>
Parameters
- chainId: string
- hostConnectionId: `connection-${number}`
- controllerConnectionId: `connection-${number}`
Optional
opts: ICAChannelAddressOpts
provideICQConnection
- provideICQConnection(controllerConnectionId, version?): Guarded<{
getLocalAddress(): `/ibc-port/${string}`;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
query(msgs: {
data: string;
height: string;
path: string;
prove: boolean;
}[]): Vow<{
code: number;
codespace: string;
height: string;
index: string;
info: string;
key: string;
log: string;
proofOps?: {
ops: {
data: string;
key: string;
type: string;
}[];
};
value: string;
}[]>;
}> | Vow<Guarded<{
getLocalAddress(): `/ibc-port/${string}`;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
query(msgs: {
data: string;
height: string;
path: string;
prove: boolean;
}[]): Vow<{
code: number;
codespace: string;
height: string;
index: string;
info: string;
key: string;
log: string;
proofOps?: {
ops: {
data: ...;
key: ...;
type: ...;
}[];
};
value: string;
}[]>;
}>> Parameters
- controllerConnectionId: `connection-${number}`
Optional
version: string
Returns Guarded<{
getLocalAddress(): `/ibc-port/${string}`;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
query(msgs: {
data: string;
height: string;
path: string;
prove: boolean;
}[]): Vow<{
code: number;
codespace: string;
height: string;
index: string;
info: string;
key: string;
log: string;
proofOps?: {
ops: {
data: string;
key: string;
type: string;
}[];
};
value: string;
}[]>;
}> | Vow<Guarded<{
getLocalAddress(): `/ibc-port/${string}`;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
query(msgs: {
data: string;
height: string;
path: string;
prove: boolean;
}[]): Vow<{
code: number;
codespace: string;
height: string;
index: string;
info: string;
key: string;
log: string;
proofOps?: {
ops: {
data: ...;
key: ...;
type: ...;
}[];
};
value: string;
}[]>;
}>>
Authority to make a Cosmos interchain account or an interchain query connection.