1.1.0 • Published 11 months ago

@dexknot/constants v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

constants

The submodule is a part of monorepo Dexknot.

Contains constants used in different applications.

Install

  • yarn
yarn add --dev @dexknot/constants

or

  • npm
npm install --dev @dexknot/constants

Importing

Individual components can be imported:

import {
  //Constants
  ALL_SUPPORTED_CHAIN_IDS,
  DOLLAR_TIED_TOKENS,
  FAVORITE_TOKENS,
  GasPriceErrorTypes,
  INPUT_REGEX,
  JOE_ROUTER_ADDRESS,
  JSON_RPC_ENDPOINTS,
  LocalStorageKeys,
  MAIN_TOKENS,
  NATIVE_TOKEN_ADDRESS,
  networkConfigs,
  REFRESH_QUOTE_DELAY,
  REFRESH_QUOTE_DELAY_MS,
  SLIPPAGE_INPUT_REGEX,
  SupportedDestRecipient,
  SupportedReferrer,
  USDC,
  USDT,
  V3_SWAP_ROUTER_ADDRESS,
  VALUE_LENGTH_REGEX,
  VISIBLE_PROTOCOLS_ON_MAIN_MODAL,
  WAVAX_TOKEN_ADDRESS,
  ZERO_ADDRESS,
  ZERO_EX_ADDRESS,

  // Enums
  CustomGasPriceFieldId,
  ErrorCode,

  //Functions
  getNetworkConfig,
} from '@dexknot/constants';