@lidofinance/lsv-cli 1.0.0-alpha.13 → 1.0.0-alpha.15

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 (143) hide show
  1. package/README.md +244 -120
  2. package/dist/abi/CLProofVerifier.js +279 -0
  3. package/dist/abi/CLProofVerifier.js.map +1 -0
  4. package/dist/abi/Dashboard.js +1060 -942
  5. package/dist/abi/Dashboard.js.map +1 -1
  6. package/dist/abi/Delegation.js +1260 -1129
  7. package/dist/abi/Delegation.js.map +1 -1
  8. package/dist/abi/LidoLocator.js +311 -270
  9. package/dist/abi/LidoLocator.js.map +1 -1
  10. package/dist/abi/PredepositGuarantee.js +1733 -0
  11. package/dist/abi/PredepositGuarantee.js.map +1 -0
  12. package/dist/abi/StakingVault.js +723 -528
  13. package/dist/abi/StakingVault.js.map +1 -1
  14. package/dist/abi/VaultFactory.js +164 -144
  15. package/dist/abi/VaultFactory.js.map +1 -1
  16. package/dist/abi/VaultHubViewer.js +297 -0
  17. package/dist/abi/VaultHubViewer.js.map +1 -0
  18. package/dist/abi/index.js +12 -9
  19. package/dist/abi/index.js.map +1 -1
  20. package/dist/configs/constants.js +2 -2
  21. package/dist/configs/constants.js.map +1 -1
  22. package/dist/contracts/clProofVerifier.js +29 -0
  23. package/dist/contracts/clProofVerifier.js.map +1 -0
  24. package/dist/contracts/dashboard.js.map +1 -1
  25. package/dist/contracts/index.js +12 -9
  26. package/dist/contracts/index.js.map +1 -1
  27. package/dist/contracts/locator.js +2 -2
  28. package/dist/contracts/locator.js.map +1 -1
  29. package/dist/contracts/pdg.js +17 -0
  30. package/dist/contracts/pdg.js.map +1 -0
  31. package/dist/contracts/vault-factory.js +5 -9
  32. package/dist/contracts/vault-factory.js.map +1 -1
  33. package/dist/contracts/vault-hub-viewer.js +14 -0
  34. package/dist/contracts/vault-hub-viewer.js.map +1 -0
  35. package/dist/features/dashboard-delegation.js +4 -1
  36. package/dist/features/dashboard-delegation.js.map +1 -1
  37. package/dist/features/vault-factory.js +6 -10
  38. package/dist/features/vault-factory.js.map +1 -1
  39. package/dist/features/voting.js +6 -14
  40. package/dist/features/voting.js.map +1 -1
  41. package/dist/index.js +6 -3
  42. package/dist/index.js.map +1 -1
  43. package/dist/programs/account.js +3 -1
  44. package/dist/programs/account.js.map +1 -1
  45. package/dist/programs/dashboard/config.js +65 -0
  46. package/dist/programs/dashboard/config.js.map +1 -0
  47. package/dist/programs/dashboard/index.js +4 -0
  48. package/dist/programs/dashboard/index.js.map +1 -0
  49. package/dist/programs/dashboard/main.js +12 -0
  50. package/dist/programs/dashboard/main.js.map +1 -0
  51. package/dist/programs/dashboard/read.js +25 -0
  52. package/dist/programs/dashboard/read.js.map +1 -0
  53. package/dist/programs/{dashboard.js → dashboard/write.js} +78 -136
  54. package/dist/programs/dashboard/write.js.map +1 -0
  55. package/dist/programs/delegation/config.js +33 -0
  56. package/dist/programs/delegation/config.js.map +1 -0
  57. package/dist/programs/delegation/index.js +4 -0
  58. package/dist/programs/delegation/index.js.map +1 -0
  59. package/dist/programs/delegation/main.js +12 -0
  60. package/dist/programs/delegation/main.js.map +1 -0
  61. package/dist/programs/delegation/read.js +98 -0
  62. package/dist/programs/delegation/read.js.map +1 -0
  63. package/dist/programs/delegation/write.js +327 -0
  64. package/dist/programs/delegation/write.js.map +1 -0
  65. package/dist/programs/index.js +7 -4
  66. package/dist/programs/index.js.map +1 -1
  67. package/dist/programs/pdg/config.js +2 -0
  68. package/dist/programs/pdg/config.js.map +1 -0
  69. package/dist/programs/pdg/index.js +4 -0
  70. package/dist/programs/pdg/index.js.map +1 -0
  71. package/dist/programs/pdg/main.js +12 -0
  72. package/dist/programs/pdg/main.js.map +1 -0
  73. package/dist/programs/pdg/read.js +7 -0
  74. package/dist/programs/pdg/read.js.map +1 -0
  75. package/dist/programs/pdg/write.js +64 -0
  76. package/dist/programs/pdg/write.js.map +1 -0
  77. package/dist/programs/pdg-helpers.js +73 -0
  78. package/dist/programs/pdg-helpers.js.map +1 -0
  79. package/dist/programs/vault/config.js +66 -0
  80. package/dist/programs/vault/config.js.map +1 -0
  81. package/dist/programs/vault/index.js +4 -0
  82. package/dist/programs/vault/index.js.map +1 -0
  83. package/dist/programs/vault/main.js +10 -0
  84. package/dist/programs/vault/main.js.map +1 -0
  85. package/dist/programs/vault/read.js +53 -0
  86. package/dist/programs/vault/read.js.map +1 -0
  87. package/dist/programs/vault/write.js +123 -0
  88. package/dist/programs/vault/write.js.map +1 -0
  89. package/dist/programs/vault-factory/config.js +2 -0
  90. package/dist/programs/vault-factory/config.js.map +1 -0
  91. package/dist/programs/vault-factory/index.js +4 -0
  92. package/dist/programs/vault-factory/index.js.map +1 -0
  93. package/dist/programs/vault-factory/main.js +12 -0
  94. package/dist/programs/vault-factory/main.js.map +1 -0
  95. package/dist/programs/vault-factory/read.js +26 -0
  96. package/dist/programs/vault-factory/read.js.map +1 -0
  97. package/dist/programs/{vault-factory.js → vault-factory/write.js} +22 -37
  98. package/dist/programs/vault-factory/write.js.map +1 -0
  99. package/dist/programs/vault-hub-viewer.js +52 -0
  100. package/dist/programs/vault-hub-viewer.js.map +1 -0
  101. package/dist/programs/vault-hub.js +20 -52
  102. package/dist/programs/vault-hub.js.map +1 -1
  103. package/dist/programs/voting.js +11 -33
  104. package/dist/programs/voting.js.map +1 -1
  105. package/dist/utils/contract.js +63 -2
  106. package/dist/utils/contract.js.map +1 -1
  107. package/dist/utils/get-commands.js +11 -0
  108. package/dist/utils/get-commands.js.map +1 -0
  109. package/dist/utils/index.js +5 -0
  110. package/dist/utils/index.js.map +1 -1
  111. package/dist/utils/prompts/default.js +17 -0
  112. package/dist/utils/prompts/default.js.map +1 -0
  113. package/dist/utils/prompts/delegation-dashboard.js +29 -0
  114. package/dist/utils/prompts/delegation-dashboard.js.map +1 -0
  115. package/dist/utils/prompts/index.js +4 -0
  116. package/dist/utils/prompts/index.js.map +1 -0
  117. package/dist/utils/prompts/predeposit-guarantee.js +25 -0
  118. package/dist/utils/prompts/predeposit-guarantee.js.map +1 -0
  119. package/dist/utils/proof/create-proof.js +62 -0
  120. package/dist/utils/proof/create-proof.js.map +1 -0
  121. package/dist/utils/proof/first-validator-gindex.js +26 -0
  122. package/dist/utils/proof/first-validator-gindex.js.map +1 -0
  123. package/dist/utils/proof/index.js +4 -0
  124. package/dist/utils/proof/index.js.map +1 -0
  125. package/dist/utils/proof/merkle-utils.js +131 -0
  126. package/dist/utils/proof/merkle-utils.js.map +1 -0
  127. package/dist/utils/proof/proofs.js +52 -0
  128. package/dist/utils/proof/proofs.js.map +1 -0
  129. package/dist/utils/read-programs-by-abi.js +83 -0
  130. package/dist/utils/read-programs-by-abi.js.map +1 -0
  131. package/dist/utils/spinner/index.js +2 -0
  132. package/dist/utils/spinner/index.js.map +1 -0
  133. package/dist/utils/spinner/spinners.js +16 -0
  134. package/dist/utils/spinner/spinners.js.map +1 -0
  135. package/dist/utils/spinner/spinners.json +119 -0
  136. package/dist/version/index.js +1 -1
  137. package/package.json +11 -4
  138. package/dist/programs/dashboard.js.map +0 -1
  139. package/dist/programs/delegation.js +0 -581
  140. package/dist/programs/delegation.js.map +0 -1
  141. package/dist/programs/vault-factory.js.map +0 -1
  142. package/dist/programs/vault.js +0 -375
  143. package/dist/programs/vault.js.map +0 -1
