How does it work.
The bot works on two networks: ETH mainnet and Mantle. Here's how it operates: The bot monitors new blocks on the ETH mainnet. Since Forta doesn't currently support Mantle, the bot reads blocks on the L2 network (Mantle) and stores the latest one in an in-memory cache. When the bot reads the next block on ETH, it also retrieves a segment of Mantle blocks (cachedBlock, LatestBlock) from the cache.
- Ethereum mainnet, Mantle network
- Bridge events
- 🚨🚨🚨 Mantle bridge balance mismatch 🚨🚨🚨
- 🚨🚨🚨 Mantle L2 Bridge: Implementation initialized
- 🚨 Mantle L2 Bridge: Deposits Disabled
- 🚨 Mantle L2 Bridge: Role Admin changed
- 🚨 Mantle L2 Bridge: Withdrawals Disabled
⚠️ Mantle L2 Bridge: Role granted⚠️ Mantle L2 Bridge: Role revoked- ℹ️ Mantle L2 Bridge: Deposits Enabled
- ℹ️ Mantle L2 Bridge: Withdrawals Enabled
- Gov Events
- 🚨 Mantle Gov Bridge: Ethereum Governance Executor Updated
- 🚨 Mantle Gov Bridge: Guardian Updated
⚠️ Mantle Gov Bridge: Delay Updated⚠️ Mantle Gov Bridge: Grace Period Updated⚠️ Mantle Gov Bridge: Min Delay Updated⚠️ Mantle Gov Bridge: Max Delay Updated- ℹ️ Mantle Gov Bridge: Action set queued
- ℹ️ Mantle Gov Bridge: Action set executed
- ℹ️ Mantle Gov Bridge: Action set canceled
- Proxy events
- 🚨 Mantle: Proxy ossified
- 🚨 Mantle: Proxy admin changed
- 🚨 Mantle: Proxy implementation changed
- 🚨 Mantle: Proxy upgraded
- 🚨 Mantle: Proxy beacon upgraded
- Monitor Withdrawals
⚠️ Mantle: Huge withdrawals during the last ...
- Agent balance
Edit alerting-forta/<SUBMODULE>/forta.config.json
and set jsonRpcUrl
to your JSON-RPC provider. Install deps:
yarn install
Running in a live mode:
yarn start