import { BCHTxProvider } from './bch'; import { BTCTxProvider } from './btc'; import { ERC20TxProvider } from './erc20'; import { ETHTxProvider } from './eth'; import { LTPTxProvider } from './ltp'; import { XRPTxProvider } from './xrp'; const providers = { BTC: new BTCTxProvider(), BCH: new BCHTxProvider(), LTP: new LTPTxProvider(), ETH: new ETHTxProvider(), ERC20: new ERC20TxProvider(), XRP: new XRPTxProvider() }; export class TransactionsProxy { get({ chain }) { return providers[chain]; } create(params) { return this.get(params).create(params); } sign(params): string { return this.get(params).sign(params); } getSignature(params): string { return this.get(params).getSignature(params); } applySignature(params) { return this.get(params).applySignature(params); } getHash(params) { return this.get(params).getHash(params); } } export default new TransactionsProxy();