UNPKG

@parifi/sdk

Version:

Parifi SDK with common utility functions

11 lines (8 loc) 583 B
import { Decimal } from 'decimal.js'; declare const getDiff: (a: Decimal, b: Decimal) => Decimal; declare const addDelay: (ms: number) => Promise<void>; declare const getCurrentTimestampInSeconds: () => number; declare const getUniqueValuesFromArray: (originalArray: string[]) => string[]; declare function convertWeiToEther(amountInWei: string | bigint | undefined): number; declare function convertEtherToWei(amount: string | number | undefined): bigint; export { addDelay, convertEtherToWei, convertWeiToEther, getCurrentTimestampInSeconds, getDiff, getUniqueValuesFromArray };