Skip to content

Commit 3574467

Browse files
chore(dev): targets to verify aggregated proof for every network (#1943)
1 parent 72583d9 commit 3574467

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

Makefile

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
SHELL := /bin/bash
44
OS := $(shell uname -s)
55

6+
NETWORK ?= devnet # devnet | holesky-stage | holesky
7+
ifeq ($(NETWORK),holesky)
8+
RPC_URL ?= https://ethereum-holesky-rpc.publicnode.com
9+
BEACON_URL ?= https://eth-beacon-chain-holesky.drpc.org/rest/
10+
else ifeq ($(ENVIRONMENT), holesky-stage)
11+
RPC_URL ?= https://ethereum-holesky-rpc.publicnode.com
12+
BEACON_URL ?= https://eth-beacon-chain-holesky.drpc.org/rest/
13+
else
14+
RPC_URL ?= http://localhost:8545
15+
BEACON_URL ?= http://localhost:58801
16+
endif
17+
618
CONFIG_FILE?=config-files/config.yaml
719
export OPERATOR_ADDRESS ?= $(shell yq -r '.operator.address' $(CONFIG_FILE))
820
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
@@ -190,29 +202,29 @@ start_proof_aggregator_gpu: is_aggregator_set reset_last_aggregated_block ## Sta
190202
start_proof_aggregator_gpu_ethereum_package: is_aggregator_set reset_last_aggregated_block ## Starts proof aggregator with proving activated in ethereum package
191203
AGGREGATOR=$(AGGREGATOR) SP1_PROVER=cuda cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,gpu --bin proof_aggregator -- config-files/config-proof-aggregator-ethereum-package.yaml
192204

193-
verify_aggregated_proof_sp1_holesky_stage:
194-
@echo "Verifying SP1 in aggregated proofs on holesky..."
205+
verify_aggregated_proof_sp1:
206+
@echo "Verifying SP1 in aggregated proofs on $(NETWORK)..."
195207
@cd batcher/aligned/ && \
196208
cargo run verify-agg-proof \
197-
--network holesky-stage \
209+
--network $(NETWORK) \
198210
--from-block $(FROM_BLOCK) \
199211
--proving_system SP1 \
200212
--public_input ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.pub \
201213
--program-id-file ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.vk \
202214
--beacon_url $(BEACON_URL) \
203-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
215+
--rpc_url $(RPC_URL)
204216

205-
verify_aggregated_proof_risc0_holesky_stage:
206-
@echo "Verifying RISC0 in aggregated proofs on holesky..."
217+
verify_aggregated_proof_risc0:
218+
@echo "Verifying RISC0 in aggregated proofs on $(NETWORK)..."
207219
@cd batcher/aligned/ && \
208220
cargo run verify-agg-proof \
209-
--network holesky-stage \
221+
--network $(NETWORK) \
210222
--from-block $(FROM_BLOCK) \
211223
--proving_system Risc0 \
212224
--program-id-file ../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_2_0.bin \
213225
--public_input ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.pub \
214226
--beacon_url $(BEACON_URL) \
215-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
227+
--rpc_url $(RPC_URL)
216228

217229
install_aggregation_mode: ## Install the aggregation mode with proving enabled
218230
cargo install --path aggregation_mode --features prove,gpu --bin proof_aggregator
@@ -457,10 +469,6 @@ build_batcher_client:
457469
batcher/target/release/aligned:
458470
@cd batcher/aligned && cargo b --release
459471

460-
461-
RPC_URL=http://localhost:8545
462-
NETWORK=devnet # devnet | holesky-stage | holesky
463-
464472
batcher_send_sp1_task:
465473
@echo "Sending SP1 fibonacci task to Batcher..."
466474
@cd batcher/aligned/ && cargo run --release -- submit \

0 commit comments

Comments
 (0)