Skip to content

Commit

Permalink
feat: add support for v0.5.3 (#184)
Browse files Browse the repository at this point in the history
This PR adds support for the v0.5.3 release of `eigenlayer-contracts`.
  • Loading branch information
MegaRedHand authored Jan 21, 2025
1 parent 2d142c3 commit 585bd59
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ check_devnet:

# hello-world-avs example

HELLO_WORLD_REF:=master
# Version from 2025-01-04
HELLO_WORLD_REF:=4626e206fd119b26ebe98935b256daa7256e863b

examples/hello-world-avs:
@echo "Cloning hello-world-avs repo..."
Expand Down
21 changes: 18 additions & 3 deletions kurtosis_package/deployers/eigenlayer.star
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,14 @@ def get_version_args(deployment):
major = int(version[0])
minor = int(version[1])
patch = int(version[2])
# EigenLayer contracts v0.4.2-mainnet-pepe and below
# v0.4.2-mainnet-pepe and below
if major == 0 and (minor < 4 or (minor == 4 and patch <= 2)):
return EL_DEPLOY_ARGS_v0_4_2

# Other versions before v1.0.0
if major == 0:
return EL_DEPLOY_ARGS_v0_5_3

return EL_DEPLOY_ARGS_LATEST


Expand Down Expand Up @@ -271,6 +275,7 @@ EL_CONTRACT_NAMES = [
EL_DEFAULT_ARGS = {
"name": "EigenLayer",
"repo": "https://github.com/Layr-Labs/eigenlayer-contracts.git",
"extra_args": "--sig 'run(string memory configFileName)' -- deploy_from_scratch.config.json",
"verify": False,
"contracts_path": ".",
"addresses": {},
Expand All @@ -284,7 +289,6 @@ CONFIG_ARTIFACT_PLACEHOLDER = "+$+CONFIG_ARTIFACT+$+"
EL_DEPLOY_ARGS_v0_4_2 = {
"ref": "v0.4.2-mainnet-pepe",
"script": "script/deploy/devnet/M2_Deploy_From_Scratch.s.sol:Deployer_M2",
"extra_args": "--sig 'run(string memory configFileName)' -- deploy_from_scratch.config.json",
"input": {"script/configs/devnet/": CONFIG_ARTIFACT_PLACEHOLDER},
"output": {
"eigenlayer_addresses": {
Expand All @@ -294,10 +298,21 @@ EL_DEPLOY_ARGS_v0_4_2 = {
},
} | EL_DEFAULT_ARGS

EL_DEPLOY_ARGS_v0_5_3 = {
"ref": "v0.5.3",
"script": "script/deploy/local/Deploy_From_Scratch.s.sol:DeployFromScratch",
"input": {"script/configs/": CONFIG_ARTIFACT_PLACEHOLDER},
"output": {
"eigenlayer_addresses": {
"path": "script/output/devnet/local_from_scratch_deployment_data.json",
"rename": "eigenlayer_deployment_output.json",
}
},
} | EL_DEFAULT_ARGS

EL_DEPLOY_ARGS_LATEST = {
"ref": "dev",
"script": "script/deploy/local/Deploy_From_Scratch.s.sol:DeployFromScratch",
"extra_args": "--sig 'run(string memory configFileName)' -- deploy_from_scratch.config.json",
"input": {"script/configs/": CONFIG_ARTIFACT_PLACEHOLDER},
"output": {
"eigenlayer_addresses": {
Expand Down

0 comments on commit 585bd59

Please sign in to comment.