chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
17 lines (16 loc) • 646 B
TypeScript
import Decimal from 'decimal.js';
import { CurrencyInfo } from './CurrencyInfo';
export declare class CurrencyAmount {
private readonly currencyInfo;
readonly baseAmount: Decimal;
get baseSymbol(): string;
get minimalUnitAmount(): Decimal;
get minimalUnitSymbol(): string;
get str(): string;
readonly decimals: number;
constructor(currencyInfo: CurrencyInfo, baseAmount: Decimal);
plus(currencyAmount: CurrencyAmount): CurrencyAmount;
minus(currencyAmount: CurrencyAmount): CurrencyAmount;
div(currencyAmount: CurrencyAmount): CurrencyAmount;
mul(currencyAmount: CurrencyAmount): CurrencyAmount;
}