Type alias: ShadowSubmitOutcome
ShadowSubmitOutcome = {
bundleId:string;ok:true;queued:ShadowQueuedRequest; } |ShadowSubmitFailure
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.
bundle id shadow queued request submit failure not
Union Members
Type Literal
{ bundleId: string; ok: true; queued: ShadowQueuedRequest; }
| Name | Type | Description |
|---|---|---|
bundleId | string | The request transaction id ('' when the gateway gave none). |
ok | true | - |
queued | ShadowQueuedRequest | Confirm with confirmAppliedTrade. |
bundle id shadow queued request confirm applied trade submit failure