@qso-soft/shared
Version:
Shared library for QSO-soft
13 lines (12 loc) • 356 B
TypeScript
export declare const ETH_DECIMAL = 18;
interface IntToDecimal {
amount: number;
decimals?: number;
}
export declare const intToDecimal: ({ amount, decimals }: IntToDecimal) => bigint;
interface DecimalToInt {
amount: bigint;
decimals?: number;
}
export declare const decimalToInt: ({ amount, decimals }: DecimalToInt) => number;
export {};