@lidofinance/lsv-cli 1.0.0-alpha.23 → 1.0.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +15 -44
  2. package/dist/abi/BlsHarness.js +232 -0
  3. package/dist/abi/BlsHarness.js.map +1 -0
  4. package/dist/abi/CLProofVerifier.js +47 -79
  5. package/dist/abi/CLProofVerifier.js.map +1 -1
  6. package/dist/abi/Dashboard.js +618 -196
  7. package/dist/abi/Dashboard.js.map +1 -1
  8. package/dist/abi/LidoLocator.js +7 -7
  9. package/dist/abi/LidoLocator.js.map +1 -1
  10. package/dist/abi/{Delegation.js → OperatorGrid.js} +466 -1067
  11. package/dist/abi/OperatorGrid.js.map +1 -0
  12. package/dist/abi/PredepositGuarantee.js +69 -13
  13. package/dist/abi/PredepositGuarantee.js.map +1 -1
  14. package/dist/abi/StEth.js +341 -341
  15. package/dist/abi/StEth.js.map +1 -1
  16. package/dist/abi/StakingVault.js +207 -73
  17. package/dist/abi/StakingVault.js.map +1 -1
  18. package/dist/abi/VaultFactory.js +67 -104
  19. package/dist/abi/VaultFactory.js.map +1 -1
  20. package/dist/abi/VaultHub.js +347 -237
  21. package/dist/abi/VaultHub.js.map +1 -1
  22. package/dist/abi/WstEth.js +478 -0
  23. package/dist/abi/WstEth.js.map +1 -0
  24. package/dist/abi/index.js +5 -2
  25. package/dist/abi/index.js.map +1 -1
  26. package/dist/configs/constants.js +2 -2
  27. package/dist/configs/constants.js.map +1 -1
  28. package/dist/configs/deployed.js +21 -47
  29. package/dist/configs/deployed.js.map +1 -1
  30. package/dist/configs/envs.js +5 -6
  31. package/dist/configs/envs.js.map +1 -1
  32. package/dist/configs/utils.js +4 -8
  33. package/dist/configs/utils.js.map +1 -1
  34. package/dist/contracts/blsHarness.js +24 -0
  35. package/dist/contracts/blsHarness.js.map +1 -0
  36. package/dist/contracts/clProofVerifier.js +4 -10
  37. package/dist/contracts/clProofVerifier.js.map +1 -1
  38. package/dist/contracts/index.js +3 -1
  39. package/dist/contracts/index.js.map +1 -1
  40. package/dist/contracts/locator.js +3 -3
  41. package/dist/contracts/locator.js.map +1 -1
  42. package/dist/contracts/operator-grid.js +17 -0
  43. package/dist/contracts/operator-grid.js.map +1 -0
  44. package/dist/contracts/pdg.js +2 -2
  45. package/dist/contracts/pdg.js.map +1 -1
  46. package/dist/contracts/reportChecker.js +4 -5
  47. package/dist/contracts/reportChecker.js.map +1 -1
  48. package/dist/contracts/steth.js +3 -3
  49. package/dist/contracts/steth.js.map +1 -1
  50. package/dist/contracts/token-manager.js +3 -3
  51. package/dist/contracts/token-manager.js.map +1 -1
  52. package/dist/contracts/vault-factory.js +2 -2
  53. package/dist/contracts/vault-factory.js.map +1 -1
  54. package/dist/contracts/vault-hub.js +3 -3
  55. package/dist/contracts/vault-hub.js.map +1 -1
  56. package/dist/contracts/vault-viewer.js +4 -6
  57. package/dist/contracts/vault-viewer.js.map +1 -1
  58. package/dist/contracts/vault.js +2 -2
  59. package/dist/contracts/vault.js.map +1 -1
  60. package/dist/contracts/voting.js +3 -3
  61. package/dist/contracts/voting.js.map +1 -1
  62. package/dist/contracts/wsteth.js +18 -0
  63. package/dist/contracts/wsteth.js.map +1 -0
  64. package/dist/features/advanced-config.js +3 -2
  65. package/dist/features/advanced-config.js.map +1 -1
  66. package/dist/features/dashboard.js +131 -0
  67. package/dist/features/dashboard.js.map +1 -0
  68. package/dist/features/index.js +8 -4
  69. package/dist/features/index.js.map +1 -1
  70. package/dist/features/operator-grid.js +57 -0
  71. package/dist/features/operator-grid.js.map +1 -0
  72. package/dist/features/pdg.js +79 -0
  73. package/dist/features/pdg.js.map +1 -0
  74. package/dist/features/vault-factory.js +33 -6
  75. package/dist/features/vault-factory.js.map +1 -1
  76. package/dist/features/vault-hub.js +81 -0
  77. package/dist/features/vault-hub.js.map +1 -0
  78. package/dist/features/vault.js +54 -0
  79. package/dist/features/vault.js.map +1 -0
  80. package/dist/features/voting.js +5 -9
  81. package/dist/features/voting.js.map +1 -1
  82. package/dist/index.js +2 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/programs/account.js +107 -5
  85. package/dist/programs/account.js.map +1 -1
  86. package/dist/programs/config.js +2 -2
  87. package/dist/programs/config.js.map +1 -1
  88. package/dist/programs/dashboard/config.js +63 -17
  89. package/dist/programs/dashboard/config.js.map +1 -1
  90. package/dist/programs/dashboard/main.js +0 -7
  91. package/dist/programs/dashboard/main.js.map +1 -1
  92. package/dist/programs/dashboard/read.js +64 -42
  93. package/dist/programs/dashboard/read.js.map +1 -1
  94. package/dist/programs/dashboard/write.js +259 -155
  95. package/dist/programs/dashboard/write.js.map +1 -1
  96. package/dist/programs/hub/config.js +28 -32
  97. package/dist/programs/hub/config.js.map +1 -1
  98. package/dist/programs/hub/main.js +0 -7
  99. package/dist/programs/hub/main.js.map +1 -1
  100. package/dist/programs/hub/read.js +30 -35
  101. package/dist/programs/hub/read.js.map +1 -1
  102. package/dist/programs/hub/write.js +148 -40
  103. package/dist/programs/hub/write.js.map +1 -1
  104. package/dist/programs/index.js +1 -1
  105. package/dist/programs/index.js.map +1 -1
  106. package/dist/programs/operator-grid/config.js +81 -0
  107. package/dist/programs/operator-grid/config.js.map +1 -0
  108. package/dist/programs/operator-grid/index.js.map +1 -0
  109. package/dist/programs/operator-grid/main.js +5 -0
  110. package/dist/programs/operator-grid/main.js.map +1 -0
  111. package/dist/programs/operator-grid/read.js +24 -0
  112. package/dist/programs/operator-grid/read.js.map +1 -0
  113. package/dist/programs/operator-grid/write.js +109 -0
  114. package/dist/programs/operator-grid/write.js.map +1 -0
  115. package/dist/programs/pdg/config.js +49 -13
  116. package/dist/programs/pdg/config.js.map +1 -1
  117. package/dist/programs/pdg/main.js +0 -7
  118. package/dist/programs/pdg/main.js.map +1 -1
  119. package/dist/programs/pdg/read.js +20 -3
  120. package/dist/programs/pdg/read.js.map +1 -1
  121. package/dist/programs/pdg/write.js +147 -82
  122. package/dist/programs/pdg/write.js.map +1 -1
  123. package/dist/programs/pdg-helpers.js +155 -38
  124. package/dist/programs/pdg-helpers.js.map +1 -1
  125. package/dist/programs/report.js +66 -78
  126. package/dist/programs/report.js.map +1 -1
  127. package/dist/programs/vault/config.js +6 -2
  128. package/dist/programs/vault/config.js.map +1 -1
  129. package/dist/programs/vault/main.js +0 -7
  130. package/dist/programs/vault/main.js.map +1 -1
  131. package/dist/programs/vault/read.js +16 -44
  132. package/dist/programs/vault/read.js.map +1 -1
  133. package/dist/programs/vault/write.js +117 -33
  134. package/dist/programs/vault/write.js.map +1 -1
  135. package/dist/programs/vault-factory/main.js +0 -7
  136. package/dist/programs/vault-factory/main.js.map +1 -1
  137. package/dist/programs/vault-factory/read.js +17 -19
  138. package/dist/programs/vault-factory/read.js.map +1 -1
  139. package/dist/programs/vault-factory/write.js +30 -52
  140. package/dist/programs/vault-factory/write.js.map +1 -1
  141. package/dist/programs/vault-viewer/main.js +2 -2
  142. package/dist/programs/vault-viewer/main.js.map +1 -1
  143. package/dist/programs/voting.js +8 -23
  144. package/dist/programs/voting.js.map +1 -1
  145. package/dist/providers/wallet.js +4 -4
  146. package/dist/providers/wallet.js.map +1 -1
  147. package/dist/utils/arguments.js +44 -1
  148. package/dist/utils/arguments.js.map +1 -1
  149. package/dist/utils/bls.js +101 -0
  150. package/dist/utils/bls.js.map +1 -0
  151. package/dist/utils/commands/dashboard.js +103 -0
  152. package/dist/utils/commands/dashboard.js.map +1 -0
  153. package/dist/utils/commands/index.js +2 -0
  154. package/dist/utils/commands/index.js.map +1 -0
  155. package/dist/utils/contract.js +54 -15
  156. package/dist/utils/contract.js.map +1 -1
  157. package/dist/utils/data-validators.js +7 -22
  158. package/dist/utils/data-validators.js.map +1 -1
  159. package/dist/utils/error-handler.js +5 -2
  160. package/dist/utils/error-handler.js.map +1 -1
  161. package/dist/utils/fetchCL.js +57 -0
  162. package/dist/utils/fetchCL.js.map +1 -0
  163. package/dist/utils/get-deposit-data-root.js +3 -3
  164. package/dist/utils/health.js +69 -7
  165. package/dist/utils/health.js.map +1 -1
  166. package/dist/utils/index.js +6 -1
  167. package/dist/utils/index.js.map +1 -1
  168. package/dist/utils/ipfs.js +54 -0
  169. package/dist/utils/ipfs.js.map +1 -0
  170. package/dist/utils/logging/console.js +23 -0
  171. package/dist/utils/logging/console.js.map +1 -0
  172. package/dist/utils/logging/constants.js +12 -0
  173. package/dist/utils/logging/constants.js.map +1 -0
  174. package/dist/utils/logging/index.js +2 -0
  175. package/dist/utils/logging/index.js.map +1 -0
  176. package/dist/utils/prompts/dashboard.js +63 -0
  177. package/dist/utils/prompts/dashboard.js.map +1 -0
  178. package/dist/utils/prompts/index.js +2 -1
  179. package/dist/utils/prompts/index.js.map +1 -1
  180. package/dist/utils/prompts/operations.js +41 -0
  181. package/dist/utils/prompts/operations.js.map +1 -0
  182. package/dist/utils/prompts/predeposit-guarantee.js +10 -13
  183. package/dist/utils/prompts/predeposit-guarantee.js.map +1 -1
  184. package/dist/utils/prompts/vault.js +4 -1
  185. package/dist/utils/prompts/vault.js.map +1 -1
  186. package/dist/utils/proof/create-proof.js +6 -30
  187. package/dist/utils/proof/create-proof.js.map +1 -1
  188. package/dist/utils/proof/first-validator-gindex.js +2 -1
  189. package/dist/utils/proof/first-validator-gindex.js.map +1 -1
  190. package/dist/utils/proof/merkle-utils.js +15 -3
  191. package/dist/utils/proof/merkle-utils.js.map +1 -1
  192. package/dist/utils/proof/report-proof.js +11 -6
  193. package/dist/utils/proof/report-proof.js.map +1 -1
  194. package/dist/utils/read-programs-by-abi.js +2 -2
  195. package/dist/utils/read-programs-by-abi.js.map +1 -1
  196. package/dist/utils/report.js +17 -17
  197. package/dist/utils/report.js.map +1 -1
  198. package/dist/utils/required-lock.js +21 -0
  199. package/dist/utils/required-lock.js.map +1 -0
  200. package/dist/version/index.js +1 -1
  201. package/package.json +10 -4
  202. package/dist/abi/Delegation.js.map +0 -1
  203. package/dist/contracts/delegation.js +0 -11
  204. package/dist/contracts/delegation.js.map +0 -1
  205. package/dist/features/dashboard-delegation.js +0 -25
  206. package/dist/features/dashboard-delegation.js.map +0 -1
  207. package/dist/programs/delegation/config.js +0 -33
  208. package/dist/programs/delegation/config.js.map +0 -1
  209. package/dist/programs/delegation/index.js.map +0 -1
  210. package/dist/programs/delegation/main.js +0 -12
  211. package/dist/programs/delegation/main.js.map +0 -1
  212. package/dist/programs/delegation/read.js +0 -104
  213. package/dist/programs/delegation/read.js.map +0 -1
  214. package/dist/programs/delegation/write.js +0 -323
  215. package/dist/programs/delegation/write.js.map +0 -1
  216. package/dist/utils/parse-string.js +0 -20
  217. package/dist/utils/parse-string.js.map +0 -1
  218. package/dist/utils/prompts/delegation-dashboard.js +0 -29
  219. package/dist/utils/prompts/delegation-dashboard.js.map +0 -1
  220. /package/dist/programs/{delegation → operator-grid}/index.js +0 -0
