Skip to main content

JSBI

import { JSBI } from "@pollum-io/pegasys-sdk";
// import JSBI from 'jsbi'

The default export from jsbi.

BigintIsh#

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

A enum denominating supported chain IDs.

TradeType#

import { TradeType } from"@pollum-io/pegasys-sdk";
// enum TradeType {
// EXACT_INPUT,
// EXACT_OUTPUT
// }

A enum denominating supported trade types.

Rounding#

import { Rounding } from"@pollum-io/pegasys-sdk";
// enum Rounding {
// ROUND_DOWN,
// ROUND_HALF_UP,
// ROUND_UP
// }

A enum denominating supported rounding options.

FACTORY_ADDRESS#

import { FACTORY_ADDRESS } from "@pollum-io/pegasys-sdk";
The [factory address](/reference/smart-contracts/01-factory#code).
# INIT_CODE_HASH
```typescript
import { INIT_CODE_HASH } from "@pollum-io/pegasys-sdk";

See Pair Addresses.

MINIMUM_LIQUIDITY#

import { MINIMUM_LIQUIDITY } from "@pollum-io/pegasys-sdk";

See Minimum Liquidity.

InsufficientReservesError#

import { InsufficientReservesError } from "@pollum-io/pegasys-sdk";

InsufficientInputAmountError#

import { InsufficientInputAmountError } from "@pollum-io/pegasys-sdk";

WSYS#

import { WSYS } from "@pollum-io/pegasys-sdk";

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