{"id":21970071,"url":"https://github.com/scroll-tech/trace-dumper","last_synced_at":"2025-08-21T17:31:23.297Z","repository":{"id":63746935,"uuid":"568596110","full_name":"scroll-tech/trace-dumper","owner":"scroll-tech","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-29T09:31:39.000Z","size":487,"stargazers_count":43,"open_issues_count":1,"forks_count":14,"subscribers_count":16,"default_branch":"dev","last_synced_at":"2024-12-13T01:11:46.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scroll-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-21T01:39:40.000Z","updated_at":"2024-09-24T01:04:40.000Z","dependencies_parsed_at":"2024-06-22T06:33:12.632Z","dependency_job_id":"16a75210-e33f-481c-a015-92da07b32430","html_url":"https://github.com/scroll-tech/trace-dumper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Ftrace-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Ftrace-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Ftrace-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Ftrace-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scroll-tech","download_url":"https://codeload.github.com/scroll-tech/trace-dumper/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230523755,"owners_count":18239444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T14:30:47.842Z","updated_at":"2024-12-20T02:06:04.802Z","avatar_url":"https://github.com/scroll-tech.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trace-dumper\n\nA very simple tool, it can deploy contract and call contract api and get trace store into file just in one cmd.\n\n## upgrade dependence\n\n1. upgrade go mod\n\n```\ngo get -v github.com/scroll-tech/go-ethereum@staging // change `staging` to a specific tag/branch here\ngo mod tidy\n```\n\n2. manaully edit `scrolltech/l2geth`'s tag in `docker/l2geth/Dockerfile` to the corresponding version\n\nFor example, `scrolltech/l2geth:prealpha-v3.1`\n\n## make and start l2geth docker\n\ncreate environment (**need to keep it running**)\n\n```\nmake docker\ndocker run -it -p 8545:8545 -p 8546:8546 --rm trace-dumper/l2geth:latest\n```\n\n## dump traces\n\n```\n# build trace_dumper\nmake trace_dumper\n\n# --help show detail about flags.\n./bin/trace_dumper --help\n\n# without `-wrap` get the origin result from sdk.\n./bin/trace_dumper -dump erc20 # options: erc20, native, nft, greeter, sushi, dao, uniswapv2, multi_uniswapv2\n\n# `-wrap` add json rpc wrap, in order to get the same struct when called by postman.\n./bin/trace_dumper -dump erc20 -wrap\n```\n\n## show trace list\n\n```\nls -l ./tracedata/erc20_*.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscroll-tech%2Ftrace-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscroll-tech%2Ftrace-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscroll-tech%2Ftrace-dumper/lists"}