UNPKG

@alcorexchange/alcor-swap-sdk

Version:

​​ **npm** ``` npm i @alcorexchange/alcor-swap-sdk ``` **yarn** ``` yarn add @alcorexchange/alcor-swap-sdk ``` ## Usage ### Import:

37 lines (36 loc) 968 B
export declare const NEGATIVE_ONE: bigint; export declare const ZERO: bigint; export declare const ONE: bigint; export declare const Q32: bigint; export declare const Q64: bigint; export declare const Q96: bigint; export declare const Q128: bigint; export declare const Q192: bigint; export declare const Q256: bigint; export declare const MaxUint256: bigint; export declare const MaxUint128: bigint; export declare const MaxUint64: bigint; export type BigintIsh = bigint | string | number; export declare enum TradeType { EXACT_INPUT = 0, EXACT_OUTPUT = 1 } /** * The default factory enabled fee amounts, denominated in hundredths of bips. */ export declare enum FeeAmount { LOW = 500, MEDIUM = 3000, HIGH = 10000 } export declare enum Rounding { ROUND_DOWN = 0, ROUND_HALF_UP = 1, ROUND_UP = 2 } /** * The default factory tick spacings by fee amount. */ export declare const TICK_SPACINGS: { [amount in FeeAmount]: number; };