Order statuses
The main path is:
AWAITING_DEPOSIT → OPEN → FULFILLING → FULFILLED → CLAIM_READY → COMPLETED
| Status | Meaning |
|---|---|
AWAITING_DEPOSIT | Ticket exists; the quoted deposit has not been observed. |
OPEN | Deposit is confirmed and fulfillment can begin. |
FULFILLING | One or more destination payments are in progress. |
FULFILLED | Destination delivery completed; notary work remains. |
CLAIM_READY | The claim is signed and ready to submit. |
COMPLETED | Claim completed; the order is terminal. |
DROPPED | The funding window expired; a late deposit can still resurrect the order to OPEN. |
FAILED | Fulfillment failed; recovery/refund rules apply. |
ABORTED | Failure recovery finished; the order is terminal. |
import type { OrderStatus } from '@silentswap/sdk';
const watcherTerminal = new Set<OrderStatus>([
'COMPLETED',
'FAILED',
'ABORTED',
]);
function isWatcherTerminal(status: OrderStatus) {
return watcherTerminal.has(status);
}For split orders, render each OrderStateRecipient.status as well as the top-level
state. A top-level label alone can hide a partially delivered split.