Function prepareLocalChainFacadeInternal
- prepareLocalChainFacade(zone, powers): ((...args: [localChainInfo: Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>]) => Guarded<{
getChainInfo(): Vow<Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>>;
getVBankAssetInfo(...args: []): Vow<AssetInfo[]>;
makeAccount(): Vow<Guarded<{
asContinuingOffer(...args: []): Vow<HostInterface<ResolvedContinuingOfferResult>>;
delegate(validatorAddress: string, ertpAmount: NatAmount): Vow<Record<unknown, unknown>>;
deposit(...args: [payment: ERef<Payment<"nat">>, optAmountShape: Pattern]): Vow<NatAmount | Vow<NatAmount>>;
executeTx(...args: [messages: {
@type: string;
}[]]): Vow<JsonSafe<{
@type: string;
}>[]>;
getAddress(): ChainAddress;
getBalance(...args: [denom: DenomArg]): Vow<DenomAmount>;
getBalances(...args: []): Vow<DenomAmount[]>;
getPublicTopics(...args: []): Vow<HostInterface<Record<string, ResolvedPublicTopic<unknown>>>>;
matchFirstPacket(...args: [EVow<Pattern>?]): HostInterface<Vow<{
match: Vow<any>;
resolver: VowResolver<any>;
}>>;
monitorTransfers(...args: [tap: TargetApp]): Vow<Vow<TargetRegistration> | HostInterface<TargetRegistration>>;
send(...args: [toAccount: ChainAddress, amounts: AmountArg]): Vow<void>;
sendAll(...args: [toAccount: ChainAddress, amounts: AmountArg[]]): Vow<void>;
sendThenWaitForAck(...args: [packetSender: Remote<PacketSender>, opts: PacketOptions]): HostInterface<Vow<any>>;
transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions): Vow<any>;
transferSteps(...args: [amount: AmountArg, msg: TransferMsg]): Vow<void>;
undelegate(validatorAddress: string, ertpAmount: NatAmount): Vow<void | TimestampRecord>;
withdraw(...args: [amount: NatAmount]): Vow<Payment<"nat"> | Vow<Payment<"nat">>>;
}>>;
query(...args: [{
@type: string;
}[]]): Vow<JsonSafe<{
error?: string;
reply: {
@type: string;
};
}>[]>;
}>) Returns ((...args: [localChainInfo: Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>]) => Guarded<{
getChainInfo(): Vow<Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>>;
getVBankAssetInfo(...args: []): Vow<AssetInfo[]>;
makeAccount(): Vow<Guarded<{
asContinuingOffer(...args: []): Vow<HostInterface<ResolvedContinuingOfferResult>>;
delegate(validatorAddress: string, ertpAmount: NatAmount): Vow<Record<unknown, unknown>>;
deposit(...args: [payment: ERef<Payment<"nat">>, optAmountShape: Pattern]): Vow<NatAmount | Vow<NatAmount>>;
executeTx(...args: [messages: {
@type: string;
}[]]): Vow<JsonSafe<{
@type: string;
}>[]>;
getAddress(): ChainAddress;
getBalance(...args: [denom: DenomArg]): Vow<DenomAmount>;
getBalances(...args: []): Vow<DenomAmount[]>;
getPublicTopics(...args: []): Vow<HostInterface<Record<string, ResolvedPublicTopic<unknown>>>>;
matchFirstPacket(...args: [EVow<Pattern>?]): HostInterface<Vow<{
match: Vow<any>;
resolver: VowResolver<any>;
}>>;
monitorTransfers(...args: [tap: TargetApp]): Vow<Vow<TargetRegistration> | HostInterface<TargetRegistration>>;
send(...args: [toAccount: ChainAddress, amounts: AmountArg]): Vow<void>;
sendAll(...args: [toAccount: ChainAddress, amounts: AmountArg[]]): Vow<void>;
sendThenWaitForAck(...args: [packetSender: Remote<PacketSender>, opts: PacketOptions]): HostInterface<Vow<any>>;
transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions): Vow<any>;
transferSteps(...args: [amount: AmountArg, msg: TransferMsg]): Vow<void>;
undelegate(validatorAddress: string, ertpAmount: NatAmount): Vow<void | TimestampRecord>;
withdraw(...args: [amount: NatAmount]): Vow<Payment<"nat"> | Vow<Payment<"nat">>>;
}>>;
query(...args: [{
@type: string;
}[]]): Vow<JsonSafe<{
error?: string;
reply: {
@type: string;
};
}>[]>;
}>)
- (...args): Guarded<{
getChainInfo(): Vow<Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>>;
getVBankAssetInfo(...args: []): Vow<AssetInfo[]>;
makeAccount(): Vow<Guarded<{
asContinuingOffer(...args: []): Vow<HostInterface<ResolvedContinuingOfferResult>>;
delegate(validatorAddress: string, ertpAmount: NatAmount): Vow<Record<unknown, unknown>>;
deposit(...args: [payment: ERef<Payment<"nat">>, optAmountShape: Pattern]): Vow<NatAmount | Vow<NatAmount>>;
executeTx(...args: [messages: {
@type: string;
}[]]): Vow<JsonSafe<{
@type: string;
}>[]>;
getAddress(): ChainAddress;
getBalance(...args: [denom: DenomArg]): Vow<DenomAmount>;
getBalances(...args: []): Vow<DenomAmount[]>;
getPublicTopics(...args: []): Vow<HostInterface<Record<string, ResolvedPublicTopic<unknown>>>>;
matchFirstPacket(...args: [EVow<Pattern>?]): HostInterface<Vow<{
match: Vow<any>;
resolver: VowResolver<any>;
}>>;
monitorTransfers(...args: [tap: TargetApp]): Vow<Vow<TargetRegistration> | HostInterface<TargetRegistration>>;
send(...args: [toAccount: ChainAddress, amounts: AmountArg]): Vow<void>;
sendAll(...args: [toAccount: ChainAddress, amounts: AmountArg[]]): Vow<void>;
sendThenWaitForAck(...args: [packetSender: Remote<PacketSender>, opts: PacketOptions]): HostInterface<Vow<any>>;
transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions): Vow<any>;
transferSteps(...args: [amount: AmountArg, msg: TransferMsg]): Vow<void>;
undelegate(validatorAddress: string, ertpAmount: NatAmount): Vow<void | TimestampRecord>;
withdraw(...args: [amount: NatAmount]): Vow<Payment<"nat"> | Vow<Payment<"nat">>>;
}>>;
query(...args: [{
@type: string;
}[]]): Vow<JsonSafe<{
error?: string;
reply: {
@type: string;
};
}>[]>;
}> Parameters
Rest
...args: [localChainInfo: Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>]
Returns Guarded<{
getChainInfo(): Vow<Readonly<{
chainId: string;
connections?: Record<string, IBCConnectionInfo>;
icqEnabled?: boolean;
stakingTokens?: readonly {
denom: string;
}[];
}>>;
getVBankAssetInfo(...args: []): Vow<AssetInfo[]>;
makeAccount(): Vow<Guarded<{
asContinuingOffer(...args: []): Vow<HostInterface<ResolvedContinuingOfferResult>>;
delegate(validatorAddress: string, ertpAmount: NatAmount): Vow<Record<unknown, unknown>>;
deposit(...args: [payment: ERef<Payment<"nat">>, optAmountShape: Pattern]): Vow<NatAmount | Vow<NatAmount>>;
executeTx(...args: [messages: {
@type: string;
}[]]): Vow<JsonSafe<{
@type: string;
}>[]>;
getAddress(): ChainAddress;
getBalance(...args: [denom: DenomArg]): Vow<DenomAmount>;
getBalances(...args: []): Vow<DenomAmount[]>;
getPublicTopics(...args: []): Vow<HostInterface<Record<string, ResolvedPublicTopic<unknown>>>>;
matchFirstPacket(...args: [EVow<Pattern>?]): HostInterface<Vow<{
match: Vow<any>;
resolver: VowResolver<any>;
}>>;
monitorTransfers(...args: [tap: TargetApp]): Vow<Vow<TargetRegistration> | HostInterface<TargetRegistration>>;
send(...args: [toAccount: ChainAddress, amounts: AmountArg]): Vow<void>;
sendAll(...args: [toAccount: ChainAddress, amounts: AmountArg[]]): Vow<void>;
sendThenWaitForAck(...args: [packetSender: Remote<PacketSender>, opts: PacketOptions]): HostInterface<Vow<any>>;
transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions): Vow<any>;
transferSteps(...args: [amount: AmountArg, msg: TransferMsg]): Vow<void>;
undelegate(validatorAddress: string, ertpAmount: NatAmount): Vow<void | TimestampRecord>;
withdraw(...args: [amount: NatAmount]): Vow<Payment<"nat"> | Vow<Payment<"nat">>>;
}>>;
query(...args: [{
@type: string;
}[]]): Vow<JsonSafe<{
error?: string;
reply: {
@type: string;
};
}>[]>;
}>
Used only by
withOrchestration
helper