ZkgmClientRequest.ts
This module prepares cross-chain request submissions.
Added in v2.0.0
Signature
export declare const setDestination: { (destination: Chain): (self: ZkgmClientRequest) => ZkgmClientRequest (self: ZkgmClientRequest, destination: Chain): ZkgmClientRequest}
Source: src/ZkgmClientRequest.ts:78
Added in v2.0.0
Signature
export declare const setSource: { (source: Chain): (self: ZkgmClientRequest) => ZkgmClientRequest (self: ZkgmClientRequest, source: Chain): ZkgmClientRequest}
Source: src/ZkgmClientRequest.ts:69
Added in v2.0.0
Signature
export declare const make: (options: { source: Chain destination: Chain channelId: ChannelId ucs03Address: string instruction: ZkgmInstruction.ZkgmInstruction}) => ZkgmClientRequest
Source: src/ZkgmClientRequest.ts:57
Added in v2.0.0
Signature
export interface Options { readonly source?: Chain | undefined readonly destination?: Chain | undefined readonly channelId: ChannelId readonly ucs03Address: string // XXX: narrow readonly instruction?: ZkgmInstruction.ZkgmInstruction | undefined}
Source: src/ZkgmClientRequest.ts:45
Added in v2.0.0
Signature
export interface ZkgmClientRequest extends Inspectable, Pipeable { readonly [TypeId]: TypeId readonly source: Chain readonly destination: Chain readonly channelId: ChannelId readonly ucs03Address: string readonly instruction: ZkgmInstruction.ZkgmInstruction}
Source: src/ZkgmClientRequest.ts:32
Added in v2.0.0
Signature
export declare const TypeId: typeof TypeId
Source: src/ZkgmClientRequest.ts:20
Added in v2.0.0
Signature
export type TypeId = typeof TypeId
Source: src/ZkgmClientRequest.ts:26
Added in v2.0.0
Extracts from a {@link ZkgmClientRequest} any {@link Token.Any}s required for execution along each amount. NOTE: Amounts are reduced by summation such that the resulting array is {@link Token.Any}s deduplicated.
Signature
export declare const requiredFunds: ( self: ZkgmClientRequest) => Option.Option<NonEmptyReadonlyArray<readonly [token: Token.Any, amount: bigint]>>
Source: src/ZkgmClientRequest.ts:90
Added in v2.0.0