@@ -1,783 +1,978 @@
1
1
  export const StakingVaultAbi = [
2
2
  {
3
- "inputs": [
3
+ inputs: [
4
4
  {
5
- "internalType": "address",
6
- "name": "_vaultHub",
7
- "type": "address"
5
+ internalType: 'address',
6
+ name: '_vaultHub',
7
+ type: 'address',
8
8
  },
9
9
  {
10
- "internalType": "address",
11
- "name": "_beaconChainDepositContract",
12
- "type": "address"
13
- }
10
+ internalType: 'address',
11
+ name: '_depositor',
12
+ type: 'address',
13
+ },
14
+ {
15
+ internalType: 'address',
16
+ name: '_beaconChainDepositContract',
17
+ type: 'address',
18
+ },
14
19
  ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
20
+ stateMutability: 'nonpayable',
21
+ type: 'constructor',
17
22
  },
18
23
  {
19
- "inputs": [],
20
- "name": "BeaconChainDepositsArePaused",
21
- "type": "error"
24
+ inputs: [],
25
+ name: 'BeaconChainDepositsArePaused',
26
+ type: 'error',
22
27
  },
23
28
  {
24
- "inputs": [],
25
- "name": "BeaconChainDepositsPauseExpected",
26
- "type": "error"
29
+ inputs: [],
30
+ name: 'BeaconChainDepositsPauseExpected',
31
+ type: 'error',
27
32
  },
28
33
  {
29
- "inputs": [],
30
- "name": "BeaconChainDepositsResumeExpected",
31
- "type": "error"
34
+ inputs: [],
35
+ name: 'BeaconChainDepositsResumeExpected',
36
+ type: 'error',
32
37
  },
33
38
  {
34
- "inputs": [
39
+ inputs: [
35
40
  {
36
- "internalType": "uint256",
37
- "name": "balance",
38
- "type": "uint256"
39
- }
41
+ internalType: 'uint256',
42
+ name: 'balance',
43
+ type: 'uint256',
44
+ },
40
45
  ],
41
- "name": "InsufficientBalance",
42
- "type": "error"
46
+ name: 'InsufficientBalance',
47
+ type: 'error',
43
48
  },
44
49
  {
45
- "inputs": [
50
+ inputs: [
46
51
  {
47
- "internalType": "uint256",
48
- "name": "unlocked",
49
- "type": "uint256"
50
- }
52
+ internalType: 'uint256',
53
+ name: 'unlocked',
54
+ type: 'uint256',
55
+ },
51
56
  ],
52
- "name": "InsufficientUnlocked",
53
- "type": "error"
57
+ name: 'InsufficientUnlocked',
58
+ type: 'error',
54
59
  },
55
60
  {
56
- "inputs": [],
57
- "name": "InvalidInitialization",
58
- "type": "error"
61
+ inputs: [
62
+ {
63
+ internalType: 'uint256',
64
+ name: '_passed',
65
+ type: 'uint256',
66
+ },
67
+ {
68
+ internalType: 'uint256',
69
+ name: '_required',
70
+ type: 'uint256',
71
+ },
72
+ ],
73
+ name: 'InsufficientValidatorWithdrawalFee',
74
+ type: 'error',
59
75
  },
60
76
  {
61
- "inputs": [
77
+ inputs: [
62
78
  {
63
- "internalType": "uint256",
64
- "name": "currentlyLocked",
65
- "type": "uint256"
79
+ internalType: 'uint256',
80
+ name: 'feePerRequest',
81
+ type: 'uint256',
66
82
  },
67
83
  {
68
- "internalType": "uint256",
69
- "name": "attemptedLocked",
70
- "type": "uint256"
71
- }
84
+ internalType: 'uint256',
85
+ name: 'minFeePerRequest',
86
+ type: 'uint256',
87
+ },
72
88
  ],
73
- "name": "LockedCannotDecreaseOutsideOfReport",
74
- "type": "error"
89
+ name: 'InsufficientWithdrawalFee',
90
+ type: 'error',
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: 'InvalidAmountsLength',
95
+ type: 'error',
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: 'InvalidInitialization',
100
+ type: 'error',
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: 'InvalidPubkeysLength',
105
+ type: 'error',
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: 'uint256',
111
+ name: 'currentlyLocked',
112
+ type: 'uint256',
113
+ },
114
+ {
115
+ internalType: 'uint256',
116
+ name: 'attemptedLocked',
117
+ type: 'uint256',
118
+ },
119
+ ],
120
+ name: 'LockedCannotDecreaseOutsideOfReport',
121
+ type: 'error',
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: 'MalformedPubkeysArray',
126
+ type: 'error',
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: 'uint256',
132
+ name: 'keysCount',
133
+ type: 'uint256',
134
+ },
135
+ {
136
+ internalType: 'uint256',
137
+ name: 'amountsCount',
138
+ type: 'uint256',
139
+ },
140
+ ],
141
+ name: 'MismatchedArrayLengths',
142
+ type: 'error',
143
+ },
144
+ {
145
+ inputs: [],
146
+ name: 'NoWithdrawalRequests',
147
+ type: 'error',
75
148
  },
