Skip to content

Commit 20b07dc

Browse files
committed
Merge branch 'refs/heads/staging' into fix-go-lint
# Conflicts: # examples/validating-public-input/contracts/src/FibonacciValidator.sol
2 parents 7c499a8 + 33bbe91 commit 20b07dc

19 files changed

Lines changed: 237 additions & 835 deletions

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_5_0_0.pub \
201213
--program-id-file ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.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 \

config-files/config-aggregator-docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ bls:
2222
## Aggregator Configurations
2323
aggregator:
2424
server_ip_port_address: 0.0.0.0:8090
25-
bls_public_key_compendium_address: 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44
26-
avs_service_manager_address: 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690
25+
bls_public_key_compendium_address: '0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44'
26+
avs_service_manager_address: '0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690'
2727
enable_metrics: true
2828
metrics_ip_port_address: 0.0.0.0:9091
2929
telemetry_ip_port_address: localhost:4001

config-files/config-aggregator-ethereum-package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ bls:
2222
## Aggregator Configurations
2323
aggregator:
2424
server_ip_port_address: localhost:8090
25-
bls_public_key_compendium_address: 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44
26-
avs_service_manager_address: 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690
25+
bls_public_key_compendium_address: '0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44'
26+
avs_service_manager_address: '0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690'
2727
enable_metrics: true
2828
metrics_ip_port_address: localhost:9091
2929
telemetry_ip_port_address: localhost:4001

config-files/config-aggregator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ bls:
2929
## Aggregator Configurations
3030
aggregator:
3131
server_ip_port_address: localhost:8090
32-
bls_public_key_compendium_address: 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44
33-
avs_service_manager_address: 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690
32+
bls_public_key_compendium_address: '0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44'
33+
avs_service_manager_address: '0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690'
3434
enable_metrics: true
3535
metrics_ip_port_address: localhost:9091
3636
telemetry_ip_port_address: localhost:4001
@@ -49,8 +49,8 @@ aggregator:
4949
## Operator Configurations
5050
# operator:
5151
# aggregator_rpc_server_ip_port_address: localhost:8090
52-
# address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
53-
# earnings_receiver_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
52+
# address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
53+
# earnings_receiver_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
5454
# delegation_approver_address: "0x0000000000000000000000000000000000000000"
5555
# staker_opt_out_window_blocks: 0
5656
# metadata_url: "https://yetanotherco.github.io/operator_metadata/metadata.json"

config-files/config-batcher-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ batcher:
2929
metrics_port: 9093
3030
telemetry_ip_port_address: localhost:4001
3131
non_paying:
32-
address: 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 # Anvil address 9
32+
address: '0xa0Ee7A142d267C1f36714E4a8F75612F20a79720' # Anvil address 9
3333
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1

config-files/config-batcher-ethereum-package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ batcher:
2727
metrics_port: 9093
2828
telemetry_ip_port_address: localhost:4001
2929
non_paying:
30-
address: 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 # Anvil address 9
30+
address: '0xa0Ee7A142d267C1f36714E4a8F75612F20a79720' # Anvil address 9
3131
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1

config-files/config-batcher.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ batcher:
2929
metrics_port: 9093
3030
telemetry_ip_port_address: localhost:4001
3131
non_paying:
32-
address: 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 # Anvil address 9
32+
address: '0xa0Ee7A142d267C1f36714E4a8F75612F20a79720' # Anvil address 9
3333
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1

config-files/config-operator-1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ bls:
2323
operator:
2424
aggregator_rpc_server_ip_port_address: localhost:8090
2525
operator_tracker_ip_port_address: http://localhost:4001
26-
address: 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
27-
earnings_receiver_address: 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
26+
address: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
27+
earnings_receiver_address: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
2828
delegation_approver_address: '0x0000000000000000000000000000000000000000'
2929
staker_opt_out_window_blocks: 0
3030
metadata_url: 'https://yetanotherco.github.io/operator_metadata/metadata.json'

config-files/config-operator-2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ bls:
2323
operator:
2424
aggregator_rpc_server_ip_port_address: localhost:8090
2525
operator_tracker_ip_port_address: http://localhost:4001
26-
address: 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC
27-
earnings_receiver_address: 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC
26+
address: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
27+
earnings_receiver_address: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
2828
delegation_approver_address: '0x0000000000000000000000000000000000000000'
2929
staker_opt_out_window_blocks: 0
3030
metadata_url: 'https://yetanotherco.github.io/operator_metadata/metadata.json'

config-files/config-operator-3.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ bls:
2323
operator:
2424
aggregator_rpc_server_ip_port_address: localhost:8090
2525
operator_tracker_ip_port_address: http://localhost:4001
26-
address: 0x90F79bf6EB2c4f870365E785982E1f101E93b906
27-
earnings_receiver_address: 0x90F79bf6EB2c4f870365E785982E1f101E93b906
26+
address: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
27+
earnings_receiver_address: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
2828
delegation_approver_address: '0x0000000000000000000000000000000000000000'
2929
staker_opt_out_window_blocks: 0
3030
metadata_url: 'https://yetanotherco.github.io/operator_metadata/metadata.json'

0 commit comments

Comments
 (0)