WhiteSwap
  • About WhiteSwap
  • Protocol Overview
    • How WhiteSwap Works
    • Eсosystem Participants
    • Smart Contracts
    • Glossary
  • Core Concepts
    • Swaps
    • Pools
    • Flash Swaps
    • Oracles
    • Farming
    • WSD Staking
  • Advanced Topics
    • Fees
    • Pricing
    • Understanding Returns
    • Security
    • Research
  • Governance
    • Overview
    • Process
    • Glossary
  • Governance Token
    • Introducing WSD
    • Allocation & Vesting
    • Community Treasury
  • Developer Guides
    • Token Listing
    • Javascript SDK
      • SDK Quick Start
      • Fetching Data
      • Pricing
      • Trading
      • Pair Addresses
  • Reference
    • API
      • API Overview
      • Entities
      • Queries
    • SDK
      • Getting Started
      • Token
      • Pair
      • Route
      • Trade
      • Fractions
      • Fetcher
      • Other Exports
    • Smart Contracts
Powered by GitBook
On this page
  • JSBI
  • BigintIsh
  • ChainId
  • TradeType
  • Rounding
  • FACTORY_ADDRESS
  • INIT_CODE_HASH
  • MINIMUM_LIQUIDITY
  • InsufficientReservesError
  • InsufficientInputAmountError
  • WETH

Was this helpful?

  1. Reference
  2. SDK

Other Exports

PreviousFetcherNextSmart Contracts

Last updated 4 years ago

Was this helpful?

JSBI

import { JSBI } from '@whiteswap/sdk'
// import JSBI from 'jsbi'

The default export from .

BigintIsh

import { BigintIsh } from '@whiteswap/sdk'
// type BigintIsh = JSBI | bigint | string

A union type comprised of all types that can be cast to a JSBI instance.

ChainId

import { ChainId } from '@whiteswap/sdk'
// enum ChainId {
//   MAINNET = 1,
//   ROPSTEN = 3,
//   RINKEBY = 4,
//   GÖRLI = 5,
//   KOVAN = 42
// }

A enum denominating supported chain IDs.

TradeType

import { TradeType } from '@whiteswap/sdk'
// enum TradeType {
//   EXACT_INPUT,
//   EXACT_OUTPUT
// }

A enum denominating supported trade types.

Rounding

import { Rounding } from '@whiteswap/sdk'
// enum Rounding {
//   ROUND_DOWN,
//   ROUND_HALF_UP,
//   ROUND_UP
// }

A enum denominating supported rounding options.

FACTORY_ADDRESS

import { FACTORY_ADDRESS } from '@whiteswap/sdk'

The factory address.

INIT_CODE_HASH

import { INIT_CODE_HASH } from '@whiteswap/sdk'

See Pair Addresses.

MINIMUM_LIQUIDITY

import { MINIMUM_LIQUIDITY } from '@whiteswap/sdk'

InsufficientReservesError

import { InsufficientReservesError } from '@whiteswap/sdk'

InsufficientInputAmountError

import { InsufficientInputAmountError } from '@whiteswap/sdk'

WETH

import { WETH } from '@whiteswap/sdk'

An object whose values are WETH instances, indexed by .

jsbi
Token
ChainId