Skip to content

Commit ab771ef

Browse files
committed
feat: reth benchmark using OpenVM
1 parent c011495 commit ab771ef

45 files changed

Lines changed: 21709 additions & 12755 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[net]
2+
git-fetch-with-cli = true
3+
4+
# [patch."ssh://git@github.com/openvm-org/openvm.git"]
5+
# # OpenVM
6+
# openvm-sdk = { path = "../openvm/crates/sdk", default-features = false }
7+
# cargo-openvm = { path = "../openvm/crates/cli", default-features = false }
8+
# openvm-mod-circuit-builder = { path = "../openvm/crates/circuits/mod-builder", default-features = false }
9+
# openvm-poseidon2-air = { path = "../openvm/crates/circuits/poseidon2-air", default-features = false }
10+
# openvm-circuit-primitives = { path = "../openvm/crates/circuits/primitives", default-features = false }
11+
# openvm-circuit-primitives-derive = { path = "../openvm/crates/circuits/primitives/derive", default-features = false }
12+
# openvm = { path = "../openvm/crates/toolchain/openvm", default-features = false }
13+
# openvm-build = { path = "../openvm/crates/toolchain/build", default-features = false }
14+
# openvm-instructions = { path = "../openvm/crates/toolchain/instructions", default-features = false }
15+
# openvm-instructions-derive = { path = "../openvm/crates/toolchain/instructions/derive", default-features = false }
16+
# openvm-macros-common = { path = "../openvm/crates/toolchain/macros", default-features = false }
17+
# openvm-platform = { path = "../openvm/crates/toolchain/platform", default-features = false }
18+
# openvm-transpiler = { path = "../openvm/crates/toolchain/transpiler", default-features = false }
19+
# openvm-circuit = { path = "../openvm/crates/vm", default-features = false }
20+
# openvm-circuit-derive = { path = "../openvm/crates/vm/derive", default-features = false }
21+
# openvm-stark-backend = { path = "../stark-backend/crates/stark-backend", default-features = false }
22+
# openvm-stark-sdk = { path = "../stark-backend/crates/stark-sdk", default-features = false }
23+
24+
# # Extensions
25+
# openvm-algebra-circuit = { path = "../openvm/extensions/algebra/circuit", default-features = false }
26+
# openvm-algebra-transpiler = { path = "../openvm/extensions/algebra/transpiler", default-features = false }
27+
# openvm-algebra-guest = { path = "../openvm/extensions/algebra/guest", default-features = false }
28+
# openvm-algebra-moduli-setup = { path = "../openvm/extensions/algebra/moduli-setup", default-features = false }
29+
# openvm-algebra-complex-macros = { path = "../openvm/extensions/algebra/guest/src/field/complex-macros", default-features = false }
30+
# openvm-bigint-circuit = { path = "../openvm/extensions/bigint/circuit", default-features = false }
31+
# openvm-bigint-transpiler = { path = "../openvm/extensions/bigint/transpiler", default-features = false }
32+
# openvm-bigint-guest = { path = "../openvm/extensions/bigint/guest", default-features = false }
33+
# openvm-ecc-circuit = { path = "../openvm/extensions/ecc/circuit", default-features = false }
34+
# openvm-ecc-transpiler = { path = "../openvm/extensions/ecc/transpiler", default-features = false }
35+
# openvm-ecc-guest = { path = "../openvm/extensions/ecc/guest", default-features = false }
36+
# openvm-ecc-sw-setup = { path = "../openvm/extensions/ecc/sw-setup", default-features = false }
37+
# openvm-keccak256-circuit = { path = "../openvm/extensions/keccak256/circuit", default-features = false }
38+
# openvm-keccak256-transpiler = { path = "../openvm/extensions/keccak256/transpiler", default-features = false }
39+
# openvm-keccak256-guest = { path = "../openvm/extensions/keccak256/guest", default-features = false }
40+
# openvm-native-circuit = { path = "../openvm/extensions/native/circuit", default-features = false }
41+
# openvm-native-compiler = { path = "../openvm/extensions/native/compiler", default-features = false }
42+
# openvm-native-compiler-derive = { path = "../openvm/extensions/native/compiler/derive", default-features = false }
43+
# openvm-native-recursion = { path = "../openvm/extensions/native/recursion", default-features = false }
44+
# openvm-pairing-circuit = { path = "../openvm/extensions/pairing/circuit", default-features = false }
45+
# openvm-pairing-transpiler = { path = "../openvm/extensions/pairing/transpiler", default-features = false }
46+
# openvm-pairing-guest = { path = "../openvm/extensions/pairing/guest", default-features = false }
47+
# openvm-rv32-adapters = { path = "../openvm/extensions/rv32-adapters", default-features = false }
48+
# openvm-rv32im-circuit = { path = "../openvm/extensions/rv32im/circuit", default-features = false }
49+
# openvm-rv32im-transpiler = { path = "../openvm/extensions/rv32im/transpiler", default-features = false }
50+
# openvm-rv32im-guest = { path = "../openvm/extensions/rv32im/guest", default-features = false }
51+
52+
# [patch.crates-io]
53+
# revm = { path = "../revm/crates/revm" }
54+
# revm-primitives = { path = "../revm/crates/primitives" }
55+
# revm-interpreter = { path = "../revm/crates/interpreter" }
56+
# revm-precompile = { path = "../revm/crates/precompile" }

