Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Remove assembly in geth-utils #1553

Merged
merged 5 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions geth-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@

The module `gethutil` tried to provide identical output from APIs `debug_trace*` of latest `geth` as test vectors for [`zkevm-circuits`](https://github.com/privacy-scaling-explorations/zkevm-circuits).

## Usage

<!-- ### CLI Usage -->
<!-- TODO: Implement a CLI to consume bytecode and output logs -->

### Library Usage

For [`./example/mstore_mload.go`](./example/mstore_mload.go) as an example, it defines bytecode directly by builder `asm`, then write the logs produced by `TraceTx` to stdout. To reproduce the logs, run:

```bash
go run ./example/mstore_mload.go > ./mstore_mload.json
```

### Debugging

The execution traces returned by geth omit some information like execution
Expand Down
7 changes: 1 addition & 6 deletions geth-utils/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ fn main() {
}

// Files the lib depends on that should recompile the lib
let dep_files = vec![
"./gethutil/asm.go",
"./gethutil/trace.go",
"./gethutil/util.go",
"./go.mod",
];
let dep_files = vec!["./gethutil/trace.go", "./go.mod"];
for file in dep_files {
println!("cargo:rerun-if-changed={}", file);
}
Expand Down
31 changes: 0 additions & 31 deletions geth-utils/example/add_sub.go

This file was deleted.

31 changes: 0 additions & 31 deletions geth-utils/example/msize.go

This file was deleted.

31 changes: 0 additions & 31 deletions geth-utils/example/mstore_mload.go

This file was deleted.

31 changes: 0 additions & 31 deletions geth-utils/example/sstore_sload.go

This file was deleted.

231 changes: 0 additions & 231 deletions geth-utils/gethutil/asm.go

This file was deleted.

Loading
Loading