Skip to main content

LnForGasSwapState

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:31

State enum for trusted Lightning gas swaps

Enumeration Members

EXPIRED

EXPIRED: -2;

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:35

The swap quote expired before the user paid the Lightning invoice


FAILED

FAILED: -1;

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:39

The swap has failed before the destination payout completed, and the held Lightning invoice was released


PR_CREATED

PR_CREATED: 0;

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:43

Swap was created, pay the provided Lightning invoice which will remain held until destination payout succeeds


PR_PAID

PR_PAID: 1;

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:47

The Lightning invoice was paid and is currently held until the user receives the destination funds


FINISHED

FINISHED: 2;

Defined in: atomiq-sdk/src/swaps/trusted/ln/LnForGasSwap.ts:51

The swap is finished after the destination payout succeeded and the held Lightning invoice was settled