2020-07-16 16:33:35 +03:00
|
|
|
const { rpcUrl } = require('../config')
|
2019-11-23 11:18:54 +03:00
|
|
|
const Fetcher = require('./Fetcher')
|
2020-05-08 22:14:42 +03:00
|
|
|
const Sender = require('./sender')
|
2020-07-16 16:33:35 +03:00
|
|
|
const { GasPriceOracle } = require('gas-price-oracle')
|
2019-11-23 11:18:54 +03:00
|
|
|
const web3 = require('./setupWeb3')
|
|
|
|
const fetcher = new Fetcher(web3)
|
2020-05-08 20:29:31 +03:00
|
|
|
const sender = new Sender(web3)
|
2020-07-16 16:33:35 +03:00
|
|
|
const gasPriceOracle = new GasPriceOracle({ defaultRpc: rpcUrl })
|
2019-11-23 11:18:54 +03:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
fetcher,
|
2020-05-08 00:19:09 +03:00
|
|
|
web3,
|
2020-07-16 16:33:35 +03:00
|
|
|
sender,
|
|
|
|
gasPriceOracle
|
2020-05-08 20:29:31 +03:00
|
|
|
}
|