chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
43 lines • 2.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrencyModules = exports.AllCurrencies = void 0;
exports.getCurrencyInfo = getCurrencyInfo;
const CurrencyInfo_1 = require("./CurrencyInfo");
const CurrencyUtils_1 = require("./CurrencyUtils");
const CurrencyWallet_1 = require("./CurrencyWallet");
exports.AllCurrencies = [
'bitcoin',
'bitcoinTestnet',
'litecoin',
'dogecoin',
'bitcoinCash',
'ethereum',
'arbitrum',
'avalanche',
'base',
'bnbChain',
'fantom',
'polygon',
];
exports.CurrencyModules = {
bitcoin: { info: CurrencyInfo_1.BitcoinInfo, utils: CurrencyUtils_1.BitcoinUtils, wallet: CurrencyWallet_1.BitcoinWallet },
bitcoinTestnet: {
info: CurrencyInfo_1.BitcoinTestnetInfo,
utils: CurrencyUtils_1.BitcoinTestnetUtils,
wallet: CurrencyWallet_1.BitcoinTestnetWallet,
},
litecoin: { info: CurrencyInfo_1.LitecoinInfo, utils: CurrencyUtils_1.LitecoinUtils, wallet: CurrencyWallet_1.LitecoinWallet },
dogecoin: { info: CurrencyInfo_1.DogecoinInfo, utils: CurrencyUtils_1.DogecoinUtils, wallet: CurrencyWallet_1.DogecoinWallet },
bitcoinCash: { info: CurrencyInfo_1.BitcoinCashInfo, utils: CurrencyUtils_1.BitcoinCashUtils, wallet: CurrencyWallet_1.BitcoinCashWallet },
ethereum: { info: CurrencyInfo_1.EthereumInfo, utils: CurrencyUtils_1.EthereumUtils, wallet: CurrencyWallet_1.EthereumWallet },
arbitrum: { info: CurrencyInfo_1.ArbitrumInfo, utils: CurrencyUtils_1.ArbitrumUtils, wallet: CurrencyWallet_1.ArbitrumWallet },
avalanche: { info: CurrencyInfo_1.AvalancheInfo, utils: CurrencyUtils_1.AvalancheUtils, wallet: CurrencyWallet_1.AvalancheWallet },
base: { info: CurrencyInfo_1.BaseInfo, utils: CurrencyUtils_1.BaseUtils, wallet: CurrencyWallet_1.BaseWallet },
bnbChain: { info: CurrencyInfo_1.BnbInfo, utils: CurrencyUtils_1.BnbUtils, wallet: CurrencyWallet_1.BnbWallet },
fantom: { info: CurrencyInfo_1.FantomInfo, utils: CurrencyUtils_1.FantomUtils, wallet: CurrencyWallet_1.FantomWallet },
polygon: { info: CurrencyInfo_1.PolygonInfo, utils: CurrencyUtils_1.PolygonUtils, wallet: CurrencyWallet_1.PolygonWallet },
};
function getCurrencyInfo(currency) {
return exports.CurrencyModules[currency].info;
}
//# sourceMappingURL=CurrencyModules.js.map