@myclique/governance-sdk
Version:
The SDK is provides easy access to the high level interactions to be governance with an Clique DAO.
20 lines (19 loc) • 893 B
TypeScript
import { Currency } from '../currency';
import JSBI from 'jsbi';
import { Fraction } from './fraction';
import { BigintIsh, Rounding } from '../constants';
export declare class CurrencyAmount extends Fraction {
readonly currency: Currency;
/**
* Helper that calls the constructor with the ETHER currency
* @param amount ether amount in wei
*/
static ether(amount: BigintIsh): CurrencyAmount;
protected constructor(currency: Currency, amount: BigintIsh);
get raw(): JSBI;
add(other: CurrencyAmount): CurrencyAmount;
subtract(other: CurrencyAmount): CurrencyAmount;
toSignificant(significantDigits?: number, format?: Record<string, unknown>, rounding?: Rounding): string;
toFixed(decimalPlaces?: number, format?: Record<string, unknown>, rounding?: Rounding): string;
toExact(format?: Record<string, unknown>): string;
}