Function prepareIcaAccountKitInternal
- prepareIcaAccountKit(zone, vowTools): ((...args: [chainId: string, port: Port, requestedRemoteAddress: string]) => GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: JsonSafe<Any>[], 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: {
allVows: ((maybeVows: unknown[]) => Vow<any[]>);
asPromise: AsPromiseFunction;
asVow: (<T>(fn: ((...args: any[]) => Awaited<T> | Vow<Awaited<T>> | PromiseVow<T>)) => Vow<Awaited<T>>);
makeVowKit: (<T>() => VowKit<T>);
retriable: (<F>(fnZone: Zone, name: string, fn: F) => F extends ((...args: Args) => Promise<R>)
? ((...args: Args) => Vow<R>)
: never);
watch: (<T, TResult1, TResult2, C>(specimenP: EVow<T>, watcher?: Watcher<T, TResult1, TResult2, C>, ...watcherArgs: C) => Vow<Narrowest>);
when: (<T, TResult1, TResult2>(specimenP: T, onFulfilled?: ((value: EUnwrap<T>) => TResult1 | PromiseLike<TResult1>), onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>)) => Promise<TResult1 | TResult2>);
}allVows: ((maybeVows: unknown[]) => Vow<any[]>)
- (maybeVows): Vow<any[]>
Returns Vow<any[]>
asPromise: AsPromiseFunction
asVow: (<T>(fn: ((...args: any[]) => Awaited<T> | Vow<Awaited<T>> | PromiseVow<T>)) => Vow<Awaited<T>>)
- <T>(fn): Vow<Awaited<T>>
Parameters
- fn: ((...args: any[]) => Awaited<T> | Vow<Awaited<T>> | PromiseVow<T>)
- (...args): Awaited<T> | Vow<Awaited<T>> | PromiseVow<T>
Returns Awaited<T> | Vow<Awaited<T>> | PromiseVow<T>
Returns Vow<Awaited<T>>
makeVowKit: (<T>() => VowKit<T>)
- <T>(): VowKit<T>
Returns VowKit<T>
retriable: (<F>(fnZone: Zone, name: string, fn: F) => F extends ((...args: Args) => Promise<R>)
? ((...args: Args) => Vow<R>)
: never)
- <F>(fnZone, name, fn): F extends ((...args: Args) => Promise<R>)
? ((...args: Args) => Vow<R>)
: never Type Parameters
- F extends ((...args: any[]) => Promise<any>)
Parameters
- fnZone: Zone
- name: string
- fn: F
Returns F extends ((...args: Args) => Promise<R>)
? ((...args: Args) => Vow<R>)
: never
watch: (<T, TResult1, TResult2, C>(specimenP: EVow<T>, watcher?: Watcher<T, TResult1, TResult2, C>, ...watcherArgs: C) => Vow<Narrowest>)
- <T, TResult1, TResult2, C>(specimenP, watcher?, ...watcherArgs): Vow<Narrowest>
Type Parameters
- T = any
- TResult1 = T
- TResult2 = never
- C extends any[] = any[]
Returns Vow<Narrowest>
when: (<T, TResult1, TResult2>(specimenP: T, onFulfilled?: ((value: EUnwrap<T>) => TResult1 | PromiseLike<TResult1>), onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>)) => Promise<TResult1 | TResult2>)
Returns ((...args: [chainId: string, port: Port, requestedRemoteAddress: string]) => GuardedKit<{
account: {
deactivate(...args: []): Vow<void>;
executeEncodedTx(msgs: JsonSafe<Any>[], 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: JsonSafe<Any>[], 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: JsonSafe<Any>[], 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