Other Exports

JSBI

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

The default export from jsbi.

BigintIsh

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

A enum denominating supported chain IDs.

TradeType

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

A enum denominating supported trade types.

Rounding

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

A enum denominating supported rounding options.

FACTORY_ADDRESS

import { FACTORY_ADDRESS } from '@kwikswap/sdk'

The factory address.

INIT_CODE_HASH

import { INIT_CODE_HASH } from '@kwikswap/sdk'

See Pair Addresses.

MINIMUM_LIQUIDITY

import { MINIMUM_LIQUIDITY } from '@kwikswap/sdk'

See Minimum Liquidity.

InsufficientReservesError

import { InsufficientReservesError } from '@kwikswap/sdk'

InsufficientInputAmountError

import { InsufficientInputAmountError } from '@kwikswap/sdk'

WETH

import { WETH } from '@kwikswap/sdk'

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