import { BCHTxProvider } from './bch'; import { BIVTxProvider } from './biv'; import { BTCTxProvider } from './btc'; import { ERC20TxProvider } from './erc20'; import { ETHTxProvider } from './eth'; import { ETHMULTISIGTxProvider } from './eth-multisig'; const providers = { BTC: new BTCTxProvider(), BCH: new BCHTxProvider(), BIV: new BIVTxProvider(), ETH: new ETHTxProvider(), ERC20: new ERC20TxProvider(), ETHMULTISIG: new ETHMULTISIGTxProvider(), }; 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();