UNPKG

@bancor/carbon-sdk

Version:

The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfi

18 lines 974 B
import DecimalJS from 'decimal.js'; declare const Decimal: typeof DecimalJS; export type BigIntish = string | number | bigint; export { Decimal }; export type Decimal = DecimalJS; export declare const BigNumberMin: (a: BigIntish, b: BigIntish) => bigint; export declare const BigNumberMax: (a: BigIntish, b: BigIntish) => bigint; export declare const ONE: bigint; export declare const TEN: DecimalJS; export declare const MAX_UINT256: bigint; export declare const tenPow: (dec0: number, dec1: number) => DecimalJS; export declare const BnToDec: (x: bigint) => Decimal; export declare const DecToBn: (x: Decimal) => bigint; export declare const mulDiv: (x: bigint, y: bigint, z: bigint) => bigint; export declare function trimDecimal(input: string, precision: number): string; export declare function parseUnits(amount: string, decimals: number): bigint; export declare function formatUnits(amount: BigIntish, decimals: number): string; //# sourceMappingURL=numerics.d.ts.map