SwapTypeMapping<T>
type SwapTypeMapping<T> = object;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:21
Type mapping from SwapType enum to specific swap class implementations, it is important to pass the chain type generic, since different chains support different swap protocols for some directions.
Type Parameters
| Type Parameter |
|---|
T extends ChainType |
Properties
0
0: SupportsSwapType<T, SPV_VAULT_FROM_BTC> extends true ? SpvFromBTCSwap<T> : FromBTCSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:22
1
1: SupportsSwapType<T, FROM_BTCLN_AUTO> extends true ? FromBTCLNAutoSwap<T> : FromBTCLNSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:23
2
2: ToBTCSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:24
3
3: ToBTCLNSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:25
4
4: OnchainForGasSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:26
5
5: LnForGasSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:27
6
6: SpvFromBTCSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:28
7
7: FromBTCLNAutoSwap<T>;
Defined in: atomiq-sdk/src/utils/SwapUtils.ts:29