Skip to content

Commit ed63d3a

Browse files
authored
Merge e4d1e48 into 124eba8
2 parents 124eba8 + e4d1e48 commit ed63d3a

35 files changed

+3289
-2729
lines changed

Makefile

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ operator_set_eigen_sdk_go_version_error:
267267
@echo "Error setting Eigen SDK version, missing ENVIRONMENT. Possible values for ENVIRONMENT=<devnet|testnet|mainnet>"
268268
exit 1
269269

270-
operator_full_registration: operator_get_eth operator_register_with_eigen_layer operator_mint_mock_tokens operator_deposit_into_mock_strategy operator_whitelist_devnet operator_register_with_aligned_layer
270+
operator_full_registration_base: operator_get_eth operator_register_with_eigen_layer operator_whitelist_devnet operator_mint_mock_tokens
271+
operator_full_registration_weth: operator_full_registration_base operator_deposit_into_weth_strategy operator_register_with_aligned_layer_weth
272+
operator_full_registration_ali: operator_full_registration_base operator_deposit_into_ali_strategy operator_register_with_aligned_layer_ali
273+
274+
operator_full_registration: operator_full_registration_base operator_deposit_into_weth_strategy operator_deposit_into_ali_strategy operator_register_with_aligned_layer_weth operator_register_with_aligned_layer_ali
271275

272276
operator_register_and_start: $(GET_SDK_VERSION) operator_full_registration operator_start
273277

@@ -356,30 +360,40 @@ operator_remove_from_whitelist:
356360
@echo "Removing operator $(OPERATOR_ADDRESS)"
357361
@. contracts/scripts/.env && . contracts/scripts/operator_remove_from_whitelist.sh $(OPERATOR_ADDRESS)
358362

359-
operator_deposit_into_mock_strategy:
360-
@echo "Depositing into mock strategy"
363+
operator_deposit_into_weth_strategy:
364+
@echo "Depositing into WETH strategy"
361365
$(eval STRATEGY_ADDRESS = $(shell jq -r '.addresses.strategies.WETH' contracts/script/output/devnet/eigenlayer_deployment_output.json))
362366
@go run operator/cmd/main.go deposit-into-strategy \
363367
--config $(CONFIG_FILE) \
364368
--strategy-address $(STRATEGY_ADDRESS) \
365369
--amount 100000000000000000
366370

371+
operator_deposit_into_ali_strategy:
372+
@echo "Depositing into ALI strategy"
373+
$(eval STRATEGY_ADDRESS = $(shell jq -r '.addresses.strategies.ALI' contracts/script/output/devnet/eigenlayer_deployment_output.json))
374+
@go run operator/cmd/main.go deposit-into-strategy \
375+
--config $(CONFIG_FILE) \
376+
--strategy-address $(STRATEGY_ADDRESS) \
377+
--amount 100000000000000000
378+
367379

368380
AMOUNT ?= 1000
369381

370-
operator_deposit_into_strategy:
371-
@echo "Depositing into strategy"
372-
@go run operator/cmd/main.go deposit-into-strategy \
382+
operator_register_with_aligned_layer_weth:
383+
@echo "Registering operator with AlignedLayer in quorum 0"
384+
@go run operator/cmd/main.go register \
373385
--config $(CONFIG_FILE) \
374-
--strategy-address $(STRATEGY_ADDRESS) \
375-
--amount $(AMOUNT)
386+
--quorum-number 0
376387

377-
operator_register_with_aligned_layer:
378-
@echo "Registering operator with AlignedLayer"
388+
operator_register_with_aligned_layer_ali:
389+
@echo "Registering operator with AlignedLayer in quorum 1"
379390
@go run operator/cmd/main.go register \
380-
--config $(CONFIG_FILE)
391+
--config $(CONFIG_FILE) \
392+
--quorum-number 1
393+
394+
operator_deposit_and_register_weth: operator_deposit_into_weth_strategy operator_register_with_aligned_layer_weth
381395

382-
operator_deposit_and_register: operator_deposit_into_strategy operator_register_with_aligned_layer
396+
operator_deposit_and_register_ali: operator_deposit_into_ali_strategy operator_register_with_aligned_layer_ali
383397

384398

385399
# The verifier ID to enable or disable corresponds to the index of the verifier in the `ProvingSystemID` enum.

aggregation_mode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ make start_proof_aggregator_gpu AGGREGATOR="sp1|risc0"
6161
1. Get latest aggregated proof:
6262

6363
```shell
64-
cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
64+
cast call 0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
6565
```
6666

6767
2. Get aggregated proof info:
6868

6969
```shell
70-
cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
70+
cast call 0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
7171
```

aggregator/pkg/aggregator.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ import (
2828
)
2929

3030
// FIXME(marian): Read this from Aligned contract directly
31-
const QUORUM_NUMBER = byte(0)
32-
const QUORUM_THRESHOLD = byte(67)
31+
const QuorumThreshold = byte(67)
32+
33+
var QuorumNums = eigentypes.QuorumNums{eigentypes.QuorumNum(0), eigentypes.QuorumNum(1)}
34+
var QuorumThresholdPercentages = eigentypes.QuorumThresholdPercentages{eigentypes.QuorumThresholdPercentage(QuorumThreshold), eigentypes.QuorumThresholdPercentage(QuorumThreshold)}
3335

