UNPKG

@berrywallet/core

Version:

Berrywallet main Core for work with common cryptocurrencies like Bitcoin, Ethereum, Dash, Litecoin

12 lines (11 loc) 404 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const adapter_1 = require("./adapter"); function getNetworkAdapter(coin, index = 0) { return adapter_1.AdapterMap[coin.getUnit()][index]; } exports.getNetworkAdapter = getNetworkAdapter; function getNetworkAdapters(coin) { return adapter_1.AdapterMap[coin.getUnit()]; } exports.getNetworkAdapters = getNetworkAdapters;