UNPKG

@nitin-spheron/desub-js

Version:

Typescript library for working with the decentralised subscription contracts in Spheron

5 lines (4 loc) 265 B
import { BigNumber } from 'ethers'; export declare const convertToBN: (amount: string) => any; export declare const convertToWei: (amount: string, precision: number) => BigNumber; export declare const convertWeiToEth: (wei: BigNumber, precision: number) => number;