76
149
  {
77
- "inputs": [
150
+ inputs: [
78
151
  {
79
- "internalType": "string",
80
- "name": "operation",
81
- "type": "string"
152
+ internalType: 'string',
153
+ name: 'operation',
154
+ type: 'string',
82
155
  },
83
156
  {
84
- "internalType": "address",
85
- "name": "sender",
86
- "type": "address"
87
- }
157
+ internalType: 'address',
158
+ name: 'sender',
159
+ type: 'address',
160
+ },
88
161
  ],
89
- "name": "NotAuthorized",
90
- "type": "error"
162
+ name: 'NotAuthorized',
163
+ type: 'error',
91
164
  },
92
165
  {
93
- "inputs": [],
94
- "name": "NotInitializing",
95
- "type": "error"
166
+ inputs: [],
167
+ name: 'NotInitializing',
168
+ type: 'error',
96
169
  },
97
170
  {
98
- "inputs": [
171
+ inputs: [
99
172
  {
100
- "internalType": "address",
101
- "name": "owner",
102
- "type": "address"
103
- }
173
+ internalType: 'address',
174
+ name: 'owner',
175
+ type: 'address',
176
+ },
104
177
  ],
105
- "name": "OwnableInvalidOwner",
106
- "type": "error"
178
+ name: 'OwnableInvalidOwner',
179
+ type: 'error',
180
+ },
181
+ {
182
+ inputs: [
183
+ {
184
+ internalType: 'address',
185
+ name: 'account',
186
+ type: 'address',
187
+ },
188
+ ],
189
+ name: 'OwnableUnauthorizedAccount',
190
+ type: 'error',
191
+ },
192
+ {
193
+ inputs: [],
194
+ name: 'PartialWithdrawalNotAllowed',
195
+ type: 'error',
107
196
  },
108
197
  {
109
- "inputs": [
198
+ inputs: [
110
199
  {
111
- "internalType": "address",
112
- "name": "account",
113
- "type": "address"
114
- }
200
+ internalType: 'uint256',
201
+ name: 'valuation',
202
+ type: 'uint256',
203
+ },
204
+ {
205
+ internalType: 'uint256',
206
+ name: 'rebalanceAmount',
207
+ type: 'uint256',
208
+ },
115
209
  ],
116
- "name": "OwnableUnauthorizedAccount",
117
- "type": "error"
210
+ name: 'RebalanceAmountExceedsValuation',
211
+ type: 'error',
118
212
  },
119
213
  {
120
- "inputs": [
214
+ inputs: [
121
215
  {
122
- "internalType": "uint256",
123
- "name": "valuation",
124
- "type": "uint256"
216
+ internalType: 'address',
217
+ name: 'sender',
218
+ type: 'address',
125
219
  },
126
220
  {
127
- "internalType": "uint256",
128
- "name": "rebalanceAmount",
129
- "type": "uint256"
130
- }
221
+ internalType: 'address',
222
+ name: 'beacon',
223
+ type: 'address',
224
+ },
131
225
  ],
132
- "name": "RebalanceAmountExceedsValuation",
133
- "type": "error"
226
+ name: 'SenderNotBeacon',
227
+ type: 'error',
134
228
  },
135
229
  {
136
- "inputs": [
230
+ inputs: [
137
231
  {
138
- "internalType": "address",
139
- "name": "sender",
140
- "type": "address"
232
+ internalType: 'uint256',
233
+ name: 'balance',
234
+ type: 'uint256',
141
235
  },
142
236
  {
143
- "internalType": "address",
144
- "name": "beacon",
145
- "type": "address"
146
- }
237
+ internalType: 'uint256',
238
+ name: 'totalWithdrawalFee',
239
+ type: 'uint256',
240
+ },
147
241
  ],
148
- "name": "SenderNotBeacon",
149
- "type": "error"
242
+ name: 'TotalWithdrawalFeeExceededBalance',
243
+ type: 'error',
150
244
  },
151
245
  {
152
- "inputs": [
246
+ inputs: [
153
247
  {
154
- "internalType": "address",
155
- "name": "recipient",
156
- "type": "address"
248
+ internalType: 'address',
249
+ name: 'recipient',
250
+ type: 'address',
157
251
  },
158
252
  {
159
- "internalType": "uint256",
160
- "name": "amount",
161
- "type": "uint256"
162
- }
253
+ internalType: 'uint256',
254
+ name: 'amount',
255
+ type: 'uint256',
256
+ },
163
257
  ],
164
- "name": "TransferFailed",
165
- "type": "error"
258
+ name: 'TransferFailed',
259
+ type: 'error',
260
+ },
261
+ {
262
+ inputs: [],
263
+ name: 'UnrecoverableError',
264
+ type: 'error',
166
265
  },
