|
3 | 3 | SHELL := /bin/bash
|
4 | 4 | OS := $(shell uname -s)
|
5 | 5 |
|
| 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 | + |
6 | 18 | CONFIG_FILE?=config-files/config.yaml
|
7 | 19 | export OPERATOR_ADDRESS ?= $(shell yq -r '.operator.address' $(CONFIG_FILE))
|
8 | 20 | AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
|
@@ -190,29 +202,29 @@ start_proof_aggregator_gpu: is_aggregator_set reset_last_aggregated_block ## Sta
|
190 | 202 | start_proof_aggregator_gpu_ethereum_package: is_aggregator_set reset_last_aggregated_block ## Starts proof aggregator with proving activated in ethereum package
|
191 | 203 | 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
|
192 | 204 |
|
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)..." |
195 | 207 | @cd batcher/aligned/ && \
|
196 | 208 | cargo run verify-agg-proof \
|
197 |
| - --network holesky-stage \ |
| 209 | + --network $(NETWORK) \ |
198 | 210 | --from-block $(FROM_BLOCK) \
|
199 | 211 | --proving_system SP1 \
|
200 | 212 | --public_input ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.pub \
|
201 | 213 | --program-id-file ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.vk \
|
202 | 214 | --beacon_url $(BEACON_URL) \
|
203 |
| - --rpc_url https://ethereum-holesky-rpc.publicnode.com |
| 215 | + --rpc_url $(RPC_URL) |
204 | 216 |
|
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)..." |
207 | 219 | @cd batcher/aligned/ && \
|
208 | 220 | cargo run verify-agg-proof \
|
209 |
| - --network holesky-stage \ |
| 221 | + --network $(NETWORK) \ |
210 | 222 | --from-block $(FROM_BLOCK) \
|
211 | 223 | --proving_system Risc0 \
|
212 | 224 | --program-id-file ../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_2_0.bin \
|
213 | 225 | --public_input ../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_0.pub \
|
214 | 226 | --beacon_url $(BEACON_URL) \
|
215 |
| - --rpc_url https://ethereum-holesky-rpc.publicnode.com |
| 227 | + --rpc_url $(RPC_URL) |
216 | 228 |
|
217 | 229 | install_aggregation_mode: ## Install the aggregation mode with proving enabled
|
218 | 230 | cargo install --path aggregation_mode --features prove,gpu --bin proof_aggregator
|
@@ -457,10 +469,6 @@ build_batcher_client:
|
457 | 469 | batcher/target/release/aligned:
|
458 | 470 | @cd batcher/aligned && cargo b --release
|
459 | 471 |
|
460 |
| - |
461 |
| -RPC_URL=http://localhost:8545 |
462 |
| -NETWORK=devnet # devnet | holesky-stage | holesky |
463 |
| - |
464 | 472 | batcher_send_sp1_task:
|
465 | 473 | @echo "Sending SP1 fibonacci task to Batcher..."
|
466 | 474 | @cd batcher/aligned/ && cargo run --release -- submit \
|
|
0 commit comments