OnchainForGasSwapState
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:33
State enum for trusted on-chain gas swaps
Enumeration Members
EXPIRED
EXPIRED: -3;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:37
The swap quote expired without user sending in the BTC
FAILED
FAILED: -2;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:41
The swap has failed after the intermediary already received the BTC on the source chain
REFUNDED
REFUNDED: -1;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:45
Swap was refunded and BTC returned to the user's refund address
PR_CREATED
PR_CREATED: 0;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:49
Swap was created, send the BTC to the swap address
FINISHED
FINISHED: 1;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:53
The swap is finished after the intermediary sent funds on the destination chain
REFUNDABLE
REFUNDABLE: 2;
Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:57
Swap is refundable because the intermediary cannot honor the swap request on the destination chain