GithubHelp home page GithubHelp logo

momok88 / trace-dumper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scroll-tech/trace-dumper

0.0 0.0 0.0 494 KB

License: MIT License

Shell 0.14% Go 7.81% Makefile 0.23% Dockerfile 0.06% Solidity 91.77%

trace-dumper's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.