21 lines
628 B
JavaScript
21 lines
628 B
JavaScript
const baseConfig = require('./base.config')
|
|
|
|
const {
|
|
ORACLE_SHUTDOWN_SERVICE_POLLING_INTERVAL,
|
|
ORACLE_SHUTDOWN_SERVICE_URL,
|
|
ORACLE_SHUTDOWN_CONTRACT_ADDRESS,
|
|
ORACLE_SHUTDOWN_CONTRACT_METHOD
|
|
} = process.env
|
|
|
|
module.exports = {
|
|
...baseConfig.bridgeConfig,
|
|
id: 'shutdown-manager',
|
|
name: 'shutdown-manager',
|
|
pollingInterval: ORACLE_SHUTDOWN_SERVICE_POLLING_INTERVAL || 120000,
|
|
checksBeforeResume: 3,
|
|
checksBeforeStop: 1,
|
|
shutdownServiceURL: ORACLE_SHUTDOWN_SERVICE_URL,
|
|
shutdownContractAddress: ORACLE_SHUTDOWN_CONTRACT_ADDRESS,
|
|
shutdownMethod: (ORACLE_SHUTDOWN_CONTRACT_METHOD || 'isShutdown()').trim()
|
|
}
|