minterjs-util
Version:
Utils for Minter
16 lines (15 loc) • 1.08 kB
JavaScript
export {default as Big, BIG_ROUND_DOWN, BIG_ROUND_UP, BIG_ROUND_HALF_EVEN, VISIBLE_PRECISION, COMPUTATION_PRECISION} from './big.js';
export {publicToAddress, publicToString, isValidPublic} from './public.js';
// eslint-disable-next-line unicorn/prevent-abbreviations
export {convert, convertFromPip, convertToPip, numberToBig} from './converter.js';
export {
mPrefixToHex, mPrefixStrip, mToBuffer, toBuffer, addressToString, checkToString, privateToAddressString, isMinterPrefixed, isValidAddress, isValidCheck, isValidTransaction, isValidPublicKeyString,
} from './prefix.js';
export {FeePrice} from './fee.js';
export {
sellCoin, sellCoinByBip, buyCoin, buyCoinByCoin,
} from './coin-math.js';
export {getMinEstimationLimit, getMaxEstimationLimit} from './swap-limit.js';
export {coinToBuffer, bufferToCoin} from './coin-symbol.js';
export {TX_TYPE, txTypeList, normalizeTxType} from './tx-types.js';
export {COIN_MAX_AMOUNT, COIN_MAX_MAX_SUPPLY, COIN_MIN_MAX_SUPPLY, MULTISIG_SIGNATURE_MAX_COUNT, MULTISEND_RECIPIENT_MAX_COUNT, PAYLOAD_MAX_LENGTH} from './variables.js';