import Web3 from 'web3' ; import { PaymentsConnectionManager } from '@bitaccess/coinlib-common' ; import { EthereumPaymentsUtilsConfig } from './types' ; import { EthereumPaymentsUtils } from './EthereumPaymentsUtils' ; export class EthereumConnectionManager implements PaymentsConnectionManager < Web3 , EthereumPaymentsUtilsConfig > { connections = { } ; getConnection ( connected ) { return connected . web3 ; } getConnectionUrl ( config ) { return config . fullNode || null ; } setConnection ( config , web3 ) { config . web3 = web3 ; } }