Optimistic Governor monitor bots can report on real time events based on the provided configuration for all the networks
where OptimisticGovernor
contract is deployed.
The main entry point to Optimistic Governor monitor bots is running:
node ./packages/monitor-v2/dist/monitor-og/index.js
All the configuration should be provided with following environment variables:
OG_ADDRESS
is the address of the deployed Optimistic Governor that this bot will monitor.CHAIN_ID
is network number.NODE_URLS_X
is an array of RPC node URLs replacingX
in variable name with network number fromCHAIN_ID
.NODE_URL_X
is a single RPC node URL replacingX
in variable name with network number fromCHAIN_ID
. This is considered only if matchingNODE_URLS_X
is not provided.NODE_RETRIES
is the number of retries to make when a node request fails (defaults to2
).NODE_RETRY_DELAY
is the delay in seconds between retries (defaults to1
).NODE_TIMEOUT
is the timeout in seconds for node requests (defaults to60
).POLLING_DELAY
is value in seconds for delay between consecutive runs, defaults to 1 minute. If set to 0 then running in serverless mode will exit after the loop.STARTING_BLOCK_NUMBER
andENDING_BLOCK_NUMBER
defines block range to look for events on theCHAIN_ID
network. These are mandatory whenPOLLING_DELAY=0
.TRANSACTIONS_PROPOSED_ENABLED
is boolean enabling/disabling monitoring transactions proposed (false
by default).TRANSACTIONS_EXECUTED_ENABLED
is boolean enabling/disabling monitoring transactions executed (false
by default).PROPOSAL_EXECUTED_ENABLED
is boolean enabling/disabling monitoring proposal executed (false
by default).PROPOSAL_DELETED_ENABLED
is boolean enabling/disabling monitoring proposal deleted (false
by default).SET_COLLATERAL_BOND_ENABLED
is boolean enabling/disabling monitoring set collateral and bond amount (false
by default).SET_RULES_ENABLED
is boolean enabling/disabling monitoring set rules (false
by default).SET_LIVENESS_ENABLED
is boolean enabling/disabling monitoring set liveness (false
by default).SET_IDENTIFIER_ENABLED
is boolean enabling/disabling monitoring set identifier (false
by default).SET_ESCALATION_MANAGER_ENABLED
is boolean enabling/disabling monitoring set escalation manager (false
by default).