Function prepareIcaAccountKitInternal
- prepareIcaAccountKit(zone, vowTools): ((...args: [chainId: string, port: Port, requestedRemoteAddress: string]) => GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: {
$typeUrl?: string;
typeUrl: string;
value: string;
}[], opts?: Omit<TxBody, "messages">): Vow<string>;
executeTx(): Vow<never>;
getAddress(): ChainAddress;
getLocalAddress(): `/ibc-port/${string}`;
getPort(): Port;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
reactivate(...args: []): Vow<void>;
};
connectionHandler: {
onClose(_connection: Remote<Connection>, reason: unknown): Promise<void>;
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
};
parseTxPacketWatcher: {
onFulfilled(ack: string): string;
};
}>) Parameters
- zone: Zone
- vowTools: VowTools
Returns ((...args: [chainId: string, port: Port, requestedRemoteAddress: string]) => GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: {
$typeUrl?: string;
typeUrl: string;
value: string;
}[], opts?: Omit<TxBody, "messages">): Vow<string>;
executeTx(): Vow<never>;
getAddress(): ChainAddress;
getLocalAddress(): `/ibc-port/${string}`;
getPort(): Port;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
reactivate(...args: []): Vow<void>;
};
connectionHandler: {
onClose(_connection: Remote<Connection>, reason: unknown): Promise<void>;
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
};
parseTxPacketWatcher: {
onFulfilled(ack: string): string;
};
}>)
- (...args): GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: {
$typeUrl?: string;
typeUrl: string;
value: string;
}[], opts?: Omit<TxBody, "messages">): Vow<string>;
executeTx(): Vow<never>;
getAddress(): ChainAddress;
getLocalAddress(): `/ibc-port/${string}`;
getPort(): Port;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
reactivate(...args: []): Vow<void>;
};
connectionHandler: {
onClose(_connection: Remote<Connection>, reason: unknown): Promise<void>;
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
};
parseTxPacketWatcher: {
onFulfilled(ack: string): string;
};
}> Parameters
Rest
...args: [chainId: string, port: Port, requestedRemoteAddress: string]
Returns GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: {
$typeUrl?: string;
typeUrl: string;
value: string;
}[], opts?: Omit<TxBody, "messages">): Vow<string>;
executeTx(): Vow<never>;
getAddress(): ChainAddress;
getLocalAddress(): `/ibc-port/${string}`;
getPort(): Port;
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
reactivate(...args: []): Vow<void>;
};
connectionHandler: {
onClose(_connection: Remote<Connection>, reason: unknown): Promise<void>;
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
};
parseTxPacketWatcher: {
onFulfilled(ack: string): string;
};
}>
Used only by CosmosInterchainService