Skip to main content

OnchainForGasSwapState

Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:32

State enum for trusted on-chain gas swaps

Enumeration Members

EXPIRED

EXPIRED: -3;

Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:36

The swap quote expired without user sending in the BTC


FAILED

FAILED: -2;

Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:40

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:44

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:48

Swap was created, send the BTC to the swap address


FINISHED

FINISHED: 1;

Defined in: atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:52

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:56

Swap is refundable because the intermediary cannot honor the swap request on the destination chain