167
266
  {
168
- "inputs": [],
169
- "name": "Unbalanced",
170
- "type": "error"
267
+ inputs: [],
268
+ name: 'ValuationBelowLockedAmount',
269
+ type: 'error',
171
270
  },
172
271
  {
173
- "inputs": [],
174
- "name": "UnrecoverableError",
175
- "type": "error"
272
+ inputs: [],
273
+ name: 'WithdrawalFeeInvalidData',
274
+ type: 'error',
176
275
  },
177
276
  {
178
- "inputs": [
277
+ inputs: [],
278
+ name: 'WithdrawalFeeReadFailed',
279
+ type: 'error',
280
+ },
281
+ {
282
+ inputs: [
283
+ {
284
+ internalType: 'address',
285
+ name: '_sender',
286
+ type: 'address',
287
+ },
179
288
  {
180
- "internalType": "string",
181
- "name": "name",
182
- "type": "string"
183
- }
289
+ internalType: 'uint256',
290
+ name: '_amount',
291
+ type: 'uint256',
292
+ },
184
293
  ],
185
- "name": "ZeroArgument",
186
- "type": "error"
294
+ name: 'WithdrawalFeeRefundFailed',
295
+ type: 'error',
187
296
  },
188
297
  {
189
- "anonymous": false,
190
- "inputs": [],
191
- "name": "BeaconChainDepositsPaused",
192
- "type": "event"
298
+ inputs: [
299
+ {
300
+ internalType: 'bytes',
301
+ name: 'callData',
302
+ type: 'bytes',
303
+ },
304
+ ],
305
+ name: 'WithdrawalRequestAdditionFailed',
306
+ type: 'error',
193
307
  },
194
308
  {
195
- "anonymous": false,
196
- "inputs": [],
197
- "name": "BeaconChainDepositsResumed",
198
- "type": "event"
309
+ inputs: [
310
+ {
311
+ internalType: 'string',
312
+ name: 'name',
313
+ type: 'string',
314
+ },
315
+ ],
316
+ name: 'ZeroArgument',
317
+ type: 'error',
318
+ },
319
+ {
320
+ anonymous: false,
321
+ inputs: [],
322
+ name: 'BeaconChainDepositsPaused',
323
+ type: 'event',
324
+ },
325
+ {
326
+ anonymous: false,
327
+ inputs: [],
328
+ name: 'BeaconChainDepositsResumed',
329
+ type: 'event',
199
330
  },
200
331
  {
201
- "anonymous": false,
202
- "inputs": [
332
+ anonymous: false,
333
+ inputs: [
203
334
  {
204
- "indexed": true,
205
- "internalType": "address",
206
- "name": "sender",
207
- "type": "address"
335
+ indexed: true,
336
+ internalType: 'address',
337
+ name: '_sender',
338
+ type: 'address',
208
339
  },
209
340
  {
210
- "indexed": false,
211
- "internalType": "uint256",
212
- "name": "deposits",
213
- "type": "uint256"
341
+ indexed: false,
342
+ internalType: 'uint256',
343
+ name: '_deposits',
344
+ type: 'uint256',
214
345
  },
215
346
  {
216
- "indexed": false,
217
- "internalType": "uint256",
218
- "name": "totalAmount",
219
- "type": "uint256"
220
- }
347
+ indexed: false,
348
+ internalType: 'uint256',
349
+ name: '_totalAmount',
350
+ type: 'uint256',
351
+ },
221
352
  ],
222
- "name": "DepositedToBeaconChain",
223
- "type": "event"
353
+ name: 'DepositedToBeaconChain',
354
+ type: 'event',
224
355
  },
225
356
  {
226
- "anonymous": false,
227
- "inputs": [
357
+ anonymous: false,
358
+ inputs: [
228
359
  {
229
- "indexed": true,
230
- "internalType": "address",
231
- "name": "sender",
232
- "type": "address"
360
+ indexed: true,
361
+ internalType: 'address',
362
+ name: 'sender',
363
+ type: 'address',
233
364
  },
234
365
  {
235
- "indexed": false,
236
- "internalType": "uint256",
237
- "name": "amount",
238
- "type": "uint256"
239
- }
366
+ indexed: false,
367
+ internalType: 'uint256',
368
+ name: 'amount',
369
+ type: 'uint256',
370
+ },
240
371
  ],
241
- "name": "Funded",
242
- "type": "event"
372
+ name: 'Funded',
373
+ type: 'event',
243
374
  },
244
375
  {
245
- "anonymous": false,
246
- "inputs": [
376
+ anonymous: false,
377
+ inputs: [
247
378
  {
248
- "indexed": false,
249
- "internalType": "uint64",
250
- "name": "version",
251
- "type": "uint64"
252
- }
379
+ indexed: false,
380
+ internalType: 'uint64',
381
+ name: 'version',
382
+ type: 'uint64',
383
+ },
253
384
  ],
254
- "name": "Initialized",
255
- "type": "event"
385
+ name: 'Initialized',
386
+ type: 'event',
256
387
  },
257
388
  {
258
- "anonymous": false,
259
- "inputs": [
389
+ anonymous: false,
390
+ inputs: [
260
391
  {
261
- "indexed": false,
262
- "internalType": "uint256",
263
- "name": "locked",
264
- "type": "uint256"
265
- }
392
+ indexed: false,
393
+ internalType: 'uint256',
394
+ name: 'locked',
395
+ type: 'uint256',
396
+ },
266
397
  ],
267
- "name": "LockedIncreased",
268
- "type": "event"
398
+ name: 'LockedIncreased',
399
+ type: 'event',
269
400
  },
270
401
  {
271
- "anonymous": false,
272
- "inputs": [
402
+ anonymous: false,
403
+ inputs: [
273
404
  {
274
- "indexed": false,
275
- "internalType": "bytes",
276
- "name": "reason",
277
- "type": "bytes"
278
- }
405
+ indexed: false,
406
+ internalType: 'bytes',
407
+ name: 'reason',
408
+ type: 'bytes',
409
+ },
279
410
  ],
280
- "name": "OnReportFailed",
281
- "type": "event"
411
+ name: 'OnReportFailed',
412
+ type: 'event',
282
413
  },
