Skip to content

Commit d2f6a13

Browse files
committed
Merge remote-tracking branch 'origin/madhur/slashing-allocations' into feat/slashing
2 parents 4b2dac5 + 435756e commit d2f6a13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+8469
-83
lines changed

.github/workflows/integration-test.yml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
repository: layr-labs/eigensdk-go
2525
token: ${{ github.token }}
26-
ref: 72117286b6d849f50773483bfd1efcc305ab5edb
26+
ref: 549e0185cee644d0a6fc9c9863f1cf76d9ef971f
2727

2828
- name: Run anvil chain
2929
run: |
@@ -96,7 +96,7 @@ jobs:
9696
with:
9797
repository: layr-labs/eigensdk-go
9898
token: ${{ github.token }}
99-
ref: 72117286b6d849f50773483bfd1efcc305ab5edb
99+
ref: 549e0185cee644d0a6fc9c9863f1cf76d9ef971f
100100
- name: Run anvil chain
101101
run: |
102102
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
@@ -157,4 +157,53 @@ jobs:
157157
--claimer-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
158158
--web3signer-url http://127.0.0.1:9001 \
159159
--verbose \
160-
--broadcast
160+
--broadcast
161+
162+
UserIntegrationTests:
163+
name: Integration Test - User Commands
164+
runs-on: ubuntu-latest
165+
steps:
166+
- uses: actions/setup-go@v4
167+
with:
168+
go-version: '1.21'
169+
170+
- name: Install Foundry
171+
uses: foundry-rs/foundry-toolchain@v1
172+
with:
173+
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
174+
175+
- name: Checkout eigensdk-go
176+
uses: actions/checkout@v4
177+
with:
178+
repository: layr-labs/eigensdk-go
179+
token: ${{ github.token }}
180+
ref: 549e0185cee644d0a6fc9c9863f1cf76d9ef971f
181+
182+
- name: Run anvil chain
183+
run: |
184+
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
185+
186+
- name: Install EigenLayer CLI
187+
uses: actions/checkout@v4
188+
with:
189+
path: eigenlayer-cli
190+
191+
- name: Setup BATS
192+
uses: mig4/setup-bats@v1
193+
194+
- name: Install EigenLayer CLI
195+
run: |
196+
cd eigenlayer-cli
197+
make build
198+
./bin/eigenlayer --version
199+
200+
- name: Prepare Integration Test Environment
201+
run: |
202+
echo "Preparing environment for integration tests."
203+
cd eigenlayer-cli
204+
echo "CLI_PATH=${GITHUB_WORKSPACE}/bin/eigenlayer" >> .env
205+
206+
- name: Run User Command Integration Tests
207+
run: |
208+
cd eigenlayer-cli/tests/user
209+
./user-integration-tests-runner.sh

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ operator-config.yaml.old
88
operator.yaml
99
operator.yaml.old
1010
config/*
11+
updates.csv
1112

1213
# build
1314
dist/

cmd/eigenlayer/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func main() {
4343
app.Commands = append(app.Commands, pkg.RewardsCmd(prompter))
4444
app.Commands = append(app.Commands, pkg.KeysCmd(prompter))
4545
app.Commands = append(app.Commands, pkg.EigenPodCmd(prompter))
46+
app.Commands = append(app.Commands, pkg.UserCmd(prompter))
4647

4748
if err := app.Run(os.Args); err != nil {
4849
_, err := fmt.Fprintln(os.Stderr, err)

go.mod

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/Layr-Labs/eigenlayer-rewards-proofs v0.2.12
88
github.com/Layr-Labs/eigenpod-proofs-generation v0.0.14-stable.0.20240730152248-5c11a259293e
9-
github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212232631-72117286b6d8
9+
github.com/Layr-Labs/eigensdk-go v0.1.14-0.20241212232631-1dd4a5c5b30a
1010
github.com/Layr-Labs/protocol-apis v1.6.0
1111
github.com/akuity/grpc-gateway-client v0.0.0-20240912082144-55a48e8b4b89
1212
github.com/blang/semver/v4 v4.0.0
@@ -29,7 +29,10 @@ require (
2929

3030
require (
3131
github.com/Layr-Labs/eigenlayer-contracts v0.3.2-mainnet-rewards // indirect
32+
dario.cat/mergo v1.0.0 // indirect
33+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
3234
github.com/Microsoft/go-winio v0.6.2 // indirect
35+
github.com/Microsoft/hcsshim v0.11.4 // indirect
3336
github.com/StackExchange/wmi v1.2.1 // indirect
3437
github.com/alevinval/sse v1.0.1 // indirect
3538
github.com/attestantio/go-eth2-client v0.19.9 // indirect
@@ -56,21 +59,31 @@ require (
5659
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
5760
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
5861
github.com/buger/jsonparser v1.1.1 // indirect
62+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
5963
github.com/cespare/xxhash/v2 v2.3.0 // indirect
6064
github.com/consensys/bavard v0.1.13 // indirect
65+
github.com/containerd/containerd v1.7.12 // indirect
66+
github.com/containerd/log v0.1.0 // indirect
67+
github.com/cpuguy83/dockercfg v0.3.1 // indirect
6168
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
6269
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
6370
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
6471
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
6572
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
73+
github.com/distribution/reference v0.5.0 // indirect
74+
github.com/docker/docker v25.0.6+incompatible // indirect
75+
github.com/docker/go-connections v0.5.0 // indirect
76+
github.com/docker/go-units v0.5.0 // indirect
6677
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
78+
github.com/felixge/httpsnoop v1.0.4 // indirect
6779
github.com/ferranbt/fastssz v0.1.3 // indirect
6880
github.com/fsnotify/fsnotify v1.7.0 // indirect
6981
github.com/go-logr/logr v1.4.1 // indirect
7082
github.com/go-logr/stdr v1.2.2 // indirect
7183
github.com/go-ole/go-ole v1.3.0 // indirect
7284
github.com/go-resty/resty/v2 v2.7.0 // indirect
7385
github.com/goccy/go-yaml v1.9.2 // indirect
86+
github.com/gogo/protobuf v1.3.2 // indirect
7487
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
7588
github.com/golang/protobuf v1.5.4 // indirect
7689
github.com/google/uuid v1.6.0 // indirect
@@ -83,6 +96,8 @@ require (
8396
github.com/klauspost/compress v1.17.1 // indirect
8497
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
8598
github.com/lmittmann/tint v1.0.4 // indirect
99+
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
100+
github.com/magiconair/properties v1.8.7 // indirect
86101
github.com/mailru/easyjson v0.7.7 // indirect
87102
github.com/mattn/go-colorable v0.1.13 // indirect
88103
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -91,8 +106,16 @@ require (
91106
github.com/minio/sha256-simd v1.0.1 // indirect
92107
github.com/mitchellh/mapstructure v1.5.0 // indirect
93108
github.com/mmcloughlin/addchain v0.4.0 // indirect
109+
github.com/moby/patternmatcher v0.6.0 // indirect
110+
github.com/moby/sys/sequential v0.5.0 // indirect
111+
github.com/moby/sys/user v0.1.0 // indirect
112+
github.com/moby/term v0.5.0 // indirect
113+
github.com/morikuni/aec v1.0.0 // indirect
114+
github.com/opencontainers/go-digest v1.0.0 // indirect
115+
github.com/opencontainers/image-spec v1.1.0 // indirect
94116
github.com/pkg/errors v0.9.1 // indirect
95117
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
118+
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
96119
github.com/prometheus/client_golang v1.19.0 // indirect
97120
github.com/prometheus/client_model v0.5.0 // indirect
98121
github.com/prometheus/common v0.48.0 // indirect
@@ -103,12 +126,18 @@ require (
103126
github.com/rs/zerolog v1.29.1 // indirect
104127
github.com/russross/blackfriday/v2 v2.1.0 // indirect
105128
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
129+
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
130+
github.com/shoenig/go-m1cpu v0.1.6 // indirect
131+
github.com/sirupsen/logrus v1.9.3 // indirect
106132
github.com/supranational/blst v0.3.11 // indirect
107133
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
134+
github.com/testcontainers/testcontainers-go v0.30.0 // indirect
108135
github.com/tklauser/go-sysconf v0.3.12 // indirect
109136
github.com/tklauser/numcpus v0.6.1 // indirect
110137
github.com/wealdtech/go-merkletree/v2 v2.5.2-0.20240302222400-69219c450662 // indirect
111138
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
139+
github.com/yusufpapurcu/wmi v1.2.3 // indirect
140+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
112141
go.opentelemetry.io/otel v1.24.0 // indirect
113142
go.opentelemetry.io/otel/metric v1.24.0 // indirect
114143
go.opentelemetry.io/otel/trace v1.24.0 // indirect

0 commit comments

Comments
 (0)