-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into fix/remove_ecdsa_usage
- Loading branch information
Showing
57 changed files
with
910 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
contracts/script/deploy/config/mainnet/aligned.mainnet.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"chainInfo": { | ||
"chainId": 17000 | ||
}, | ||
"permissions" : { | ||
"aggregator": "<aggregator_address>", | ||
"deployer": "<deployer_address>", | ||
"owner": "<owner_address>", | ||
"upgrader": "<upgrader_address>", | ||
"churner": "<churner_address>", | ||
"ejector": "<ejector_address>", | ||
"pauser": "<pauser_address>", | ||
"initalPausedStatus": 0 | ||
}, | ||
"minimumStakes": [ | ||
1 | ||
], | ||
"strategyWeights": [ | ||
[ | ||
{ | ||
"0_strategy": "TBD", | ||
"1_multiplier": 1e+18 | ||
} | ||
] | ||
], | ||
"operatorSetParams": [ | ||
{ | ||
"0_maxOperatorCount": 200, | ||
"1_kickBIPsOfOperatorStake": 11000, | ||
"2_kickBIPsOfTotalStake": 50 | ||
} | ||
], | ||
"uri": "" | ||
} |
16 changes: 16 additions & 0 deletions
16
contracts/script/deploy/config/mainnet/batcher-payment-service.mainnet.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"address": { | ||
"batcherWallet": "<batcher_wallet_address>", | ||
"alignedLayerServiceManager": "<aligned_layer_service_manager_address" | ||
}, | ||
"amounts": { | ||
"gasForAggregator": "300000", | ||
"gasPerProof": "21000" | ||
}, | ||
"permissions": { | ||
"owner": "<owner_address>" | ||
}, | ||
"eip712": { | ||
"noncedVerificationDataTypeHash": "0x41817b5c5b0c3dcda70ccb43ba175fdcd7e586f9e0484422a2c6bba678fdf4a3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 23 additions & 22 deletions
45
contracts/script/output/sepolia/alignedlayer_deployment_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
{ | ||
"addresses": { | ||
"alignedLayerProxyAdmin": "0x9c50f5054784d6c5523C79c3aFA82E3184430CaC", | ||
"alignedLayerServiceManager": "0xD0fAb108d175765f70Dd2e929b74ec107db6E0e8", | ||
"alignedLayerServiceManagerImplementation": "0xbC86427A646540cF78c92F6C7432716460b97a06", | ||
"blsApkRegistry": "0x9A5B215027F85319957a3a92205BFc18529d9309", | ||
"blsApkRegistryImplementation": "0xEAE702d667bD851C9cAa59e71b23765Bea04A5aF", | ||
"indexRegistry": "0xD316A01F902d0fDF169a53AB22daB38c06c6E60E", | ||
"indexRegistryImplementation": "0x8009D6A252a41bc8fb648F71F3aa78d08231221d", | ||
"operatorStateRetriever": "0xc24023c7e43Dc6A407b1B961A6602ee6d5408A75", | ||
"registryCoordinator": "0x9C04afc13D57608a867E61BD91a10d8689B24ff8", | ||
"registryCoordinatorImplementation": "0xFc326289eF3d5ba5E525e27530329727831E834B", | ||
"serviceManagerRouter": "0x074c28d7ff24c06ab747e08772ed582c3b7C887e", | ||
"stakeRegistry": "0x1888568D57Cf6834d74ef62A78e7EF1ADbd55582", | ||
"stakeRegistryImplementation": "0x05671b5B23d16B2e198729b9Ce94696780d384b9", | ||
"batcherPaymentService": "0x4a40a9F0D29B62a2852ed893B18fAD9CfEcB14FA", | ||
"batcherPaymentServiceImplementation": "0xc40562950D62e3DbFf881149cf07833Cd0A425A9" | ||
"alignedLayerProxyAdmin": "0x6b0E241bFf4A1596E0E826E55Cc285D7E2E7A45D", | ||
"alignedLayerServiceManager": "0xc3F9c9f9CABdCe9679F5Aa184b02369f1c2A4E16", | ||
"alignedLayerServiceManagerImplementation": "0xEB59ae25809b5B20db43371f0ca7f135b862647E", | ||
"blsApkRegistry": "0xBDdBd0869b10079c5B00B8Da9B6e22A2C4a99040", | ||
"blsApkRegistryImplementation": "0xAf33669eb4c062c1cdc756d96a43a1e734d9BC35", | ||
"indexRegistry": "0x77042702606eC5A3c9d49a550dEE400681691c08", | ||
"indexRegistryImplementation": "0x4A89A4986c4cfeFb9e59DB0923851824E1C66013", | ||
"operatorStateRetriever": "0xfe8009EfD51FCD1BCf09712C9719e6EB3796546a", | ||
"pauserRegistry": "0x42a3879a99Ddfd56a763415a3a33529bd1699112", | ||
"registryCoordinator": "0xFfe833f349bE163EFa2fAa39f0dA2Ac37dB04857", | ||
"registryCoordinatorImplementation": "0xf0A6F3d339bE498d04fE00cD328D0B4f3b475409", | ||
"serviceManagerRouter": "0x73D68e630b4aAa35f01c4735914c55c5c3181672", | ||
"stakeRegistry": "0xB57FA20C97235dA95Cf8e83a15865a3eb659B24a", | ||
"stakeRegistryImplementation": "0x809D99a4357667203cC06fBc7046C236085be843", | ||
"batcherPaymentService": "0x206BfD26d368Fa6f4C8F9b1269bEA4A824286a5c", | ||
"batcherPaymentServiceImplementation": "0x872102bA2030C0AB26427Be24de86E0dD7622C67" | ||
}, | ||
"chainInfo": { | ||
"chainId": 11155111, | ||
"deploymentBlock": 6833988 | ||
"deploymentBlock": 7111030 | ||
}, | ||
"permissions": { | ||
"alignedLayerAggregator": "0x1380D03142156d8D9950b001A566dc5cc439dE81", | ||
"alignedLayerChurner": "0x1380D03142156d8D9950b001A566dc5cc439dE81", | ||
"alignedLayerEjector": "0x1380D03142156d8D9950b001A566dc5cc439dE81", | ||
"alignedLayerOwner": "0x1380D03142156d8D9950b001A566dc5cc439dE81", | ||
"alignedLayerUpgrader": "0x1380D03142156d8D9950b001A566dc5cc439dE81", | ||
"pauserRegistry": "0xC2316E03d0871f667e75C62181089988Eb4DB7Db" | ||
"alignedLayerAggregator": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0", | ||
"alignedLayerChurner": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0", | ||
"alignedLayerEjector": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0", | ||
"alignedLayerOwner": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0", | ||
"alignedLayerPauser": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0", | ||
"alignedLayerUpgrader": "0x1Fa835Be4f67eA84617F16917FaF54A4e336F9b0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RPC_URL=https://ethereum-holesky-rpc.publicnode.com | ||
PRIVATE_KEY=<YOUR_PRIVATE_KEY> | ||
EXISTING_DEPLOYMENT_INFO_PATH=./script/output/holesky/eigenlayer_deployment_output.json | ||
DEPLOY_CONFIG_PATH=./script/deploy/config/holesky/aligned.holesky.config.json | ||
BATCHER_PAYMENT_SERVICE_CONFIG_PATH=./script/deploy/config/holesky/batcher-payment-service.holesky.config.json | ||
OUTPUT_PATH=./script/output/holesky/alignedlayer_deployment_output.json | ||
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_API_KEY> | ||
MULTISIG=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RPC_URL=https://ethereum-rpc.publicnode.com | ||
PRIVATE_KEY=<YOUR_PRIVATE_KEY> | ||
EXISTING_DEPLOYMENT_INFO_PATH=./script/output/mainnet/eigenlayer_deployment_output.json | ||
DEPLOY_CONFIG_PATH=./script/deploy/config/mainnet/aligned.mainnet.config.json | ||
BATCHER_PAYMENT_SERVICE_CONFIG_PATH=./script/deploy/config/mainnet/batcher-payment-service.mainnet.config.json | ||
OUTPUT_PATH=./script/output/mainnet/alignedlayer_deployment_output.json | ||
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_API_KEY> | ||
MULTISIG=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RPC_URL=https://ethereum-sepolia-rpc.publicnode.com | ||
PRIVATE_KEY=<YOUR_PRIVATE_KEY> | ||
EXISTING_DEPLOYMENT_INFO_PATH=./script/output/sepolia/eigenlayer_deployment_output.json | ||
DEPLOY_CONFIG_PATH=./script/deploy/config/sepolia/aligned.sepolia.config.json | ||
BATCHER_PAYMENT_SERVICE_CONFIG_PATH=./script/deploy/config/sepolia/batcher-payment-service.sepolia.config.json | ||
OUTPUT_PATH=./script/output/sepolia/alignedlayer_deployment_output.json | ||
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_API_KEY> | ||
MULTISIG=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Deployment of Aligned Contracts | ||
|
||
This guide will walk you through the deployment of the Aligned Layer contracts. | ||
|
||
|
||
## Setup | ||
|
||
1. If you want to manage AlignedLayer contracts (like upgrades or pauses) using a Multisig wallet, you can follow the [Multisig Wallet Creation Guide](./1_multisig_creation.md). | ||
|
||
After finishing the setup of the multisig, you will have a multisig address. | ||
|
||
2. To deploy the contracts, you can follow the [Deployment Guide](./2_deploy_contracts.md). | ||
|
||
After finishing the deployment, you will have the deployed contract addresses. | ||
|
||
3. Once you have deployed the Aligned contracts, you can perform upgrades on them. | ||
|
||
a. If you are not using a Multisig wallet, you can follow the [Upgrade Guide](./3_a_upgrade_contracts.md). | ||
|
||
b. If you are using a Multisig wallet, you can follow the [Upgrade Guide with Multisig](./3_b_upgrade_contracts_with_multisig.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Create a Multisig Wallet using SAFE | ||
|
||
> [!WARNING] | ||
> Safe Multisig Wallet is not currently supported in Holesky Testnet. | ||
> [!WARNING] | ||
> You need at least one wallet with funds to deploy the Multisig. | ||
|
||
You can create a Multisig wallet using [Safe](https://safe.global/). | ||
|
||
1. Go to [Safe](https://app.safe.global/welcome/accounts). | ||
|
||
2. Click on `Create Account`. | ||
|
||
![Create Account](images/1_multisig_2.png) | ||
|
||
3. Connect your wallet. | ||
|
||
![Connect Wallet](images/1_multisig_1.png) | ||
|
||
4. Set a name for your Multisig (it is just a local name) and choose a network where you want to deploy it. Then click on `Next`. | ||
|
||
![Name and Network](images/1_multisig_3.png) | ||
|
||
For `Ethereum Sepolia` network set `Sepolia`. | ||
|
||
For `Ethereum Mainnet` network set `Ethereum`. | ||
|
||
In this tutorial, we are using `Sepolia` network. | ||
|
||
5. Add the signers for your Multisig and the required threshold. Then click on `Next`. | ||
|
||
![Signers and Threshold](images/1_multisig_4.png) | ||
|
||
This example shows a 2/3 Multisig, which means that 2 out of 3 signers are required to approve a transaction. | ||
|
||
6. Review the information, choose `Pay now` option and click on `Create Account`. | ||
|
||
![Review](images/1_multisig_5.png) | ||
|
||
7. Confirm the transaction on your wallet. | ||
|
||
8. Wait until the transaction is confirmed. Then, you will see your Multisig wallet. | ||
|
||
![Multisig Wallet](images/1_multisig_6.png) | ||
|
||
After finishing this tutorial, you will have your Multisig wallet created. |
Oops, something went wrong.