Other Exports

JSBI

The default export from jsbi.

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

BigintIsh

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

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

ChainId

An enum denominating supported chain IDs.

import { ChainId } from '@tradegen/sdk'
// enum ChainId {
//   MAINNET = 42220,
//   ALFAJORES = 44787,
//   BAKLAVA = 62320,
// }

Rounding

An enum denominating supported rounding options.

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

SETTINGS_ADDRESS_ALFAJORES

Address of 'Settings' contract on Alfajores.

import { SETTINGS_ADDRESS_ALFAJORES } from '@tradegen/sdk'

POOL_FACTORY_ADDRESS_ALFAJORES

Address of 'PoolFactory' contract on Alfajores.

import { POOL_FACTORY_ADDRESS_ALFAJORES } from '@tradegen/sdk'

BASE_UBESWAP_ADAPTER_ADDRESS_ALFAJORES

Address of 'BaseUbeswapAdapter' contract on Alfajores.

import { BASE_UBESWAP_ADAPTER_ADDRESS_ALFAJORES } from '@tradegen/sdk'

Last updated