Skip to main content

FromBTCLNAutoSwapState

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:49

State enum for FromBTCLNAuto swaps

Enumeration Members

FAILED

FAILED: -4;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:53

Swap has failed as the user didn't settle the HTLC on the destination before expiration


QUOTE_EXPIRED

QUOTE_EXPIRED: -3;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:57

Swap has expired for good and there is no way how it can be executed anymore


QUOTE_SOFT_EXPIRED

QUOTE_SOFT_EXPIRED: -2;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:62

A swap is almost expired, and it should be presented to the user as expired, though there is still a chance that it will be processed


EXPIRED

EXPIRED: -1;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:67

Swap HTLC on the destination chain has expired, it is not safe anymore to settle (claim) the swap on the destination smart chain.


PR_CREATED

PR_CREATED: 0;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:74

Swap quote was created, use FromBTCLNAutoSwap.getAddress or FromBTCLNAutoSwap.getHyperlink to get the bolt11 lightning network invoice to pay to initiate the swap, then use the FromBTCLNAutoSwap.waitForPayment to wait till the lightning network payment is received by the intermediary (LP) and the destination HTLC escrow is created


PR_PAID

PR_PAID: 1;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:80

Lightning network payment has been received by the intermediary (LP), but the destination chain HTLC escrow hasn't been created yet. Use FromBTCLNAutoSwap.waitForPayment to continue waiting till the destination HTLC escrow is created.


CLAIM_COMMITED

CLAIM_COMMITED: 2;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:86

Swap escrow HTLC has been created on the destination chain, wait for automatic settlement by the watchtowers using the FromBTCLNAutoSwap.waitTillClaimed function or settle manually using the FromBTCLNAutoSwap.claim or FromBTCLNAutoSwap.txsClaim function.


CLAIM_CLAIMED

CLAIM_CLAIMED: 3;

Defined in: atomiq-sdk/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts:90

Swap successfully settled and funds received on the destination chain