Tradegen
  • Introduction
  • Tradegen Platform
    • Use Cases
    • Supported Assets
    • Supported Projects
    • Pools
    • NFT Pools
    • Marketplace
  • Tutorial
    • Investing in a Pool
    • Withdrawing From a Pool
    • Creating a Pool
    • Managing a Pool
    • Investing in an NFT Pool
    • Withdrawing From an NFT Pool
    • Creating an NFT Pool
  • Token Info
    • Introduction
    • Allocation
  • SDK
    • Getting Started
    • Entities
      • Price
      • TokenAmount
      • Percent
      • Fraction
      • Token
      • Pool
    • Fetcher
    • Other Exports
  • Technical
    • Implementation
    • Synthetic Trading Bots
    • Mining System
    • Trading Strategies
  • Contracts
    • Asset Management V1
    • Data Feeds
      • Protocol
      • Candlestick Data Feeds
        • 1-Minute Timeframe
        • 5-Minute Timeframe
        • 1-Hour Timeframe
        • 1-Day Timeframe
    • Tradegen Token
    • Algo Trading
      • Core Contracts
      • Indicators
      • Comparators
      • Component IDs
      • Initial Instances and Keepers
    • Asset Management V2
      • Core Contracts
      • Price Calculators
      • Adapters
      • Asset Verifiers
      • Contract Verifiers
    • Virtual Trading Environments
    • Farming System
    • Synthetic Trading Bots
  • Resources
    • Roadmap
    • Equations
    • Protocol Settings
    • Changelog
      • Pre-launch
      • Phase 1
      • Phase 2
    • Links
    • Github
    • Analytics
    • Whitepaper
  • Deprecated
    • Pools
      • Investing in Pools
      • Farming
      • Creating a Pool
      • Managing a Pool
      • System Architecture
    • Strategies
      • Investing in Strategies
      • Claiming Yield
      • Running Backtests
      • Strategy Approval
        • Voting for a Strategy
        • Submitting a Strategy
      • Trading LP Tokens
      • Building a Strategy
      • System Architecture
    • Components
      • Components Marketplace
      • Building Custom Components
      • Submitting Custom Components
Powered by GitBook
On this page
  • JSBI
  • BigintIsh
  • ChainId
  • Rounding
  • SETTINGS_ADDRESS_ALFAJORES
  • POOL_FACTORY_ADDRESS_ALFAJORES
  • BASE_UBESWAP_ADAPTER_ADDRESS_ALFAJORES

Was this helpful?

  1. SDK

Other Exports

PreviousFetcherNextImplementation

Last updated 3 years ago

Was this helpful?

JSBI

The default export from .

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'
jsbi