UNPKG

@ledgerhq/coin-canton

Version:
11 lines 620 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseAPIValue = void 0; const currencies_1 = require("@ledgerhq/coin-framework/currencies"); const currencies_2 = require("@ledgerhq/cryptoassets/currencies"); // NOTE: replace ripple by your currency id, it should be found in // libs/ledgerjs/packages/cryptoassets/src/currencies.ts const boilerplateUnit = (0, currencies_2.getCryptoCurrencyById)("ripple").units[0]; const parseAPIValue = (value) => (0, currencies_1.parseCurrencyUnit)(boilerplateUnit, value); exports.parseAPIValue = parseAPIValue; //# sourceMappingURL=common.js.map