Skip to content

Commit 37c0835

Browse files
committed
Merge
2 parents 1ab0936 + 6ead110 commit 37c0835

File tree

85 files changed

+1007
-738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1007
-738
lines changed

Makefile

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ operator_remove_from_whitelist_devnet:
437437
RPC_URL="http://localhost:8545" PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" OUTPUT_PATH=./script/output/devnet/alignedlayer_deployment_output.json ./contracts/scripts/operator_remove_from_whitelist.sh $(OPERATOR_ADDRESS)
438438

439439
operator_whitelist:
440-
@echo "Whitelisting operator $(OPERATOR_ADDRESS)"
441-
@. contracts/scripts/.env && . contracts/scripts/operator_whitelist.sh $(OPERATOR_ADDRESS)
440+
@echo "Whitelisting operator $(OPERATOR_ADDRESS) on $(NETWORK)"
441+
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/operator_whitelist.sh $(OPERATOR_ADDRESS)
442442

443443
operator_remove_from_whitelist:
444444
@echo "Removing operator $(OPERATOR_ADDRESS)"
@@ -837,7 +837,7 @@ generate_circom_groth16_bn256_no_pub_input_setup: ## Run the circom_groth16_bn25
837837
__CONTRACTS_DEPLOYMENT__: ## ____
838838
deploy_aligned_contracts: ## Deploy Aligned Contracts. Parameters: NETWORK=<mainnet|holesky|sepolia>
839839
@echo "Deploying Aligned Contracts on $(NETWORK) network..."
840-
@. co ntracts/scripts/.env.$(NETWORK) && . contracts/scripts/deploy_aligned_contracts.sh
840+
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/deploy_aligned_contracts.sh
841841

842842
deploy_pauser_registry: ## Deploy Pauser Registry
843843
@echo "Deploying Pauser Registry..."
@@ -1395,29 +1395,26 @@ ansible_batcher_create_env: ## Create empty variables files for the Batcher depl
13951395
@echo "Config files for the Batcher created in infra/ansible/playbooks/ini"
13961396
@echo "Please complete the values and run make ansible_batcher_deploy"
13971397

1398-
ansible_batcher_deploy: ## Deploy the Batcher. Parameters: INVENTORY, KEYSTORE
1399-
@if [ -z "$(INVENTORY)" ] || [ -z "$(KEYSTORE)" ]; then \
1400-
echo "Error: Both INVENTORY and KEYSTORE must be set."; \
1398+
ansible_batcher_deploy: ## Deploy the Batcher. Parameters: INVENTORY
1399+
@if [ -z "$(INVENTORY)" ]; then \
1400+
echo "Error: INVENTORY must be set."; \
14011401
exit 1; \
14021402
fi
14031403
@ansible-playbook infra/ansible/playbooks/batcher.yaml \
1404-
-i $(INVENTORY) \
1405-
-e "keystore_path=$(KEYSTORE)"
1404+
-i $(INVENTORY)
14061405

14071406
ansible_aggregator_create_env: ## Create empty variables files for the Aggregator deploy
14081407
@cp -n infra/ansible/playbooks/ini/config-aggregator.ini.example infra/ansible/playbooks/ini/config-aggregator.ini
14091408
@echo "Config files for the Aggregator created in infra/ansible/playbooks/ini"
14101409
@echo "Please complete the values and run make ansible_aggregator_deploy"
14111410

14121411
ansible_aggregator_deploy: ## Deploy the Operator. Parameters: INVENTORY
1413-
@if [ -z "$(INVENTORY)" ] || [ -z "$(ECDSA_KEYSTORE)" ] || [ -z "$(BLS_KEYSTORE)" ]; then \
1414-
echo "Error: INVENTORY, ECDSA_KEYSTORE, BLS_KEYSTORE must be set."; \
1412+
@if [ -z "$(INVENTORY)" ]; then \
1413+
echo "Error: INVENTORY must be set."; \
14151414
exit 1; \
14161415
fi
14171416
@ansible-playbook infra/ansible/playbooks/aggregator.yaml \
1418-
-i $(INVENTORY) \
1419-
-e "ecdsa_keystore_path=$(ECDSA_KEYSTORE)" \
1420-
-e "bls_keystore_path=$(BLS_KEYSTORE)"
1417+
-i $(INVENTORY)
14211418

14221419
ansible_operator_create_env: ## Create empty variables files for the Operator deploy
14231420
@cp -n infra/ansible/playbooks/ini/config-operator.ini.example infra/ansible/playbooks/ini/config-operator.ini
@@ -1426,14 +1423,12 @@ ansible_operator_create_env: ## Create empty variables files for the Operator de
14261423
@echo "Please complete the values and run make ansible_operator_deploy"
14271424

14281425
ansible_operator_deploy: ## Deploy the Operator. Parameters: INVENTORY
1429-
@if [ -z "$(INVENTORY)" ] || [ -z "$(ECDSA_KEYSTORE)" ] || [ -z "$(BLS_KEYSTORE)" ]; then \
1430-
echo "Error: INVENTORY, ECDSA_KEYSTORE, BLS_KEYSTORE must be set."; \
1426+
@if [ -z "$(INVENTORY)" ]; then \
1427+
echo "Error: INVENTORY must be set."; \
14311428
exit 1; \
14321429
fi
14331430
@ansible-playbook infra/ansible/playbooks/operator.yaml \
1434-
-i $(INVENTORY) \
1435-
-e "ecdsa_keystore_path=$(ECDSA_KEYSTORE)" \
1436-
-e "bls_keystore_path=$(BLS_KEYSTORE)"
1431+
-i $(INVENTORY)
14371432

