Table of Contents

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 = 9

Waiting 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 = 12

Wait out the refund locktime.

Cancel = 15

Take the deposit back by choice.

Claim = 13

Spend the claim, publishing the preimage.

CounterpartyClaims = 11

The counterparty claims the lockup with the preimage.

CounterpartyFills = 10

The counterparty fills — pays the invoice, or takes the offer.

CounterpartyFunds = 8

The counterparty funds its side.

DeriveAndVerifyAddress = 3

Derive the covenant locally and refuse on any mismatch.

FundLockup = 6

Fund the lockup.

Gate = 4

Apply the safety gates immediately before committing.

ImportContract = 5

Import the contract so the funded script can be rebuilt later.

Negotiate = 1

Ask a solver for terms.

PublishInvoice = 7

Hand the minted invoice to whoever is paying.

Refund = 14

Spend the refund back to our own address.

SealPreimage = 0

Choose the preimage and seal it to covclaimd.

VerifyQuote = 2

Check 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.