WhiteSwap
Search
K

Other Exports

JSBI

import { JSBI } from '@whiteswap/sdk'
// import JSBI from 'jsbi'
The default export from jsbi.

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 Token instances, indexed by ChainId.