.env.example

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
RPC_1=
2-
RPC_10=
3-
RPC_59144=
4-
5-
# environment variables for prover network
6-
SP1_PROVER=network
7-
SP1_PRIVATE_KEY=

.github/workflows/pr.yml

Lines changed: 16 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- "main"
7+
# Disable for now
78
pull_request:
89

910
concurrency:
@@ -20,44 +21,25 @@ jobs:
2021
- name: "Checkout sources"
2122
uses: "actions/checkout@v4"
2223

24+
# TEMPORARY
25+
- name: Give GitHub Actions access to openvm-org
26+
uses: webfactory/ssh-agent@v0.9.0
27+
with:
28+
ssh-private-key: |
29+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
30+
2331
- name: "Update lock files"
2432
run: |
2533
cargo tree
2634
(cd ./bin/client-eth && cargo tree)
27-
(cd ./bin/client-op && cargo tree)
28-
(cd ./bin/client-linea && cargo tree)
2935
3036
- name: "Assert no changes"
3137
run: |
32-
if [ -n "$(git status --porcelain)" ]; then
38+
if [ -n "$(git status --porcelain)" ]; then
3339
echo "Lock files not up to date"
3440
exit 1
3541
fi
3642
37-
deps-semver:
38-
name: "Check upstream SemVer violations"
39-
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
40-
steps:
41-
- name: "Checkout sources"
42-
uses: "actions/checkout@v4"
43-
44-
- name: "Install sp1up"
45-
run: |
46-
curl -L https://sp1.succinct.xyz | bash
47-
echo "$HOME/.sp1/bin" >> $GITHUB_PATH
48-
49-
- name: "Install SP1 toolchain"
50-
run: |
51-
sp1up
52-
53-
- name: "Remove lock files"
54-
run: |
55-
find -name Cargo.lock -type f -exec rm {} \;
56-
57-
- name: "Build without lock files"
58-
run: |
59-
cargo build --all --all-targets
60-
6143
fmt:
6244
name: "Check code format"
6345
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
@@ -73,67 +55,13 @@ jobs:
7355
components: "rustfmt"
7456
override: true
7557

58+
# TEMPORARY
59+
- name: Give GitHub Actions access to openvm-org
60+
uses: webfactory/ssh-agent@v0.9.0
61+
with:
62+
ssh-private-key: |
63+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
64+
7665
- name: "Check Rust format"
7766
run: |
7867
cargo fmt --all -- --check
79-
80-
clippy:
81-
name: "Run clippy lints"
82-
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
83-
steps:
84-
- name: "Checkout sources"
85-
uses: "actions/checkout@v4"
86-
87-
- name: "Install sp1up"
88-
run: |
89-
curl -L https://sp1.succinct.xyz | bash
90-
echo "$HOME/.sp1/bin" >> $GITHUB_PATH
91-
92-
- name: "Install SP1 toolchain"
93-
run: |
94-
sp1up
95-
96-
# This step is necessary to generate the ELF files.
97-
- name: "Build"
98-
run: |
99-
cargo build --all --all-targets
100-
101-
- name: "Run clippy lints"
102-
run: |
103-
cargo clippy --all --all-targets -- -D warnings
104-
105-
tests:
106-
name: "Run tests"
107-
runs-on:
108-
["runs-on", "runner=64cpu-linux-x64", "run-id=${{ github.run_id }}"]
109-
env:
110-
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
111-
steps:
112-
- name: "Checkout sources"
113-
uses: "actions/checkout@v4"
114-
115-
- name: "Install sp1up"
116-
run: |
117-
curl -L https://sp1.succinct.xyz | bash
118-
echo "$HOME/.sp1/bin" >> $GITHUB_PATH
119-
120-
- name: "Install SP1 toolchain"
121-
run: |
122-
sp1up
123-
124-
- name: "Set up test fixture"
125-
run: |
126-
git clone https://github.com/succinctlabs/rsp-tests --branch 2024-09-11 --depth 1 ../rsp-tests
127-
cd ../rsp-tests/
128-
docker compose up -d
129-
130-
- name: "Use local test fixture"
131-
run: |
132-
echo "RPC_1=http://localhost:9545/main/evm/1" >> $GITHUB_ENV
133-
echo "RPC_10=http://localhost:9545/main/evm/10" >> $GITHUB_ENV
134-
echo "RPC_59144=http://localhost:9545/main/evm/59144" >> $GITHUB_ENV
135-
136-
- name: "Run tests"
137-
run: |
138-
export RUST_LOG=info
139-
cargo test --all -- --nocapture

0 commit comments

Comments
 (0)