Enum SwapStepKind
- Namespace
- NArk.ArkadeIntents.Services
- Assembly
- NArk.ArkadeIntents.dll
What happens at a step, as something a program can branch on.
public enum SwapStepKind
Fields
AwaitConfirmations = 9Waiting for the counterparty's on-chain funding to reach the confirmations it was quoted at.
Only the onchain corridor has this: every other rail either settles instantly from this SDK's point of view or reports its own progress. Here the wait is real work, and the count is the solver's to name and this SDK's to refuse if it is unreasonable.
AwaitRefundLocktime = 12Wait out the refund locktime.
Cancel = 15Take the deposit back by choice.
Claim = 13Spend the claim, publishing the preimage.
CounterpartyClaims = 11The counterparty claims the lockup with the preimage.
CounterpartyFills = 10The counterparty fills — pays the invoice, or takes the offer.
CounterpartyFunds = 8The counterparty funds its side.
DeriveAndVerifyAddress = 3Derive the covenant locally and refuse on any mismatch.
FundLockup = 6Fund the lockup.
Gate = 4Apply the safety gates immediately before committing.
ImportContract = 5Import the contract so the funded script can be rebuilt later.
Negotiate = 1Ask a solver for terms.
PublishInvoice = 7Hand the minted invoice to whoever is paying.
Refund = 14Spend the refund back to our own address.
SealPreimage = 0Choose the preimage and seal it to covclaimd.
VerifyQuote = 2Check what the quote sent back against what was asked for.
Remarks
Named rather than described. A free-text step is prose sitting in a type: nothing can consume it, nothing stops it drifting, and a caller that wanted to react to a particular step would be matching on English. These are the distinct things that actually happen, so a UI can label them, a log can key on them, and a new one cannot be invented by typing a sentence.