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