UNPKG

@sx-bet/sportx-js

Version:

Provides an easy to use API to interact with the SportX relayer.

84 lines (83 loc) 2.03 kB
import { BigNumber } from "@ethersproject/bignumber"; export declare const RELAYER_TIMEOUT = 10000; export declare const PERCENTAGE_PRECISION_EXPONENT = 20; export declare const FRACTION_DENOMINATOR: BigNumber; export declare enum Networks { SX_TORONTO = "sx-toronto", SX_MAINNET = "sx-mainnet" } export declare enum Environments { SxToronto = "toronto", SxStage = "stage", SxMainnet = "production" } export declare enum Tokens { WETH = "WETH", SPORTX = "SX", USDC = "USDC" } export declare const RELAYER_URLS: { toronto: string; stage: string; production: string; }; export declare const DEFAULT_RPC_URLS: { toronto: string; stage: string; production: string; }; export declare const TOKEN_TRANSFER_PROXY_ADDRESS: { toronto: string; stage: string; production: string; }; export declare const EIP712_VERSION: { production: string; toronto: string; stage: string; }; interface IStringObj { [env: string]: string; } interface INestedStringObj { [env: string]: IStringObj; } export declare const CHAIN_IDS: { "sx-toronto": number; "sx-mainnet": number; }; export declare const TOKEN_ADDRESSES: INestedStringObj; export declare const FILL_ORDER_ADDRESS: { toronto: string; stage: string; production: string; }; export declare const EIP712_FILL_HASHER_ADDRESSES: { toronto: string; stage: string; production: string; }; export declare const RELAYER_HTTP_ENDPOINTS: { SPORTS: string; LEAGUES: string; ACTIVE_LEAGUES: string; ACTIVE_ORDERS: string; ORDERS: string; PENDING_BETS: string; METADATA: string; ACTIVE_MARKETS: string; POPULAR: string; HISTORICAL_MARKETS: string; NEW_ORDER: string; FILL_ORDERS: string; CANCEL_ORDERS: string; CANCEL_EVENT_ORDERS: string; CANCEL_ALL_ORDERS: string; TRADES: string; USER_TOKEN: string; LIVE_SCORES: string; }; export declare const TokenDecimalMapping: { [address: string]: number; }; export {};