283
414
  {
284
- "anonymous": false,
285
- "inputs": [
415
+ anonymous: false,
416
+ inputs: [
286
417
  {
287
- "indexed": true,
288
- "internalType": "address",
289
- "name": "previousOwner",
290
- "type": "address"
418
+ indexed: true,
419
+ internalType: 'address',
420
+ name: 'previousOwner',
421
+ type: 'address',
291
422
  },
292
423
  {
293
- "indexed": true,
294
- "internalType": "address",
295
- "name": "newOwner",
296
- "type": "address"
297
- }
424
+ indexed: true,
425
+ internalType: 'address',
426
+ name: 'newOwner',
427
+ type: 'address',
428
+ },
298
429
  ],
299
- "name": "OwnershipTransferred",
300
- "type": "event"
430
+ name: 'OwnershipTransferred',
431
+ type: 'event',
301
432
  },
302
433
  {
303
- "anonymous": false,
304
- "inputs": [
434
+ anonymous: false,
435
+ inputs: [
305
436
  {
306
- "indexed": false,
307
- "internalType": "uint256",
308
- "name": "valuation",
309
- "type": "uint256"
437
+ indexed: false,
438
+ internalType: 'uint256',
439
+ name: 'valuation',
440
+ type: 'uint256',
310
441
  },
311
442
  {
312
- "indexed": false,
313
- "internalType": "int256",
314
- "name": "inOutDelta",
315
- "type": "int256"
443
+ indexed: false,
444
+ internalType: 'int256',
445
+ name: 'inOutDelta',
446
+ type: 'int256',
316
447
  },
317
448
  {
318
- "indexed": false,
319
- "internalType": "uint256",
320
- "name": "locked",
321
- "type": "uint256"
322
- }
449
+ indexed: false,
450
+ internalType: 'uint256',
451
+ name: 'locked',
452
+ type: 'uint256',
453
+ },
323
454
  ],
324
- "name": "Reported",
325
- "type": "event"
455
+ name: 'Reported',
456
+ type: 'event',
326
457
  },
327
458
  {
328
- "anonymous": false,
329
- "inputs": [
459
+ anonymous: false,
460
+ inputs: [
330
461
  {
331
- "indexed": true,
332
- "internalType": "address",
333
- "name": "sender",
334
- "type": "address"
462
+ indexed: false,
463
+ internalType: 'address',
464
+ name: '_sender',
465
+ type: 'address',
335
466
  },
336
467
  {
337
- "indexed": false,
338
- "internalType": "bytes",
339
- "name": "pubkey",
340
- "type": "bytes"
341
- }
468
+ indexed: true,
469
+ internalType: 'bytes',
470
+ name: '_pubkey',
471
+ type: 'bytes',
472
+ },
473
+ {
474
+ indexed: false,
475
+ internalType: 'bytes',
476
+ name: '_pubkeyRaw',
477
+ type: 'bytes',
478
+ },
342
479
  ],
343
- "name": "ValidatorsExitRequest",
344
- "type": "event"
480
+ name: 'ValidatorExitRequested',
481
+ type: 'event',
345
482
  },
346
483
  {
347
- "anonymous": false,
348
- "inputs": [
484
+ anonymous: false,
485
+ inputs: [
349
486
  {
350
- "indexed": true,
351
- "internalType": "address",
352
- "name": "sender",
353
- "type": "address"
487
+ indexed: true,
488
+ internalType: 'address',
489
+ name: '_sender',
490
+ type: 'address',
354
491
  },
355
492
  {
356
- "indexed": true,
357
- "internalType": "address",
358
- "name": "recipient",
359
- "type": "address"
493
+ indexed: false,
494
+ internalType: 'bytes',
495
+ name: '_pubkeys',
496
+ type: 'bytes',
360
497
  },
361
498
  {
362
- "indexed": false,
363
- "internalType": "uint256",
364
- "name": "amount",
365
- "type": "uint256"
366
- }
367
- ],
368
- "name": "Withdrawn",
369
- "type": "event"
370
- },
371
- {
372
- "inputs": [],
373
- "name": "beaconChainDepositsPaused",
374
- "outputs": [
499
+ indexed: false,
500
+ internalType: 'uint64[]',
501
+ name: '_amounts',
502
+ type: 'uint64[]',
503
+ },
375
504
  {
376
- "internalType": "bool",
377
- "name": "",
378
- "type": "bool"
379
- }
505
+ indexed: false,
506
+ internalType: 'address',
507
+ name: '_refundRecipient',
508
+ type: 'address',
509
+ },
510
+ {
511
+ indexed: false,
512
+ internalType: 'uint256',
513
+ name: '_excess',
514
+ type: 'uint256',
515
+ },
380
516
  ],
381
- "stateMutability": "view",
382
- "type": "function"
517
+ name: 'ValidatorWithdrawalTriggered',
518
+ type: 'event',
383
519
  },
384
520
  {
385
- "inputs": [
521
+ anonymous: false,
522
+ inputs: [
386
523
  {
387
- "internalType": "bytes",
388
- "name": "_pubkey",
389
- "type": "bytes"
524
+ indexed: true,
525
+ internalType: 'address',
526
+ name: 'sender',
527
+ type: 'address',
390
528
  },
391
529
  {
392
- "internalType": "bytes",
393
- "name": "_withdrawalCredentials",
394
- "type": "bytes"
530
+ indexed: true,
531
+ internalType: 'address',
532
+ name: 'recipient',
533
+ type: 'address',
395
534
  },
396
535
  {
397
- "internalType": "bytes",
398
- "name": "_signature",
399
- "type": "bytes"
536
+ indexed: false,
537
+ internalType: 'uint256',
538
+ name: 'amount',
539
+ type: 'uint256',
400
540
  },
541
+ ],
542
+ name: 'Withdrawn',
543
+ type: 'event',
544
+ },
545
+ {
546
+ inputs: [],
547
+ name: 'DEPOSIT_CONTRACT',
548
+ outputs: [
401
549
  {
402
- "internalType": "uint256",
403
- "name": "_amount",
404
- "type": "uint256"
405
- }
550
+ internalType: 'contract IDepositContract',
551
+ name: '',
552
+ type: 'address',
553
+ },
406
554
  ],
407
- "name": "computeDepositDataRoot",
408
- "outputs": [
555
+ stateMutability: 'view',
556
+ type: 'function',
557
+ },
558
+ {
559
+ inputs: [],
560
+ name: 'PUBLIC_KEY_LENGTH',
561
+ outputs: [
409
562
  {
410
- "internalType": "bytes32",
411
- "name": "",
412
- "type": "bytes32"
413
- }
563
+ internalType: 'uint256',
564
+ name: '',
565
+ type: 'uint256',
566
+ },
414
567
  ],
415
- "stateMutability": "view",
416
- "type": "function"
568
+ stateMutability: 'view',
569
+ type: 'function',
417
570
  },
