Skip to main content

Variable: WRAP\_REFUSAL\_REASONS

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / WRAP_REFUSAL_REASONS

Variable: WRAP_REFUSAL_REASONS

const WRAP_REFUSAL_REASONS: readonly ["not_listed", "no_counterpart", "unknown_channel"]

Defined in: packages/gala-core-sdk/dist/index.d.ts:217

Why a token cannot be wrapped or unwrapped (TOKEN_NOT_WRAPPABLE.params.reason):

  • not_listed: the wrappable token list does not have it;
  • no_counterpart: the token it wraps to / unwraps from is not listed;
  • unknown_channel: its channel (or its counterpart's) is not one a wrap moves between.