Detect real-time threats and events on Scroll blockchains. chain monitor can detect ETH, ERC20, ERC721, ERC1155. As for erc20 can support WETH, StandardERC20, CustomERC20, USDC, DAI, LIDO.
Detect features:
- L2 withdraw root message hash check.
- ERC20, ERC721, ERC1155's token id and amount check.
- ETH balance check.
- Event that happened on L1/L2 can match.
- solc
The detail tutorial please follow here.
- abigen
go install -v github.com/scroll-tech/go-ethereum/cmd/abigen@develop
- foundry
curl -L https://foundry.paradigm.xyz | bash
- Update dependence
# compile contracts with foundry and translate abi to go source files
make abi CPATH=xxx
# updaye golang depedence
make update
- Make chain-monitor
make