14381433
ansible_explorer_deploy: ## Deploy the Explorer. Parameters: INVENTORY
14391434
@ansible-playbook infra/ansible/playbooks/explorer.yaml \

aggregator/pkg/subscriber.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (agg *Aggregator) SubscribeToNewTasks() *chainio.ErrorPair {
2424
}
2525

2626
func (agg *Aggregator) subscribeToNewTasks() *chainio.ErrorPair {
27-
errorPair := agg.avsSubscriber.SubscribeToNewTasksV3(agg.NewBatchChan, agg.taskSubscriber)
27+
errorPair := agg.avsSubscriber.SubscribeToNewTasksV3(agg.NewBatchChan, agg.taskSubscriber, agg.AggregatorConfig.Aggregator.PollLatestBatchInterval)
2828

2929
if errorPair != nil {
3030
agg.AggregatorConfig.BaseConfig.Logger.Info("Failed to create task subscriber", "err", errorPair)

config-files/config-aggregator-docker.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ aggregator:
3838
# The Gas formula is percentage (gas_base_bump_percentage + gas_bump_incremental_percentage * i) / 100) is checked against this value
3939
# If it is higher, it will default to `gas_bump_percentage_limit`
4040
time_to_wait_before_bump: 72s # The time to wait for the receipt when responding to task. Suggested value 72 seconds (6 blocks)
41+
poll_latest_batch_interval: 20s # The interval to poll for latest batches. Default: 20s

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ aggregator:
3434
gas_base_bump_percentage: 10 # How much to bump gas price when responding to task. Suggested value 10%
3535
gas_bump_incremental_percentage: 2 # An extra percentage to bump every retry i*2 when responding to task. Suggested value 2%
3636
time_to_wait_before_bump: 36s # The time to wait for the receipt when responding to task. Suggested value 36 seconds (3 blocks)
37+
poll_latest_batch_interval: 20s # The interval to poll for latest batches. Default: 20s

config-files/config-aggregator.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,4 @@ aggregator:
4545
# The Gas formula is percentage (gas_base_bump_percentage + gas_bump_incremental_percentage * i) / 100) is checked against this value
4646
# If it is higher, it will default to `gas_bump_percentage_limit`
4747
time_to_wait_before_bump: 72s # The time to wait for the receipt when responding to task. Suggested value 72 seconds (6 blocks)
48-
49-
## Operator Configurations
50-
# operator:
51-
# aggregator_rpc_server_ip_port_address: localhost:8090
52-
# address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
53-
# earnings_receiver_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
54-
# delegation_approver_address: "0x0000000000000000000000000000000000000000"
55-
# staker_opt_out_window_blocks: 0
56-
# metadata_url: "https://yetanotherco.github.io/operator_metadata/metadata.json"
57-
# enable_metrics: true
58-
# metrics_ip_port_address: localhost:9092
59-
# max_batch_size: 268435456 # 256 MiB
60-
# # Operators variables needed for register it in EigenLayer
61-
# el_delegation_manager_address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
62-
# private_key_store_path: config-files/anvil.ecdsa.key.json
63-
# bls_private_key_store_path: config-files/anvil.bls.key.json
64-
# signer_type: local_keystore
65-
# chain_id: 31337
48+
poll_latest_batch_interval: 20s # The interval to poll for latest batches. Default: 20s

config-files/config-batcher-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ batcher:
3333
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1
3434
# When validating if the msg covers the minimum max fee
3535
# A batch of how many proofs should it cover
36-
amount_of_proofs_for_min_max_fee: 32
36+
amount_of_proofs_for_min_max_fee: 128
3737
# When replacing the message, how much higher should the max fee in comparison to the original one
3838
# The calculation is replacement_max_fee >= original_max_fee + original_max_fee * min_bump_percentage / 100
3939
min_bump_percentage: 10

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ batcher:
3131
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1
3232
# When validating if the msg covers the minimum max fee
3333
# A batch of how many proofs should it cover
34-
amount_of_proofs_for_min_max_fee: 32
34+
amount_of_proofs_for_min_max_fee: 128
3535
# When replacing the message, how much higher should the max fee in comparison to the original one
3636
# The calculation is replacement_max_fee >= original_max_fee + original_max_fee * min_bump_percentage / 100
3737
min_bump_percentage: 10

config-files/config-batcher.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ batcher:
3333
replacement_private_key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # Anvil address 1
3434
# When validating if the msg covers the minimum max fee
3535
# A batch of how many proofs should it cover
36-
amount_of_proofs_for_min_max_fee: 32
36+
amount_of_proofs_for_min_max_fee: 128
3737
# When replacing the message, how much higher should the max fee in comparison to the original one
3838
# The calculation is replacement_max_fee >= original_max_fee + original_max_fee * min_bump_percentage / 100
3939
min_bump_percentage: 10

config-files/config-operator-1-ethereum-package.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ operator:
3232
metrics_ip_port_address: localhost:9092
3333
max_batch_size: 268435456 # 256 MiB
3434
last_processed_batch_filepath: 'config-files/operator-1.last_processed_batch.json'
35+
poll_latest_batch_interval: 20s # Optional: The interval to poll for latest batches. Default: 20s if not specified
3536

3637
# Operators variables needed for register it in EigenLayer
3738
el_delegation_manager_address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'

config-files/config-operator-1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ operator:
3232
metrics_ip_port_address: localhost:9092
3333
max_batch_size: 268435456 # 256 MiB
3434
last_processed_batch_filepath: 'config-files/operator-1.last_processed_batch.json'
35+
poll_latest_batch_interval: 20s # Optional: The interval to poll for latest batches. Default: 20s if not specified
3536

3637
# Operators variables needed for register it in EigenLayer
3738
el_delegation_manager_address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'

0 commit comments

Comments
 (0)