classic-relayer/src.bak/instances.js

16 lines
403 B
JavaScript
Raw Normal View History

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