Order States
Order states explained. Order lifecycle state-machine diagram.
Last updated
Was this helpful?
Order states explained. Order lifecycle state-machine diagram.
Last updated
Was this helpful?
In the figure below, the order states are represented in a state-machine diagram, with the actions that trigger each state transition.
According to the DLN API, an order must be in one of these states:
Created
An order placed by a user on the DLN is pending fulfillment.
Fulfilled
The order on the destination chain has been completed by a solver. The full amount of the requested assets has been successfully transferred to the dstChainTokenOutRecipient
SentUnlock
ClaimedUnlock
OrderCancelled
The dstChainOrderAuthorityAddress
has started the cancellation process on the destination chain.
SentOrderCancel
ClaimedOrderCancel
If an order is either in Fulfilled
, SentUnlock
, or ClaimedUnlock
states, it can be displayed as fulfilled for the end-user.
After fulfilling the order, the solver initiates the unlock procedure on the destination chain. A cross-chain message is sent via to unlock the .
The unlock process is finalized, and the solver receives the . The affiliate fee is directed to the affiliateFeeRecipient
on the source chain.
A cross-chain message is sent via from the destination to the source chain. It unlocks the on the source chain to be claimed by the srcAllowedCancelBeneficiary
.
The source chain have been claimed by the srcAllowedCancelBeneficiary
. The cancel procedure is finalized.