Type Alias: SubmitClassification
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 === falseanddata.mode === 'sync'(the executed result came back).'queued':error === false,data.mode === 'queued'anddata.uniqueKeyis a string.'rejected': no envelope at all, orerror === true: a DEFINITE failure.'unconfirmed': anything else (error: falsewith another or nomode, a queued answer with nouniqueKey, an envelope with no booleanerror): accepted, outcome not known. It is NOT a rejection and must not be shown as one.
The four are mutually exclusive and exhaustive.