Skip to main content

JSBI

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

The default export from jsbi.

BigintIsh#

import { BigintIsh } from '@uniswap/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 '@uniswap/sdk'
// enum ChainId {
// MAINNET = 1,
// ROPSTEN = 3,
// RINKEBY = 4,
// GÖRLI = 5,
// KOVAN = 42
// }

A enum denominating supported chain IDs.

TradeType#

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

A enum denominating supported trade types.

Rounding#

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

A enum denominating supported rounding options.

FACTORY_ADDRESS#

import { FACTORY_ADDRESS } from '@uniswap/sdk'

The factory address.

INIT_CODE_HASH#

import { INIT_CODE_HASH } from '@uniswap/sdk'

See Pair Addresses.

MINIMUM_LIQUIDITY#

import { MINIMUM_LIQUIDITY } from '@uniswap/sdk'

See Minimum Liquidity.

InsufficientReservesError#

import { InsufficientReservesError } from '@uniswap/sdk'

InsufficientInputAmountError#

import { InsufficientInputAmountError } from '@uniswap/sdk'

WETH#

import { WETH } from '@uniswap/sdk'

An object whose values are WETH Token instances, indexed by ChainId.