Skip to content

Commit

Permalink
feat: Mainnet release for rewards v2 CLI (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpabst authored Jan 21, 2025
1 parent a9c3ce0 commit c71766a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
repository: layr-labs/eigensdk-go
token: ${{ github.token }}
ref: dev
ref: 72117286b6d849f50773483bfd1efcc305ab5edb

- name: Run anvil chain
run: |
Expand Down Expand Up @@ -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 &
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
5 changes: 0 additions & 5 deletions pkg/operator/get_operator_split.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package operator

import (
"errors"
"sort"

"github.com/Layr-Labs/eigenlayer-cli/pkg/internal/common"
Expand Down Expand Up @@ -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)
}
Expand Down
5 changes: 0 additions & 5 deletions pkg/operator/set_operator_split.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package operator

import (
"errors"
"fmt"
"sort"

Expand Down Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions pkg/rewards/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c71766a

Please sign in to comment.