@d8x/perpetuals-sdk
Version:
Node TypeScript SDK for D8X Perpetual Futures
51 lines (50 loc) • 2.07 kB
TypeScript
import { NodeSDKConfig } from "./nodeSDKTypes";
export declare const ERC20_ABI: any;
export declare const MOCK_TOKEN_SWAP_ABI: any;
export declare const PROXY_ABI: any;
export declare const LOB_FACTORY_ABI: any;
export declare const LOB_ABI: any;
export declare const SHARE_TOKEN_ABI: any;
export declare const MULTICALL3_ABI: any;
export declare const SYMBOL_LIST: Map<string, string>;
export declare const COLLATERAL_CURRENCY_QUOTE = 0;
export declare const COLLATERAL_CURRENCY_BASE = 1;
export declare const COLLATERAL_CURRENCY_QUANTO = 2;
export declare const PERP_STATE_STR: string[];
export declare const ZERO_ADDRESS: string;
export declare const ZERO_ORDER_ID: string;
export declare const MULTICALL_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11";
export declare const ONE_64x64: bigint;
export declare const MAX_64x64: bigint;
export declare const MAX_UINT_256: bigint;
export declare const DECIMALS: bigint;
export declare const ORDER_MAX_DURATION_SEC: number;
export declare const MASK_CLOSE_ONLY: bigint;
export declare const MASK_LIMIT_ORDER: bigint;
export declare const MASK_MARKET_ORDER: bigint;
export declare const MASK_STOP_ORDER: bigint;
export declare const MASK_KEEP_POS_LEVERAGE: bigint;
export declare const MASK_PREDICTION_MARKET = 2n;
export declare const MASK_LOW_LIQUIDITY_MARKET = 4n;
export declare const MASK_TRADFI_MARKET = 8n;
export declare const ORDER_TYPE_LIMIT = "LIMIT";
export declare const ORDER_TYPE_MARKET = "MARKET";
export declare const ORDER_TYPE_STOP_MARKET = "STOP_MARKET";
export declare const ORDER_TYPE_STOP_LIMIT = "STOP_LIMIT";
export declare const BUY_SIDE = "BUY";
export declare const SELL_SIDE = "SELL";
export declare const CLOSED_SIDE = "CLOSED";
export declare enum CollaterlCCY {
QUOTE = 0,
BASE = 1,
QUANTO = 2
}
export declare enum OrderStatus {
CANCELED = 0,
EXECUTED = 1,
OPEN = 2,
UNKNOWN = 3
}
export declare const DEFAULT_CONFIG_MAINNET_NAME = "mainnet";
export declare const DEFAULT_CONFIG_TESTNET_NAME = "testnet";
export declare const DEFAULT_CONFIG: NodeSDKConfig[];