PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@iota/iota-sdk/dist/esm/utils
Просмотр файла: formatBalance.d.ts
import BigNumber from 'bignumber.js';
declare function formatAmountParts(amount?: BigNumber | bigint | number | string | null): string[];
export declare function formatAmount(...args: Parameters<typeof formatAmountParts>): string;
export declare function formatWithSubscript(input: BigNumber | bigint | number | string | null, zeroCount: number): string;
export declare enum CoinFormat {
Rounded = "Rounded",
Full = "Full"
}
/**
* Formats a coin balance based on our standard coin display logic.
* If the balance is less than 1, it will be displayed in its full decimal form.
* For values greater than 1, it will be truncated to 3 decimal places.
*/
export declare function formatBalance(balance: bigint | number | string, decimals: number, format?: CoinFormat, showSign?: boolean): string;
export {};
Выполнить команду
Для локальной разработки. Не используйте в интернете!