GitXplorerGitXplorer
s

chain-monitor

public
11 stars
11 forks
2 issues

Commits

List of commits on branch main.
Verified
2b944adf9bb118d34592dcf0ff080081ca1117b5

ci: fix go-proxy (#126)

ssbaizet-ledger committed 15 days ago
Verified
5d5f4578e3d7f02492e3fa67e8b696d90d739cd0

feat: Allow Environment Variables to override config.json (#125)

ddghelm committed a month ago
Verified
5accd3bbd12e5ed1b15f604c37be5ea9ee77b3f5

feat: support alternative gas token (#124)

yyiweichi committed a month ago
Verified
f520420ae3517ff7edd739cee4ce52ba9e605b9f

ci: update base image to go-alpine-builder:1.21 (#123)

ssbaizet-ledger committed 2 months ago
Verified
e760b52ed7405d6803b0f2bbf59c60e757152a00

feat: add an ignored token list (#121)

ccolinlyguo committed 2 months ago
Verified
d3002773e954df1b4dafae73120e3016d1add1c0

fix: exit (#122)

ccolinlyguo committed 2 months ago

README

The README file for this repository.

chain-monitor

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:

  1. L2 withdraw root message hash check.
  2. ERC20, ERC721, ERC1155's token id and amount check.
  3. ETH balance check.
  4. Event that happened on L1/L2 can match.

Dependencies

  • 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

Build chain-monitor

  • 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