@@ -151,11 +151,21 @@ anvil_start_with_more_prefunded_accounts:
151151 anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7 -a 2000
152152
153153__AGGREGATION_MODE__ : # # ____
154- start_proof_aggregator_local : # # Start the proof aggregator locally using Mock Verifier Contract
155- cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml
156154
157- start_proof_aggregator_local_with_proving : # # Start the proof aggregator locally using SP1 Verifier Contract
158- cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
155+ is_aggregator_set :
156+ @if [ -z " $( AGGREGATOR) " ]; then \
157+ echo " Error: AGGREGATOR is not set. Please provide arg AGGREGATOR='sp1' or 'risc0'." ; \
158+ exit 1; \
159+ fi
160+
161+ start_proof_aggregator_dev : is_aggregator_set # # Starts proof aggregator with mock proofs (DEV mode)
162+ AGGREGATOR=$(AGGREGATOR ) RISC0_DEV_MODE=1 cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml
163+
164+ start_proof_aggregator : is_aggregator_set # # Starts proof aggregator with proving activated
165+ AGGREGATOR=$(AGGREGATOR ) cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
166+
167+ start_proof_aggregator_gpu : is_aggregator_set # # Starts proof aggregator with proving + GPU acceleration (CUDA)
168+ AGGREGATOR=$(AGGREGATOR ) SP1_PROVER=cuda cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,gpu -- config-files/config-proof-aggregator.yaml
159169
160170_AGGREGATOR_ :
161171
@@ -699,11 +709,11 @@ deploy_proof_aggregator:
699709 @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/deploy_proof_aggregator.sh
700710
701711build_aligned_contracts :
702- @cd contracts/src/core && forge build
712+ @cd contracts/src/core && forge build --via-ir
703713
704714show_aligned_error_codes :
705715 @echo " \nAlignedLayerServiceManager errors:"
706- @cd contracts && forge inspect src/core/IAlignedLayerServiceManager.sol:IAlignedLayerServiceManager errors
716+ @cd contracts && forge inspect src/core/IAlignedLayerServiceManager.sol:IAlignedLayerServiceManager errors
707717 @echo " \nBatcherPaymentService errors:"
708718 @cd contracts && forge inspect src/core/BatcherPaymentService.sol:BatcherPaymentService errors
709719
0 commit comments