@@ -1,14 +1,9 @@
1
- export const DelegationAbi = [
1
+ export const OperatorGridAbi = [
2
2
  {
3
3
  inputs: [
4
4
  {
5
- internalType: 'address',
6
- name: '_weth',
7
- type: 'address',
8
- },
9
- {
10
- internalType: 'address',
11
- name: '_lidoLocator',
5
+ internalType: 'contract ILidoLocator',
6
+ name: '_locator',
12
7
  type: 'address',
13
8
  },
14
9
  ],
@@ -38,171 +33,207 @@ export const DelegationAbi = [
38
33
  },
39
34
  {
40
35
  inputs: [],
41
- name: 'AlreadyInitialized',
42
- type: 'error',
43
- },
44
- {
45
- inputs: [],
46
- name: 'CombinedFeesExceed100Percent',
47
- type: 'error',
48
- },
49
- {
50
- inputs: [],
51
- name: 'ConfirmExpiryOutOfBounds',
52
- type: 'error',
53
- },
54
- {
55
- inputs: [],
56
- name: 'CuratorFeeUnclaimed',
36
+ name: 'CannotChangeToDefaultTier',
57
37
  type: 'error',
58
38
  },
59
39
  {
60
40
  inputs: [
61
41
  {
62
- internalType: 'address',
63
- name: 'recipient',
64
- type: 'address',
42
+ internalType: 'uint256',
43
+ name: 'tierId',
44
+ type: 'uint256',
65
45
  },
66
46
  {
67
47
  internalType: 'uint256',
68
- name: 'amount',
48
+ name: 'forcedRebalanceThresholdBP',
49
+ type: 'uint256',
50
+ },
51
+ {
52
+ internalType: 'uint256',
53
+ name: 'reserveRatioBP',
69
54
  type: 'uint256',
70
55
  },
71
56
  ],
72
- name: 'EthTransferFailed',
57
+ name: 'ForcedRebalanceThresholdTooHigh',
73
58
  type: 'error',
74
59
  },
75
60
  {
76
- inputs: [
77
- {
78
- internalType: 'address',
79
- name: 'token',
80
- type: 'address',
81
- },
82
- ],
83
- name: 'InvalidPermit',
61
+ inputs: [],
62
+ name: 'GroupExists',
63
+ type: 'error',
64
+ },
65
+ {
66
+ inputs: [],
67
+ name: 'GroupLimitExceeded',
84
68
  type: 'error',
85
69
  },
86
70
  {
87
71
  inputs: [],
88
- name: 'NodeOperatorFeeUnclaimed',
72
+ name: 'GroupMintedSharesUnderflow',
89
73
  type: 'error',
90
74
  },
91
75
  {
92
76
  inputs: [],
93
- name: 'NonProxyCallsForbidden',
77
+ name: 'GroupNotExists',
94
78
  type: 'error',
95
79
  },
96
80
  {
97
81
  inputs: [],
98
- name: 'RequestedAmountExceedsUnreserved',
82
+ name: 'InvalidInitialization',
99
83
  type: 'error',
100
84
  },
101
85
  {
102
86
  inputs: [
103
87
  {
104
- internalType: 'address',
105
- name: 'token',
106
- type: 'address',
88
+ internalType: 'uint256',
89
+ name: 'requestedTierId',
90
+ type: 'uint256',
91
+ },
92
+ {
93
+ internalType: 'uint256',
94
+ name: 'confirmedTierId',
95
+ type: 'uint256',
107
96
  },
108
97
  ],
109
- name: 'SafeERC20FailedOperation',
98
+ name: 'InvalidTierId',
110
99
  type: 'error',
111
100
  },
112
101
  {
113
102
  inputs: [],
114
- name: 'SenderNotMember',
103
+ name: 'NodeOperatorNotExists',
115
104
  type: 'error',
116
105
  },
117
106
  {
118
107
  inputs: [
119
108
  {
120
109
  internalType: 'string',
121
- name: 'argument',
110
+ name: 'operation',
122
111
  type: 'string',
123
112
  },
113
+ {
114
+ internalType: 'address',
115
+ name: 'sender',
116
+ type: 'address',
117
+ },
124
118
  ],
125
- name: 'ZeroArgument',
119
+ name: 'NotAuthorized',
126
120
  type: 'error',
127
121
  },
128
122
  {
129
123
  inputs: [],
130
- name: 'ZeroConfirmingRoles',
124
+ name: 'NotInitializing',
131
125
  type: 'error',
132
126
  },
133
127
  {
134
- anonymous: false,
135
128
  inputs: [
136
129
  {
137
- indexed: true,
138
- internalType: 'address',
139
- name: 'sender',
140
- type: 'address',
130
+ internalType: 'uint256',
131
+ name: 'tierId',
132
+ type: 'uint256',
141
133
  },
142
134
  {
143
- indexed: false,
144
135
  internalType: 'uint256',
145
- name: 'oldConfirmExpiry',
136
+ name: 'reserveRatioBP',
146
137
  type: 'uint256',
147
138
  },
148
139
  {
149
- indexed: false,
150
140
  internalType: 'uint256',
151
- name: 'newConfirmExpiry',
141
+ name: 'maxReserveRatioBP',
152
142
  type: 'uint256',
153
143
  },
154
144
  ],
155
- name: 'ConfirmExpirySet',
156
- type: 'event',
145
+ name: 'ReserveRatioTooHigh',
146
+ type: 'error',
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: 'TierAlreadyRequested',
151
+ type: 'error',
152
+ },
153
+ {
154
+ inputs: [],
155
+ name: 'TierAlreadySet',
156
+ type: 'error',
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: 'TierExists',
161
+ type: 'error',
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: 'TierLimitExceeded',
166
+ type: 'error',
167
+ },
168
+ {
169
+ inputs: [],
170
+ name: 'TierMintedSharesUnderflow',
171
+ type: 'error',
172
+ },
173
+ {
174
+ inputs: [],
175
+ name: 'TierNotExists',
176
+ type: 'error',
177
+ },
178
+ {
179
+ inputs: [],
180
+ name: 'TierNotInOperatorGroup',
181
+ type: 'error',
182
+ },
183
+ {
184
+ inputs: [],
185
+ name: 'TiersNotAvailable',
186
+ type: 'error',
157
187
  },
158
188
  {
159
- anonymous: false,
160
189
  inputs: [
161
190
  {
162
- indexed: true,
163
- internalType: 'address',
164
- name: 'sender',
165
- type: 'address',
191
+ internalType: 'uint256',
192
+ name: 'tierId',
193
+ type: 'uint256',
166
194
  },
167
195
  {
168
- indexed: false,
169
196
  internalType: 'uint256',
170
- name: 'oldCuratorFeeBP',
197
+ name: 'treasuryFeeBP',
171
198
  type: 'uint256',
172
199
  },
173
200
  {
174
- indexed: false,
175
201
  internalType: 'uint256',
176
- name: 'newCuratorFeeBP',
202
+ name: 'maxTreasuryFeeBP',
177
203
  type: 'uint256',
178
204
  },
179
205
  ],
180
- name: 'CuratorFeeBPSet',
181
- type: 'event',
206
+ name: 'TreasuryFeeTooHigh',
207
+ type: 'error',
182
208
  },
183
209
  {
184
- anonymous: false,
185
210
  inputs: [
186
211
  {
187
- indexed: true,
188
- internalType: 'address',
189
- name: 'to',
190
- type: 'address',
212
+ internalType: 'string',
213
+ name: 'argument',
214
+ type: 'string',
191
215
  },
216
+ ],
217
+ name: 'ZeroArgument',
218
+ type: 'error',
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
192
223
  {
193
224
  indexed: true,
194
225
  internalType: 'address',
195
- name: 'token',
226
+ name: 'nodeOperator',
196
227
  type: 'address',
197
228
  },
198
229
  {
199
230
  indexed: false,
200
231
  internalType: 'uint256',
201
- name: 'amount',
232
+ name: 'shareLimit',
202
233
  type: 'uint256',
203
234
  },
204
235
  ],
205
- name: 'ERC20Recovered',
236
+ name: 'GroupAdded',
206
237
  type: 'event',
207
238
  },
208
239
  {
@@ -211,23 +242,17 @@ export const DelegationAbi = [
211
242
  {
212
243
  indexed: true,
213
244
  internalType: 'address',
214
- name: 'to',
215
- type: 'address',
216
- },
217
- {
218
- indexed: true,
219
- internalType: 'address',
220
- name: 'token',
245
+ name: 'nodeOperator',
221
246
  type: 'address',
222
247
  },
223
248
  {
224
249
  indexed: false,
225
250
  internalType: 'uint256',
226
- name: 'tokenId',
251
+ name: 'shareLimit',
227
252
  type: 'uint256',
228
253
  },
229
254
  ],
230
- name: 'ERC721Recovered',
255
+ name: 'GroupShareLimitUpdated',
231
256
  type: 'event',
232
257
  },
233
258
  {
@@ -235,9 +260,9 @@ export const DelegationAbi = [
235
260
  inputs: [
236
261
  {
237
262
  indexed: false,
238
- internalType: 'address',
239
- name: '_defaultAdmin',
240
- type: 'address',
263
+ internalType: 'uint64',
264
+ name: 'version',
265
+ type: 'uint64',
241
266
  },
242
267
  ],
243
268
  name: 'Initialized',
@@ -248,24 +273,24 @@ export const DelegationAbi = [
248
273
  inputs: [
249
274
  {
250
275
  indexed: true,
251
- internalType: 'address',
252
- name: 'sender',
253
- type: 'address',
276
+ internalType: 'bytes32',
277
+ name: 'role',
278
+ type: 'bytes32',
254
279
  },
255
280
  {
256
- indexed: false,
257
- internalType: 'uint256',
258
- name: 'oldNodeOperatorFeeBP',
259
- type: 'uint256',
281
+ indexed: true,
282
+ internalType: 'bytes32',
283
+ name: 'previousAdminRole',
284
+ type: 'bytes32',
260
285
  },
261
286
  {
262
- indexed: false,
263
- internalType: 'uint256',
264
- name: 'newNodeOperatorFeeBP',
265
- type: 'uint256',
287
+ indexed: true,
288
+ internalType: 'bytes32',
289
+ name: 'newAdminRole',
290
+ type: 'bytes32',
266
291
  },
267
292
  ],
268
- name: 'NodeOperatorFeeBPSet',
293
+ name: 'RoleAdminChanged',
269
294
  type: 'event',
270
295
  },
271
296
  {
@@ -279,18 +304,18 @@ export const DelegationAbi = [
279
304
  },
280
305
  {
281
306
  indexed: true,
282
- internalType: 'bytes32',
283
- name: 'previousAdminRole',
284
- type: 'bytes32',
307
+ internalType: 'address',
308
+ name: 'account',
309
+ type: 'address',
285
310
  },
286
311
  {
287
312
  indexed: true,
288
- internalType: 'bytes32',
289
- name: 'newAdminRole',
290
- type: 'bytes32',
313
+ internalType: 'address',
314
+ name: 'sender',
315
+ type: 'address',
291
316
  },
292
317
  ],
293
- name: 'RoleAdminChanged',
318
+ name: 'RoleGranted',
294
319
  type: 'event',
295
320
  },
296
321
  {
@@ -315,7 +340,7 @@ export const DelegationAbi = [
315
340
  type: 'address',
316
341
  },
317
342
  ],
318
- name: 'RoleGranted',
343
+ name: 'RoleRevoked',
319
344
  type: 'event',
320
345
  },
321
346
  {
@@ -324,29 +349,41 @@ export const DelegationAbi = [
324
349
  {
325
350
  indexed: true,
326
351
  internalType: 'address',
327
- name: 'member',
352
+ name: 'nodeOperator',
328
353
  type: 'address',
329
354
  },
330
355
  {
331
356
  indexed: true,
332
- internalType: 'bytes32',
333
- name: 'role',
334
- type: 'bytes32',
357
+ internalType: 'uint256',
358
+ name: 'tierId',
359
+ type: 'uint256',
360
+ },
361
+ {
362
+ indexed: false,
363
+ internalType: 'uint256',
364
+ name: 'shareLimit',
365
+ type: 'uint256',
366
+ },
367
+ {
368
+ indexed: false,
369
+ internalType: 'uint256',
370
+ name: 'reserveRatioBP',
371
+ type: 'uint256',
335
372
  },
336
373
  {
337
374
  indexed: false,
338
375
  internalType: 'uint256',
339
- name: 'expiryTimestamp',
376
+ name: 'forcedRebalanceThresholdBP',
340
377
  type: 'uint256',
341
378
  },
342
379
  {
343
380
  indexed: false,
344
- internalType: 'bytes',
345
- name: 'data',
346
- type: 'bytes',
381
+ internalType: 'uint256',
382
+ name: 'treasuryFee',
383
+ type: 'uint256',
347
384
  },
348
385
  ],
349
- name: 'RoleMemberConfirmed',
386
+ name: 'TierAdded',
350
387
  type: 'event',
351
388
  },
352
389
  {
@@ -354,29 +391,98 @@ export const DelegationAbi = [
354
391
  inputs: [
355
392
  {
356
393
  indexed: true,
357
- internalType: 'bytes32',
358
- name: 'role',
359
- type: 'bytes32',
394
+ internalType: 'address',
395
+ name: 'vault',
396
+ type: 'address',
397
+ },
398
+ {
399
+ indexed: true,
400
+ internalType: 'uint256',
401
+ name: 'currentTierId',
402
+ type: 'uint256',
360
403
  },
404
+ {
405
+ indexed: true,
406
+ internalType: 'uint256',
407
+ name: 'requestedTierId',
408
+ type: 'uint256',
409
+ },
410
+ ],
411
+ name: 'TierChangeRequested',
412
+ type: 'event',
413
+ },
414
+ {
415
+ anonymous: false,
416
+ inputs: [
361
417
  {
362
418
  indexed: true,
363
419
  internalType: 'address',
364
- name: 'account',
420
+ name: 'vault',
365
421
  type: 'address',
366
422
  },
423
+ {
424
+ indexed: true,
425
+ internalType: 'uint256',
426
+ name: 'tierId',
427
+ type: 'uint256',
428
+ },
429
+ ],
430
+ name: 'TierChanged',
431
+ type: 'event',
432
+ },
433
+ {
434
+ anonymous: false,
435
+ inputs: [
436
+ {
437
+ indexed: true,
438
+ internalType: 'uint256',
439
+ name: 'tierId',
440
+ type: 'uint256',
441
+ },
442
+ {
443
+ indexed: false,
444
+ internalType: 'uint256',
445
+ name: 'shareLimit',
446
+ type: 'uint256',
447
+ },
448
+ {
449
+ indexed: false,
450
+ internalType: 'uint256',
451
+ name: 'reserveRatioBP',
452
+ type: 'uint256',
453
+ },
454
+ {
455
+ indexed: false,
456
+ internalType: 'uint256',
457
+ name: 'forcedRebalanceThresholdBP',
458
+ type: 'uint256',
459
+ },
460
+ {
461
+ indexed: false,
462
+ internalType: 'uint256',
463
+ name: 'treasuryFee',
464
+ type: 'uint256',
465
+ },
466
+ ],
467
+ name: 'TierUpdated',
468
+ type: 'event',
469
+ },
470
+ {
471
+ anonymous: false,
472
+ inputs: [
367
473
  {
368
474
  indexed: true,
369
475
  internalType: 'address',
370
- name: 'sender',
476
+ name: 'vault',
371
477
  type: 'address',
372
478
  },
373
479
  ],
374
- name: 'RoleRevoked',
480
+ name: 'VaultAdded',
375
481
  type: 'event',
376
482
  },
377
483
  {
378
484
  inputs: [],
379
- name: 'ASSET_RECOVERY_ROLE',
485
+ name: 'DEFAULT_ADMIN_ROLE',
380
486
  outputs: [
381
487
  {
382
488
  internalType: 'bytes32',
@@ -389,12 +495,12 @@ export const DelegationAbi = [
389
495
  },
390
496
  {
391
497
  inputs: [],
392
- name: 'BURN_ROLE',
498
+ name: 'DEFAULT_TIER_ID',
393
499
  outputs: [
394
500
  {
395
- internalType: 'bytes32',
501
+ internalType: 'uint256',
396
502
  name: '',
397
- type: 'bytes32',
503
+ type: 'uint256',
398
504
  },
399
505
  ],
400
506
  stateMutability: 'view',
@@ -402,558 +508,25 @@ export const DelegationAbi = [
402
508
  },
403
509
  {
404
510
  inputs: [],
405
- name: 'CURATOR_FEE_CLAIM_ROLE',
511
+ name: 'DEFAULT_TIER_OPERATOR',
406
512
  outputs: [
407
513
  {
408
- internalType: 'bytes32',
514
+ internalType: 'address',
409
515
  name: '',
410
- type: 'bytes32',
411
- },
412
- ],
413
- stateMutability: 'view',
414
- type: 'function',
415
- },
416
- {
417
- inputs: [],
418
- name: 'CURATOR_FEE_SET_ROLE',
419
- outputs: [
420
- {
421
- internalType: 'bytes32',
422
- name: '',
423
- type: 'bytes32',
424
- },
425
- ],
426
- stateMutability: 'view',
427
- type: 'function',
428
- },
429
- {
430
- inputs: [],
431
- name: 'DEFAULT_ADMIN_ROLE',
432
- outputs: [
433
- {
434
- internalType: 'bytes32',
435
- name: '',
436
- type: 'bytes32',
437
- },
438
- ],
439
- stateMutability: 'view',
440
- type: 'function',
441
- },
442
- {
443
- inputs: [],
444
- name: 'ETH',
445
- outputs: [
446
- {
447
- internalType: 'address',
448
- name: '',
449
- type: 'address',
450
- },
451
- ],
452
- stateMutability: 'view',
453
- type: 'function',
454
- },
455
- {
456
- inputs: [],
457
- name: 'FUND_ROLE',
458
- outputs: [
459
- {
460
- internalType: 'bytes32',
461
- name: '',
462
- type: 'bytes32',
463
- },
464
- ],
465
- stateMutability: 'view',
466
- type: 'function',
467
- },
468
- {
469
- inputs: [],
470
- name: 'MAX_CONFIRM_EXPIRY',
471
- outputs: [
472
- {
473
- internalType: 'uint256',
474
- name: '',
475
- type: 'uint256',
476
- },
477
- ],
478
- stateMutability: 'view',
479
- type: 'function',
480
- },
481
- {
482
- inputs: [],
483
- name: 'MINT_ROLE',
484
- outputs: [
485
- {
486
- internalType: 'bytes32',
487
- name: '',
488
- type: 'bytes32',
489
- },
490
- ],
491
- stateMutability: 'view',
492
- type: 'function',
493
- },
494
- {
495
- inputs: [],
496
- name: 'MIN_CONFIRM_EXPIRY',
497
- outputs: [
498
- {
499
- internalType: 'uint256',
500
- name: '',
501
- type: 'uint256',
502
- },
503
- ],
504
- stateMutability: 'view',
505
- type: 'function',
506
- },
507
- {
508
- inputs: [],
509
- name: 'NODE_OPERATOR_FEE_CLAIM_ROLE',
510
- outputs: [
511
- {
512
- internalType: 'bytes32',
513
- name: '',
514
- type: 'bytes32',
515
- },
516
- ],
517
- stateMutability: 'view',
518
- type: 'function',
519
- },
520
- {
521
- inputs: [],
522
- name: 'NODE_OPERATOR_MANAGER_ROLE',
523
- outputs: [
524
- {
525
- internalType: 'bytes32',
526
- name: '',
527
- type: 'bytes32',
528
- },
529
- ],
530
- stateMutability: 'view',
531
- type: 'function',
532
- },
533
- {
534
- inputs: [],
535
- name: 'PAUSE_BEACON_CHAIN_DEPOSITS_ROLE',
536
- outputs: [
537
- {
538
- internalType: 'bytes32',
539
- name: '',
540
- type: 'bytes32',
541
- },
542
- ],
543
- stateMutability: 'view',
544
- type: 'function',
545
- },
546
- {
547
- inputs: [],
548
- name: 'PDG_WITHDRAWAL_ROLE',
549
- outputs: [
550
- {
551
- internalType: 'bytes32',
552
- name: '',
553
- type: 'bytes32',
554
- },
555
- ],
556
- stateMutability: 'view',
557
- type: 'function',
558
- },
559
- {
560
- inputs: [],
561
- name: 'REBALANCE_ROLE',
562
- outputs: [
563
- {
564
- internalType: 'bytes32',
565
- name: '',
566
- type: 'bytes32',
567
- },
568
- ],
569
- stateMutability: 'view',
570
- type: 'function',
571
- },
572
- {
573
- inputs: [],
574
- name: 'REQUEST_VALIDATOR_EXIT_ROLE',
575
- outputs: [
576
- {
577
- internalType: 'bytes32',
578
- name: '',
579
- type: 'bytes32',
580
- },
581
- ],
582
- stateMutability: 'view',
583
- type: 'function',
584
- },
585
- {
586
- inputs: [],
587
- name: 'RESUME_BEACON_CHAIN_DEPOSITS_ROLE',
588
- outputs: [
589
- {
590
- internalType: 'bytes32',
591
- name: '',
592
- type: 'bytes32',
593
- },
594
- ],
595
- stateMutability: 'view',
596
- type: 'function',
597
- },
598
- {
599
- inputs: [],
600
- name: 'STETH',
601
- outputs: [
602
- {
603
- internalType: 'contract ILido',
604
- name: '',
605
- type: 'address',
606
- },
607
- ],
608
- stateMutability: 'view',
609
- type: 'function',
610
- },
611
- {
612
- inputs: [],
613
- name: 'TRIGGER_VALIDATOR_WITHDRAWAL_ROLE',
614
- outputs: [
615
- {
616
- internalType: 'bytes32',
617
- name: '',
618
- type: 'bytes32',
619
- },
620
- ],
621
- stateMutability: 'view',
622
- type: 'function',
623
- },
624
- {
625
- inputs: [],
626
- name: 'VOLUNTARY_DISCONNECT_ROLE',
627
- outputs: [
628
- {
629
- internalType: 'bytes32',
630
- name: '',
631
- type: 'bytes32',
632
- },
633
- ],
634
- stateMutability: 'view',
635
- type: 'function',
636
- },
637
- {
638
- inputs: [],
639
- name: 'WETH',
640
- outputs: [
641
- {
642
- internalType: 'contract IWETH9',
643
- name: '',
644
- type: 'address',
645
- },
646
- ],
647
- stateMutability: 'view',
648
- type: 'function',
649
- },
650
- {
651
- inputs: [],
652
- name: 'WITHDRAW_ROLE',
653
- outputs: [
654
- {
655
- internalType: 'bytes32',
656
- name: '',
657
- type: 'bytes32',
658
- },
659
- ],
660
- stateMutability: 'view',
661
- type: 'function',
662
- },
663
- {
664
- inputs: [],
665
- name: 'WSTETH',
666
- outputs: [
667
- {
668
- internalType: 'contract IWstETH',
669
- name: '',
670
- type: 'address',
671
- },
672
- ],
673
- stateMutability: 'view',
674
- type: 'function',
675
- },
676
- {
677
- inputs: [
678
- {
679
- internalType: 'uint256',
680
- name: '_amountOfShares',
681
- type: 'uint256',
682
- },
683
- ],
684
- name: 'burnShares',
685
- outputs: [],
686
- stateMutability: 'nonpayable',
687
- type: 'function',
688
- },
689
- {
690
- inputs: [
691
- {
692
- internalType: 'uint256',
693
- name: '_amountOfShares',
694
- type: 'uint256',
695
- },
696
- {
697
- components: [
698
- {
699
- internalType: 'uint256',
700
- name: 'value',
701
- type: 'uint256',
702
- },
703
- {
704
- internalType: 'uint256',
705
- name: 'deadline',
706
- type: 'uint256',
707
- },
708
- {
709
- internalType: 'uint8',
710
- name: 'v',
711
- type: 'uint8',
712
- },
713
- {
714
- internalType: 'bytes32',
715
- name: 'r',
716
- type: 'bytes32',
717
- },
718
- {
719
- internalType: 'bytes32',
720
- name: 's',
721
- type: 'bytes32',
722
- },
723
- ],
724
- internalType: 'struct Dashboard.PermitInput',
725
- name: '_permit',
726
- type: 'tuple',
727
- },
728
- ],
729
- name: 'burnSharesWithPermit',
730
- outputs: [],
731
- stateMutability: 'nonpayable',
732
- type: 'function',
733
- },
734
- {
735
- inputs: [
736
- {
737
- internalType: 'uint256',
738
- name: '_amountOfStETH',
739
- type: 'uint256',
740
- },
741
- ],
742
- name: 'burnStETH',
743
- outputs: [],
744
- stateMutability: 'nonpayable',
745
- type: 'function',
746
- },
747
- {
748
- inputs: [
749
- {
750
- internalType: 'uint256',
751
- name: '_amountOfStETH',
752
- type: 'uint256',
753
- },
754
- {
755
- components: [
756
- {
757
- internalType: 'uint256',
758
- name: 'value',
759
- type: 'uint256',
760
- },
761
- {
762
- internalType: 'uint256',
763
- name: 'deadline',
764
- type: 'uint256',
765
- },
766
- {
767
- internalType: 'uint8',
768
- name: 'v',
769
- type: 'uint8',
770
- },
771
- {
772
- internalType: 'bytes32',
773
- name: 'r',
774
- type: 'bytes32',
775
- },
776
- {
777
- internalType: 'bytes32',
778
- name: 's',
779
- type: 'bytes32',
780
- },
781
- ],
782
- internalType: 'struct Dashboard.PermitInput',
783
- name: '_permit',
784
- type: 'tuple',
785
- },
786
- ],
787
- name: 'burnStETHWithPermit',
788
- outputs: [],
789
- stateMutability: 'nonpayable',
790
- type: 'function',
791
- },
792
- {
793
- inputs: [
794
- {
795
- internalType: 'uint256',
796
- name: '_amountOfWstETH',
797
- type: 'uint256',
798
- },
799
- ],
800
- name: 'burnWstETH',
801
- outputs: [],
802
- stateMutability: 'nonpayable',
803
- type: 'function',
804
- },
805
- {
806
- inputs: [
807
- {
808
- internalType: 'uint256',
809
- name: '_amountOfWstETH',
810
- type: 'uint256',
811
- },
812
- {
813
- components: [
814
- {
815
- internalType: 'uint256',
816
- name: 'value',
817
- type: 'uint256',
818
- },
819
- {
820
- internalType: 'uint256',
821
- name: 'deadline',
822
- type: 'uint256',
823
- },
824
- {
825
- internalType: 'uint8',
826
- name: 'v',
827
- type: 'uint8',
828
- },
829
- {
830
- internalType: 'bytes32',
831
- name: 'r',
832
- type: 'bytes32',
833
- },
834
- {
835
- internalType: 'bytes32',
836
- name: 's',
837
- type: 'bytes32',
838
- },
839
- ],
840
- internalType: 'struct Dashboard.PermitInput',
841
- name: '_permit',
842
- type: 'tuple',
843
- },
844
- ],
845
- name: 'burnWstETHWithPermit',
846
- outputs: [],
847
- stateMutability: 'nonpayable',
848
- type: 'function',
849
- },
850
- {
851
- inputs: [
852
- {
853
- internalType: 'address',
854
- name: '_recipient',
855
- type: 'address',
856
- },
857
- ],
858
- name: 'claimCuratorFee',
859
- outputs: [],
860
- stateMutability: 'nonpayable',
861
- type: 'function',
862
- },
863
- {
864
- inputs: [
865
- {
866
- internalType: 'address',
867
- name: '_recipient',
868
516
  type: 'address',
869
517
  },
870
518
  ],
871
- name: 'claimNodeOperatorFee',
872
- outputs: [],
873
- stateMutability: 'nonpayable',
874
- type: 'function',
875
- },
876
- {
877
- inputs: [
878
- {
879
- internalType: 'bytes',
880
- name: '_pubkey',
881
- type: 'bytes',
882
- },
883
- {
884
- internalType: 'address',
885
- name: '_recipient',
886
- type: 'address',
887
- },
888
- ],
889
- name: 'compensateDisprovenPredepositFromPDG',
890
- outputs: [],
891
- stateMutability: 'nonpayable',
892
- type: 'function',
893
- },
894
- {
895
- inputs: [
896
- {
897
- internalType: 'bytes',
898
- name: 'callData',
899
- type: 'bytes',
900
- },
901
- {
902
- internalType: 'bytes32',
903
- name: 'role',
904
- type: 'bytes32',
905
- },
906
- ],
907
- name: 'confirmations',
908
- outputs: [
909
- {
910
- internalType: 'uint256',
911
- name: 'expiryTimestamp',
912
- type: 'uint256',
913
- },
914
- ],
915
519
  stateMutability: 'view',
916
520
  type: 'function',
917
521
  },
918
522
  {
919
523
  inputs: [],
920
- name: 'confirmingRoles',
921
- outputs: [
922
- {
923
- internalType: 'bytes32[]',
924
- name: '',
925
- type: 'bytes32[]',
926
- },
927
- ],
928
- stateMutability: 'pure',
929
- type: 'function',
930
- },
931
- {
932
- inputs: [],
933
- name: 'curatorFeeBP',
524
+ name: 'LIDO_LOCATOR',
934
525
  outputs: [
935
526
  {
936
- internalType: 'uint256',
527
+ internalType: 'contract ILidoLocator',
937
528
  name: '',
938
- type: 'uint256',
939
- },
940
- ],
941
- stateMutability: 'view',
942
- type: 'function',
943
- },
944
- {
945
- inputs: [],
946
- name: 'curatorFeeClaimedReport',
947
- outputs: [
948
- {
949
- internalType: 'uint128',
950
- name: 'valuation',
951
- type: 'uint128',
952
- },
953
- {
954
- internalType: 'int128',
955
- name: 'inOutDelta',
956
- type: 'int128',
529
+ type: 'address',
957
530
  },
958
531
  ],
959
532
  stateMutability: 'view',
@@ -961,48 +534,73 @@ export const DelegationAbi = [
961
534
  },
962
535
  {
963
536
  inputs: [],
964
- name: 'curatorUnclaimedFee',
537
+ name: 'REGISTRY_ROLE',
965
538
  outputs: [
966
539
  {
967
- internalType: 'uint256',
540
+ internalType: 'bytes32',
968
541
  name: '',
969
- type: 'uint256',
542
+ type: 'bytes32',
970
543
  },
971
544
  ],
972
545
  stateMutability: 'view',
973
546
  type: 'function',
974
547
  },
975
- {
976
- inputs: [],
977
- name: 'fund',
978
- outputs: [],
979
- stateMutability: 'payable',
980
- type: 'function',
981
- },
982
548
  {
983
549
  inputs: [
984
550
  {
985
551
  internalType: 'uint256',
986
- name: '_amountOfWETH',
552
+ name: '_tierId',
987
553
  type: 'uint256',
988
554
  },
555
+ {
556
+ components: [
557
+ {
558
+ internalType: 'uint256',
559
+ name: 'shareLimit',
560
+ type: 'uint256',
561
+ },
562
+ {
563
+ internalType: 'uint256',
564
+ name: 'reserveRatioBP',
565
+ type: 'uint256',
566
+ },
567
+ {
568
+ internalType: 'uint256',
569
+ name: 'forcedRebalanceThresholdBP',
570
+ type: 'uint256',
571
+ },
572
+ {
573
+ internalType: 'uint256',
574
+ name: 'treasuryFeeBP',
575
+ type: 'uint256',
576
+ },
577
+ ],
578
+ internalType: 'struct TierParams',
579
+ name: '_tierParams',
580
+ type: 'tuple',
581
+ },
989
582
  ],
990
- name: 'fundWeth',
583
+ name: 'alterTier',
991
584
  outputs: [],
992
585
  stateMutability: 'nonpayable',
993
586
  type: 'function',
994
587
  },
995
588
  {
996
- inputs: [],
997
- name: 'getConfirmExpiry',
998
- outputs: [
589
+ inputs: [
590
+ {
591
+ internalType: 'address',
592
+ name: '_vault',
593
+ type: 'address',
594
+ },
999
595
  {
1000
596
  internalType: 'uint256',
1001
- name: '',
597
+ name: '_tierIdToConfirm',
1002
598
  type: 'uint256',
1003
599
  },
1004
600
  ],
1005
- stateMutability: 'view',
601
+ name: 'confirmTierChange',
602
+ outputs: [],
603
+ stateMutability: 'nonpayable',
1006
604
  type: 'function',
1007
605
  },
1008
606
  {
@@ -1106,27 +704,43 @@ export const DelegationAbi = [
1106
704
  },
1107
705
  {
1108
706
  inputs: [
707
+ {
708
+ internalType: 'address',
709
+ name: '_nodeOperator',
710
+ type: 'address',
711
+ },
712
+ ],
713
+ name: 'group',
714
+ outputs: [
1109
715
  {
1110
716
  components: [
1111
717
  {
1112
718
  internalType: 'address',
1113
- name: 'account',
719
+ name: 'operator',
1114
720
  type: 'address',
1115
721
  },
1116
722
  {
1117
- internalType: 'bytes32',
1118
- name: 'role',
1119
- type: 'bytes32',
723
+ internalType: 'uint96',
724
+ name: 'shareLimit',
725
+ type: 'uint96',
726
+ },
727
+ {
728
+ internalType: 'uint96',
729
+ name: 'liabilityShares',
730
+ type: 'uint96',
731
+ },
732
+ {
733
+ internalType: 'uint128[]',
734
+ name: 'tierIds',
735
+ type: 'uint128[]',
1120
736
  },
1121
737
  ],
1122
- internalType: 'struct Permissions.RoleAssignment[]',
1123
- name: '_assignments',
1124
- type: 'tuple[]',
738
+ internalType: 'struct OperatorGrid.Group',
739
+ name: '',
740
+ type: 'tuple',
1125
741
  },
1126
742
  ],
1127
- name: 'grantRoles',
1128
- outputs: [],
1129
- stateMutability: 'nonpayable',
743
+ stateMutability: 'view',
1130
744
  type: 'function',
1131
745
  },
1132
746
  {
@@ -1157,13 +771,35 @@ export const DelegationAbi = [
1157
771
  inputs: [
1158
772
  {
1159
773
  internalType: 'address',
1160
- name: '_defaultAdmin',
774
+ name: '_admin',
1161
775
  type: 'address',
1162
776
  },
1163
777
  {
1164
- internalType: 'uint256',
1165
- name: '_confirmExpiry',
1166
- type: 'uint256',
778
+ components: [
779
+ {
780
+ internalType: 'uint256',
781
+ name: 'shareLimit',
782
+ type: 'uint256',
783
+ },
784
+ {
785
+ internalType: 'uint256',
786
+ name: 'reserveRatioBP',
787
+ type: 'uint256',
788
+ },
789
+ {
790
+ internalType: 'uint256',
791
+ name: 'forcedRebalanceThresholdBP',
792
+ type: 'uint256',
793
+ },
794
+ {
795
+ internalType: 'uint256',
796
+ name: 'treasuryFeeBP',
797
+ type: 'uint256',
798
+ },
799
+ ],
800
+ internalType: 'struct TierParams',
801
+ name: '_defaultTierParams',
802
+ type: 'tuple',
1167
803
  },
1168
804
  ],
1169
805
  name: 'initialize',
@@ -1171,138 +807,20 @@ export const DelegationAbi = [
1171
807
  stateMutability: 'nonpayable',
1172
808
  type: 'function',
1173
809
  },
1174
- {
1175
- inputs: [],
1176
- name: 'initialized',
1177
- outputs: [
1178
- {
1179
- internalType: 'bool',
1180
- name: '',
1181
- type: 'bool',
1182
- },
1183
- ],
1184
- stateMutability: 'view',
1185
- type: 'function',
1186
- },
1187
- {
1188
- inputs: [
1189
- {
1190
- internalType: 'address',
1191
- name: '_recipient',
1192
- type: 'address',
1193
- },
1194
- {
1195
- internalType: 'uint256',
1196
- name: '_amountOfShares',
1197
- type: 'uint256',
1198
- },
1199
- ],
1200
- name: 'mintShares',
1201
- outputs: [],
1202
- stateMutability: 'payable',
1203
- type: 'function',
1204
- },
1205
- {
1206
- inputs: [
1207
- {
1208
- internalType: 'address',
1209
- name: '_recipient',
1210
- type: 'address',
1211
- },
1212
- {
1213
- internalType: 'uint256',
1214
- name: '_amountOfStETH',
1215
- type: 'uint256',
1216
- },
1217
- ],
1218
- name: 'mintStETH',
1219
- outputs: [],
1220
- stateMutability: 'payable',
1221
- type: 'function',
1222
- },
1223
- {
1224
- inputs: [
1225
- {
1226
- internalType: 'address',
1227
- name: '_recipient',
1228
- type: 'address',
1229
- },
1230
- {
1231
- internalType: 'uint256',
1232
- name: '_amountOfWstETH',
1233
- type: 'uint256',
1234
- },
1235
- ],
1236
- name: 'mintWstETH',
1237
- outputs: [],
1238
- stateMutability: 'payable',
1239
- type: 'function',
1240
- },
1241
- {
1242
- inputs: [],
1243
- name: 'nodeOperatorFeeBP',
1244
- outputs: [
1245
- {
1246
- internalType: 'uint256',
1247
- name: '',
1248
- type: 'uint256',
1249
- },
1250
- ],
1251
- stateMutability: 'view',
1252
- type: 'function',
1253
- },
1254
- {
1255
- inputs: [],
1256
- name: 'nodeOperatorFeeClaimedReport',
1257
- outputs: [
1258
- {
1259
- internalType: 'uint128',
1260
- name: 'valuation',
1261
- type: 'uint128',
1262
- },
1263
- {
1264
- internalType: 'int128',
1265
- name: 'inOutDelta',
1266
- type: 'int128',
1267
- },
1268
- ],
1269
- stateMutability: 'view',
1270
- type: 'function',
1271
- },
1272
- {
1273
- inputs: [],
1274
- name: 'nodeOperatorUnclaimedFee',
1275
- outputs: [
1276
- {
1277
- internalType: 'uint256',
1278
- name: '',
1279
- type: 'uint256',
1280
- },
1281
- ],
1282
- stateMutability: 'view',
1283
- type: 'function',
1284
- },
1285
- {
1286
- inputs: [],
1287
- name: 'pauseBeaconChainDeposits',
1288
- outputs: [],
1289
- stateMutability: 'nonpayable',
1290
- type: 'function',
1291
- },
1292
810
  {
1293
811
  inputs: [
1294
812
  {
1295
813
  internalType: 'uint256',
1296
- name: '_etherToFund',
814
+ name: '_index',
1297
815
  type: 'uint256',
1298
816
  },
1299
817
  ],
1300
- name: 'projectedNewMintableShares',
818
+ name: 'nodeOperatorAddress',
1301
819
  outputs: [
1302
820
  {
1303
- internalType: 'uint256',
821
+ internalType: 'address',
1304
822
  name: '',
1305
- type: 'uint256',
823
+ type: 'address',
1306
824
  },
1307
825
  ],
1308
826
  stateMutability: 'view',
@@ -1310,12 +828,12 @@ export const DelegationAbi = [
1310
828
  },
1311
829
  {
1312
830
  inputs: [],
1313
- name: 'rebalanceThresholdBP',
831
+ name: 'nodeOperatorCount',
1314
832
  outputs: [
1315
833
  {
1316
- internalType: 'uint16',
834
+ internalType: 'uint256',
1317
835
  name: '',
1318
- type: 'uint16',
836
+ type: 'uint256',
1319
837
  },
1320
838
  ],
1321
839
  stateMutability: 'view',
@@ -1323,36 +841,36 @@ export const DelegationAbi = [
1323
841
  },
1324
842
  {
1325
843
  inputs: [
844
+ {
845
+ internalType: 'address',
846
+ name: 'vaultAddr',
847
+ type: 'address',
848
+ },
1326
849
  {
1327
850
  internalType: 'uint256',
1328
- name: '_ether',
851
+ name: 'amount',
1329
852
  type: 'uint256',
1330
853
  },
1331
854
  ],
1332
- name: 'rebalanceVault',
855
+ name: 'onBurnedShares',
1333
856
  outputs: [],
1334
- stateMutability: 'payable',
857
+ stateMutability: 'nonpayable',
1335
858
  type: 'function',
1336
859
  },
1337
860
  {
1338
861
  inputs: [
1339
862
  {
1340
863
  internalType: 'address',
1341
- name: '_token',
1342
- type: 'address',
1343
- },
1344
- {
1345
- internalType: 'address',
1346
- name: '_recipient',
864
+ name: 'vaultAddr',
1347
865
  type: 'address',
1348
866
  },
1349
867
  {
1350
868
  internalType: 'uint256',
1351
- name: '_amount',
869
+ name: 'amount',
1352
870
  type: 'uint256',
1353
871
  },
1354
872
  ],
1355
- name: 'recoverERC20',
873
+ name: 'onMintedShares',
1356
874
  outputs: [],
1357
875
  stateMutability: 'nonpayable',
1358
876
  type: 'function',
@@ -1361,115 +879,118 @@ export const DelegationAbi = [
1361
879
  inputs: [
1362
880
  {
1363
881
  internalType: 'address',
1364
- name: '_token',
882
+ name: '_nodeOperator',
1365
883
  type: 'address',
1366
884
  },
1367
885
  {
1368
886
  internalType: 'uint256',
1369
- name: '_tokenId',
887
+ name: '_index',
1370
888
  type: 'uint256',
1371
889
  },
890
+ ],
891
+ name: 'pendingRequest',
892
+ outputs: [
1372
893
  {
1373
894
  internalType: 'address',
1374
- name: '_recipient',
895
+ name: '',
1375
896
  type: 'address',
1376
897
  },
1377
898
  ],
1378
- name: 'recoverERC721',
1379
- outputs: [],
1380
- stateMutability: 'nonpayable',
899
+ stateMutability: 'view',
1381
900
  type: 'function',
1382
901
  },
1383
902
  {
1384
903
  inputs: [
1385
- {
1386
- internalType: 'bytes32',
1387
- name: 'role',
1388
- type: 'bytes32',
1389
- },
1390
904
  {
1391
905
  internalType: 'address',
1392
- name: 'callerConfirmation',
906
+ name: '_nodeOperator',
1393
907
  type: 'address',
1394
908
  },
1395
909
  ],
1396
- name: 'renounceRole',
1397
- outputs: [],
1398
- stateMutability: 'nonpayable',
910
+ name: 'pendingRequests',
911
+ outputs: [
912
+ {
913
+ internalType: 'address[]',
914
+ name: '',
915
+ type: 'address[]',
916
+ },
917
+ ],
918
+ stateMutability: 'view',
1399
919
  type: 'function',
1400
920
  },
1401
921
  {
1402
922
  inputs: [
1403
923
  {
1404
- internalType: 'bytes',
1405
- name: '_pubkeys',
1406
- type: 'bytes',
924
+ internalType: 'address',
925
+ name: '_nodeOperator',
926
+ type: 'address',
1407
927
  },
1408
928
  ],
1409
- name: 'requestValidatorExit',
1410
- outputs: [],
1411
- stateMutability: 'nonpayable',
1412
- type: 'function',
1413
- },
1414
- {
1415
- inputs: [],
1416
- name: 'reserveRatioBP',
929
+ name: 'pendingRequestsCount',
1417
930
  outputs: [
1418
931
  {
1419
- internalType: 'uint16',
932
+ internalType: 'uint256',
1420
933
  name: '',
1421
- type: 'uint16',
934
+ type: 'uint256',
1422
935
  },
1423
936
  ],
1424
937
  stateMutability: 'view',
1425
938
  type: 'function',
1426
939
  },
1427
- {
1428
- inputs: [],
1429
- name: 'resumeBeaconChainDeposits',
1430
- outputs: [],
1431
- stateMutability: 'nonpayable',
1432
- type: 'function',
1433
- },
1434
940
  {
1435
941
  inputs: [
1436
- {
1437
- internalType: 'bytes32',
1438
- name: 'role',
1439
- type: 'bytes32',
1440
- },
1441
942
  {
1442
943
  internalType: 'address',
1443
- name: 'account',
944
+ name: '_nodeOperator',
1444
945
  type: 'address',
1445
946
  },
947
+ {
948
+ internalType: 'uint256',
949
+ name: '_shareLimit',
950
+ type: 'uint256',
951
+ },
1446
952
  ],
1447
- name: 'revokeRole',
953
+ name: 'registerGroup',
1448
954
  outputs: [],
1449
955
  stateMutability: 'nonpayable',
1450
956
  type: 'function',
1451
957
  },
1452
958
  {
1453
959
  inputs: [
960
+ {
961
+ internalType: 'address',
962
+ name: '_nodeOperator',
963
+ type: 'address',
964
+ },
1454
965
  {
1455
966
  components: [
1456
967
  {
1457
- internalType: 'address',
1458
- name: 'account',
1459
- type: 'address',
968
+ internalType: 'uint256',
969
+ name: 'shareLimit',
970
+ type: 'uint256',
971
+ },
972
+ {
973
+ internalType: 'uint256',
974
+ name: 'reserveRatioBP',
975
+ type: 'uint256',
976
+ },
977
+ {
978
+ internalType: 'uint256',
979
+ name: 'forcedRebalanceThresholdBP',
980
+ type: 'uint256',
1460
981
  },
1461
982
  {
1462
- internalType: 'bytes32',
1463
- name: 'role',
1464
- type: 'bytes32',
983
+ internalType: 'uint256',
984
+ name: 'treasuryFeeBP',
985
+ type: 'uint256',
1465
986
  },
1466
987
  ],
1467
- internalType: 'struct Permissions.RoleAssignment[]',
1468
- name: '_assignments',
988
+ internalType: 'struct TierParams[]',
989
+ name: '_tiers',
1469
990
  type: 'tuple[]',
1470
991
  },
1471
992
  ],
1472
- name: 'revokeRoles',
993
+ name: 'registerTiers',
1473
994
  outputs: [],
1474
995
  stateMutability: 'nonpayable',
1475
996
  type: 'function',
@@ -1477,79 +998,55 @@ export const DelegationAbi = [
1477
998
  {
1478
999
  inputs: [
1479
1000
  {
1480
- internalType: 'uint256',
1481
- name: '_newConfirmExpiry',
1482
- type: 'uint256',
1001
+ internalType: 'bytes32',
1002
+ name: 'role',
1003
+ type: 'bytes32',
1483
1004
  },
1484
- ],
1485
- name: 'setConfirmExpiry',
1486
- outputs: [],
1487
- stateMutability: 'nonpayable',
1488
- type: 'function',
1489
- },
1490
- {
1491
- inputs: [
1492
1005
  {
1493
- internalType: 'uint256',
1494
- name: '_newCuratorFeeBP',
1495
- type: 'uint256',
1006
+ internalType: 'address',
1007
+ name: 'callerConfirmation',
1008
+ type: 'address',
1496
1009
  },
1497
1010
  ],
1498
- name: 'setCuratorFeeBP',
1011
+ name: 'renounceRole',
1499
1012
  outputs: [],
1500
1013
  stateMutability: 'nonpayable',
1501
1014
  type: 'function',
1502
1015
  },
1503
1016
  {
1504
1017
  inputs: [
1018
+ {
1019
+ internalType: 'address',
1020
+ name: '_vault',
1021
+ type: 'address',
1022
+ },
1505
1023
  {
1506
1024
  internalType: 'uint256',
1507
- name: '_newNodeOperatorFeeBP',
1025
+ name: '_tierId',
1508
1026
  type: 'uint256',
1509
1027
  },
1510
1028
  ],
1511
- name: 'setNodeOperatorFeeBP',
1029
+ name: 'requestTierChange',
1512
1030
  outputs: [],
1513
1031
  stateMutability: 'nonpayable',
1514
1032
  type: 'function',
1515
1033
  },
1516
1034
  {
1517
- inputs: [],
1518
- name: 'shareLimit',
1519
- outputs: [
1520
- {
1521
- internalType: 'uint96',
1522
- name: '',
1523
- type: 'uint96',
1524
- },
1525
- ],
1526
- stateMutability: 'view',
1527
- type: 'function',
1528
- },
1529
- {
1530
- inputs: [],
1531
- name: 'sharesMinted',
1532
- outputs: [
1035
+ inputs: [
1533
1036
  {
1534
- internalType: 'uint96',
1535
- name: '',
1536
- type: 'uint96',
1037
+ internalType: 'bytes32',
1038
+ name: 'role',
1039
+ type: 'bytes32',
1537
1040
  },
1538
- ],
1539
- stateMutability: 'view',
1540
- type: 'function',
1541
- },
1542
- {
1543
- inputs: [],
1544
- name: 'stakingVault',
1545
- outputs: [
1546
1041
  {
1547
- internalType: 'contract IStakingVault',
1548
- name: '',
1042
+ internalType: 'address',
1043
+ name: 'account',
1549
1044
  type: 'address',
1550
1045
  },
1551
1046
  ],
1552
- stateMutability: 'view',
1047
+ name: 'revokeRole',
1048
+ outputs: [],
1049
+ stateMutability: 'nonpayable',
1553
1050
  type: 'function',
1554
1051
  },
1555
1052
  {
@@ -1571,126 +1068,31 @@ export const DelegationAbi = [
1571
1068
  stateMutability: 'view',
1572
1069
  type: 'function',
1573
1070
  },
1574
- {
1575
- inputs: [],
1576
- name: 'totalMintableShares',
1577
- outputs: [
1578
- {
1579
- internalType: 'uint256',
1580
- name: '',
1581
- type: 'uint256',
1582
- },
1583
- ],
1584
- stateMutability: 'view',
1585
- type: 'function',
1586
- },
1587
- {
1588
- inputs: [
1589
- {
1590
- internalType: 'address',
1591
- name: '_newOwner',
1592
- type: 'address',
1593
- },
1594
- ],
1595
- name: 'transferStakingVaultOwnership',
1596
- outputs: [],
1597
- stateMutability: 'nonpayable',
1598
- type: 'function',
1599
- },
1600
- {
1601
- inputs: [],
1602
- name: 'treasuryFeeBP',
1603
- outputs: [
1604
- {
1605
- internalType: 'uint16',
1606
- name: '',
1607
- type: 'uint16',
1608
- },
1609
- ],
1610
- stateMutability: 'view',
1611
- type: 'function',
1612
- },
1613
1071
  {
1614
1072
  inputs: [
1615
- {
1616
- internalType: 'bytes',
1617
- name: '_pubkeys',
1618
- type: 'bytes',
1619
- },
1620
- {
1621
- internalType: 'uint64[]',
1622
- name: '_amounts',
1623
- type: 'uint64[]',
1624
- },
1625
- {
1626
- internalType: 'address',
1627
- name: '_refundRecipient',
1628
- type: 'address',
1629
- },
1630
- ],
1631
- name: 'triggerValidatorWithdrawal',
1632
- outputs: [],
1633
- stateMutability: 'payable',
1634
- type: 'function',
1635
- },
1636
- {
1637
- inputs: [],
1638
- name: 'unreserved',
1639
- outputs: [
1640
- {
1641
- internalType: 'uint256',
1642
- name: '',
1643
- type: 'uint256',
1644
- },
1645
- ],
1646
- stateMutability: 'view',
1647
- type: 'function',
1648
- },
1649
- {
1650
- inputs: [],
1651
- name: 'valuation',
1652
- outputs: [
1653
1073
  {
1654
1074
  internalType: 'uint256',
1655
- name: '',
1075
+ name: '_tierId',
1656
1076
  type: 'uint256',
1657
1077
  },
1658
1078
  ],
1659
- stateMutability: 'view',
1660
- type: 'function',
1661
- },
1662
- {
1663
- inputs: [],
1664
- name: 'vaultHub',
1665
- outputs: [
1666
- {
1667
- internalType: 'contract VaultHub',
1668
- name: '',
1669
- type: 'address',
1670
- },
1671
- ],
1672
- stateMutability: 'view',
1673
- type: 'function',
1674
- },
1675
- {
1676
- inputs: [],
1677
- name: 'vaultSocket',
1079
+ name: 'tier',
1678
1080
  outputs: [
1679
1081
  {
1680
1082
  components: [
1681
1083
  {
1682
1084
  internalType: 'address',
1683
- name: 'vault',
1085
+ name: 'operator',
1684
1086
  type: 'address',
1685
1087
  },
1686
1088
  {
1687
1089
  internalType: 'uint96',
1688
- name: 'sharesMinted',
1090
+ name: 'shareLimit',
1689
1091
  type: 'uint96',
1690
1092
  },
1691
1093
  {
1692
1094
  internalType: 'uint96',
1693
- name: 'shareLimit',
1095
+ name: 'liabilityShares',
1694
1096
  type: 'uint96',
1695
1097
  },
1696
1098
  {
@@ -1700,7 +1102,7 @@ export const DelegationAbi = [
1700
1102
  },
1701
1103
  {
1702
1104
  internalType: 'uint16',
1703
- name: 'rebalanceThresholdBP',
1105
+ name: 'forcedRebalanceThresholdBP',
1704
1106
  type: 'uint16',
1705
1107
  },
1706
1108
  {
@@ -1708,13 +1110,8 @@ export const DelegationAbi = [
1708
1110
  name: 'treasuryFeeBP',
1709
1111
  type: 'uint16',
1710
1112
  },
1711
- {
1712
- internalType: 'bool',
1713
- name: 'pendingDisconnect',
1714
- type: 'bool',
1715
- },
1716
1113
  ],
1717
- internalType: 'struct VaultHub.VaultSocket',
1114
+ internalType: 'struct OperatorGrid.Tier',
1718
1115
  name: '',
1719
1116
  type: 'tuple',
1720
1117
  },
@@ -1722,27 +1119,20 @@ export const DelegationAbi = [
1722
1119
  stateMutability: 'view',
1723
1120
  type: 'function',
1724
1121
  },
1725
- {
1726
- inputs: [],
1727
- name: 'voluntaryDisconnect',
1728
- outputs: [],
1729
- stateMutability: 'payable',
1730
- type: 'function',
1731
- },
1732
1122
  {
1733
1123
  inputs: [
1734
1124
  {
1735
1125
  internalType: 'address',
1736
- name: '_recipient',
1126
+ name: '_nodeOperator',
1737
1127
  type: 'address',
1738
1128
  },
1739
1129
  {
1740
1130
  internalType: 'uint256',
1741
- name: '_ether',
1131
+ name: '_shareLimit',
1742
1132
  type: 'uint256',
1743
1133
  },
1744
1134
  ],
1745
- name: 'withdraw',
1135
+ name: 'updateGroupShareLimit',
1746
1136
  outputs: [],
1747
1137
  stateMutability: 'nonpayable',
1748
1138
  type: 'function',
@@ -1751,36 +1141,45 @@ export const DelegationAbi = [
1751
1141
  inputs: [
1752
1142
  {
1753
1143
  internalType: 'address',
1754
- name: '_recipient',
1144
+ name: 'vaultAddr',
1145
+ type: 'address',
1146
+ },
1147
+ ],
1148
+ name: 'vaultInfo',
1149
+ outputs: [
1150
+ {
1151
+ internalType: 'address',
1152
+ name: 'nodeOperator',
1755
1153
  type: 'address',
1756
1154
  },
1757
1155
  {
1758
1156
  internalType: 'uint256',
1759
- name: '_amountOfWETH',
1157
+ name: 'tierId',
1760
1158
  type: 'uint256',
1761
1159
  },
1762
- ],
1763
- name: 'withdrawWETH',
1764
- outputs: [],
1765
- stateMutability: 'nonpayable',
1766
- type: 'function',
1767
- },
1768
- {
1769
- inputs: [],
1770
- name: 'withdrawableEther',
1771
- outputs: [
1772
1160
  {
1773
1161
  internalType: 'uint256',
1774
- name: '',
1162
+ name: 'shareLimit',
1163
+ type: 'uint256',
1164
+ },
1165
+ {
1166
+ internalType: 'uint256',
1167
+ name: 'reserveRatioBP',
1168
+ type: 'uint256',
1169
+ },
1170
+ {
1171
+ internalType: 'uint256',
1172
+ name: 'forcedRebalanceThresholdBP',
1173
+ type: 'uint256',
1174
+ },
1175
+ {
1176
+ internalType: 'uint256',
1177
+ name: 'treasuryFeeBP',
1775
1178
  type: 'uint256',
1776
1179
  },
1777
1180
  ],
1778
1181
  stateMutability: 'view',
1779
1182
  type: 'function',
1780
1183
  },
1781
- {
1782
- stateMutability: 'payable',
1783
- type: 'receive',
1784
- },
1785
1184
  ];
1786
- //# sourceMappingURL=Delegation.js.map
1185
+ //# sourceMappingURL=OperatorGrid.js.map