-
Notifications
You must be signed in to change notification settings - Fork 106
160 lines (142 loc) · 5.11 KB
/
integration-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: integration-test
on:
push:
branches:
- master
pull_request:
jobs:
LocalKeystore:
name: Integration Test - Local Keystore
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
- name: Checkout eigensdk-go
uses: actions/checkout@v4
with:
repository: layr-labs/eigensdk-go
token: ${{ github.token }}
ref: 525ebfea245aadbd0497a5be2999c3b19dbbd68b
- name: Run anvil chain
run: |
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
- name: Install EigenLayer CLI
uses: actions/checkout@v4
with:
path: eigenlayer-cli
- name: Install less
run: |
sudo apt update
sudo apt-get install less
- name: Install EigenLayer CLI
run: |
cd eigenlayer-cli
make build
./bin/eigenlayer --version
- name: Import Operator Keys and send funds
run: |
cd eigenlayer-cli
echo "" | ./bin/eigenlayer keys import --key-type ecdsa --insecure opr0 ea25637d76e7ddae9dab9bfac7467d76a1e3bf2d67941b267edc60f2b80d9413 | cat
cast send 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634 --value 10ether --private-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6
- name: Register Operator
run: |
cd eigenlayer-cli
echo "" | ./bin/eigenlayer operator register tests/keystore/operator-ci.yaml
- name: Check operator status
run: |
cd eigenlayer-cli
./bin/eigenlayer operator status tests/keystore/operator-ci.yaml
- name: Update operator details
run: |
cd eigenlayer-cli
echo "" | ./bin/eigenlayer operator update tests/keystore/operator-ci.yaml
- name: Update operator metadata uri
run: |
cd eigenlayer-cli
echo "" | ./bin/eigenlayer operator update-metadata-uri tests/keystore/operator-ci.yaml
- name: Set Claimer address
run: |
cd eigenlayer-cli
echo "" | ./bin/eigenlayer rewards set-claimer \
--network anvil \
--eth-rpc-url http://localhost:8545 \
--earner-address 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634 \
--claimer-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /home/runner/.eigenlayer/operator_keys/opr0.ecdsa.key.json \
--verbose \
--broadcast
Web3Signer:
name: Integration Test - Web3 Signer
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
- name: Checkout eigensdk-go
uses: actions/checkout@v4
with:
repository: layr-labs/eigensdk-go
token: ${{ github.token }}
ref: 525ebfea245aadbd0497a5be2999c3b19dbbd68b
- name: Run anvil chain
run: |
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
- name: Install EigenLayer CLI
uses: actions/checkout@v4
with:
path: eigenlayer-cli
- name: Install less
run: |
sudo apt update
sudo apt-get install less
- name: Install EigenLayer CLI
run: |
cd eigenlayer-cli
make build
./bin/eigenlayer --version
- name: Run Web3 Signer
run: |
cd eigenlayer-cli/tests/web3signer
docker compose up -d
- name: Send funds
run: |
cd eigenlayer-cli
sleep 5
cast send 0x7dbc809c1ec153d45ffb0c75fb4fded68e34699e --value 10ether --private-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6
- name: Register Operator
run: |
cd eigenlayer-cli
sleep 5
./bin/eigenlayer operator register tests/web3signer/operator-ci.yaml
- name: Check operator status
run: |
cd eigenlayer-cli
./bin/eigenlayer operator status tests/web3signer/operator-ci.yaml
- name: Update operator details
run: |
cd eigenlayer-cli
./bin/eigenlayer operator update tests/web3signer/operator-ci.yaml
- name: Update operator metadata uri
run: |
cd eigenlayer-cli
./bin/eigenlayer operator update-metadata-uri tests/web3signer/operator-ci.yaml
- name: Set Claimer address
run: |
cd eigenlayer-cli
./bin/eigenlayer rewards set-claimer \
--network anvil \
--eth-rpc-url http://localhost:8545 \
--earner-address 0x7dbc809c1ec153d45ffb0c75fb4fded68e34699e \
--claimer-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--web3signer-url http://127.0.0.1:9001 \
--verbose \
--broadcast