UNPKG

@interlay/interbtc

Version:

JavaScript library to interact with InterBTC

7 lines (6 loc) 481 B
import { CurrencyUnit } from "@interlay/interbtc-api"; import { Currency, MonetaryAmount } from "@interlay/monetary-js"; import { BigSource } from "big.js"; export declare type Factory<U extends CurrencyUnit> = (amount: BigSource, base?: boolean) => MonetaryAmount<Currency<U>, U>; export declare function currencyNameToCurrency<U extends CurrencyUnit>(name: string): Currency<U>; export declare function currencyFactory<U extends CurrencyUnit>(currency: Currency<U>): Factory<U>;