UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

15 lines 649 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CurrencyWithDerivationPaths = CurrencyWithDerivationPaths; function CurrencyWithDerivationPaths(instance, currenciesDerivationPaths) { return Object.assign(instance, { setDerivationPath(newDerivationPath) { currenciesDerivationPaths.set(instance.currencyInfo.id, newDerivationPath); }, getDerivationPath() { return (currenciesDerivationPaths.get(instance.currencyInfo.id) ?? instance.currencyInfo.defaultDerivationPath); } }); } //# sourceMappingURL=CurrencyWithDerivationPaths.js.map