How does it work.
The bot works on two networks: ETH mainnet and Scroll. Here's how it operates: The bot monitors new blocks on the ETH mainnet. Since Forta doesn't currently support Scroll, the bot reads blocks on the L2 network (Scroll) 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 Scroll blocks (cachedBlock, latestBlock) from the cache.
- Ethereum mainnet, Scroll network
- Bridge events
- 🚨🚨🚨 Scroll bridge balance mismatch 🚨🚨🚨
- 🚨 Scroll L2 Bridge: (re-)initialized
- 🚨 Scroll L2 Bridge: Deposits Disabled
- 🚨 Scroll: L2 gateway owner changed
- 🚨 Scroll L2 Bridge: Withdrawals Disabled
⚠️ Scroll L2 Bridge: Role granted⚠️ Scroll L2 Bridge: Role revoked- ℹ️ Scroll L2 Bridge: Deposits Enabled
- ℹ️ Scroll L2 Bridge: Withdrawals Enabled
- Gov Events
- 🚨 Scroll Gov Bridge: Ethereum Governance Executor Updated
- 🚨 Scroll Gov Bridge: Guardian Updated
⚠️ Scroll Gov Bridge: Delay Updated⚠️ Scroll Gov Bridge: Grace Period Updated⚠️ Scroll Gov Bridge: Min Delay Updated⚠️ Scroll Gov Bridge: Max Delay Updated- ℹ️ Scroll Gov Bridge: Action set queued
- ℹ️ Scroll Gov Bridge: Action set executed
- ℹ️ Scroll Gov Bridge: Action set canceled
- Proxy events
- 🚨 Scroll: Proxy admin changed
- 🚨 Scroll: Proxy implementation changed
- 🚨 Scroll: Proxy upgraded
- 🚨 Scroll: Proxy beacon upgraded
- Monitor Withdrawals
⚠️ Scroll: Huge withdrawals during the last ...
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:dev
Testing on a specific block/range/transaction:
yarn block 13626668
yarn range '13626667..13626668'
yarn tx 0x2d2774c04e3faf9f17cd26e0978bb812081b9d0b5cc6fd8bf04cc441f92c0a8c