Skip to main content

Type Alias: SubmitClassification

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / SubmitClassification

Type Alias: SubmitClassification

SubmitClassification = SubmitStatus | "rejected" | "unconfirmed"

Defined in: packages/gswap-sdk/dist/index.d.ts:1399

How a raw gateway envelope classifies:

  • 'executed': error === false and data.mode === 'sync' (the executed result came back).
  • 'queued': error === false, data.mode === 'queued' and data.uniqueKey is a string.
  • 'rejected': no envelope at all, or error === true: a DEFINITE failure.
  • 'unconfirmed': anything else (error: false with another or no mode, a queued answer with no uniqueKey, an envelope with no boolean error): accepted, outcome not known. It is NOT a rejection and must not be shown as one.

The four are mutually exclusive and exhaustive.