@@ -7,7 +7,7 @@ CONFIG_FILE?=config-files/config.yaml
77export OPERATOR_ADDRESS ?= $(shell yq -r '.operator.address' $(CONFIG_FILE ) )
88AGG_CONFIG_FILE? =config-files/config-aggregator.yaml
99
10- OPERATOR_VERSION =v0.12.2
10+ OPERATOR_VERSION =v0.13.0
1111
1212ifeq ($(OS ) ,Linux)
1313 BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux
@@ -290,6 +290,24 @@ verifier_disable:
290290 @echo " Disabling verifier with ID: $( VERIFIER_ID) "
291291 @. contracts/scripts/.env && . contracts/scripts/disable_verifier.sh $(VERIFIER_ID )
292292
293+ strategies_get_weight :
294+ @echo " Getting weight of strategy: $( STRATEGY_INDEX) "
295+ @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/get_strategy_weight.sh $(STRATEGY_INDEX )
296+
297+ strategies_update_weight :
298+ @echo " Updating strategy weights: "
299+ @echo " STRATEGY_INDICES: $( STRATEGY_INDICES) "
300+ @echo " NEW_MULTIPLIERS: $( NEW_MULTIPLIERS) "
301+ @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/update_strategy_weight.sh $(STRATEGY_INDICES ) $(NEW_MULTIPLIERS )
302+
303+ strategies_remove :
304+ @echo " Removing strategies: $( INDICES_TO_REMOVE) "
305+ @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/remove_strategy.sh $(INDICES_TO_REMOVE )
306+
307+ strategies_get_addresses :
308+ @echo " Getting strategy addresses"
309+ @. contracts/scripts/.env.$(NETWORK ) && . contracts/scripts/get_restakeable_strategies.sh
310+
293311__BATCHER__ :
294312
295313BURST_SIZE ?= 5
@@ -486,16 +504,15 @@ task_sender_send_infinite_proofs_devnet:
486504 cargo run --release -- send-infinite-proofs \
487505 --burst-size $(BURST_SIZE ) --burst-time-secs $(BURST_TIME_SECS ) \
488506 --eth-rpc-url http://localhost:8545 \
489- --batcher-url ws://localhost:8080 \
490507 --network devnet \
491508 --proofs-dirpath $(CURDIR ) /scripts/test_files/task_sender/proofs \
492509 --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/devnet
493510
494511task_sender_test_connections_devnet :
495512 @cd batcher/aligned-task-sender && \
496513 cargo run --release -- test-connections \
497- --batcher-url ws://localhost:8080 \
498- --num-senders $( NUM_SENDERS )
514+ --num-senders $( NUM_SENDERS ) \
515+ --network devnet
499516
500517# ===== HOLESKY-STAGE =====
501518task_sender_generate_and_fund_wallets_holesky_stage :
@@ -514,21 +531,21 @@ task_sender_send_infinite_proofs_holesky_stage:
514531 cargo run --release -- send-infinite-proofs \
515532 --burst-size $(BURST_SIZE ) --burst-time-secs $(BURST_TIME_SECS ) \
516533 --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com \
517- --batcher-url wss://stage.batcher.alignedlayer.com \
518534 --network holesky-stage \
519535 --proofs-dirpath $(CURDIR ) /scripts/test_files/task_sender/proofs \
520536 --private-keys-filepath $(CURDIR ) /batcher/aligned-task-sender/wallets/holesky-stage
521537
522538task_sender_test_connections_holesky_stage :
523539 @cd batcher/aligned-task-sender && \
524540 cargo run --release -- test-connections \
525- --batcher-url wss://stage.batcher.alignedlayer.com \
526- --num-senders $( NUM_SENDERS )
541+ --num-senders $( NUM_SENDERS ) \
542+ --network holesky-stage
527543
528544__UTILS__ :
529545aligned_get_user_balance_devnet :
530546 @cd batcher/aligned/ && cargo run --release -- get-user-balance \
531- --user_addr $(USER_ADDR )
547+ --user_addr $(USER_ADDR ) \
548+ --network devnet
532549
533550aligned_get_user_balance_holesky :
534551 @cd batcher/aligned/ && cargo run --release -- get-user-balance \
@@ -557,7 +574,13 @@ generate_groth16_ineq_proof: ## Run the gnark_plonk_bn254_script
557574 @go run scripts/test_files/gnark_groth16_bn254_infinite_script/cmd/main.go 1
558575
559576__METRICS__ :
560- # Prometheus and graphana
577+ # Prometheus and Grafana
578+ metrics_remove_containers :
579+ @docker stop prometheus grafana
580+ @docker rm prometheus grafana
581+ metrics_clean_db : metrics_remove_containers
582+ @docker volume rm aligned_layer_grafana_data aligned_layer_prometheus_data
583+
561584run_metrics : # # Run metrics using metrics-docker-compose.yaml
562585 @echo " Running metrics..."
563586 @docker compose -f metrics-docker-compose.yaml up
@@ -1040,11 +1063,18 @@ docker_verify_proof_submission_success:
10401063 verification=$$(aligned verify-proof-onchain \
10411064 --aligned-verification-data $$ {proof} \
10421065 --rpc_url $$(echo $(DOCKER_RPC_URL ) ) 2>&1 ); \
1066+ cat $$ {proof%.cbor}.json; \
1067+ echo " $$ verification" ; \
10431068 if echo " $$ verification" | grep -q not; then \
10441069 echo " ERROR: Proof verification failed for $$ {proof}" ; \
10451070 exit 1; \
10461071 elif echo " $$ verification" | grep -q verified; then \
10471072 echo " Proof verification succeeded for $$ {proof}" ; \
1073+ else \
1074+ echo " WARNING: Unexpected verification result for $$ {proof}" ; \
1075+ echo " Output:" ; \
1076+ echo " $$ verification" ; \
1077+ exit 1; \
10481078 fi ; \
10491079 echo " ---------------------------------------------------------------------------------------------------" ; \
10501080 done ; \
@@ -1202,3 +1232,62 @@ ansible_operator_deploy: ## Deploy the Operator. Parameters: INVENTORY
12021232 -i $(INVENTORY ) \
12031233 -e " ecdsa_keystore_path=$( ECDSA_KEYSTORE) " \
12041234 -e " bls_keystore_path=$( BLS_KEYSTORE) "
1235+
1236+ __ETHEREUM_PACKAGE__ : # # ____
1237+
1238+ ethereum_package_start : # # Starts the ethereum_package environment
1239+ kurtosis run --enclave aligned github.com/ethpandaops/ethereum-package --args-file network_params.yaml
1240+
1241+ ethereum_package_inspect : # # Prints detailed information about the net
1242+ kurtosis enclave inspect aligned
1243+
1244+ ethereum_package_rm : # # Stops and removes the ethereum_package environment and used resources
1245+ kurtosis enclave rm aligned -f
1246+
1247+ batcher_start_ethereum_package : user_fund_payment_service
1248+ @echo " Starting Batcher..."
1249+ @$(MAKE ) run_storage &
1250+ @cargo run --manifest-path ./batcher/aligned-batcher/Cargo.toml --release -- --config ./config-files/config-batcher-ethereum-package.yaml --env-file ./batcher/aligned-batcher/.env.dev
1251+
1252+ aggregator_start_ethereum_package :
1253+ $(MAKE ) aggregator_start AGG_CONFIG_FILE=config-files/config-aggregator-ethereum-package.yaml
1254+
1255+ operator_start_ethereum_package :
1256+ $(MAKE ) operator_start OPERATOR_ADDRESS=0x70997970C51812dc3A010C7d01b50e0d17dc79C8 CONFIG_FILE=config-files/config-operator-1-ethereum-package.yaml
1257+
1258+ operator_register_start_ethereum_package :
1259+ $(MAKE ) operator_full_registration OPERATOR_ADDRESS=0x70997970C51812dc3A010C7d01b50e0d17dc79C8 CONFIG_FILE=config-files/config-operator-1-ethereum-package.yaml \
1260+ $(MAKE ) operator_start OPERATOR_ADDRESS=0x70997970C51812dc3A010C7d01b50e0d17dc79C8 CONFIG_FILE=config-files/config-operator-1-ethereum-package.yaml
1261+
1262+
1263+ install_spamoor : # # Instal spamoor to spam transactions
1264+ @echo " Installing spamoor..."
1265+ @git clone https://github.com/ethpandaops/spamoor.git
1266+ @cd spamoor && make
1267+ @mv spamoor/bin/spamoor $(HOME ) /.local/bin
1268+ @rm -rf spamoor
1269+ @echo " ======================================================================="
1270+ @echo " Installation complete! Run 'spamoor --help' to verify the installation."
1271+ @echo " If 'spamoor' is not recognized, make sure it's in your PATH by adding the following line to your shell configuration:"
1272+ @echo " export PATH=\$ $PATH :\$ $HOME /.local/bin"
1273+ @echo " ======================================================================="
1274+
1275+ # Spamoor funding wallet
1276+ SPAMOOR_PRIVATE_KEY? =dbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97
1277+ NUM_WALLETS? =1000
1278+ TX_PER_BLOCK? =250
1279+ # Similar to a swap
1280+ TX_CONSUMES_GAS? =150000
1281+
1282+ spamoor_send_transactions : # # Sends normal transactions and also replacement transactions
1283+ spamoor gasburnertx -p $(SPAMOOR_PRIVATE_KEY ) -c $(COUNT ) \
1284+ --gas-units-to-burn $(TX_CONSUMES_GAS ) \
1285+ --max-wallets $(NUM_WALLETS ) --max-pending $(TX_PER_BLOCK ) \
1286+ -t $(TX_PER_BLOCK ) -h http://127.0.0.1:8545/ -h http://127.0.0.1:8550/ -h http://127.0.0.1:8555/ -h http://127.0.0.1:8565/ \
1287+ --refill-amount 5 --refill-balance 2 --tipfee $(TIP_FEE ) --basefee 100 \
1288+ 2>&1 | grep -v ' checked child wallets (no funding needed)'
1289+
1290+ __NODE_EXPORTER_ : # #__
1291+
1292+ install_node_exporter :
1293+ @./scripts/install_node_exporter.sh
0 commit comments