@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66CONFIG_FILE? =config-files/config.yaml
77AGG_CONFIG_FILE? =config-files/config-aggregator.yaml
88
9- OPERATOR_VERSION =v0.8 .0
9+ OPERATOR_VERSION =v0.10 .0
1010
1111ifeq ($(OS ) ,Linux)
1212 BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux
@@ -17,7 +17,15 @@ ifeq ($(OS),Darwin)
1717endif
1818
1919ifeq ($(OS ) ,Linux)
20- export LD_LIBRARY_PATH := $(CURDIR)/operator/risc_zero/lib:$(CURDIR)/operator/mina/lib:$(CURDIR)/operator/mina_account/lib
20+ LD_LIBRARY_PATH += $(CURDIR)/operator/risc_zero/lib:$(CURDIR)/operator/mina/lib:$(CURDIR)/operator/mina_account/lib
21+ endif
22+
23+ ifeq ($(OS ) ,Linux)
24+ BUILD_OPERATOR = $(MAKE) build_operator_linux
25+ endif
26+
27+ ifeq ($(OS ) ,Darwin)
28+ BUILD_OPERATOR = $(MAKE) build_operator_macos
2129endif
2230
2331
@@ -85,9 +93,9 @@ anvil_upgrade_add_aggregator:
8593 @echo " Adding Aggregator to Aligned Contracts..."
8694 . contracts/scripts/anvil/upgrade_add_aggregator_to_service_manager.sh
8795
88- anvil_add_type_hash_to_batcher_payment_service :
89- @echo " Adding Type Hash to Batcher Payment Service ..."
90- . contracts/scripts/anvil/upgrade_add_type_hash_to_batcher_payment_service .sh
96+ anvil_upgrade_initialize_disable_verifiers :
97+ @echo " Initializing disabled verifiers ..."
98+ . contracts/scripts/anvil/upgrade_disabled_verifiers_in_service_manager .sh
9199
92100lint_contracts :
93101 @cd contracts && npm run lint:sol
@@ -124,6 +132,14 @@ operator_full_registration: operator_get_eth operator_register_with_eigen_layer
124132operator_register_and_start : operator_full_registration operator_start
125133
126134build_operator : deps
135+ $(BUILD_OPERATOR )
136+
137+ build_operator_macos :
138+ @echo " Building Operator..."
139+ @go build -ldflags " -X main.Version=$( OPERATOR_VERSION) " -o ./operator/build/aligned-operator ./operator/cmd/main.go
140+ @echo " Operator built into /operator/build/aligned-operator"
141+
142+ build_operator_linux :
127143 @echo " Building Operator..."
128144 @go build -ldflags " -X main.Version=$( OPERATOR_VERSION) -r $( LD_LIBRARY_PATH) " -o ./operator/build/aligned-operator ./operator/cmd/main.go
129145 @echo " Operator built into /operator/build/aligned-operator"
@@ -218,6 +234,23 @@ operator_register_with_aligned_layer:
218234operator_deposit_and_register : operator_deposit_into_strategy operator_register_with_aligned_layer
219235
220236
237+ # The verifier ID to enable or disable corresponds to the index of the verifier in the `ProvingSystemID` enum.
238+ verifier_enable_devnet :
239+ @echo " Enabling verifier with id: $( VERIFIER_ID) "
240+ PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 RPC_URL=http://localhost:8545 OUTPUT_PATH=./script/output/devnet/alignedlayer_deployment_output.json ./contracts/scripts/enable_verifier.sh $(VERIFIER_ID )
241+
242+ verifier_disable_devnet :
243+ @echo " Disabling verifier with id: $( VERIFIER_ID) "
244+ PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 RPC_URL=http://localhost:8545 OUTPUT_PATH=./script/output/devnet/alignedlayer_deployment_output.json ./contracts/scripts/disable_verifier.sh $(VERIFIER_ID )
245+
246+ verifier_enable :
247+ @echo " Enabling verifier with ID: $( VERIFIER_ID) "
248+ @. contracts/scripts/.env && . contracts/scripts/enable_verifier.sh $(VERIFIER_ID )
249+
250+ verifier_disable :
251+ @echo " Disabling verifier with ID: $( VERIFIER_ID) "
252+ @. contracts/scripts/.env && . contracts/scripts/disable_verifier.sh $(VERIFIER_ID )
253+
221254__BATCHER__ :
222255
223256BURST_SIZE =5
@@ -295,6 +328,16 @@ batcher_send_risc0_task:
295328 --rpc_url $(RPC_URL) \
296329 --network $(NETWORK)
297330
331+ batcher_send_risc0_task_no_pub_input :
332+ @echo " Sending Risc0 fibonacci task to Batcher..."
333+ @cd batcher/aligned/ && cargo run --release -- submit \
334+ --proving_system Risc0 \
335+ --proof ../../scripts/test_files/risc_zero/no_public_inputs/risc_zero_no_pub_input.proof \
336+ --vm_program ../../scripts/test_files/risc_zero/no_public_inputs/no_pub_input_id.bin \
337+ --proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
338+ --rpc_url $(RPC_URL) \
339+ --payment_service_addr $(BATCHER_PAYMENTS_CONTRACT_ADDRESS)
340+
298341batcher_send_risc0_burst :
299342 @echo " Sending Risc0 fibonacci task to Batcher..."
300343 @cd batcher/aligned/ && cargo run --release -- submit \
@@ -436,6 +479,7 @@ generate_groth16_ineq_proof: ## Run the gnark_plonk_bn254_script
436479 @go run scripts/test_files/gnark_groth16_bn254_infinite_script/cmd/main.go 1
437480
438481__METRICS__ :
482+ # Prometheus and graphana
439483run_metrics : # # Run metrics using metrics-docker-compose.yaml
440484 @echo " Running metrics..."
441485 @docker compose -f metrics-docker-compose.yaml up
@@ -474,9 +518,9 @@ upgrade_add_aggregator: ## Add Aggregator to Aligned Contracts
474518 @echo " Adding Aggregator to Aligned Contracts..."
475519 @. contracts/scripts/.env && . contracts/scripts/upgrade_add_aggregator_to_service_manager.sh
476520
477- upgrade_batcher_payments_add_type_hash : # # Add Type Hash to Batcher Payment Service
478- @echo " Adding Type Hash to Batcher Payment Service..."
479- @. contracts/scripts/.env && . contracts/scripts/upgrade_add_type_hash_to_batcher_payment_service .sh
521+ upgrade_initialize_disabled_verifiers :
522+ @echo " Adding disabled verifiers to Aligned Service Manager ..."
523+ @. contracts/scripts/.env && . contracts/scripts/upgrade_disabled_verifiers_in_service_manager .sh
480524
481525deploy_verify_batch_inclusion_caller :
482526 @echo " Deploying VerifyBatchInclusionCaller contract..."
@@ -536,6 +580,11 @@ generate_sp1_fibonacci_proof:
536580 @mv scripts/test_files/sp1/fibonacci_proof_generator/script/sp1_fibonacci.proof scripts/test_files/sp1/
537581 @echo " Fibonacci proof and ELF generated in scripts/test_files/sp1 folder"
538582
583+ generate_risc_zero_empty_journal_proof :
584+ @cd scripts/test_files/risc_zero/no_public_inputs && RUST_LOG=info cargo run --release
585+ @echo " Fibonacci proof and ELF with empty journal generated in scripts/test_files/risc_zero/no_public_inputs folder"
586+
587+
539588__RISC_ZERO_FFI__ : # #
540589build_risc_zero_macos :
541590 @cd operator/risc_zero/lib && cargo build $(RELEASE_FLAG )
@@ -568,29 +617,15 @@ build_merkle_tree_macos:
568617 @cp operator/merkle_tree/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.dylib operator/merkle_tree/lib/libmerkle_tree.dylib
569618 @cp operator/merkle_tree/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.a operator/merkle_tree/lib/libmerkle_tree.a
570619
571- build_merkle_tree_macos_old :
572- @cd operator/merkle_tree_old/lib && cargo build $(RELEASE_FLAG )
573- @cp operator/merkle_tree_old/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.dylib operator/merkle_tree_old/lib/libmerkle_tree.dylib
574- @cp operator/merkle_tree_old/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.a operator/merkle_tree_old/lib/libmerkle_tree.a
575-
576620build_merkle_tree_linux :
577621 @cd operator/merkle_tree/lib && cargo build $(RELEASE_FLAG )
578622 @cp operator/merkle_tree/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.so operator/merkle_tree/lib/libmerkle_tree.so
579623 @cp operator/merkle_tree/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.a operator/merkle_tree/lib/libmerkle_tree.a
580624
581- build_merkle_tree_linux_old :
582- @cd operator/merkle_tree_old/lib && cargo build $(RELEASE_FLAG )
583- @cp operator/merkle_tree_old/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.so operator/merkle_tree_old/lib/libmerkle_tree.so
584- @cp operator/merkle_tree_old/lib/target/$(TARGET_REL_PATH ) /libmerkle_tree.a operator/merkle_tree_old/lib/libmerkle_tree.a
585-
586625test_merkle_tree_rust_ffi :
587626 @echo " Testing Merkle Tree Rust FFI source code..."
588627 @cd operator/merkle_tree/lib && RUST_MIN_STACK=83886080 cargo t --release
589628
590- test_merkle_tree_rust_ffi_old :
591- @echo " Testing Old Merkle Tree Rust FFI source code..."
592- @cd operator/merkle_tree_old/lib && RUST_MIN_STACK=83886080 cargo t --release
593-
594629test_merkle_tree_go_bindings_macos : build_merkle_tree_macos
595630 @echo " Testing Merkle Tree Go bindings..."
596631 go test ./operator/merkle_tree/... -v
@@ -603,9 +638,6 @@ test_merkle_tree_old_go_bindings_macos: build_merkle_tree_macos_old
603638 @echo " Testing Old Merkle Tree Go bindings..."
604639 go test ./operator/merkle_tree_old/... -v
605640
606- test_merkle_tree_go_bindings_linux_old : build_merkle_tree_linux_old
607- @echo " Testing Merkle Tree Go bindings..."
608- go test ./operator/merkle_tree_old/... -v
609641
610642__MINA_FFI__ : # #
611643build_mina_macos :
@@ -660,7 +692,6 @@ build_all_ffi_macos: ## Build all FFIs for macOS
660692 @$(MAKE ) build_sp1_macos
661693 @$(MAKE ) build_risc_zero_macos
662694 @$(MAKE ) build_merkle_tree_macos
663- @$(MAKE ) build_merkle_tree_macos_old
664695 @$(MAKE ) build_mina_macos
665696 @$(MAKE ) build_mina_account_macos
666697 @echo " All macOS FFIs built successfully."
@@ -670,12 +701,10 @@ build_all_ffi_linux: ## Build all FFIs for Linux
670701 @$(MAKE ) build_sp1_linux
671702 @$(MAKE ) build_risc_zero_linux
672703 @$(MAKE ) build_merkle_tree_linux
673- @$(MAKE ) build_merkle_tree_linux_old
674704 @$(MAKE ) build_mina_linux
675705 @$(MAKE ) build_mina_account_linux
676706 @echo " All Linux FFIs built successfully."
677707
678-
679708__EXPLORER__ :
680709run_explorer : explorer_run_db explorer_ecto_setup_db
681710 @cd explorer/ && \
@@ -758,11 +787,19 @@ tracker_dump_db:
758787 @echo " Dumped database successfully to /operator_tracker"
759788
760789__TELEMETRY__ :
790+ # Collector, Jaeger and Elixir API
791+ telemetry_full_start : open_telemetry_start telemetry_start
792+
793+ # Collector and Jaeger
761794open_telemetry_start : # # Run open telemetry services using telemetry-docker-compose.yaml
762- # # TODO(juarce) ADD DOCKER COMPOSE
763795 @echo " Running telemetry..."
764796 @docker compose -f telemetry-docker-compose.yaml up -d
765797
798+ open_telemetry_prod_start : # # Run open telemetry services with Cassandra using telemetry-prod-docker-compose.yaml
799+ @echo " Running telemetry for Prod..."
800+ @docker compose -f telemetry-prod-docker-compose.yaml up -d
801+
802+ # Elixir API
766803telemetry_start : telemetry_run_db telemetry_ecto_migrate # # Run Telemetry API
767804 @cd telemetry_api && \
768805 ./start.sh
0 commit comments