From c71766a6943b70697103aef6abaf5838f0d933a3 Mon Sep 17 00:00:00 2001 From: gpabst Date: Tue, 21 Jan 2025 17:05:59 -0500 Subject: [PATCH] feat: Mainnet release for rewards v2 CLI (#286) --- .github/workflows/integration-test.yml | 4 ++-- go.mod | 2 +- go.sum | 2 ++ pkg/operator/get_operator_split.go | 5 ----- pkg/operator/set_operator_split.go | 5 ----- pkg/rewards/claim.go | 4 ---- 6 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index a2c7acd5..74c1f97c 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -23,7 +23,7 @@ jobs: with: repository: layr-labs/eigensdk-go token: ${{ github.token }} - ref: dev + ref: 72117286b6d849f50773483bfd1efcc305ab5edb - name: Run anvil chain run: | @@ -96,7 +96,7 @@ jobs: with: repository: layr-labs/eigensdk-go token: ${{ github.token }} - ref: dev + ref: 72117286b6d849f50773483bfd1efcc305ab5edb - name: Run anvil chain run: | nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 & diff --git a/go.mod b/go.mod index d96aada1..432e9a95 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/Layr-Labs/eigenlayer-contracts v0.3.2-mainnet-rewards github.com/Layr-Labs/eigenlayer-rewards-proofs v0.2.12 github.com/Layr-Labs/eigenpod-proofs-generation v0.0.14-stable.0.20240730152248-5c11a259293e - github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212190947-9985122d81fe + github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212232631-72117286b6d8 github.com/blang/semver/v4 v4.0.0 github.com/consensys/gnark-crypto v0.12.1 github.com/ethereum/go-ethereum v1.14.5 diff --git a/go.sum b/go.sum index 3ec027e3..61d46d67 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,8 @@ github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241211225219-79336bf6e886 h1:+7Aijq github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241211225219-79336bf6e886/go.mod h1:aYdNURUhaqeYOS+Cq12TfSdPbjFfiLaHkxPdR4Exq/s= github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212190947-9985122d81fe h1:FeXxapvtEbbTbEWsrcBTTzQ2u2quGJ9HNYQVSk5JZ8g= github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212190947-9985122d81fe/go.mod h1:aYdNURUhaqeYOS+Cq12TfSdPbjFfiLaHkxPdR4Exq/s= +github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212232631-72117286b6d8 h1:AMrzXB4M07cpvNbEHS8NHH86LroL+WgE2XwQFrtb/84= +github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212232631-72117286b6d8/go.mod h1:aYdNURUhaqeYOS+Cq12TfSdPbjFfiLaHkxPdR4Exq/s= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= diff --git a/pkg/operator/get_operator_split.go b/pkg/operator/get_operator_split.go index 9e94c2e4..b12d47b2 100644 --- a/pkg/operator/get_operator_split.go +++ b/pkg/operator/get_operator_split.go @@ -1,7 +1,6 @@ package operator import ( - "errors" "sort" "github.com/Layr-Labs/eigenlayer-cli/pkg/internal/common" @@ -51,10 +50,6 @@ func GetOperatorSplit(cCtx *cli.Context, isProgrammaticIncentive bool) error { logger := common.GetLogger(cCtx) config, err := readAndValidateGetOperatorSplitConfig(cCtx, logger, isProgrammaticIncentive) - if config.Network != "holesky" { - return errors.New("getting operator split only supported on holesky with this version of CLI") - } - if err != nil { return eigenSdkUtils.WrapError("failed to read and validate operator split config", err) } diff --git a/pkg/operator/set_operator_split.go b/pkg/operator/set_operator_split.go index aee16add..2d5e43c1 100644 --- a/pkg/operator/set_operator_split.go +++ b/pkg/operator/set_operator_split.go @@ -1,7 +1,6 @@ package operator import ( - "errors" "fmt" "sort" @@ -43,10 +42,6 @@ func SetOperatorSplit(cCtx *cli.Context, p utils.Prompter, isProgrammaticIncenti return eigenSdkUtils.WrapError("failed to read and validate operator split config", err) } - if config.Network != "holesky" { - return errors.New("setting operator split only supported on holesky with this version of CLI") - } - cCtx.App.Metadata["network"] = config.ChainID.String() ethClient, err := ethclient.Dial(config.RPCUrl) diff --git a/pkg/rewards/claim.go b/pkg/rewards/claim.go index c50a5127..fb078fca 100644 --- a/pkg/rewards/claim.go +++ b/pkg/rewards/claim.go @@ -222,10 +222,6 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error { return eigenSdkUtils.WrapError("failed to read and validate claim config", err) } - if config.Network != "holesky" && config.BatchClaimFile != "" { - return errors.New("batch claim only supported on holesky with this version of CLI") - } - cCtx.App.Metadata["network"] = config.ChainID.String() ethClient, err := ethclient.Dial(config.RPCUrl)