Skip to content

yz89/trace-dumper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trace-dumper

A very simple tool, it can deploy contract and call contract api and get trace store into file just in one cmd.

upgrade dependence

  1. upgrade go mod
go get -v github.com/scroll-tech/go-ethereum@staging // change `staging` to a specific tag/branch here
go mod tidy
  1. manaully edit scrolltech/l2geth's tag in docker/l2geth/Dockerfile to the corresponding version

For example, scrolltech/l2geth:prealpha-v3.1

make and start l2geth docker

create environment (need to keep it running)

make docker
docker run -it -p 8545:8545 -p 8546:8546 --rm trace-dumper/l2geth:latest

dump traces

# build trace_dumper
make trace_dumper

# --help show detail about flags.
./bin/trace_dumper --help

# without `-wrap` get the origin result from sdk.
./bin/trace_dumper -dump erc20 # options: erc20, native, nft, greeter, sushi, dao, uniswapv2, multi_uniswapv2

# `-wrap` add json rpc wrap, in order to get the same struct when called by postman.
./bin/trace_dumper -dump erc20 -wrap

show trace list

ls -l ./tracedata/erc20_*.json

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 91.8%
  • Go 7.8%
  • Other 0.4%