tornado-relayer/src.bak/instances.js

16 lines
403 B
JavaScript
Raw Normal View History

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