Variable: GSWAP\_ERROR\_CATALOG
gSwap SDK 2.0.0-rc.4 / GSWAP_ERROR_CATALOG
Variable: GSWAP_ERROR_CATALOG
constGSWAP_ERROR_CATALOG:object
Defined in: packages/gswap-sdk/dist/index.d.ts:262
The whole DEX catalog. Add a code here before throwing it anywhere in gswap-sdk.
Type Declaration
AMOUNT_IS_JS_NUMBER
readonlyAMOUNT_IS_JS_NUMBER:object
AMOUNT_IS_JS_NUMBER.params
readonlyparams:object
AMOUNT_IS_JS_NUMBER.params.field
readonlyfield:"string"
AMOUNT_IS_JS_NUMBER.phase
readonlyphase:"pre_send"
AMOUNT_IS_JS_NUMBER.template
readonlytemplate:"Invalid {field}: use a decimal string or BigNumber, not a JavaScript number"
AMOUNT_NEGATIVE
readonlyAMOUNT_NEGATIVE:object
AMOUNT_NEGATIVE.params
readonlyparams:object
AMOUNT_NEGATIVE.params.field
readonlyfield:"string"
AMOUNT_NEGATIVE.params.value
readonlyvalue:"string"
AMOUNT_NEGATIVE.phase
readonlyphase:"pre_send"
AMOUNT_NEGATIVE.template
readonlytemplate:"Invalid {field}: must not be negative (got {value})"
AMOUNT_NOT_FINITE
readonlyAMOUNT_NOT_FINITE:object
AMOUNT_NOT_FINITE.params
readonlyparams:object
AMOUNT_NOT_FINITE.params.field
readonlyfield:"string"
AMOUNT_NOT_FINITE.params.value
readonlyvalue:"string"
AMOUNT_NOT_FINITE.phase
readonlyphase:"pre_send"
AMOUNT_NOT_FINITE.template
readonlytemplate:"Invalid {field}: must be a finite number (got {value})"
AMOUNT_NOT_POSITIVE
readonlyAMOUNT_NOT_POSITIVE:object
AMOUNT_NOT_POSITIVE.params
readonlyparams:object
AMOUNT_NOT_POSITIVE.params.field
readonlyfield:"string"
AMOUNT_NOT_POSITIVE.params.value
readonlyvalue:"string"
AMOUNT_NOT_POSITIVE.phase
readonlyphase:"pre_send"
AMOUNT_NOT_POSITIVE.template
readonlytemplate:"Invalid {field}: must be positive (got {value})"
AT_MOST_ONE_OF_ALLOWED
readonlyAT_MOST_ONE_OF_ALLOWED:object
AT_MOST_ONE_OF_ALLOWED.params
readonlyparams:object
AT_MOST_ONE_OF_ALLOWED.params.first
readonlyfirst:"string"
AT_MOST_ONE_OF_ALLOWED.params.second
readonlysecond:"string"
AT_MOST_ONE_OF_ALLOWED.phase
readonlyphase:"pre_send"
AT_MOST_ONE_OF_ALLOWED.template
readonlytemplate:"Provide at most one of {first} or {second}."
BOUNDS_VIOLATION
readonlyBOUNDS_VIOLATION:object
BOUNDS_VIOLATION.params
readonlyparams:object
BOUNDS_VIOLATION.params.serverMessage
readonlyserverMessage:"string"
BOUNDS_VIOLATION.phase
readonlyphase:"post_send"
BOUNDS_VIOLATION.template
readonlytemplate:"The gateway rejected a numeric, tick, symbol or range bound: {serverMessage}"
CHAIN_DISPATCH_FAILED
readonlyCHAIN_DISPATCH_FAILED:object
CHAIN_DISPATCH_FAILED.params
readonlyparams:object
CHAIN_DISPATCH_FAILED.params.errorKey
readonlyerrorKey:"string"
CHAIN_DISPATCH_FAILED.params.serverMessage
readonlyserverMessage:"string"
CHAIN_DISPATCH_FAILED.phase
readonlyphase:"post_send"
CHAIN_DISPATCH_FAILED.template
readonlytemplate: "The chain dispatch failed (chain error key "{errorKey}"): {serverMessage}"
CHAIN_REJECTED
readonlyCHAIN_REJECTED:object
CHAIN_REJECTED.params
readonlyparams:object
CHAIN_REJECTED.params.errorKey
readonlyerrorKey:"string"
CHAIN_REJECTED.params.serverMessage
readonlyserverMessage:"string"
CHAIN_REJECTED.phase
readonlyphase:"post_send"
CHAIN_REJECTED.template
readonlytemplate:"GalaChain error {errorKey}: {serverMessage}"
CONFIRMATION_ABORTED
readonlyCONFIRMATION_ABORTED:object
CONFIRMATION_ABORTED.params
readonlyparams:object
CONFIRMATION_ABORTED.phase
readonlyphase:"post_send"
CONFIRMATION_ABORTED.template
readonlytemplate:"Transaction confirmation was aborted."
CONFIRMATION_FAILED
readonlyCONFIRMATION_FAILED:object
CONFIRMATION_FAILED.params
readonlyparams:object
CONFIRMATION_FAILED.params.serverMessage
readonlyserverMessage:"string"
CONFIRMATION_FAILED.params.status
readonlystatus:"number"
CONFIRMATION_FAILED.phase
readonlyphase:"post_send"
CONFIRMATION_FAILED.template
readonlytemplate:"Transaction confirmation failed with HTTP {status}."
CONFIRMATION_FAILED.unrendered
readonlyunrendered: readonly ["serverMessage"]
CONFIRMATION_KEY_MISMATCH
readonlyCONFIRMATION_KEY_MISMATCH:object
CONFIRMATION_KEY_MISMATCH.params
readonlyparams:object
CONFIRMATION_KEY_MISMATCH.phase
readonlyphase:"post_send"
CONFIRMATION_KEY_MISMATCH.template
readonlytemplate:"Apply result key did not match the requested key."
CONFIRMATION_MALFORMED
readonlyCONFIRMATION_MALFORMED:object
CONFIRMATION_MALFORMED.params
readonlyparams:object
CONFIRMATION_MALFORMED.phase
readonlyphase:"post_send"
CONFIRMATION_MALFORMED.template
readonlytemplate:"Transaction confirmation returned a malformed body."
CONFIRMATION_TIMEOUT
readonlyCONFIRMATION_TIMEOUT:object
CONFIRMATION_TIMEOUT.params
readonlyparams:object
CONFIRMATION_TIMEOUT.phase
readonlyphase:"post_send"
CONFIRMATION_TIMEOUT.template
readonlytemplate:"Transaction confirmation timed out; the trade may still apply. Confirm the same uniqueKey again later instead of resubmitting."
CREATE_POOL_NEEDS_CLASS_KEY
readonlyCREATE_POOL_NEEDS_CLASS_KEY:object
CREATE_POOL_NEEDS_CLASS_KEY.params
readonlyparams:object
CREATE_POOL_NEEDS_CLASS_KEY.params.token
readonlytoken:"string"
CREATE_POOL_NEEDS_CLASS_KEY.phase
readonlyphase:"pre_send"
CREATE_POOL_NEEDS_CLASS_KEY.template
readonlytemplate:"createPool needs each token as a class key; {token} is a bare trading symbol, which does not carry one."
DTO_INVALID
readonlyDTO_INVALID:object
DTO_INVALID.params
readonlyparams:object
DTO_INVALID.params.serverMessage
readonlyserverMessage:"string"
DTO_INVALID.phase
readonlyphase:"post_send"
DTO_INVALID.template
readonlytemplate:"The gateway rejected the DTO shape: {serverMessage}"
DTO_NOT_CANONICAL
readonlyDTO_NOT_CANONICAL:object
DTO_NOT_CANONICAL.params
readonlyparams:object
DTO_NOT_CANONICAL.params.method
readonlymethod:"string"
DTO_NOT_CANONICAL.phase
readonlyphase:"pre_send"
DTO_NOT_CANONICAL.template
readonlytemplate:"The {method} DTO is not in the form the SDK builders produce; build it with the matching build function and submit that."
EXACT_AMOUNT_REQUIRED
readonlyEXACT_AMOUNT_REQUIRED:object
EXACT_AMOUNT_REQUIRED.params
readonlyparams:object
EXACT_AMOUNT_REQUIRED.params.field
readonlyfield:"string"
EXACT_AMOUNT_REQUIRED.phase
readonlyphase:"pre_send"
EXACT_AMOUNT_REQUIRED.template
readonlytemplate:"{field} is required for this swap."
EXACTLY_ONE_OF_REQUIRED
readonlyEXACTLY_ONE_OF_REQUIRED:object
EXACTLY_ONE_OF_REQUIRED.params
readonlyparams:object
EXACTLY_ONE_OF_REQUIRED.params.first
readonlyfirst:"string"
EXACTLY_ONE_OF_REQUIRED.params.second
readonlysecond:"string"
EXACTLY_ONE_OF_REQUIRED.phase
readonlyphase:"pre_send"
EXACTLY_ONE_OF_REQUIRED.template
readonlytemplate:"Provide exactly one of {first} or {second}."
GATEWAY_DATA_MISSING
readonlyGATEWAY_DATA_MISSING:object
GATEWAY_DATA_MISSING.params
readonlyparams:object
GATEWAY_DATA_MISSING.phase
readonlyphase:"post_send"
GATEWAY_DATA_MISSING.template
readonlytemplate:"The gateway response is missing its data object."
GATEWAY_MODE_INVALID
readonlyGATEWAY_MODE_INVALID:object
GATEWAY_MODE_INVALID.params
readonlyparams:object
GATEWAY_MODE_INVALID.phase
readonlyphase:"post_send"
GATEWAY_MODE_INVALID.template
readonlytemplate: "Gateway response must contain data.mode="sync" with data.result, or data.mode="queued"."
GATEWAY_REJECTED
readonlyGATEWAY_REJECTED:object
GATEWAY_REJECTED.params
readonlyparams:object
GATEWAY_REJECTED.params.gatewayCode
readonlygatewayCode:"string"
GATEWAY_REJECTED.params.serverMessage
readonlyserverMessage:"string"
GATEWAY_REJECTED.phase
readonlyphase:"post_send"
GATEWAY_REJECTED.template
readonlytemplate:"Gateway rejected {gatewayCode}: {serverMessage}"
GATEWAY_REPORTED_ERROR
readonlyGATEWAY_REPORTED_ERROR:object
GATEWAY_REPORTED_ERROR.params
readonlyparams:object
GATEWAY_REPORTED_ERROR.params.serverMessage
readonlyserverMessage:"string"
GATEWAY_REPORTED_ERROR.phase
readonlyphase:"post_send"
GATEWAY_REPORTED_ERROR.template
readonlytemplate:"The gateway reported an error for this write: {serverMessage}"
GATEWAY_SYNC_REQUEST_TRADE
readonlyGATEWAY_SYNC_REQUEST_TRADE:object
GATEWAY_SYNC_REQUEST_TRADE.params
readonlyparams:object
GATEWAY_SYNC_REQUEST_TRADE.phase
readonlyphase:"post_send"
GATEWAY_SYNC_REQUEST_TRADE.template
readonlytemplate:"The gateway executed RequestTrade synchronously, which this SDK refuses; RequestTrade must be queued."
HTTP_ERROR
readonlyHTTP_ERROR:object
HTTP_ERROR.params
readonlyparams:object
HTTP_ERROR.params.serverMessage
readonlyserverMessage:"string"
HTTP_ERROR.params.status
readonlystatus:"number"
HTTP_ERROR.params.url
readonlyurl:"string"
HTTP_ERROR.phase
readonlyphase:"post_send"
HTTP_ERROR.template
readonlytemplate:"Unexpected HTTP error {status} from {url}."
HTTP_ERROR.unrendered
readonlyunrendered: readonly ["serverMessage"]
INCOMPLETE_TOKEN_CLASS_KEY
readonlyINCOMPLETE_TOKEN_CLASS_KEY:object
INCOMPLETE_TOKEN_CLASS_KEY.params
readonlyparams:object
INCOMPLETE_TOKEN_CLASS_KEY.params.compositeKey
readonlycompositeKey:"string"
INCOMPLETE_TOKEN_CLASS_KEY.params.part
readonlypart:"string"
INCOMPLETE_TOKEN_CLASS_KEY.phase
readonlyphase:"pre_send"
INCOMPLETE_TOKEN_CLASS_KEY.template
readonlytemplate: "Token class key "{compositeKey}" is missing {part}."
INSUFFICIENT_LIQUIDITY
readonlyINSUFFICIENT_LIQUIDITY:object
INSUFFICIENT_LIQUIDITY.params
readonlyparams:object
INSUFFICIENT_LIQUIDITY.params.fee
readonlyfee:"string"
INSUFFICIENT_LIQUIDITY.params.tokenIn
readonlytokenIn:"string"
INSUFFICIENT_LIQUIDITY.params.tokenOut
readonlytokenOut:"string"
INSUFFICIENT_LIQUIDITY.phase
readonlyphase:"post_send"
INSUFFICIENT_LIQUIDITY.template
readonlytemplate:"The selected pool has insufficient liquidity for {tokenIn}/{tokenOut} (fee tier {fee})."
INVALID_CHAIN_RESPONSE
readonlyINVALID_CHAIN_RESPONSE:object
INVALID_CHAIN_RESPONSE.params
readonlyparams:object
INVALID_CHAIN_RESPONSE.params.resource
readonlyresource:"string"
INVALID_CHAIN_RESPONSE.phase
readonlyphase:"post_send"
INVALID_CHAIN_RESPONSE.template
readonlytemplate:"Backend returned an invalid {resource}."
INVALID_DTO
readonlyINVALID_DTO:object
INVALID_DTO.params
readonlyparams:object
INVALID_DTO.params.expected
readonlyexpected:"string"
INVALID_DTO.params.field
readonlyfield:"string"
INVALID_DTO.params.method
readonlymethod:"string"
INVALID_DTO.phase
readonlyphase:"pre_send"
INVALID_DTO.template
readonlytemplate:"{method} DTO field {field} is invalid (expected {expected})."
INVALID_FEE
readonlyINVALID_FEE:object
INVALID_FEE.params
readonlyparams:object
INVALID_FEE.params.allowed
readonlyallowed:"string"
INVALID_FEE.params.field
readonlyfield:"string"
INVALID_FEE.params.value
readonlyvalue:"number"
INVALID_FEE.phase
readonlyphase:"pre_send"
INVALID_FEE.template
readonlytemplate:"Invalid {field}: {value} is not a supported fee tier; must be one of {allowed}."
INVALID_LIMIT
readonlyINVALID_LIMIT:object
INVALID_LIMIT.params
readonlyparams:object
INVALID_LIMIT.params.max
readonlymax:"number"
INVALID_LIMIT.params.min
readonlymin:"number"
INVALID_LIMIT.params.value
readonlyvalue:"number"
INVALID_LIMIT.phase
readonlyphase:"pre_send"
INVALID_LIMIT.template
readonlytemplate:"limit must be an integer from {min} to {max} (got {value})."
INVALID_MARKET_TOKEN
readonlyINVALID_MARKET_TOKEN:object
INVALID_MARKET_TOKEN.params
readonlyparams:object
INVALID_MARKET_TOKEN.params.token
readonlytoken:"string"
INVALID_MARKET_TOKEN.phase
readonlyphase:"pre_send"
INVALID_MARKET_TOKEN.template
readonlytemplate: "A market read names a token by a symbol or class key of 1 to 120 letters, digits and . _ $ + / : | - characters (got "{token}")."
INVALID_PAGE
readonlyINVALID_PAGE:object
INVALID_PAGE.params
readonlyparams:object
INVALID_PAGE.params.value
readonlyvalue:"number"
INVALID_PAGE.phase
readonlyphase:"pre_send"
INVALID_PAGE.template
readonlytemplate:"page must be an integer of at least 1 (got {value})."
INVALID_POLL_INTERVAL
readonlyINVALID_POLL_INTERVAL:object
INVALID_POLL_INTERVAL.params
readonlyparams:object
INVALID_POLL_INTERVAL.params.value
readonlyvalue:"string"
INVALID_POLL_INTERVAL.phase
readonlyphase:"pre_send"
INVALID_POLL_INTERVAL.template
readonlytemplate:"intervalMs must be a finite number of milliseconds of at least 1 (got {value})."
INVALID_POSITION_RESPONSE
readonlyINVALID_POSITION_RESPONSE:object
INVALID_POSITION_RESPONSE.params
readonlyparams:object
INVALID_POSITION_RESPONSE.params.reason
readonlyreason:"string"
INVALID_POSITION_RESPONSE.phase
readonlyphase:"post_send"
INVALID_POSITION_RESPONSE.template
readonlytemplate:"Backend returned an invalid position ({reason})."
INVALID_PRICE_BOUNDS
readonlyINVALID_PRICE_BOUNDS:object
INVALID_PRICE_BOUNDS.params
readonlyparams:object
INVALID_PRICE_BOUNDS.params.maxPrice
readonlymaxPrice:"string"
INVALID_PRICE_BOUNDS.params.minPrice
readonlyminPrice:"string"
INVALID_PRICE_BOUNDS.phase
readonlyphase:"pre_send"
INVALID_PRICE_BOUNDS.template
readonlytemplate:"Price bounds must be finite and positive (minPrice {minPrice}, maxPrice {maxPrice})."
INVALID_PRICE_RANGE
readonlyINVALID_PRICE_RANGE:object
INVALID_PRICE_RANGE.params
readonlyparams:object
INVALID_PRICE_RANGE.params.lowerPrice
readonlylowerPrice:"string"
INVALID_PRICE_RANGE.params.upperPrice
readonlyupperPrice:"string"
INVALID_PRICE_RANGE.phase
readonlyphase:"pre_send"
INVALID_PRICE_RANGE.template
readonlytemplate:"Invalid price range: lower price {lowerPrice} must be less than or equal to upper price {upperPrice}"
INVALID_PRICE_VALUES
readonlyINVALID_PRICE_VALUES:object
INVALID_PRICE_VALUES.params
readonlyparams:object
INVALID_PRICE_VALUES.params.lowerPrice
readonlylowerPrice:"string"
INVALID_PRICE_VALUES.params.spotPrice
readonlyspotPrice:"string"
INVALID_PRICE_VALUES.params.upperPrice
readonlyupperPrice:"string"
INVALID_PRICE_VALUES.phase
readonlyphase:"pre_send"
INVALID_PRICE_VALUES.template
readonlytemplate:"Invalid price values: all prices must be finite and positive (spot {spotPrice}, lower {lowerPrice}, upper {upperPrice})"
INVALID_SEASON_ID
readonlyINVALID_SEASON_ID:object
INVALID_SEASON_ID.params
readonlyparams:object
INVALID_SEASON_ID.params.value
readonlyvalue:"string"
INVALID_SEASON_ID.phase
readonlyphase:"pre_send"
INVALID_SEASON_ID.template
readonlytemplate:"seasonId must be an integer of at least 1 (got {value})."
INVALID_SORT_BY
readonlyINVALID_SORT_BY:object
INVALID_SORT_BY.params
readonlyparams:object
INVALID_SORT_BY.params.allowed
readonlyallowed:"string"
INVALID_SORT_BY.params.value
readonlyvalue:"string"
INVALID_SORT_BY.phase
readonlyphase:"pre_send"
INVALID_SORT_BY.template
readonlytemplate: "sortBy "{value}" is not allowed; it must be one of {allowed}."
INVALID_SORT_ORDER
readonlyINVALID_SORT_ORDER:object
INVALID_SORT_ORDER.params
readonlyparams:object
INVALID_SORT_ORDER.params.value
readonlyvalue:"string"
INVALID_SORT_ORDER.phase
readonlyphase:"pre_send"
INVALID_SORT_ORDER.template
readonlytemplate: "sortOrder "{value}" is not allowed; it must be asc or desc."
INVALID_SQRT_PRICE
readonlyINVALID_SQRT_PRICE:object
INVALID_SQRT_PRICE.params
readonlyparams:object
INVALID_SQRT_PRICE.params.sqrtPrice
readonlysqrtPrice:"string"
INVALID_SQRT_PRICE.phase
readonlyphase:"pre_send"
INVALID_SQRT_PRICE.template
readonlytemplate:"Cannot invert a non-positive sqrt price ({sqrtPrice})."
INVALID_STARTING_PRICE
readonlyINVALID_STARTING_PRICE:object
INVALID_STARTING_PRICE.params
readonlyparams:object
INVALID_STARTING_PRICE.params.value
readonlyvalue:"string"
INVALID_STARTING_PRICE.phase
readonlyphase:"pre_send"
INVALID_STARTING_PRICE.template
readonlytemplate:"Starting price must be finite and positive (got {value})."
INVALID_TICK_RANGE
readonlyINVALID_TICK_RANGE:object
INVALID_TICK_RANGE.params
readonlyparams:object
INVALID_TICK_RANGE.params.tickLower
readonlytickLower:"number"
INVALID_TICK_RANGE.params.tickUpper
readonlytickUpper:"number"
INVALID_TICK_RANGE.phase
readonlyphase:"pre_send"
INVALID_TICK_RANGE.template
readonlytemplate:"Invalid tick range: tickLower {tickLower} must be less than tickUpper {tickUpper}"
INVALID_TICK_SPACING
readonlyINVALID_TICK_SPACING:object
INVALID_TICK_SPACING.params
readonlyparams:object
INVALID_TICK_SPACING.params.value
readonlyvalue:"number"
INVALID_TICK_SPACING.phase
readonlyphase:"pre_send"
INVALID_TICK_SPACING.template
readonlytemplate:"Invalid tick spacing: must be a positive integer (got {value})"
INVALID_TIMEFRAME
readonlyINVALID_TIMEFRAME:object
INVALID_TIMEFRAME.params
readonlyparams:object
INVALID_TIMEFRAME.params.allowed
readonlyallowed:"string"
INVALID_TIMEFRAME.params.value
readonlyvalue:"string"
INVALID_TIMEFRAME.phase
readonlyphase:"pre_send"
INVALID_TIMEFRAME.template
readonlytemplate: "timeframe "{value}" is not allowed; it must be one of {allowed}."
INVALID_TOKEN_CLASS_KEY
readonlyINVALID_TOKEN_CLASS_KEY:object
INVALID_TOKEN_CLASS_KEY.params
readonlyparams:object
INVALID_TOKEN_CLASS_KEY.params.tokenClassKey
readonlytokenClassKey:"string"
INVALID_TOKEN_CLASS_KEY.phase
readonlyphase:"pre_send"
INVALID_TOKEN_CLASS_KEY.template
readonlytemplate: "Invalid token class key "{tokenClassKey}": expected a collection followed by category, type and additionalKey"
INVALID_TOKEN_DECIMALS
readonlyINVALID_TOKEN_DECIMALS:object
INVALID_TOKEN_DECIMALS.params
readonlyparams:object
INVALID_TOKEN_DECIMALS.params.field
readonlyfield:"string"
INVALID_TOKEN_DECIMALS.params.value
readonlyvalue:"number"
INVALID_TOKEN_DECIMALS.phase
readonlyphase:"pre_send"
INVALID_TOKEN_DECIMALS.template
readonlytemplate:"Invalid {field}: must be a non-negative integer (got {value})"
INVALID_TRADING_SYMBOL
readonlyINVALID_TRADING_SYMBOL:object
INVALID_TRADING_SYMBOL.params
readonlyparams:object
INVALID_TRADING_SYMBOL.params.symbol
readonlysymbol:"string"
INVALID_TRADING_SYMBOL.phase
readonlyphase:"pre_send"
INVALID_TRADING_SYMBOL.template
readonlytemplate: "Invalid trading symbol "{symbol}": must be 1-32 ASCII letters and digits and not a reserved word (Token, Unit, none)."
METHOD_NOT_ALLOWED
readonlyMETHOD_NOT_ALLOWED:object
METHOD_NOT_ALLOWED.params
readonlyparams:object
METHOD_NOT_ALLOWED.params.serverMessage
readonlyserverMessage:"string"
METHOD_NOT_ALLOWED.phase
readonlyphase:"post_send"
METHOD_NOT_ALLOWED.template
readonlytemplate:"The gateway does not expose this contract method: {serverMessage}"
METHOD_NOT_SUPPORTED
readonlyMETHOD_NOT_SUPPORTED:object
METHOD_NOT_SUPPORTED.params
readonlyparams:object
METHOD_NOT_SUPPORTED.params.method
readonlymethod:"string"
METHOD_NOT_SUPPORTED.phase
readonlyphase:"pre_send"
METHOD_NOT_SUPPORTED.template
readonlytemplate:"The method {method} is not supported; swaps are queued through RequestTrade."
MISSING_UNIQUE_KEY
readonlyMISSING_UNIQUE_KEY:object
MISSING_UNIQUE_KEY.params
readonlyparams:object
MISSING_UNIQUE_KEY.phase
readonlyphase:"post_send"
MISSING_UNIQUE_KEY.template
readonlytemplate:"The gateway acknowledged RequestTrade without echoing its uniqueKey, so it cannot be tied to the signed request."
MISSING_WALLET_ADDRESS
readonlyMISSING_WALLET_ADDRESS:object
MISSING_WALLET_ADDRESS.params
readonlyparams:object
MISSING_WALLET_ADDRESS.phase
readonlyphase:"pre_send"
MISSING_WALLET_ADDRESS.template
readonlytemplate:"Invalid wallet address: No wallet address provided. Either provide a wallet address to the function you are calling, or set one when instantiating GSwapSDK."
NO_POOL_AVAILABLE
readonlyNO_POOL_AVAILABLE:object
NO_POOL_AVAILABLE.params
readonlyparams:object
NO_POOL_AVAILABLE.params.fee
readonlyfee:"string"
NO_POOL_AVAILABLE.params.tokenIn
readonlytokenIn:"string"
NO_POOL_AVAILABLE.params.tokenOut
readonlytokenOut:"string"
NO_POOL_AVAILABLE.phase
readonlyphase:"post_send"
NO_POOL_AVAILABLE.template
readonlytemplate:"No pool is available for {tokenIn}/{tokenOut} (fee tier {fee})."
NO_SIGNER
readonlyNO_SIGNER:object
NO_SIGNER.params
readonlyparams:object
NO_SIGNER.phase
readonlyphase:"pre_send"
NO_SIGNER.template
readonlytemplate:"This method requires a signer. Please provide a signer to the GSwap constructor."
NO_VALID_TRADING_SYMBOL
readonlyNO_VALID_TRADING_SYMBOL:object
NO_VALID_TRADING_SYMBOL.params
readonlyparams:object
NO_VALID_TRADING_SYMBOL.params.classKey
readonlyclassKey:"string"
NO_VALID_TRADING_SYMBOL.params.displaySymbol
readonlydisplaySymbol:"string"
NO_VALID_TRADING_SYMBOL.phase
readonlyphase:"pre_send"
NO_VALID_TRADING_SYMBOL.template
readonlytemplate: "No valid trading symbol for token class {classKey}: "{displaySymbol}" is not an acceptable symbol and none is registered"
NO_WALLET_ADDRESS
readonlyNO_WALLET_ADDRESS:object
NO_WALLET_ADDRESS.params
readonlyparams:object
NO_WALLET_ADDRESS.phase
readonlyphase:"post_send"
NO_WALLET_ADDRESS.template
readonlytemplate:"Cannot confirm this write: no walletAddress was provided to the GSwap constructor, so the resulting position cannot be looked up to confirm it landed on chain."
NON_CANONICAL_PAIR
readonlyNON_CANONICAL_PAIR:object
NON_CANONICAL_PAIR.params
readonlyparams:object
NON_CANONICAL_PAIR.params.token0
readonlytoken0:"string"
NON_CANONICAL_PAIR.params.token1
readonlytoken1:"string"
NON_CANONICAL_PAIR.phase
readonlyphase:"pre_send"
NON_CANONICAL_PAIR.template
readonlytemplate:"The pair {token0}/{token1} is not in canonical order: token0 must sort before token1."
POOL_MISMATCH
readonlyPOOL_MISMATCH:object
POOL_MISMATCH.params
readonlyparams:object
POOL_MISMATCH.params.poolToken0
readonlypoolToken0:"string"
POOL_MISMATCH.params.poolToken1
readonlypoolToken1:"string"
POOL_MISMATCH.params.tokenIn
readonlytokenIn:"string"
POOL_MISMATCH.params.tokenOut
readonlytokenOut:"string"
POOL_MISMATCH.phase
readonlyphase:"pre_send"
POOL_MISMATCH.template
readonlytemplate:"tokenIn {tokenIn} and tokenOut {tokenOut} must be the two tokens of the pinned pool {poolToken0}/{poolToken1}."
PRICE_BOUNDS_ORDER
readonlyPRICE_BOUNDS_ORDER:object
PRICE_BOUNDS_ORDER.params
readonlyparams:object
PRICE_BOUNDS_ORDER.params.maxPrice
readonlymaxPrice:"string"
PRICE_BOUNDS_ORDER.params.minPrice
readonlyminPrice:"string"
PRICE_BOUNDS_ORDER.phase
readonlyphase:"pre_send"
PRICE_BOUNDS_ORDER.template
readonlytemplate:"minPrice {minPrice} must be less than or equal to maxPrice {maxPrice}."
PRICE_VALUES_IS_JS_NUMBER
readonlyPRICE_VALUES_IS_JS_NUMBER:object
PRICE_VALUES_IS_JS_NUMBER.params
readonlyparams:object
PRICE_VALUES_IS_JS_NUMBER.phase
readonlyphase:"pre_send"
PRICE_VALUES_IS_JS_NUMBER.template
readonlytemplate:"Invalid price values: use decimal strings or BigNumber values, not JavaScript numbers"
RATE_LIMITED
readonlyRATE_LIMITED:object
RATE_LIMITED.params
readonlyparams:object
RATE_LIMITED.params.serverMessage
readonlyserverMessage:"string"
RATE_LIMITED.phase
readonlyphase:"post_send"
RATE_LIMITED.template
readonlytemplate:"The gateway rate-limited this signer: {serverMessage}"
REQUEST_FAILED
readonlyREQUEST_FAILED:object
REQUEST_FAILED.params
readonlyparams:object
REQUEST_FAILED.params.operation
readonlyoperation:"string"
REQUEST_FAILED.phase
readonlyphase:"in_flight"
REQUEST_FAILED.template
readonlytemplate:"The {operation} request failed."
SEARCH_TOO_LONG
readonlySEARCH_TOO_LONG:object
SEARCH_TOO_LONG.params
readonlyparams:object
SEARCH_TOO_LONG.params.length
readonlylength:"number"
SEARCH_TOO_LONG.params.maxLength
readonlymaxLength:"number"
SEARCH_TOO_LONG.phase
readonlyphase:"pre_send"
SEARCH_TOO_LONG.template
readonlytemplate:"search must be at most {maxLength} characters (got {length})."
SHADOW_NOT_QUEUED
readonlySHADOW_NOT_QUEUED:object
SHADOW_NOT_QUEUED.params
readonlyparams:object
SHADOW_NOT_QUEUED.phase
readonlyphase:"post_send"
SHADOW_NOT_QUEUED.template
readonlytemplate:"The swap backend did not queue the shadow request."
SHADOW_SUBMIT_NEEDS_WALLET_ADDRESS
readonlySHADOW_SUBMIT_NEEDS_WALLET_ADDRESS:object
SHADOW_SUBMIT_NEEDS_WALLET_ADDRESS.params
readonlyparams:object
SHADOW_SUBMIT_NEEDS_WALLET_ADDRESS.phase
readonlyphase:"pre_send"
SHADOW_SUBMIT_NEEDS_WALLET_ADDRESS.template
readonlytemplate:"A shadow submission needs a walletAddress (the X-Wallet-Address header): pass one to the GSwap constructor or to this call."
SIGNATURE_INVALID
readonlySIGNATURE_INVALID:object
SIGNATURE_INVALID.params
readonlyparams:object
SIGNATURE_INVALID.params.serverMessage
readonlyserverMessage:"string"
SIGNATURE_INVALID.phase
readonlyphase:"post_send"
SIGNATURE_INVALID.template
readonlytemplate:"The gateway could not verify the signature: {serverMessage}"
SIGNER_MISMATCH
readonlySIGNER_MISMATCH:object
SIGNER_MISMATCH.params
readonlyparams:object
SIGNER_MISMATCH.params.serverMessage
readonlyserverMessage:"string"
SIGNER_MISMATCH.phase
readonlyphase:"post_send"
SIGNER_MISMATCH.template
readonlytemplate:"The recovered signer does not match an actor named by the operation: {serverMessage}"
STREAM_API_KEY_UNUSABLE
readonlySTREAM_API_KEY_UNUSABLE:object
STREAM_API_KEY_UNUSABLE.params
readonlyparams:object
STREAM_API_KEY_UNUSABLE.phase
readonlyphase:"pre_send"
STREAM_API_KEY_UNUSABLE.template
readonlytemplate: "GdexStreamConfig.apiKey needs a non-empty key and an explicit webSocketImpl that accepts upgrade headers as its third argument (the "ws" package, or React Native). A browser WebSocket cannot send x-api-key, so the key would be silently dropped."
STREAM_CLOSED_BEFORE_CONNECT
readonlySTREAM_CLOSED_BEFORE_CONNECT:object
STREAM_CLOSED_BEFORE_CONNECT.params
readonlyparams:object
STREAM_CLOSED_BEFORE_CONNECT.params.closeCode
readonlycloseCode:"number"
STREAM_CLOSED_BEFORE_CONNECT.phase
readonlyphase:"in_flight"
STREAM_CLOSED_BEFORE_CONNECT.template
readonlytemplate:"GDEX stream closed before connecting (code {closeCode})."
STREAM_CONNECT_FAILED
readonlySTREAM_CONNECT_FAILED:object
STREAM_CONNECT_FAILED.params
readonlyparams:object
STREAM_CONNECT_FAILED.params.url
readonlyurl:"string"
STREAM_CONNECT_FAILED.phase
readonlyphase:"in_flight"
STREAM_CONNECT_FAILED.template
readonlytemplate:"Failed to connect to GDEX stream at {url}."
STREAM_CONNECTION_CLOSED
readonlySTREAM_CONNECTION_CLOSED:object
STREAM_CONNECTION_CLOSED.params
readonlyparams:object
STREAM_CONNECTION_CLOSED.params.closeCode
readonlycloseCode:"number"
STREAM_CONNECTION_CLOSED.phase
readonlyphase:"in_flight"
STREAM_CONNECTION_CLOSED.template
readonlytemplate:"GDEX stream connection closed (code {closeCode})."
STREAM_DISCONNECTED
readonlySTREAM_DISCONNECTED:object
STREAM_DISCONNECTED.params
readonlyparams:object
STREAM_DISCONNECTED.phase
readonlyphase:"in_flight"
STREAM_DISCONNECTED.template
readonlytemplate:"GDEX stream disconnected."
STREAM_NOT_CONNECTED
readonlySTREAM_NOT_CONNECTED:object
STREAM_NOT_CONNECTED.params
readonlyparams:object
STREAM_NOT_CONNECTED.phase
readonlyphase:"pre_send"
STREAM_NOT_CONNECTED.template
readonlytemplate:"GDEX stream is not connected. Call connect() first."
STREAM_REQUEST_TIMEOUT
readonlySTREAM_REQUEST_TIMEOUT:object
STREAM_REQUEST_TIMEOUT.params
readonlyparams:object
STREAM_REQUEST_TIMEOUT.params.method
readonlymethod:"string"
STREAM_REQUEST_TIMEOUT.params.timeoutMs
readonlytimeoutMs:"number"
STREAM_REQUEST_TIMEOUT.phase
readonlyphase:"in_flight"
STREAM_REQUEST_TIMEOUT.template
readonlytemplate: "GDEX request "{method}" timed out after {timeoutMs} ms."
STREAM_WEBSOCKET_UNAVAILABLE
readonlySTREAM_WEBSOCKET_UNAVAILABLE:object
STREAM_WEBSOCKET_UNAVAILABLE.params
readonlyparams:object
STREAM_WEBSOCKET_UNAVAILABLE.phase
readonlyphase:"pre_send"
STREAM_WEBSOCKET_UNAVAILABLE.template
readonlytemplate: "GdexStreamService requires a standards-compatible WebSocket constructor. Node.js versions before 22 must provide one with config.webSocketImpl (for example, from the "ws" package)."
SUBMISSION_OUTCOME_UNKNOWN
readonlySUBMISSION_OUTCOME_UNKNOWN:object
SUBMISSION_OUTCOME_UNKNOWN.params
readonlyparams:object
SUBMISSION_OUTCOME_UNKNOWN.params.reason
readonlyreason: readonly ["timeout","transport"]
SUBMISSION_OUTCOME_UNKNOWN.phase
readonlyphase:"in_flight"
SUBMISSION_OUTCOME_UNKNOWN.template
readonlytemplate:"The submission outcome is unknown ({reason}): the request may have reached the gateway. Confirm before retrying."
SYMBOL_CONFLICT
readonlySYMBOL_CONFLICT:object
SYMBOL_CONFLICT.params
readonlyparams:object
SYMBOL_CONFLICT.params.serverMessage
readonlyserverMessage:"string"
SYMBOL_CONFLICT.phase
readonlyphase:"post_send"
SYMBOL_CONFLICT.template
readonlytemplate:"The CreatePool symbol is already owned by another class: {serverMessage}"
SYMBOL_DISAGREES_WITH_REGISTRY
readonlySYMBOL_DISAGREES_WITH_REGISTRY:object
SYMBOL_DISAGREES_WITH_REGISTRY.params
readonlyparams:object
SYMBOL_DISAGREES_WITH_REGISTRY.params.registeredSymbol
readonlyregisteredSymbol:"string"
SYMBOL_DISAGREES_WITH_REGISTRY.params.suppliedSymbol
readonlysuppliedSymbol:"string"
SYMBOL_DISAGREES_WITH_REGISTRY.params.token
readonlytoken:"string"
SYMBOL_DISAGREES_WITH_REGISTRY.phase
readonlyphase:"pre_send"
SYMBOL_DISAGREES_WITH_REGISTRY.template
readonlytemplate:"Supplied symbol {suppliedSymbol} for {token} disagrees with the registered trading symbol {registeredSymbol}."
SYMBOL_NOT_FOUND
readonlySYMBOL_NOT_FOUND:object
SYMBOL_NOT_FOUND.params
readonlyparams:object
SYMBOL_NOT_FOUND.params.token
readonlytoken:"string"
SYMBOL_NOT_FOUND.phase
readonlyphase:"pre_send"
SYMBOL_NOT_FOUND.template
readonlytemplate:"Token {token} could not be resolved to a trading symbol."
TICKS_NOT_ALIGNED
readonlyTICKS_NOT_ALIGNED:object
TICKS_NOT_ALIGNED.params
readonlyparams:object
TICKS_NOT_ALIGNED.params.spacing
readonlyspacing:"number"
TICKS_NOT_ALIGNED.params.tickLower
readonlytickLower:"number"
TICKS_NOT_ALIGNED.params.tickUpper
readonlytickUpper:"number"
TICKS_NOT_ALIGNED.phase
readonlyphase:"pre_send"
TICKS_NOT_ALIGNED.template
readonlytemplate:"Ticks {tickLower} and {tickUpper} must be aligned to spacing {spacing}."
TICKS_NOT_INTEGERS
readonlyTICKS_NOT_INTEGERS:object
TICKS_NOT_INTEGERS.params
readonlyparams:object
TICKS_NOT_INTEGERS.params.tickLower
readonlytickLower:"number"
TICKS_NOT_INTEGERS.params.tickUpper
readonlytickUpper:"number"
TICKS_NOT_INTEGERS.phase
readonlyphase:"pre_send"
TICKS_NOT_INTEGERS.template
readonlytemplate:"Invalid tick values: ticks must be integers (got {tickLower} and {tickUpper})"
TICKS_OUT_OF_BOUNDS
readonlyTICKS_OUT_OF_BOUNDS:object
TICKS_OUT_OF_BOUNDS.params
readonlyparams:object
TICKS_OUT_OF_BOUNDS.params.maxTick
readonlymaxTick:"number"
TICKS_OUT_OF_BOUNDS.params.minTick
readonlyminTick:"number"
TICKS_OUT_OF_BOUNDS.params.tickLower
readonlytickLower:"number"
TICKS_OUT_OF_BOUNDS.params.tickUpper
readonlytickUpper:"number"
TICKS_OUT_OF_BOUNDS.phase
readonlyphase:"pre_send"
TICKS_OUT_OF_BOUNDS.template
readonlytemplate:"Invalid tick range: ticks {tickLower} and {tickUpper} must be between {minTick} and {maxTick}"
TOKEN_RESOLUTION_FAILED
readonlyTOKEN_RESOLUTION_FAILED:object
TOKEN_RESOLUTION_FAILED.params
readonlyparams:object
TOKEN_RESOLUTION_FAILED.params.token
readonlytoken:"string"
TOKEN_RESOLUTION_FAILED.phase
readonlyphase:"pre_send"
TOKEN_RESOLUTION_FAILED.template
readonlytemplate:"Token {token} could not be looked up; nothing was sent."
TOKEN_SYMBOL_NOT_REGISTERED
readonlyTOKEN_SYMBOL_NOT_REGISTERED:object
TOKEN_SYMBOL_NOT_REGISTERED.params
readonlyparams:object
TOKEN_SYMBOL_NOT_REGISTERED.params.token
readonlytoken:"string"
TOKEN_SYMBOL_NOT_REGISTERED.phase
readonlyphase:"pre_send"
TOKEN_SYMBOL_NOT_REGISTERED.template
readonlytemplate:"Token {token} is not registered in the trading-symbol registry yet; pass token0Symbol/token1Symbol (the token class symbol) to propose one. A symbol cannot be derived from a class key."
UNIQUE_KEY_MISMATCH
readonlyUNIQUE_KEY_MISMATCH:object
UNIQUE_KEY_MISMATCH.params
readonlyparams:object
UNIQUE_KEY_MISMATCH.phase
readonlyphase:"post_send"
UNIQUE_KEY_MISMATCH.template
readonlytemplate:"Gateway response data.uniqueKey must match the signed RequestTrade uniqueKey."
UNKNOWN_TOKEN
readonlyUNKNOWN_TOKEN:object
UNKNOWN_TOKEN.params
readonlyparams:object
UNKNOWN_TOKEN.params.token
readonlytoken:"string"
UNKNOWN_TOKEN.phase
readonlyphase:"pre_send"
UNKNOWN_TOKEN.template
readonlytemplate:"Token {token} is not registered on the DEX contract: it has no trading symbol."
UNORDERABLE_SYMBOLS
readonlyUNORDERABLE_SYMBOLS:object
UNORDERABLE_SYMBOLS.params
readonlyparams:object
UNORDERABLE_SYMBOLS.params.received
readonlyreceived:"string"
UNORDERABLE_SYMBOLS.phase
readonlyphase:"pre_send"
UNORDERABLE_SYMBOLS.template
readonlytemplate:"Unable to order trading symbols: expected a pair of symbols, got {received}."
UPDATE_REQUIRED
readonlyUPDATE_REQUIRED:object
UPDATE_REQUIRED.params
readonlyparams:object
UPDATE_REQUIRED.params.status
readonlystatus:"number"
UPDATE_REQUIRED.phase
readonlyphase:"post_send"
UPDATE_REQUIRED.template
readonlytemplate:"The backend refused this app version and requires an update (HTTP {status}); nothing was queued."