3436
// Aggregator stores TaskResponse for a task here
3537
type TaskResponses = []types.SignedTaskResponse
@@ -337,6 +339,7 @@ func (agg *Aggregator) sendAggregatedResponse(batchIdentifierHash [32]byte, batc
337339
batchIdentifierHash,
338340
batchMerkleRoot,
339341
senderAddress,
342+
QuorumNums,
340343
nonSignerStakesAndSignature,
341344
agg.AggregatorConfig.Aggregator.GasBaseBumpPercentage,
342345
agg.AggregatorConfig.Aggregator.GasBumpIncrementalPercentage,
@@ -407,10 +410,7 @@ func (agg *Aggregator) AddNewTask(batchMerkleRoot [32]byte, senderAddress [20]by
407410
)
408411
agg.nextBatchIndex += 1
409412

410-
quorumNums := eigentypes.QuorumNums{eigentypes.QuorumNum(QUORUM_NUMBER)}
411-
quorumThresholdPercentages := eigentypes.QuorumThresholdPercentages{eigentypes.QuorumThresholdPercentage(QUORUM_THRESHOLD)}
412-
413-
err := agg.blsAggregationService.InitializeNewTaskWithWindow(batchIndex, taskCreatedBlock, quorumNums, quorumThresholdPercentages, agg.AggregatorConfig.Aggregator.BlsServiceTaskTimeout, 15*time.Second)
413+
err := agg.blsAggregationService.InitializeNewTaskWithWindow(batchIndex, taskCreatedBlock, QuorumNums, QuorumThresholdPercentages, agg.AggregatorConfig.Aggregator.BlsServiceTaskTimeout, 15*time.Second)
414414
if err != nil {
415415
agg.logger.Fatalf("BLS aggregation service error when initializing new task: %s", err)
416416
}

batcher/aligned-sdk/src/common/constants.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub const BUMP_MAX_RETRY_DELAY: u64 = 3600; // seconds
5252
/// NETWORK ADDRESSES ///
5353
/// BatcherPaymentService
5454
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_DEVNET: &str =
55-
"0x7969c5eD335650692Bc04293B07F5BF2e7A673C0";
55+
"0xc351628EB244ec633d5f21fBD6621e1a683B1181";
5656
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_HOLESKY: &str =
5757
"0x815aeCA64a974297942D2Bbf034ABEe22a38A003";
5858
pub const BATCHER_PAYMENT_SERVICE_ADDRESS_HOLESKY_STAGE: &str =
@@ -63,7 +63,7 @@ pub const BATCHER_PAYMENT_SERVICE_ADDRESS_MAINNET_STAGE: &str =
6363
"0x88ad27EfBeF16b6fC5b2E40c5155d61876f847c5";
6464

6565
/// AlignedServiceManager
66-
pub const ALIGNED_SERVICE_MANAGER_DEVNET: &str = "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8";
66+
pub const ALIGNED_SERVICE_MANAGER_DEVNET: &str = "0xf5059a5D33d5853360D16C683c16e67980206f36";
6767
pub const ALIGNED_SERVICE_MANAGER_HOLESKY: &str = "0x58F280BeBE9B34c9939C3C39e0890C81f163B623";
6868
pub const ALIGNED_SERVICE_MANAGER_HOLESKY_STAGE: &str =
6969
"0x9C5231FC88059C086Ea95712d105A2026048c39B";
@@ -79,7 +79,7 @@ pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY_STAGE: &str =
7979
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY: &str =
8080
"0xe84CD4084d8131841CE6DC265361f81F4C59a1d4";
8181
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_DEVNET: &str =
82-
"0xFD471836031dc5108809D173A067e8486B9047A3";
82+
"0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f";
8383

8484
/// Batcher URL's
8585
pub const BATCHER_URL_DEVNET: &str = "ws://localhost:8080";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aligned_service_manager_address: "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8"
2-
proof_aggregation_service_address: "0xFD471836031dc5108809D173A067e8486B9047A3"
1+
aligned_service_manager_address: "0xf5059a5D33d5853360D16C683c16e67980206f36"
2+
proof_aggregation_service_address: "0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f"
33
eth_rpc_url: "http://localhost:8545"
44
eth_ws_url: "ws://localhost:8546"
55
max_proofs_in_queue: 1000

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aligned_service_manager_address: "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8"
2-
proof_aggregation_service_address: "0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f"
1+
aligned_service_manager_address: "0xf5059a5D33d5853360D16C683c16e67980206f36"
2+
proof_aggregation_service_address: "0x162A433068F51e18b7d13932F27e66a3f99E6890"
33
eth_rpc_url: "http://localhost:8545"
44
eth_ws_url: "ws://localhost:8546"
55
max_proofs_in_queue: 1000

config-files/config-proof-aggregator-mock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aligned_service_manager_address: "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8"
2-
proof_aggregation_service_address: "0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f"
1+
aligned_service_manager_address: "0xf5059a5D33d5853360D16C683c16e67980206f36"
2+
proof_aggregation_service_address: "0x162A433068F51e18b7d13932F27e66a3f99E6890"
33
eth_rpc_url: "http://localhost:8545"
44
eth_ws_url: "ws://localhost:8545"
55
max_proofs_in_queue: 1000

config-files/config-proof-aggregator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aligned_service_manager_address: "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8"
2-
proof_aggregation_service_address: "0xFD471836031dc5108809D173A067e8486B9047A3"
1+
aligned_service_manager_address: "0xf5059a5D33d5853360D16C683c16e67980206f36"
2+
proof_aggregation_service_address: "0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f"
33
eth_rpc_url: "http://localhost:8545"
44
eth_ws_url: "ws://localhost:8545"
55
max_proofs_in_queue: 1000

contracts/bindings/AlignedLayerServiceManager/binding.go

Lines changed: 57 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/bindings/ERC20Mock/binding.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)