UNPKG

@ledgerhq/coin-canton

Version:
7 lines 455 B
import { parseCurrencyUnit } from "@ledgerhq/coin-framework/currencies"; import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies"; // NOTE: replace ripple by your currency id, it should be found in // libs/ledgerjs/packages/cryptoassets/src/currencies.ts const boilerplateUnit = getCryptoCurrencyById("ripple").units[0]; export const parseAPIValue = (value) => parseCurrencyUnit(boilerplateUnit, value); //# sourceMappingURL=common.js.map