Skip to main content

Variable: SHADOW\_FAILURE\_KINDS

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / SHADOW_FAILURE_KINDS

Variable: SHADOW_FAILURE_KINDS

const SHADOW_FAILURE_KINDS: readonly ["unavailable", "disabled", "rejected", "unknown"]

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

Every kind of a failed ShadowSubmitOutcome, for an app that maps each to its own text (Record<ShadowFailureKind, string>): unavailable (retryable), disabled (the shadow route answered 400: the request is not a dark-swappable one, e.g. SHADOW_UNSUPPORTED_TYPE; Shadow Swaps themselves are enabled in every environment), rejected (carries the gateway's message) and unknown.