2019-05-06 14:12:53 +03:00
|
|
|
const baseConfig = require('./base.config')
|
|
|
|
|
2021-03-18 06:48:40 +03:00
|
|
|
const { DEFAULT_TRANSACTION_RESEND_INTERVAL } = require('../src/utils/constants')
|
2020-12-20 01:10:47 +03:00
|
|
|
const { web3Foreign, web3ForeignRedundant, web3ForeignFallback } = require('../src/services/web3')
|
2019-05-06 14:12:53 +03:00
|
|
|
|
2021-03-18 06:48:40 +03:00
|
|
|
const { ORACLE_FOREIGN_TX_RESEND_INTERVAL } = process.env
|
|
|
|
|
2019-05-06 14:12:53 +03:00
|
|
|
module.exports = {
|
|
|
|
...baseConfig.bridgeConfig,
|
2020-09-12 17:01:37 +03:00
|
|
|
queue: 'foreign-prioritized',
|
|
|
|
oldQueue: 'foreign',
|
2019-05-06 14:12:53 +03:00
|
|
|
id: 'foreign',
|
|
|
|
name: 'sender-foreign',
|
2020-10-28 14:20:50 +03:00
|
|
|
web3: web3Foreign,
|
2020-12-20 01:10:47 +03:00
|
|
|
web3Redundant: web3ForeignRedundant,
|
2021-03-18 06:48:40 +03:00
|
|
|
web3Fallback: web3ForeignFallback,
|
|
|
|
resendInterval: parseInt(ORACLE_FOREIGN_TX_RESEND_INTERVAL, 10) || DEFAULT_TRANSACTION_RESEND_INTERVAL
|
2019-05-06 14:12:53 +03:00
|
|
|
}
|