418
571
  {
419
- "inputs": [],
420
- "name": "depositContract",
421
- "outputs": [
572
+ inputs: [],
573
+ name: 'beaconChainDepositsPaused',
574
+ outputs: [
422
575
  {
423
- "internalType": "address",
424
- "name": "",
425
- "type": "address"
426
- }
576
+ internalType: 'bool',
577
+ name: '',
578
+ type: 'bool',
579
+ },
427
580
  ],
428
- "stateMutability": "view",
429
- "type": "function"
581
+ stateMutability: 'view',
582
+ type: 'function',
430
583
  },
431
584
  {
432
- "inputs": [
585
+ inputs: [
433
586
  {
434
- "components": [
587
+ internalType: 'uint256',
588
+ name: '_numberOfKeys',
589
+ type: 'uint256',
590
+ },
591
+ ],
592
+ name: 'calculateValidatorWithdrawalFee',
593
+ outputs: [
594
+ {
595
+ internalType: 'uint256',
596
+ name: '',
597
+ type: 'uint256',
598
+ },
599
+ ],
600
+ stateMutability: 'view',
601
+ type: 'function',
602
+ },
603
+ {
604
+ inputs: [
605
+ {
606
+ components: [
435
607
  {
436
- "internalType": "bytes",
437
- "name": "pubkey",
438
- "type": "bytes"
608
+ internalType: 'bytes',
609
+ name: 'pubkey',
610
+ type: 'bytes',
439
611
  },
440
612
  {
441
- "internalType": "bytes",
442
- "name": "signature",
443
- "type": "bytes"
613
+ internalType: 'bytes',
614
+ name: 'signature',
615
+ type: 'bytes',
444
616
  },
445
617
  {
446
- "internalType": "uint256",
447
- "name": "amount",
448
- "type": "uint256"
618
+ internalType: 'uint256',
619
+ name: 'amount',
620
+ type: 'uint256',
449
621
  },
450
622
  {
451
- "internalType": "bytes32",
452
- "name": "depositDataRoot",
453
- "type": "bytes32"
454
- }
623
+ internalType: 'bytes32',
624
+ name: 'depositDataRoot',
625
+ type: 'bytes32',
626
+ },
455
627
  ],
456
- "internalType": "struct IStakingVault.Deposit[]",
457
- "name": "_deposits",
458
- "type": "tuple[]"
459
- }
628
+ internalType: 'struct IStakingVault.Deposit[]',
629
+ name: '_deposits',
630
+ type: 'tuple[]',
631
+ },
632
+ ],
633
+ name: 'depositToBeaconChain',
634
+ outputs: [],
635
+ stateMutability: 'nonpayable',
636
+ type: 'function',
637
+ },
638
+ {
639
+ inputs: [],
640
+ name: 'depositor',
641
+ outputs: [
642
+ {
643
+ internalType: 'address',
644
+ name: '',
645
+ type: 'address',
646
+ },
460
647
  ],
461
- "name": "depositToBeaconChain",
462
- "outputs": [],
463
- "stateMutability": "nonpayable",
464
- "type": "function"
648
+ stateMutability: 'view',
649
+ type: 'function',
465
650
  },
466
651
  {
467
- "inputs": [],
468
- "name": "fund",
469
- "outputs": [],
470
- "stateMutability": "payable",
471
- "type": "function"
652
+ inputs: [],
653
+ name: 'fund',
654
+ outputs: [],
655
+ stateMutability: 'payable',
656
+ type: 'function',
472
657
  },
473
658
  {
474
- "inputs": [],
475
- "name": "getInitializedVersion",
476
- "outputs": [
659
+ inputs: [],
660
+ name: 'getInitializedVersion',
661
+ outputs: [
477
662
  {
478
- "internalType": "uint64",
479
- "name": "",
480
- "type": "uint64"
481
- }
663
+ internalType: 'uint64',
664
+ name: '',
665
+ type: 'uint64',
666
+ },
482
667
  ],
483
- "stateMutability": "view",
484
- "type": "function"
668
+ stateMutability: 'view',
669
+ type: 'function',
485
670
  },
486
671
  {
487
- "inputs": [],
488
- "name": "inOutDelta",
489
- "outputs": [
672
+ inputs: [],
673
+ name: 'inOutDelta',
674
+ outputs: [
490
675
  {
491
- "internalType": "int256",
492
- "name": "",
493
- "type": "int256"
494
- }
676
+ internalType: 'int256',
677
+ name: '',
678
+ type: 'int256',
679
+ },
495
680
  ],
496
- "stateMutability": "view",
497
- "type": "function"
681
+ stateMutability: 'view',
682
+ type: 'function',
498
683
  },
499
684
  {
500
- "inputs": [
685
+ inputs: [
501
686
  {
502
- "internalType": "address",
503
- "name": "_owner",
504
- "type": "address"
687
+ internalType: 'address',
688
+ name: '_owner',
689
+ type: 'address',
505
690
  },
506
691
  {
507
- "internalType": "address",
508
- "name": "_nodeOperator",
509
- "type": "address"
692
+ internalType: 'address',
693
+ name: '_nodeOperator',
694
+ type: 'address',
510
695
  },
511
696
  {
512
- "internalType": "bytes",
513
- "name": "",
514
- "type": "bytes"
515
- }
516
- ],
517
- "name": "initialize",
518
- "outputs": [],
519
- "stateMutability": "nonpayable",
520
- "type": "function"
521
- },
522
- {
523
- "inputs": [],
524
- "name": "isBalanced",
525
- "outputs": [
526
- {
527
- "internalType": "bool",
528
- "name": "",
529
- "type": "bool"
530
- }
697
+ internalType: 'bytes',
698
+ name: '',
699
+ type: 'bytes',
700
+ },
531
701
  ],
532
- "stateMutability": "view",
533
- "type": "function"
702
+ name: 'initialize',
703
+ outputs: [],
704
+ stateMutability: 'nonpayable',
705
+ type: 'function',
534
706
  },
