@@ -151,11 +151,24 @@ 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
169+
170+ install_aggregation_mode : # # Install the aggregation mode with proving enabled
171+ cargo install --path aggregation_mode --features prove
159172
160173_AGGREGATOR_ :
161174
@@ -703,11 +716,11 @@ upgrade_proof_aggregator:
703716 @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/upgrade_proof_aggregator.sh
704717
705718build_aligned_contracts :
706- @cd contracts/src/core && forge build
719+ @cd contracts/src/core && forge build --via-ir
707720
708721show_aligned_error_codes :
709722 @echo " \nAlignedLayerServiceManager errors:"
710- @cd contracts && forge inspect src/core/IAlignedLayerServiceManager.sol:IAlignedLayerServiceManager errors
723+ @cd contracts && forge inspect src/core/IAlignedLayerServiceManager.sol:IAlignedLayerServiceManager errors
711724 @echo " \nBatcherPaymentService errors:"
712725 @cd contracts && forge inspect src/core/BatcherPaymentService.sol:BatcherPaymentService errors
713726
0 commit comments