Other Exports

JSBI

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

The default export from jsbi.

BigintIsh

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

A enum denominating supported chain IDs.

TradeType

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

A enum denominating supported trade types.

Rounding

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

A enum denominating supported rounding options.

FACTORY_ADDRESS

import { FACTORY_ADDRESS } from '@materia/sdk'

The factory address.

ORCHESTRATOR_ADDRESS

import { ORCHESTRATOR_ADDRESS } from '@materia/sdk'

The orchestrator address.

INIT_CODE_HASH

import { INIT_CODE_HASH } from '@materia/sdk'

See Pair Addresses.

MINIMUM_LIQUIDITY

import { MINIMUM_LIQUIDITY } from '@materia/sdk'

See Minimum Liquidity.

ADD_LIQUIDITY_ACTION_SAFE_TRANSFER_TOKEN

import { ADD_LIQUIDITY_ACTION_SAFE_TRANSFER_TOKEN } from '@materia/sdk'

The safeTransfer addLiquidity operation number used in the orchestrator onERC1155Received callback. The value is 1.

SWAP_ACTION_EXACT_TOKENS_FOR_TOKENS

import { SWAP_ACTION_EXACT_TOKENS_FOR_TOKENS } from '@materia/sdk'

The swapExactTokensForTokens operation number used in the orchestrator onERC1155Received callback. The value is 2.

SWAP_ACTION_TOKENS_FOR_EXACT_TOKENS

import { SWAP_ACTION_TOKENS_FOR_EXACT_TOKENS } from '@materia/sdk'

The swapTokensForExactTokens operation number used in the orchestrator onERC1155Received callback. The value is 3.

SWAP_ACTION_EXACT_TOKENS_FOR_ETH

import { SWAP_ACTION_EXACT_TOKENS_FOR_ETH } from '@materia/sdk'

The swapExactTokensForETH operation number used in the orchestrator onERC1155Received callback. The value is 4.

SWAP_ACTION_TOKENS_FOR_EXACT_ETH

import { SWAP_ACTION_TOKENS_FOR_EXACT_ETH } from '@materia/sdk'

The swapTokensForExactETH operation number used in the orchestrator onERC1155Received callback. The value is 5.

InsufficientReservesError

import { InsufficientReservesError } from '@materia/sdk'

InsufficientInputAmountError

import { InsufficientInputAmountError } from '@materia/sdk'

IETH

import { IETH } from '@materia/sdk'

An object whose values are IETH Token instances, indexed by ChainId. IETH is the representation of Ethereum in the EthItem ecosystem.