535
707
  {
536
- "inputs": [],
537
- "name": "latestReport",
538
- "outputs": [
708
+ inputs: [],
709
+ name: 'latestReport',
710
+ outputs: [
539
711
  {
540
- "components": [
712
+ components: [
541
713
  {
542
- "internalType": "uint128",
543
- "name": "valuation",
544
- "type": "uint128"
714
+ internalType: 'uint128',
715
+ name: 'valuation',
716
+ type: 'uint128',
545
717
  },
546
718
  {
547
- "internalType": "int128",
548
- "name": "inOutDelta",
549
- "type": "int128"
550
- }
719
+ internalType: 'int128',
720
+ name: 'inOutDelta',
721
+ type: 'int128',
722
+ },
551
723
  ],
552
- "internalType": "struct IStakingVault.Report",
553
- "name": "",
554
- "type": "tuple"
555
- }
724
+ internalType: 'struct IStakingVault.Report',
725
+ name: '',
726
+ type: 'tuple',
727
+ },
556
728
  ],
557
- "stateMutability": "view",
558
- "type": "function"
729
+ stateMutability: 'view',
730
+ type: 'function',
559
731
  },
560
732
  {
561
- "inputs": [
733
+ inputs: [
562
734
  {
563
- "internalType": "uint256",
564
- "name": "_locked",
565
- "type": "uint256"
566
- }
735
+ internalType: 'uint256',
736
+ name: '_locked',
737
+ type: 'uint256',
738
+ },
567
739
  ],
568
- "name": "lock",
569
- "outputs": [],
570
- "stateMutability": "nonpayable",
571
- "type": "function"
740
+ name: 'lock',
741
+ outputs: [],
742
+ stateMutability: 'nonpayable',
743
+ type: 'function',
572
744
  },
573
745
  {
574
- "inputs": [],
575
- "name": "locked",
576
- "outputs": [
746
+ inputs: [],
747
+ name: 'locked',
748
+ outputs: [
577
749
  {
578
- "internalType": "uint256",
579
- "name": "",
580
- "type": "uint256"
581
- }
750
+ internalType: 'uint256',
751
+ name: '',
752
+ type: 'uint256',
753
+ },
582
754
  ],
583
- "stateMutability": "view",
584
- "type": "function"
755
+ stateMutability: 'view',
756
+ type: 'function',
585
757
  },
586
758
  {
587
- "inputs": [],
588
- "name": "nodeOperator",
589
- "outputs": [
759
+ inputs: [],
760
+ name: 'nodeOperator',
761
+ outputs: [
590
762
  {
591
- "internalType": "address",
592
- "name": "",
593
- "type": "address"
594
- }
763
+ internalType: 'address',
764
+ name: '',
765
+ type: 'address',
766
+ },
595
767
  ],
596
- "stateMutability": "view",
597
- "type": "function"
768
+ stateMutability: 'view',
769
+ type: 'function',
598
770
  },
599
771
  {
600
- "inputs": [],
601
- "name": "owner",
602
- "outputs": [
772
+ inputs: [],
773
+ name: 'owner',
774
+ outputs: [
603
775
  {
604
- "internalType": "address",
605
- "name": "",
606
- "type": "address"
607
- }
776
+ internalType: 'address',
777
+ name: '',
778
+ type: 'address',
779
+ },
608
780
  ],
609
- "stateMutability": "view",
610
- "type": "function"
781
+ stateMutability: 'view',
782
+ type: 'function',
611
783
  },
612
784
  {
613
- "inputs": [],
614
- "name": "pauseBeaconChainDeposits",
615
- "outputs": [],
616
- "stateMutability": "nonpayable",
617
- "type": "function"
785
+ inputs: [],
786
+ name: 'pauseBeaconChainDeposits',
787
+ outputs: [],
788
+ stateMutability: 'nonpayable',
789
+ type: 'function',
618
790
  },
619
791
  {
620
- "inputs": [
792
+ inputs: [
621
793
  {
622
- "internalType": "uint256",
623
- "name": "_ether",
624
- "type": "uint256"
625
- }
794
+ internalType: 'uint256',
795
+ name: '_ether',
796
+ type: 'uint256',
797
+ },
626
798
  ],
627
- "name": "rebalance",
628
- "outputs": [],
629
- "stateMutability": "nonpayable",
630
- "type": "function"
799
+ name: 'rebalance',
800
+ outputs: [],
801
+ stateMutability: 'nonpayable',
802
+ type: 'function',
631
803
  },
632
804
  {
633
- "inputs": [],
634
- "name": "renounceOwnership",
635
- "outputs": [],
636
- "stateMutability": "nonpayable",
637
- "type": "function"
805
+ inputs: [],
806
+ name: 'renounceOwnership',
807
+ outputs: [],
808
+ stateMutability: 'nonpayable',
809
+ type: 'function',
638
810
  },
639
811
  {
640
- "inputs": [
812
+ inputs: [
641
813
  {
642
- "internalType": "uint256",
643
- "name": "_valuation",
644
- "type": "uint256"
814
+ internalType: 'uint256',
815
+ name: '_valuation',
816
+ type: 'uint256',
645
817
  },
646
818
  {
647
- "internalType": "int256",
648
- "name": "_inOutDelta",
649
- "type": "int256"
819
+ internalType: 'int256',
820
+ name: '_inOutDelta',
821
+ type: 'int256',
650
822
  },
651
823
  {
652
- "internalType": "uint256",
653
- "name": "_locked",
654
- "type": "uint256"
655
- }
824
+ internalType: 'uint256',
825
+ name: '_locked',
826
+ type: 'uint256',
827
+ },
656
828
  ],
657
- "name": "report",
658
- "outputs": [],
659
- "stateMutability": "nonpayable",
660
- "type": "function"
829
+ name: 'report',
830
+ outputs: [],
831
+ stateMutability: 'nonpayable',
832
+ type: 'function',
661
833
  },
