Type Alias: ShadowSubmitOutcome
gSwap SDK 2.0.0-rc.4 / ShadowSubmitOutcome
Type Alias: ShadowSubmitOutcome
ShadowSubmitOutcome = {
bundleId:string;ok:true;queued:ShadowQueuedRequest; } |ShadowSubmitFailure
Defined in: packages/gswap-sdk/dist/index.d.ts:1329
The normalized outcome of a shadow RequestTrade (a dark swap). A success (ok: true) ALWAYS
carries queued, the exact key the gateway acknowledged: a RequestTrade answer that does not
queue the signed key is not an outcome but a thrown SHADOW_NOT_QUEUED. So after if (outcome.ok)
the app reads outcome.queued with no undefined branch.
Union Members
Type Literal
{ bundleId: string; ok: true; queued: ShadowQueuedRequest; }
bundleId
bundleId:
string
The request transaction id ('' when the gateway gave none).
ok
ok:
true
queued
queued:
ShadowQueuedRequest
Confirm with confirmAppliedTrade.