662
834
  {
663
- "inputs": [
835
+ inputs: [
664
836
  {
665
- "internalType": "bytes",
666
- "name": "_pubkeys",
667
- "type": "bytes"
668
- }
837
+ internalType: 'bytes',
838
+ name: '_pubkeys',
839
+ type: 'bytes',
840
+ },
669
841
  ],
670
- "name": "requestValidatorExit",
671
- "outputs": [],
672
- "stateMutability": "nonpayable",
673
- "type": "function"
842
+ name: 'requestValidatorExit',
843
+ outputs: [],
844
+ stateMutability: 'nonpayable',
845
+ type: 'function',
674
846
  },
675
847
  {
676
- "inputs": [],
677
- "name": "resumeBeaconChainDeposits",
678
- "outputs": [],
679
- "stateMutability": "nonpayable",
680
- "type": "function"
848
+ inputs: [],
849
+ name: 'resumeBeaconChainDeposits',
850
+ outputs: [],
851
+ stateMutability: 'nonpayable',
852
+ type: 'function',
681
853
  },
682
854
  {
683
- "inputs": [
855
+ inputs: [
684
856
  {
685
- "internalType": "address",
686
- "name": "newOwner",
687
- "type": "address"
688
- }
857
+ internalType: 'address',
858
+ name: 'newOwner',
859
+ type: 'address',
860
+ },
689
861
  ],
690
- "name": "transferOwnership",
691
- "outputs": [],
692
- "stateMutability": "nonpayable",
693
- "type": "function"
862
+ name: 'transferOwnership',
863
+ outputs: [],
864
+ stateMutability: 'nonpayable',
865
+ type: 'function',
694
866
  },
695
867
  {
696
- "inputs": [],
697
- "name": "unlocked",
698
- "outputs": [
868
+ inputs: [
869
+ {
870
+ internalType: 'bytes',
871
+ name: '_pubkeys',
872
+ type: 'bytes',
873
+ },
874
+ {
875
+ internalType: 'uint64[]',
876
+ name: '_amounts',
877
+ type: 'uint64[]',
878
+ },
699
879
  {
700
- "internalType": "uint256",
701
- "name": "",
702
- "type": "uint256"
703
- }
880
+ internalType: 'address',
881
+ name: '_refundRecipient',
882
+ type: 'address',
883
+ },
704
884
  ],
705
- "stateMutability": "view",
706
- "type": "function"
885
+ name: 'triggerValidatorWithdrawal',
886
+ outputs: [],
887
+ stateMutability: 'payable',
888
+ type: 'function',
707
889
  },
708
890
  {
709
- "inputs": [],
710
- "name": "valuation",
711
- "outputs": [
891
+ inputs: [],
892
+ name: 'unlocked',
893
+ outputs: [
712
894
  {
713
- "internalType": "uint256",
714
- "name": "",
715
- "type": "uint256"
716
- }
895
+ internalType: 'uint256',
896
+ name: '',
897
+ type: 'uint256',
898
+ },
717
899
  ],
718
- "stateMutability": "view",
719
- "type": "function"
900
+ stateMutability: 'view',
901
+ type: 'function',
720
902
  },
721
903
  {
722
- "inputs": [],
723
- "name": "vaultHub",
724
- "outputs": [
904
+ inputs: [],
905
+ name: 'valuation',
906
+ outputs: [
725
907
  {
726
- "internalType": "address",
727
- "name": "",
728
- "type": "address"
729
- }
908
+ internalType: 'uint256',
909
+ name: '',
910
+ type: 'uint256',
911
+ },
730
912
  ],
731
- "stateMutability": "view",
732
- "type": "function"
913
+ stateMutability: 'view',
914
+ type: 'function',
733
915
  },
734
916
  {
735
- "inputs": [],
736
- "name": "version",
737
- "outputs": [
917
+ inputs: [],
918
+ name: 'vaultHub',
919
+ outputs: [
738
920
  {
739
- "internalType": "uint64",
740
- "name": "",
741
- "type": "uint64"
742
- }
921
+ internalType: 'address',
922
+ name: '',
923
+ type: 'address',
924
+ },
743
925
  ],
744
- "stateMutability": "pure",
745
- "type": "function"
926
+ stateMutability: 'view',
927
+ type: 'function',
746
928
  },
747
929
  {
748
- "inputs": [
930
+ inputs: [],
931
+ name: 'version',
932
+ outputs: [
749
933
  {
750
- "internalType": "address",
751
- "name": "_recipient",
752
- "type": "address"
934
+ internalType: 'uint64',
935
+ name: '',
936
+ type: 'uint64',
937
+ },
938
+ ],
939
+ stateMutability: 'pure',
940
+ type: 'function',
941
+ },
942
+ {
943
+ inputs: [
944
+ {
945
+ internalType: 'address',
946
+ name: '_recipient',
947
+ type: 'address',
753
948
  },
754
949
  {
755
- "internalType": "uint256",
756
- "name": "_ether",
757
- "type": "uint256"
758
- }
950
+ internalType: 'uint256',
951
+ name: '_ether',
952
+ type: 'uint256',
953
+ },
759
954
  ],
760
- "name": "withdraw",
761
- "outputs": [],
762
- "stateMutability": "nonpayable",
763
- "type": "function"
955
+ name: 'withdraw',
956
+ outputs: [],
957
+ stateMutability: 'nonpayable',
958
+ type: 'function',
764
959
  },
765
960
  {
766
- "inputs": [],
767
- "name": "withdrawalCredentials",
768
- "outputs": [
961
+ inputs: [],
962
+ name: 'withdrawalCredentials',
963
+ outputs: [
769
964
  {
770
- "internalType": "bytes32",
771
- "name": "",
772
- "type": "bytes32"
773
- }
965
+ internalType: 'bytes32',
966
+ name: '',
967
+ type: 'bytes32',
968
+ },
774
969
  ],
775
- "stateMutability": "view",
776
- "type": "function"
970
+ stateMutability: 'view',
971
+ type: 'function',
777
972
  },
778
973
  {
779
- "stateMutability": "payable",
780
- "type": "receive"
781
- }
974
+ stateMutability: 'payable',
975
+ type: 'receive',
976
+ },
782
977
  ];
783
978
  //# sourceMappingURL=StakingVault.js.map