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

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.
@@ -1,1228 +1,1593 @@
1
1
  export const VaultHubAbi = [
2
2
  {
3
- "inputs": [],
4
- "name": "AccessControlBadConfirmation",
5
- "type": "error"
3
+ inputs: [
4
+ {
5
+ internalType: 'contract ILidoLocator',
6
+ name: '_locator',
7
+ type: 'address',
8
+ },
9
+ {
10
+ internalType: 'contract ILido',
11
+ name: '_lido',
12
+ type: 'address',
13
+ },
14
+ {
15
+ internalType: 'uint256',
16
+ name: '_connectedVaultsLimit',
17
+ type: 'uint256',
18
+ },
19
+ {
20
+ internalType: 'uint256',
21
+ name: '_relativeShareLimitBP',
22
+ type: 'uint256',
23
+ },
24
+ ],
25
+ stateMutability: 'nonpayable',
26
+ type: 'constructor',
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: 'AccessControlBadConfirmation',
31
+ type: 'error',
6
32
  },
7
33
  {
8
- "inputs": [
34
+ inputs: [
9
35
  {
10
- "internalType": "address",
11
- "name": "account",
12
- "type": "address"
36
+ internalType: 'address',
37
+ name: 'account',
38
+ type: 'address',
13
39
  },
14
40
  {
15
- "internalType": "bytes32",
16
- "name": "neededRole",
17
- "type": "bytes32"
18
- }
41
+ internalType: 'bytes32',
42
+ name: 'neededRole',
43
+ type: 'bytes32',
44
+ },
19
45
  ],
20
- "name": "AccessControlUnauthorizedAccount",
21
- "type": "error"
46
+ name: 'AccessControlUnauthorizedAccount',
47
+ type: 'error',
22
48
  },
23
49
  {
24
- "inputs": [
50
+ inputs: [
25
51
  {
26
- "internalType": "address",
27
- "name": "vault",
28
- "type": "address"
52
+ internalType: 'address',
53
+ name: 'vault',
54
+ type: 'address',
29
55
  },
30
56
  {
31
- "internalType": "uint256",
32
- "name": "mintedShares",
33
- "type": "uint256"
57
+ internalType: 'uint256',
58
+ name: 'index',
59
+ type: 'uint256',
34
60
  },
35
- {
36
- "internalType": "uint256",
37
- "name": "rebalancingThresholdInShares",
38
- "type": "uint256"
39
- }
40
61
  ],
41
- "name": "AlreadyBalanced",
42
- "type": "error"
62
+ name: 'AlreadyConnected',
63
+ type: 'error',
43
64
  },
44
65
  {
45
- "inputs": [
66
+ inputs: [
46
67
  {
47
- "internalType": "address",
48
- "name": "vault",
49
- "type": "address"
68
+ internalType: 'bytes32',
69
+ name: 'codehash',
70
+ type: 'bytes32',
50
71
  },
72
+ ],
73
+ name: 'AlreadyExists',
74
+ type: 'error',
75
+ },
76
+ {
77
+ inputs: [
51
78
  {
52
- "internalType": "uint256",
53
- "name": "index",
54
- "type": "uint256"
55
- }
79
+ internalType: 'address',
80
+ name: 'vault',
81
+ type: 'address',
82
+ },
56
83
  ],
57
- "name": "AlreadyConnected",
58
- "type": "error"
84
+ name: 'AlreadyHealthy',
85
+ type: 'error',
59
86
  },
60
87
  {
61
- "inputs": [
88
+ inputs: [
89
+ {
90
+ internalType: 'uint256',
91
+ name: 'connectedVaultsLimit',
92
+ type: 'uint256',
93
+ },
62
94
  {
63
- "internalType": "bytes32",
64
- "name": "codehash",
65
- "type": "bytes32"
66
- }
95
+ internalType: 'uint256',
96
+ name: 'currentVaultsCount',
97
+ type: 'uint256',
98
+ },
67
99
  ],
68
- "name": "AlreadyExists",
69
- "type": "error"
100
+ name: 'ConnectedVaultsLimitTooLow',
101
+ type: 'error',
70
102
  },
71
103
  {
72
- "inputs": [
104
+ inputs: [
73
105
  {
74
- "internalType": "address",
75
- "name": "vault",
76
- "type": "address"
106
+ internalType: 'address',
107
+ name: 'vault',
108
+ type: 'address',
77
109
  },
78
110
  {
79
- "internalType": "uint256",
80
- "name": "capShares",
81
- "type": "uint256"
111
+ internalType: 'uint256',
112
+ name: 'capShares',
113
+ type: 'uint256',
82
114
  },
83
115
  {
84
- "internalType": "uint256",
85
- "name": "maxMintableExternalShares",
86
- "type": "uint256"
87
- }
116
+ internalType: 'uint256',
117
+ name: 'maxMintableExternalShares',
118
+ type: 'uint256',
119
+ },
88
120
  ],
89
- "name": "ExternalSharesCapReached",
90
- "type": "error"
121
+ name: 'ExternalSharesCapReached',
122
+ type: 'error',
91
123
  },
92
124
  {
93
- "inputs": [
125
+ inputs: [
94
126
  {
95
- "internalType": "address",
96
- "name": "vault",
97
- "type": "address"
127
+ internalType: 'address',
128
+ name: 'vault',
129
+ type: 'address',
98
130
  },
99
131
  {
100
- "internalType": "uint256",
101
- "name": "amount",
102
- "type": "uint256"
103
- }
132
+ internalType: 'uint256',
133
+ name: 'amount',
134
+ type: 'uint256',
135
+ },
104
136
  ],
105
- "name": "InsufficientSharesToBurn",
106
- "type": "error"
137
+ name: 'InsufficientSharesToBurn',
138
+ type: 'error',
107
139
  },
108
140
  {
109
- "inputs": [
141
+ inputs: [
110
142
  {
111
- "internalType": "address",
112
- "name": "vault",
113
- "type": "address"
143
+ internalType: 'address',
144
+ name: 'vault',
145
+ type: 'address',
114
146
  },
115
147
  {
116
- "internalType": "uint256",
117
- "name": "valuation",
118
- "type": "uint256"
119
- }
148
+ internalType: 'uint256',
149
+ name: 'valuation',
150
+ type: 'uint256',
151
+ },
120
152
  ],
121
- "name": "InsufficientValuationToMint",
122
- "type": "error"
153
+ name: 'InsufficientValuationToMint',
154
+ type: 'error',
155
+ },
156
+ {
157
+ inputs: [],
158
+ name: 'InvalidInitialization',
159
+ type: 'error',
123
160
  },
124
161
  {
125
- "inputs": [],
126
- "name": "InvalidInitialization",
127
- "type": "error"
162
+ inputs: [],
163
+ name: 'InvalidPubkeysLength',
164
+ type: 'error',
128
165
  },
129
166
  {
130
- "inputs": [
167
+ inputs: [
131
168
  {
132
- "internalType": "address",
133
- "name": "vault",
134
- "type": "address"
169
+ internalType: 'address',
170
+ name: 'vault',
171
+ type: 'address',
135
172
  },
136
173
  {
137
- "internalType": "uint256",
138
- "name": "sharesMinted",
139
- "type": "uint256"
140
- }
174
+ internalType: 'uint256',
175
+ name: 'sharesMinted',
176
+ type: 'uint256',
177
+ },
141
178
  ],
142
- "name": "NoMintedSharesShouldBeLeft",
143
- "type": "error"
179
+ name: 'NoMintedSharesShouldBeLeft',
180
+ type: 'error',
144
181
  },
145
182
  {
146
- "inputs": [
183
+ inputs: [
147
184
  {
148
- "internalType": "string",
149
- "name": "operation",
150
- "type": "string"
185
+ internalType: 'string',
186
+ name: 'operation',
187
+ type: 'string',
151
188
  },
152
189
  {
153
- "internalType": "address",
154
- "name": "addr",
155
- "type": "address"
156
- }
190
+ internalType: 'address',
191
+ name: 'addr',
192
+ type: 'address',
193
+ },
157
194
  ],
158
- "name": "NotAuthorized",
159
- "type": "error"
195
+ name: 'NotAuthorized',
196
+ type: 'error',
160
197
  },
161
198
  {
162
- "inputs": [
199
+ inputs: [
163
200
  {
164
- "internalType": "address",
165
- "name": "vault",
166
- "type": "address"
167
- }
201
+ internalType: 'address',
202
+ name: 'vault',
203
+ type: 'address',
204
+ },
168
205
  ],
169
- "name": "NotConnectedToHub",
170
- "type": "error"
206
+ name: 'NotConnectedToHub',
207
+ type: 'error',
171
208
  },
172
209
  {
173
- "inputs": [
210
+ inputs: [
174
211
  {
175
- "internalType": "address",
176
- "name": "vault",
177
- "type": "address"
212
+ internalType: 'address',
213
+ name: 'vault',
214
+ type: 'address',
178
215
  },
179
216
  {
180
- "internalType": "uint256",
181
- "name": "balance",
182
- "type": "uint256"
217
+ internalType: 'uint256',
218
+ name: 'balance',
219
+ type: 'uint256',
183
220
  },
184
221
  {
185
- "internalType": "uint256",
186
- "name": "shouldBe",
187
- "type": "uint256"
188
- }
222
+ internalType: 'uint256',
223
+ name: 'shouldBe',
224
+ type: 'uint256',
225
+ },
189
226
  ],
190
- "name": "NotEnoughBalance",
191
- "type": "error"
227
+ name: 'NotEnoughBalance',
228
+ type: 'error',
192
229
  },
193
230
  {
194
- "inputs": [],
195
- "name": "NotInitializing",
196
- "type": "error"
231
+ inputs: [],
232
+ name: 'NotInitializing',
233
+ type: 'error',
197
234
  },
198
235
  {
199
- "inputs": [],
200
- "name": "PauseUntilMustBeInFuture",
201
- "type": "error"
236
+ inputs: [],
237
+ name: 'PauseUntilMustBeInFuture',
238
+ type: 'error',
202
239
  },
203
240
  {
204
- "inputs": [],
205
- "name": "PausedExpected",
206
- "type": "error"
241
+ inputs: [],
242
+ name: 'PausedExpected',
243
+ type: 'error',
207
244
  },
208
245
  {
209
- "inputs": [
246
+ inputs: [
210
247
  {
211
- "internalType": "address",
212
- "name": "vault",
213
- "type": "address"
214
- }
248
+ internalType: 'address',
249
+ name: 'vault',
250
+ type: 'address',
251
+ },
252
+ ],
253
+ name: 'RebalanceFailed',
254
+ type: 'error',
255
+ },
256
+ {
257
+ inputs: [
258
+ {
259
+ internalType: 'address',
260
+ name: 'vault',
261
+ type: 'address',
262
+ },
263
+ {
264
+ internalType: 'uint256',
265
+ name: 'rebalanceThresholdBP',
266
+ type: 'uint256',
267
+ },
268
+ {
269
+ internalType: 'uint256',
270
+ name: 'maxRebalanceThresholdBP',
271
+ type: 'uint256',
272
+ },
273
+ ],
274
+ name: 'RebalanceThresholdTooHigh',
275
+ type: 'error',
276
+ },
277
+ {
278
+ inputs: [
279
+ {
280
+ internalType: 'uint256',
281
+ name: 'relativeShareLimitBP',
282
+ type: 'uint256',
283
+ },
284
+ {
285
+ internalType: 'uint256',
286
+ name: 'totalBasisPoints',
287
+ type: 'uint256',
288
+ },
215
289
  ],
216
- "name": "RebalanceFailed",
217
- "type": "error"
290
+ name: 'RelativeShareLimitBPTooHigh',
291
+ type: 'error',
218
292
  },
219
293
  {
220
- "inputs": [
294
+ inputs: [
221
295
  {
222
- "internalType": "address",
223
- "name": "vault",
224
- "type": "address"
296
+ internalType: 'address',
297
+ name: 'vault',
298
+ type: 'address',
225
299
  },
226
300
  {
227
- "internalType": "uint256",
228
- "name": "reserveRatioBP",
229
- "type": "uint256"
301
+ internalType: 'uint256',
302
+ name: 'reserveRatioBP',
303
+ type: 'uint256',
230
304
  },
231
305
  {
232
- "internalType": "uint256",
233
- "name": "maxReserveRatioBP",
234
- "type": "uint256"
235
- }
306
+ internalType: 'uint256',
307
+ name: 'maxReserveRatioBP',
308
+ type: 'uint256',
309
+ },
236
310
  ],
237
- "name": "ReserveRatioTooHigh",
238
- "type": "error"
311
+ name: 'ReserveRatioTooHigh',
312
+ type: 'error',
239
313
  },
240
314
  {
241
- "inputs": [],
242
- "name": "ResumedExpected",
243
- "type": "error"
315
+ inputs: [],
316
+ name: 'ResumedExpected',
317
+ type: 'error',
244
318
  },
245
319
  {
246
- "inputs": [
320
+ inputs: [
247
321
  {
248
- "internalType": "address",
249
- "name": "vault",
250
- "type": "address"
322
+ internalType: 'address',
323
+ name: 'vault',
324
+ type: 'address',
251
325
  },
252
326
  {
253
- "internalType": "uint256",
254
- "name": "capShares",
255
- "type": "uint256"
256
- }
327
+ internalType: 'uint256',
328
+ name: 'capShares',
329
+ type: 'uint256',
330
+ },
257
331
  ],
258
- "name": "ShareLimitExceeded",
259
- "type": "error"
332
+ name: 'ShareLimitExceeded',
333
+ type: 'error',
260
334
  },
261
335
  {
262
- "inputs": [
336
+ inputs: [
263
337
  {
264
- "internalType": "address",
265
- "name": "vault",
266
- "type": "address"
338
+ internalType: 'address',
339
+ name: 'vault',
340
+ type: 'address',
267
341
  },
268
342
  {
269
- "internalType": "uint256",
270
- "name": "capShares",
271
- "type": "uint256"
343
+ internalType: 'uint256',
344
+ name: 'capShares',
345
+ type: 'uint256',
272
346
  },
273
347
  {
274
- "internalType": "uint256",
275
- "name": "maxCapShares",
276
- "type": "uint256"
277
- }
348
+ internalType: 'uint256',
349
+ name: 'maxCapShares',
350
+ type: 'uint256',
351
+ },
278
352
  ],
279
- "name": "ShareLimitTooHigh",
280
- "type": "error"
353
+ name: 'ShareLimitTooHigh',
354
+ type: 'error',
281
355
  },
282
356
  {
283
- "inputs": [
357
+ inputs: [
284
358
  {
285
- "internalType": "address",
286
- "name": "vault",
287
- "type": "address"
288
- }
359
+ internalType: 'address',
360
+ name: 'vault',
361
+ type: 'address',
362
+ },
289
363
  ],
290
- "name": "StETHMintFailed",
291
- "type": "error"
364
+ name: 'StETHMintFailed',
365
+ type: 'error',
292
366
  },
293
367
  {
294
- "inputs": [],
295
- "name": "TooManyVaults",
296
- "type": "error"
368
+ inputs: [],
369
+ name: 'TooManyVaults',
370
+ type: 'error',
297
371
  },
298
372
  {
299
- "inputs": [
373
+ inputs: [
300
374
  {
301
- "internalType": "address",
302
- "name": "vault",
303
- "type": "address"
375
+ internalType: 'address',
376
+ name: 'vault',
377
+ type: 'address',
304
378
  },
305
379
  {
306
- "internalType": "uint256",
307
- "name": "treasuryFeeBP",
308
- "type": "uint256"
380
+ internalType: 'uint256',
381
+ name: 'treasuryFeeBP',
382
+ type: 'uint256',
309
383
  },
310
384
  {
311
- "internalType": "uint256",
312
- "name": "maxTreasuryFeeBP",
313
- "type": "uint256"
314
- }
385
+ internalType: 'uint256',
386
+ name: 'maxTreasuryFeeBP',
387
+ type: 'uint256',
388
+ },
315
389
  ],
316
- "name": "TreasuryFeeTooHigh",
317
- "type": "error"
390
+ name: 'TreasuryFeeTooHigh',
391
+ type: 'error',
318
392
  },
319
393
  {
320
- "inputs": [
394
+ inputs: [
321
395
  {
322
- "internalType": "address",
323
- "name": "beacon",
324
- "type": "address"
325
- }
396
+ internalType: 'address',
397
+ name: 'depositor',
398
+ type: 'address',
399
+ },
326
400
  ],
327
- "name": "VaultProxyNotAllowed",
328
- "type": "error"
401
+ name: 'VaultDepositorNotAllowed',
402
+ type: 'error',
329
403
  },
330
404
  {
331
- "inputs": [
405
+ inputs: [
332
406
  {
333
- "internalType": "string",
334
- "name": "argument",
335
- "type": "string"
336
- }
407
+ internalType: 'address',
408
+ name: 'beacon',
409
+ type: 'address',
410
+ },
337
411
  ],
338
- "name": "ZeroArgument",
339
- "type": "error"
412
+ name: 'VaultProxyNotAllowed',
413
+ type: 'error',
340
414
  },
341
415
  {
342
- "inputs": [],
343
- "name": "ZeroPauseDuration",
344
- "type": "error"
416
+ inputs: [
417
+ {
418
+ internalType: 'string',
419
+ name: 'argument',
420
+ type: 'string',
421
+ },
422
+ ],
423
+ name: 'ZeroArgument',
424
+ type: 'error',
345
425
  },
346
426
  {
347
- "anonymous": false,
348
- "inputs": [
427
+ inputs: [],
428
+ name: 'ZeroPauseDuration',
429
+ type: 'error',
430
+ },
431
+ {
432
+ anonymous: false,
433
+ inputs: [
434
+ {
435
+ indexed: true,
436
+ internalType: 'address',
437
+ name: 'vault',
438
+ type: 'address',
439
+ },
440
+ {
441
+ indexed: false,
442
+ internalType: 'uint256',
443
+ name: 'amountOfShares',
444
+ type: 'uint256',
445
+ },
446
+ ],
447
+ name: 'BurnedSharesOnVault',
448
+ type: 'event',
449
+ },
450
+ {
451
+ anonymous: false,
452
+ inputs: [
453
+ {
454
+ indexed: true,
455
+ internalType: 'address',
456
+ name: 'vault',
457
+ type: 'address',
458
+ },
349
459
  {
350
- "indexed": true,
351
- "internalType": "address",
352
- "name": "vault",
353
- "type": "address"
460
+ indexed: false,
461
+ internalType: 'bytes',
462
+ name: 'pubkeys',
463
+ type: 'bytes',
354
464
  },
355
465
  {
356
- "indexed": false,
357
- "internalType": "uint256",
358
- "name": "amountOfShares",
359
- "type": "uint256"
360
- }
466
+ indexed: false,
467
+ internalType: 'address',
468
+ name: 'refundRecipient',
469
+ type: 'address',
470
+ },
361
471
  ],
362
- "name": "BurnedSharesOnVault",
363
- "type": "event"
472
+ name: 'ForceValidatorExitTriggered',
473
+ type: 'event',
364
474
  },
365
475
  {
366
- "anonymous": false,
367
- "inputs": [
476
+ anonymous: false,
477
+ inputs: [
368
478
  {
369
- "indexed": false,
370
- "internalType": "uint64",
371
- "name": "version",
372
- "type": "uint64"
373
- }
479
+ indexed: false,
480
+ internalType: 'uint64',
481
+ name: 'version',
482
+ type: 'uint64',
483
+ },
374
484
  ],
375
- "name": "Initialized",
376
- "type": "event"
485
+ name: 'Initialized',
486
+ type: 'event',
377
487
  },
378
488
  {
379
- "anonymous": false,
380
- "inputs": [
489
+ anonymous: false,
490
+ inputs: [
381
491
  {
382
- "indexed": true,
383
- "internalType": "address",
384
- "name": "vault",
385
- "type": "address"
492
+ indexed: true,
493
+ internalType: 'address',
494
+ name: 'vault',
495
+ type: 'address',
386
496
  },
387
497
  {
388
- "indexed": false,
389
- "internalType": "uint256",
390
- "name": "amountOfShares",
391
- "type": "uint256"
392
- }
498
+ indexed: false,
499
+ internalType: 'uint256',
500
+ name: 'amountOfShares',
501
+ type: 'uint256',
502
+ },
393
503
  ],
394
- "name": "MintedSharesOnVault",
395
- "type": "event"
504
+ name: 'MintedSharesOnVault',
505
+ type: 'event',
396
506
  },
397
507
  {
398
- "anonymous": false,
399
- "inputs": [
508
+ anonymous: false,
509
+ inputs: [
400
510
  {
401
- "indexed": false,
402
- "internalType": "uint256",
403
- "name": "duration",
404
- "type": "uint256"
405
- }
511
+ indexed: false,
512
+ internalType: 'uint256',
513
+ name: 'duration',
514
+ type: 'uint256',
515
+ },
406
516
  ],
407
- "name": "Paused",
408
- "type": "event"
517
+ name: 'Paused',
518
+ type: 'event',
409
519
  },
410
520
  {
411
- "anonymous": false,
412
- "inputs": [],
413
- "name": "Resumed",
414
- "type": "event"
521
+ anonymous: false,
522
+ inputs: [],
523
+ name: 'Resumed',
524
+ type: 'event',
415
525
  },
416
526
  {
417
- "anonymous": false,
418
- "inputs": [
527
+ anonymous: false,
528
+ inputs: [
419
529
  {
420
- "indexed": true,
421
- "internalType": "bytes32",
422
- "name": "role",
423
- "type": "bytes32"
530
+ indexed: true,
531
+ internalType: 'bytes32',
532
+ name: 'role',
533
+ type: 'bytes32',
424
534
  },
425
535
  {
426
- "indexed": true,
427
- "internalType": "bytes32",
428
- "name": "previousAdminRole",
429
- "type": "bytes32"
536
+ indexed: true,
537
+ internalType: 'bytes32',
538
+ name: 'previousAdminRole',
539
+ type: 'bytes32',
430
540
  },
431
541
  {
432
- "indexed": true,
433
- "internalType": "bytes32",
434
- "name": "newAdminRole",
435
- "type": "bytes32"
436
- }
542
+ indexed: true,
543
+ internalType: 'bytes32',
544
+ name: 'newAdminRole',
545
+ type: 'bytes32',
546
+ },
437
547
  ],
438
- "name": "RoleAdminChanged",
439
- "type": "event"
548
+ name: 'RoleAdminChanged',
549
+ type: 'event',
440
550
  },
441
551
  {
442
- "anonymous": false,
443
- "inputs": [
552
+ anonymous: false,
553
+ inputs: [
444
554
  {
445
- "indexed": true,
446
- "internalType": "bytes32",
447
- "name": "role",
448
- "type": "bytes32"
555
+ indexed: true,
556
+ internalType: 'bytes32',
557
+ name: 'role',
558
+ type: 'bytes32',
449
559
  },
450
560
  {
451
- "indexed": true,
452
- "internalType": "address",
453
- "name": "account",
454
- "type": "address"
561
+ indexed: true,
562
+ internalType: 'address',
563
+ name: 'account',
564
+ type: 'address',
455
565
  },
456
566
  {
457
- "indexed": true,
458
- "internalType": "address",
459
- "name": "sender",
460
- "type": "address"
461
- }
567
+ indexed: true,
568
+ internalType: 'address',
569
+ name: 'sender',
570
+ type: 'address',
571
+ },
462
572
  ],
463
- "name": "RoleGranted",
464
- "type": "event"
573
+ name: 'RoleGranted',
574
+ type: 'event',
465
575
  },
466
576
  {
467
- "anonymous": false,
468
- "inputs": [
577
+ anonymous: false,
578
+ inputs: [
469
579
  {
470
- "indexed": true,
471
- "internalType": "bytes32",
472
- "name": "role",
473
- "type": "bytes32"
580
+ indexed: true,
581
+ internalType: 'bytes32',
582
+ name: 'role',
583
+ type: 'bytes32',
474
584
  },
475
585
  {
476
- "indexed": true,
477
- "internalType": "address",
478
- "name": "account",
479
- "type": "address"
586
+ indexed: true,
587
+ internalType: 'address',
588
+ name: 'account',
589
+ type: 'address',
480
590
  },
481
591
  {
482
- "indexed": true,
483
- "internalType": "address",
484
- "name": "sender",
485
- "type": "address"
486
- }
592
+ indexed: true,
593
+ internalType: 'address',
594
+ name: 'sender',
595
+ type: 'address',
596
+ },
487
597
  ],
488
- "name": "RoleRevoked",
489
- "type": "event"
598
+ name: 'RoleRevoked',
599
+ type: 'event',
490
600
  },
491
601
  {
492
- "anonymous": false,
493
- "inputs": [
602
+ anonymous: false,
603
+ inputs: [
494
604
  {
495
- "indexed": true,
496
- "internalType": "address",
497
- "name": "vault",
498
- "type": "address"
605
+ indexed: true,
606
+ internalType: 'address',
607
+ name: 'vault',
608
+ type: 'address',
499
609
  },
500
610
  {
501
- "indexed": false,
502
- "internalType": "uint256",
503
- "name": "newShareLimit",
504
- "type": "uint256"
505
- }
611
+ indexed: false,
612
+ internalType: 'uint256',
613
+ name: 'newShareLimit',
614
+ type: 'uint256',
615
+ },
506
616
  ],
507
- "name": "ShareLimitUpdated",
508
- "type": "event"
617
+ name: 'ShareLimitUpdated',
618
+ type: 'event',
509
619
  },
510
620
  {
511
- "anonymous": false,
512
- "inputs": [
621
+ anonymous: false,
622
+ inputs: [
623
+ {
624
+ indexed: true,
625
+ internalType: 'address',
626
+ name: 'vault',
627
+ type: 'address',
628
+ },
629
+ {
630
+ indexed: false,
631
+ internalType: 'uint256',
632
+ name: 'capShares',
633
+ type: 'uint256',
634
+ },
513
635
  {
514
- "indexed": true,
515
- "internalType": "address",
516
- "name": "vault",
517
- "type": "address"
636
+ indexed: false,
637
+ internalType: 'uint256',
638
+ name: 'minReserveRatio',
639
+ type: 'uint256',
518
640
  },
519
641
  {
520
- "indexed": false,
521
- "internalType": "uint256",
522
- "name": "capShares",
523
- "type": "uint256"
642
+ indexed: false,
643
+ internalType: 'uint256',
644
+ name: 'rebalanceThreshold',
645
+ type: 'uint256',
524
646
  },
525
647
  {
526
- "indexed": false,
527
- "internalType": "uint256",
528
- "name": "minReserveRatio",
529
- "type": "uint256"
648
+ indexed: false,
649
+ internalType: 'uint256',
650
+ name: 'treasuryFeeBP',
651
+ type: 'uint256',
530
652
  },
653
+ ],
654
+ name: 'VaultConnected',
655
+ type: 'event',
656
+ },
657
+ {
658
+ anonymous: false,
659
+ inputs: [
660
+ {
661
+ indexed: true,
662
+ internalType: 'address',
663
+ name: 'vault',
664
+ type: 'address',
665
+ },
666
+ ],
667
+ name: 'VaultDisconnected',
668
+ type: 'event',
669
+ },
670
+ {
671
+ anonymous: false,
672
+ inputs: [
531
673
  {
532
- "indexed": false,
533
- "internalType": "uint256",
534
- "name": "treasuryFeeBP",
535
- "type": "uint256"
536
- }
674
+ indexed: true,
675
+ internalType: 'bytes32',
676
+ name: 'codehash',
677
+ type: 'bytes32',
678
+ },
537
679
  ],
538
- "name": "VaultConnected",
539
- "type": "event"
680
+ name: 'VaultProxyCodehashAdded',
681
+ type: 'event',
540
682
  },
541
683
  {
542
- "anonymous": false,
543
- "inputs": [
684
+ anonymous: false,
685
+ inputs: [
544
686
  {
545
- "indexed": true,
546
- "internalType": "address",
547
- "name": "vault",
548
- "type": "address"
549
- }
687
+ indexed: true,
688
+ internalType: 'address',
689
+ name: 'vault',
690
+ type: 'address',
691
+ },
692
+ {
693
+ indexed: false,
694
+ internalType: 'uint256',
695
+ name: 'sharesBurned',
696
+ type: 'uint256',
697
+ },
550
698
  ],
551
- "name": "VaultDisconnected",
552
- "type": "event"
699
+ name: 'VaultRebalanced',
700
+ type: 'event',
553
701
  },
554
702
  {
555
- "anonymous": false,
556
- "inputs": [
703
+ inputs: [],
704
+ name: 'DEFAULT_ADMIN_ROLE',
705
+ outputs: [
557
706
  {
558
- "indexed": true,
559
- "internalType": "bytes32",
560
- "name": "codehash",
561
- "type": "bytes32"
562
- }
707
+ internalType: 'bytes32',
708
+ name: '',
709
+ type: 'bytes32',
710
+ },
563
711
  ],
564
- "name": "VaultProxyCodehashAdded",
565
- "type": "event"
712
+ stateMutability: 'view',
713
+ type: 'function',
566
714
  },
567
715
  {
568
- "anonymous": false,
569
- "inputs": [
716
+ inputs: [],
717
+ name: 'LIDO',
718
+ outputs: [
570
719
  {
571
- "indexed": true,
572
- "internalType": "address",
573
- "name": "vault",
574
- "type": "address"
720
+ internalType: 'contract ILido',
721
+ name: '',
722
+ type: 'address',
575
723
  },
724
+ ],
725
+ stateMutability: 'view',
726
+ type: 'function',
727
+ },
728
+ {
729
+ inputs: [],
730
+ name: 'LIDO_LOCATOR',
731
+ outputs: [
576
732
  {
577
- "indexed": false,
578
- "internalType": "uint256",
579
- "name": "sharesBurned",
580
- "type": "uint256"
581
- }
733
+ internalType: 'contract ILidoLocator',
734
+ name: '',
735
+ type: 'address',
736
+ },
582
737
  ],
583
- "name": "VaultRebalanced",
584
- "type": "event"
738
+ stateMutability: 'view',
739
+ type: 'function',
585
740
  },
586
741
  {
587
- "inputs": [],
588
- "name": "DEFAULT_ADMIN_ROLE",
589
- "outputs": [
742
+ inputs: [],
743
+ name: 'PAUSE_INFINITELY',
744
+ outputs: [
590
745
  {
591
- "internalType": "bytes32",
592
- "name": "",
593
- "type": "bytes32"
594
- }
746
+ internalType: 'uint256',
747
+ name: '',
748
+ type: 'uint256',
749
+ },
595
750
  ],
596
- "stateMutability": "view",
597
- "type": "function"
751
+ stateMutability: 'view',
752
+ type: 'function',
598
753
  },
599
754
  {
600
- "inputs": [],
601
- "name": "PAUSE_INFINITELY",
602
- "outputs": [
755
+ inputs: [],
756
+ name: 'PAUSE_ROLE',
757
+ outputs: [
603
758
  {
604
- "internalType": "uint256",
605
- "name": "",
606
- "type": "uint256"
607
- }
759
+ internalType: 'bytes32',
760
+ name: '',
761
+ type: 'bytes32',
762
+ },
608
763
  ],
609
- "stateMutability": "view",
610
- "type": "function"
764
+ stateMutability: 'view',
765
+ type: 'function',
611
766
  },
612
767
  {
613
- "inputs": [],
614
- "name": "PAUSE_ROLE",
615
- "outputs": [
768
+ inputs: [],
769
+ name: 'RESUME_ROLE',
770
+ outputs: [
616
771
  {
617
- "internalType": "bytes32",
618
- "name": "",
619
- "type": "bytes32"
620
- }
772
+ internalType: 'bytes32',
773
+ name: '',
774
+ type: 'bytes32',
775
+ },
621
776
  ],
622
- "stateMutability": "view",
623
- "type": "function"
777
+ stateMutability: 'view',
778
+ type: 'function',
624
779
  },
625
780
  {
626
- "inputs": [],
627
- "name": "RESUME_ROLE",
628
- "outputs": [
781
+ inputs: [],
782
+ name: 'VAULT_MASTER_ROLE',
783
+ outputs: [
629
784
  {
630
- "internalType": "bytes32",
631
- "name": "",
632
- "type": "bytes32"
633
- }
785
+ internalType: 'bytes32',
786
+ name: '',
787
+ type: 'bytes32',
788
+ },
634
789
  ],
635
- "stateMutability": "view",
636
- "type": "function"
790
+ stateMutability: 'view',
791
+ type: 'function',
637
792
  },
638
793
  {
639
- "inputs": [],
640
- "name": "STETH",
641
- "outputs": [
794
+ inputs: [],
795
+ name: 'VAULT_REGISTRY_ROLE',
796
+ outputs: [
642
797
  {
643
- "internalType": "contract ILido",
644
- "name": "",
645
- "type": "address"
646
- }
798
+ internalType: 'bytes32',
799
+ name: '',
800
+ type: 'bytes32',
801
+ },
647
802
  ],
648
- "stateMutability": "view",
649
- "type": "function"
803
+ stateMutability: 'view',
804
+ type: 'function',
650
805
  },
651
806
  {
652
- "inputs": [],
653
- "name": "VAULT_MASTER_ROLE",
654
- "outputs": [
807
+ inputs: [
655
808
  {
656
- "internalType": "bytes32",
657
- "name": "",
658
- "type": "bytes32"
659
- }
809
+ internalType: 'bytes32',
810
+ name: 'codehash',
811
+ type: 'bytes32',
812
+ },
660
813
  ],
661
- "stateMutability": "view",
662
- "type": "function"
814
+ name: 'addVaultProxyCodehash',
815
+ outputs: [],
816
+ stateMutability: 'nonpayable',
817
+ type: 'function',
663
818
  },
664
819
  {
665
- "inputs": [],
666
- "name": "VAULT_REGISTRY_ROLE",
667
- "outputs": [
820
+ inputs: [
668
821
  {
669
- "internalType": "bytes32",
670
- "name": "",
671
- "type": "bytes32"
672
- }
822
+ internalType: 'address',
823
+ name: '_vault',
824
+ type: 'address',
825
+ },
826
+ {
827
+ internalType: 'uint256',
828
+ name: '_amountOfShares',
829
+ type: 'uint256',
830
+ },
673
831
  ],
674
- "stateMutability": "view",
675
- "type": "function"
832
+ name: 'burnShares',
833
+ outputs: [],
834
+ stateMutability: 'nonpayable',
835
+ type: 'function',
676
836
  },
677
837
  {
678
- "inputs": [
838
+ inputs: [
839
+ {
840
+ internalType: 'uint256',
841
+ name: '_reportValuation',
842
+ type: 'uint256',
843
+ },
844
+ {
845
+ components: [
846
+ {
847
+ internalType: 'address',
848
+ name: 'vault',
849
+ type: 'address',
850
+ },
851
+ {
852
+ internalType: 'uint96',
853
+ name: 'sharesMinted',
854
+ type: 'uint96',
855
+ },
856
+ {
857
+ internalType: 'uint96',
858
+ name: 'shareLimit',
859
+ type: 'uint96',
860
+ },
861
+ {
862
+ internalType: 'uint16',
863
+ name: 'reserveRatioBP',
864
+ type: 'uint16',
865
+ },
866
+ {
867
+ internalType: 'uint16',
868
+ name: 'rebalanceThresholdBP',
869
+ type: 'uint16',
870
+ },
871
+ {
872
+ internalType: 'uint16',
873
+ name: 'treasuryFeeBP',
874
+ type: 'uint16',
875
+ },
876
+ {
877
+ internalType: 'bool',
878
+ name: 'pendingDisconnect',
879
+ type: 'bool',
880
+ },
881
+ ],
882
+ internalType: 'struct VaultHub.VaultSocket',
883
+ name: 'socket',
884
+ type: 'tuple',
885
+ },
886
+ {
887
+ internalType: 'uint256',
888
+ name: '_preTotalShares',
889
+ type: 'uint256',
890
+ },
891
+ {
892
+ internalType: 'uint256',
893
+ name: '_preTotalPooledEther',
894
+ type: 'uint256',
895
+ },
679
896
  {
680
- "internalType": "bytes32",
681
- "name": "codehash",
682
- "type": "bytes32"
683
- }
897
+ internalType: 'uint256',
898
+ name: '_postInternalShares',
899
+ type: 'uint256',
900
+ },
901
+ {
902
+ internalType: 'uint256',
903
+ name: '_postInternalEther',
904
+ type: 'uint256',
905
+ },
906
+ {
907
+ internalType: 'uint256',
908
+ name: '_sharesToMintAsLidoCoreFees',
909
+ type: 'uint256',
910
+ },
911
+ ],
912
+ name: 'calculateVaultTreasuryFees',
913
+ outputs: [
914
+ {
915
+ internalType: 'uint256',
916
+ name: 'treasuryFeeShares',
917
+ type: 'uint256',
918
+ },
684
919
  ],
685
- "name": "addVaultProxyCodehash",
686
- "outputs": [],
687
- "stateMutability": "nonpayable",
688
- "type": "function"
920
+ stateMutability: 'pure',
921
+ type: 'function',
689
922
  },
690
923
  {
691
- "inputs": [
924
+ inputs: [
925
+ {
926
+ internalType: 'uint256[]',
927
+ name: 'vaultsValuations',
928
+ type: 'uint256[]',
929
+ },
930
+ {
931
+ internalType: 'uint256',
932
+ name: '_preTotalShares',
933
+ type: 'uint256',
934
+ },
935
+ {
936
+ internalType: 'uint256',
937
+ name: '_preTotalPooledEther',
938
+ type: 'uint256',
939
+ },
692
940
  {
693
- "internalType": "address",
694
- "name": "_vault",
695
- "type": "address"
941
+ internalType: 'uint256',
942
+ name: '_postInternalShares',
943
+ type: 'uint256',
696
944
  },
697
945
  {
698
- "internalType": "uint256",
699
- "name": "_amountOfShares",
700
- "type": "uint256"
701
- }
946
+ internalType: 'uint256',
947
+ name: '_postInternalEther',
948
+ type: 'uint256',
949
+ },
950
+ {
951
+ internalType: 'uint256',
952
+ name: '_sharesToMintAsLidoCoreFees',
953
+ type: 'uint256',
954
+ },
955
+ ],
956
+ name: 'calculateVaultsRebase',
957
+ outputs: [
958
+ {
959
+ internalType: 'uint256[]',
960
+ name: 'lockedEther',
961
+ type: 'uint256[]',
962
+ },
963
+ {
964
+ internalType: 'uint256[]',
965
+ name: 'treasuryFeeShares',
966
+ type: 'uint256[]',
967
+ },
968
+ {
969
+ internalType: 'uint256',
970
+ name: 'totalTreasuryFeeShares',
971
+ type: 'uint256',
972
+ },
702
973
  ],
703
- "name": "burnSharesBackedByVault",
704
- "outputs": [],
705
- "stateMutability": "nonpayable",
706
- "type": "function"
974
+ stateMutability: 'view',
975
+ type: 'function',
707
976
  },
708
977
  {
709
- "inputs": [
978
+ inputs: [
710
979
  {
711
- "internalType": "address",
712
- "name": "_vault",
713
- "type": "address"
980
+ internalType: 'address',
981
+ name: '_vault',
982
+ type: 'address',
714
983
  },
715
984
  {
716
- "internalType": "uint256",
717
- "name": "_shareLimit",
718
- "type": "uint256"
985
+ internalType: 'uint256',
986
+ name: '_shareLimit',
987
+ type: 'uint256',
719
988
  },
720
989
  {
721
- "internalType": "uint256",
722
- "name": "_reserveRatioBP",
723
- "type": "uint256"
990
+ internalType: 'uint256',
991
+ name: '_reserveRatioBP',
992
+ type: 'uint256',
724
993
  },
725
994
  {
726
- "internalType": "uint256",
727
- "name": "_reserveRatioThresholdBP",
728
- "type": "uint256"
995
+ internalType: 'uint256',
996
+ name: '_rebalanceThresholdBP',
997
+ type: 'uint256',
729
998
  },
730
999
  {
731
- "internalType": "uint256",
732
- "name": "_treasuryFeeBP",
733
- "type": "uint256"
734
- }
1000
+ internalType: 'uint256',
1001
+ name: '_treasuryFeeBP',
1002
+ type: 'uint256',
1003
+ },
1004
+ ],
1005
+ name: 'connectVault',
1006
+ outputs: [],
1007
+ stateMutability: 'nonpayable',
1008
+ type: 'function',
1009
+ },
1010
+ {
1011
+ inputs: [
1012
+ {
1013
+ internalType: 'address',
1014
+ name: '_vault',
1015
+ type: 'address',
1016
+ },
735
1017
  ],
736
- "name": "connectVault",
737
- "outputs": [],
738
- "stateMutability": "nonpayable",
739
- "type": "function"
1018
+ name: 'disconnect',
1019
+ outputs: [],
1020
+ stateMutability: 'nonpayable',
1021
+ type: 'function',
740
1022
  },
741
1023
  {
742
- "inputs": [
1024
+ inputs: [
743
1025
  {
744
- "internalType": "address",
745
- "name": "_vault",
746
- "type": "address"
747
- }
1026
+ internalType: 'address',
1027
+ name: '_vault',
1028
+ type: 'address',
1029
+ },
748
1030
  ],
749
- "name": "disconnect",
750
- "outputs": [],
751
- "stateMutability": "nonpayable",
752
- "type": "function"
1031
+ name: 'forceRebalance',
1032
+ outputs: [],
1033
+ stateMutability: 'nonpayable',
1034
+ type: 'function',
753
1035
  },
754
1036
  {
755
- "inputs": [
1037
+ inputs: [
1038
+ {
1039
+ internalType: 'address',
1040
+ name: '_vault',
1041
+ type: 'address',
1042
+ },
1043
+ {
1044
+ internalType: 'bytes',
1045
+ name: '_pubkeys',
1046
+ type: 'bytes',
1047
+ },
756
1048
  {
757
- "internalType": "address",
758
- "name": "_vault",
759
- "type": "address"
760
- }
1049
+ internalType: 'address',
1050
+ name: '_refundRecipient',
1051
+ type: 'address',
1052
+ },
761
1053
  ],
762
- "name": "forceRebalance",
763
- "outputs": [],
764
- "stateMutability": "nonpayable",
765
- "type": "function"
1054
+ name: 'forceValidatorExit',
1055
+ outputs: [],
1056
+ stateMutability: 'payable',
1057
+ type: 'function',
766
1058
  },
767
1059
  {
768
- "inputs": [],
769
- "name": "getResumeSinceTimestamp",
770
- "outputs": [
1060
+ inputs: [],
1061
+ name: 'getResumeSinceTimestamp',
1062
+ outputs: [
771
1063
  {
772
- "internalType": "uint256",
773
- "name": "",
774
- "type": "uint256"
775
- }
1064
+ internalType: 'uint256',
1065
+ name: '',
1066
+ type: 'uint256',
1067
+ },
776
1068
  ],
777
- "stateMutability": "view",
778
- "type": "function"
1069
+ stateMutability: 'view',
1070
+ type: 'function',
779
1071
  },
780
1072
  {
781
- "inputs": [
1073
+ inputs: [
782
1074
  {
783
- "internalType": "bytes32",
784
- "name": "role",
785
- "type": "bytes32"
786
- }
1075
+ internalType: 'bytes32',
1076
+ name: 'role',
1077
+ type: 'bytes32',
1078
+ },
787
1079
  ],
788
- "name": "getRoleAdmin",
789
- "outputs": [
1080
+ name: 'getRoleAdmin',
1081
+ outputs: [
790
1082
  {
791
- "internalType": "bytes32",
792
- "name": "",
793
- "type": "bytes32"
794
- }
1083
+ internalType: 'bytes32',
1084
+ name: '',
1085
+ type: 'bytes32',
1086
+ },
795
1087
  ],
796
- "stateMutability": "view",
797
- "type": "function"
1088
+ stateMutability: 'view',
1089
+ type: 'function',
798
1090
  },
799
1091
  {
800
- "inputs": [
1092
+ inputs: [
801
1093
  {
802
- "internalType": "bytes32",
803
- "name": "role",
804
- "type": "bytes32"
1094
+ internalType: 'bytes32',
1095
+ name: 'role',
1096
+ type: 'bytes32',
805
1097
  },
806
1098
  {
807
- "internalType": "uint256",
808
- "name": "index",
809
- "type": "uint256"
810
- }
1099
+ internalType: 'uint256',
1100
+ name: 'index',
1101
+ type: 'uint256',
1102
+ },
811
1103
  ],
812
- "name": "getRoleMember",
813
- "outputs": [
1104
+ name: 'getRoleMember',
1105
+ outputs: [
814
1106
  {
815
- "internalType": "address",
816
- "name": "",
817
- "type": "address"
818
- }
1107
+ internalType: 'address',
1108
+ name: '',
1109
+ type: 'address',
1110
+ },
819
1111
  ],
820
- "stateMutability": "view",
821
- "type": "function"
1112
+ stateMutability: 'view',
1113
+ type: 'function',
822
1114
  },
823
1115
  {
824
- "inputs": [
1116
+ inputs: [
825
1117
  {
826
- "internalType": "bytes32",
827
- "name": "role",
828
- "type": "bytes32"
829
- }
1118
+ internalType: 'bytes32',
1119
+ name: 'role',
1120
+ type: 'bytes32',
1121
+ },
830
1122
  ],
831
- "name": "getRoleMemberCount",
832
- "outputs": [
1123
+ name: 'getRoleMemberCount',
1124
+ outputs: [
833
1125
  {
834
- "internalType": "uint256",
835
- "name": "",
836
- "type": "uint256"
837
- }
1126
+ internalType: 'uint256',
1127
+ name: '',
1128
+ type: 'uint256',
1129
+ },
838
1130
  ],
839
- "stateMutability": "view",
840
- "type": "function"
1131
+ stateMutability: 'view',
1132
+ type: 'function',
841
1133
  },
842
1134
  {
843
- "inputs": [
1135
+ inputs: [
844
1136
  {
845
- "internalType": "bytes32",
846
- "name": "role",
847
- "type": "bytes32"
848
- }
1137
+ internalType: 'bytes32',
1138
+ name: 'role',
1139
+ type: 'bytes32',
1140
+ },
849
1141
  ],
850
- "name": "getRoleMembers",
851
- "outputs": [
1142
+ name: 'getRoleMembers',
1143
+ outputs: [
852
1144
  {
853
- "internalType": "address[]",
854
- "name": "",
855
- "type": "address[]"
856
- }
1145
+ internalType: 'address[]',
1146
+ name: '',
1147
+ type: 'address[]',
1148
+ },
857
1149
  ],
858
- "stateMutability": "view",
859
- "type": "function"
1150
+ stateMutability: 'view',
1151
+ type: 'function',
860
1152
  },
861
1153
  {
862
- "inputs": [
1154
+ inputs: [
863
1155
  {
864
- "internalType": "bytes32",
865
- "name": "role",
866
- "type": "bytes32"
1156
+ internalType: 'bytes32',
1157
+ name: 'role',
1158
+ type: 'bytes32',
867
1159
  },
868
1160
  {
869
- "internalType": "address",
870
- "name": "account",
871
- "type": "address"
872
- }
1161
+ internalType: 'address',
1162
+ name: 'account',
1163
+ type: 'address',
1164
+ },
873
1165
  ],
874
- "name": "grantRole",
875
- "outputs": [],
876
- "stateMutability": "nonpayable",
877
- "type": "function"
1166
+ name: 'grantRole',
1167
+ outputs: [],
1168
+ stateMutability: 'nonpayable',
1169
+ type: 'function',
878
1170
  },
879
1171
  {
880
- "inputs": [
1172
+ inputs: [
1173
+ {
1174
+ internalType: 'bytes32',
1175
+ name: 'role',
1176
+ type: 'bytes32',
1177
+ },
1178
+ {
1179
+ internalType: 'address',
1180
+ name: 'account',
1181
+ type: 'address',
1182
+ },
1183
+ ],
1184
+ name: 'hasRole',
1185
+ outputs: [
881
1186
  {
882
- "internalType": "bytes32",
883
- "name": "role",
884
- "type": "bytes32"
1187
+ internalType: 'bool',
1188
+ name: '',
1189
+ type: 'bool',
885
1190
  },
1191
+ ],
1192
+ stateMutability: 'view',
1193
+ type: 'function',
1194
+ },
1195
+ {
1196
+ inputs: [
886
1197
  {
887
- "internalType": "address",
888
- "name": "account",
889
- "type": "address"
890
- }
1198
+ internalType: 'address',
1199
+ name: '_admin',
1200
+ type: 'address',
1201
+ },
891
1202
  ],
892
- "name": "hasRole",
893
- "outputs": [
1203
+ name: 'initialize',
1204
+ outputs: [],
1205
+ stateMutability: 'nonpayable',
1206
+ type: 'function',
1207
+ },
1208
+ {
1209
+ inputs: [],
1210
+ name: 'isPaused',
1211
+ outputs: [
894
1212
  {
895
- "internalType": "bool",
896
- "name": "",
897
- "type": "bool"
898
- }
1213
+ internalType: 'bool',
1214
+ name: '',
1215
+ type: 'bool',
1216
+ },
899
1217
  ],
900
- "stateMutability": "view",
901
- "type": "function"
1218
+ stateMutability: 'view',
1219
+ type: 'function',
902
1220
  },
903
1221
  {
904
- "inputs": [],
905
- "name": "isPaused",
906
- "outputs": [
1222
+ inputs: [
907
1223
  {
908
- "internalType": "bool",
909
- "name": "",
910
- "type": "bool"
911
- }
1224
+ internalType: 'address',
1225
+ name: '_vault',
1226
+ type: 'address',
1227
+ },
912
1228
  ],
913
- "stateMutability": "view",
914
- "type": "function"
1229
+ name: 'isVaultHealthy',
1230
+ outputs: [
1231
+ {
1232
+ internalType: 'bool',
1233
+ name: '',
1234
+ type: 'bool',
1235
+ },
1236
+ ],
1237
+ stateMutability: 'view',
1238
+ type: 'function',
915
1239
  },
916
1240
  {
917
- "inputs": [
1241
+ inputs: [
1242
+ {
1243
+ internalType: 'address',
1244
+ name: '_vault',
1245
+ type: 'address',
1246
+ },
918
1247
  {
919
- "internalType": "address",
920
- "name": "_vault",
921
- "type": "address"
1248
+ internalType: 'address',
1249
+ name: '_recipient',
1250
+ type: 'address',
922
1251
  },
923
1252
  {
924
- "internalType": "address",
925
- "name": "_recipient",
926
- "type": "address"
1253
+ internalType: 'uint256',
1254
+ name: '_amountOfShares',
1255
+ type: 'uint256',
927
1256
  },
1257
+ ],
1258
+ name: 'mintShares',
1259
+ outputs: [],
1260
+ stateMutability: 'nonpayable',
1261
+ type: 'function',
1262
+ },
1263
+ {
1264
+ inputs: [
928
1265
  {
929
- "internalType": "uint256",
930
- "name": "_amountOfShares",
931
- "type": "uint256"
932
- }
1266
+ internalType: 'uint256',
1267
+ name: '_amountOfShares',
1268
+ type: 'uint256',
1269
+ },
933
1270
  ],
934
- "name": "mintSharesBackedByVault",
935
- "outputs": [],
936
- "stateMutability": "nonpayable",
937
- "type": "function"
1271
+ name: 'mintVaultsTreasuryFeeShares',
1272
+ outputs: [],
1273
+ stateMutability: 'nonpayable',
1274
+ type: 'function',
938
1275
  },
939
1276
  {
940
- "inputs": [
1277
+ inputs: [
941
1278
  {
942
- "internalType": "uint256",
943
- "name": "_duration",
944
- "type": "uint256"
945
- }
1279
+ internalType: 'uint256',
1280
+ name: '_duration',
1281
+ type: 'uint256',
1282
+ },
946
1283
  ],
947
- "name": "pauseFor",
948
- "outputs": [],
949
- "stateMutability": "nonpayable",
950
- "type": "function"
1284
+ name: 'pauseFor',
1285
+ outputs: [],
1286
+ stateMutability: 'nonpayable',
1287
+ type: 'function',
951
1288
  },
952
1289
  {
953
- "inputs": [
1290
+ inputs: [
954
1291
  {
955
- "internalType": "uint256",
956
- "name": "_pauseUntilInclusive",
957
- "type": "uint256"
958
- }
1292
+ internalType: 'uint256',
1293
+ name: '_pauseUntilInclusive',
1294
+ type: 'uint256',
1295
+ },
959
1296
  ],
960
- "name": "pauseUntil",
961
- "outputs": [],
962
- "stateMutability": "nonpayable",
963
- "type": "function"
1297
+ name: 'pauseUntil',
1298
+ outputs: [],
1299
+ stateMutability: 'nonpayable',
1300
+ type: 'function',
964
1301
  },
965
1302
  {
966
- "inputs": [],
967
- "name": "rebalance",
968
- "outputs": [],
969
- "stateMutability": "payable",
970
- "type": "function"
1303
+ inputs: [],
1304
+ name: 'rebalance',
1305
+ outputs: [],
1306
+ stateMutability: 'payable',
1307
+ type: 'function',
971
1308
  },
972
1309
  {
973
- "inputs": [
1310
+ inputs: [
974
1311
  {
975
- "internalType": "bytes32",
976
- "name": "role",
977
- "type": "bytes32"
1312
+ internalType: 'bytes32',
1313
+ name: 'role',
1314
+ type: 'bytes32',
978
1315
  },
979
1316
  {
980
- "internalType": "address",
981
- "name": "callerConfirmation",
982
- "type": "address"
983
- }
1317
+ internalType: 'address',
1318
+ name: 'callerConfirmation',
1319
+ type: 'address',
1320
+ },
984
1321
  ],
985
- "name": "renounceRole",
986
- "outputs": [],
987
- "stateMutability": "nonpayable",
988
- "type": "function"
1322
+ name: 'renounceRole',
1323
+ outputs: [],
1324
+ stateMutability: 'nonpayable',
1325
+ type: 'function',
989
1326
  },
990
1327
  {
991
- "inputs": [],
992
- "name": "resume",
993
- "outputs": [],
994
- "stateMutability": "nonpayable",
995
- "type": "function"
1328
+ inputs: [],
1329
+ name: 'resume',
1330
+ outputs: [],
1331
+ stateMutability: 'nonpayable',
1332
+ type: 'function',
996
1333
  },
997
1334
  {
998
- "inputs": [
1335
+ inputs: [
999
1336
  {
1000
- "internalType": "bytes32",
1001
- "name": "role",
1002
- "type": "bytes32"
1337
+ internalType: 'bytes32',
1338
+ name: 'role',
1339
+ type: 'bytes32',
1003
1340
  },
1004
1341
  {
1005
- "internalType": "address",
1006
- "name": "account",
1007
- "type": "address"
1008
- }
1342
+ internalType: 'address',
1343
+ name: 'account',
1344
+ type: 'address',
1345
+ },
1009
1346
  ],
1010
- "name": "revokeRole",
1011
- "outputs": [],
1012
- "stateMutability": "nonpayable",
1013
- "type": "function"
1347
+ name: 'revokeRole',
1348
+ outputs: [],
1349
+ stateMutability: 'nonpayable',
1350
+ type: 'function',
1014
1351
  },
1015
1352
  {
1016
- "inputs": [
1353
+ inputs: [
1017
1354
  {
1018
- "internalType": "bytes4",
1019
- "name": "interfaceId",
1020
- "type": "bytes4"
1021
- }
1355
+ internalType: 'bytes4',
1356
+ name: 'interfaceId',
1357
+ type: 'bytes4',
1358
+ },
1022
1359
  ],
1023
- "name": "supportsInterface",
1024
- "outputs": [
1360
+ name: 'supportsInterface',
1361
+ outputs: [
1362
+ {
1363
+ internalType: 'bool',
1364
+ name: '',
1365
+ type: 'bool',
1366
+ },
1367
+ ],
1368
+ stateMutability: 'view',
1369
+ type: 'function',
1370
+ },
1371
+ {
1372
+ inputs: [
1373
+ {
1374
+ internalType: 'address',
1375
+ name: '_vault',
1376
+ type: 'address',
1377
+ },
1025
1378
  {
1026
- "internalType": "bool",
1027
- "name": "",
1028
- "type": "bool"
1029
- }
1379
+ internalType: 'uint256',
1380
+ name: '_amountOfShares',
1381
+ type: 'uint256',
1382
+ },
1030
1383
  ],
1031
- "stateMutability": "view",
1032
- "type": "function"
1384
+ name: 'transferAndBurnShares',
1385
+ outputs: [],
1386
+ stateMutability: 'nonpayable',
1387
+ type: 'function',
1033
1388
  },
1034
1389
  {
1035
- "inputs": [
1390
+ inputs: [
1036
1391
  {
1037
- "internalType": "address",
1038
- "name": "_vault",
1039
- "type": "address"
1392
+ internalType: 'address',
1393
+ name: '_vault',
1394
+ type: 'address',
1040
1395
  },
1041
1396
  {
1042
- "internalType": "uint256",
1043
- "name": "_amountOfShares",
1044
- "type": "uint256"
1045
- }
1397
+ internalType: 'uint256',
1398
+ name: '_shareLimit',
1399
+ type: 'uint256',
1400
+ },
1046
1401
  ],
1047
- "name": "transferAndBurnSharesBackedByVault",
1048
- "outputs": [],
1049
- "stateMutability": "nonpayable",
1050
- "type": "function"
1402
+ name: 'updateShareLimit',
1403
+ outputs: [],
1404
+ stateMutability: 'nonpayable',
1405
+ type: 'function',
1051
1406
  },
1052
1407
  {
1053
- "inputs": [
1408
+ inputs: [
1409
+ {
1410
+ internalType: 'uint256[]',
1411
+ name: '_valuations',
1412
+ type: 'uint256[]',
1413
+ },
1054
1414
  {
1055
- "internalType": "address",
1056
- "name": "_vault",
1057
- "type": "address"
1415
+ internalType: 'int256[]',
1416
+ name: '_inOutDeltas',
1417
+ type: 'int256[]',
1058
1418
  },
1059
1419
  {
1060
- "internalType": "uint256",
1061
- "name": "_shareLimit",
1062
- "type": "uint256"
1063
- }
1420
+ internalType: 'uint256[]',
1421
+ name: '_locked',
1422
+ type: 'uint256[]',
1423
+ },
1424
+ {
1425
+ internalType: 'uint256[]',
1426
+ name: '_treasureFeeShares',
1427
+ type: 'uint256[]',
1428
+ },
1064
1429
  ],
1065
- "name": "updateShareLimit",
1066
- "outputs": [],
1067
- "stateMutability": "nonpayable",
1068
- "type": "function"
1430
+ name: 'updateVaults',
1431
+ outputs: [],
1432
+ stateMutability: 'nonpayable',
1433
+ type: 'function',
1069
1434
  },
1070
1435
  {
1071
- "inputs": [
1436
+ inputs: [
1072
1437
  {
1073
- "internalType": "uint256",
1074
- "name": "_index",
1075
- "type": "uint256"
1076
- }
1438
+ internalType: 'uint256',
1439
+ name: '_index',
1440
+ type: 'uint256',
1441
+ },
1077
1442
  ],
1078
- "name": "vault",
1079
- "outputs": [
1443
+ name: 'vault',
1444
+ outputs: [
1080
1445
  {
1081
- "internalType": "address",
1082
- "name": "",
1083
- "type": "address"
1084
- }
1446
+ internalType: 'address',
1447
+ name: '',
1448
+ type: 'address',
1449
+ },
1085
1450
  ],
1086
- "stateMutability": "view",
1087
- "type": "function"
1451
+ stateMutability: 'view',
1452
+ type: 'function',
1088
1453
  },
1089
1454
  {
1090
- "inputs": [
1455
+ inputs: [
1091
1456
  {
1092
- "internalType": "uint256",
1093
- "name": "_index",
1094
- "type": "uint256"
1095
- }
1457
+ internalType: 'uint256',
1458
+ name: '_index',
1459
+ type: 'uint256',
1460
+ },
1096
1461
  ],
1097
- "name": "vaultSocket",
1098
- "outputs": [
1462
+ name: 'vaultSocket',
1463
+ outputs: [
1099
1464
  {
1100
- "components": [
1465
+ components: [
1101
1466
  {
1102
- "internalType": "address",
1103
- "name": "vault",
1104
- "type": "address"
1467
+ internalType: 'address',
1468
+ name: 'vault',
1469
+ type: 'address',
1105
1470
  },
1106
1471
  {
1107
- "internalType": "uint96",
1108
- "name": "sharesMinted",
1109
- "type": "uint96"
1472
+ internalType: 'uint96',
1473
+ name: 'sharesMinted',
1474
+ type: 'uint96',
1110
1475
  },
1111
1476
  {
1112
- "internalType": "uint96",
1113
- "name": "shareLimit",
1114
- "type": "uint96"
1477
+ internalType: 'uint96',
1478
+ name: 'shareLimit',
1479
+ type: 'uint96',
1115
1480
  },
1116
1481
  {
1117
- "internalType": "uint16",
1118
- "name": "reserveRatioBP",
1119
- "type": "uint16"
1482
+ internalType: 'uint16',
1483
+ name: 'reserveRatioBP',
1484
+ type: 'uint16',
1120
1485
  },
1121
1486
  {
1122
- "internalType": "uint16",
1123
- "name": "reserveRatioThresholdBP",
1124
- "type": "uint16"
1487
+ internalType: 'uint16',
1488
+ name: 'rebalanceThresholdBP',
1489
+ type: 'uint16',
1125
1490
  },
1126
1491
  {
1127
- "internalType": "uint16",
1128
- "name": "treasuryFeeBP",
1129
- "type": "uint16"
1492
+ internalType: 'uint16',
1493
+ name: 'treasuryFeeBP',
1494
+ type: 'uint16',
1130
1495
  },
1131
1496
  {
1132
- "internalType": "bool",
1133
- "name": "isDisconnected",
1134
- "type": "bool"
1135
- }
1497
+ internalType: 'bool',
1498
+ name: 'pendingDisconnect',
1499
+ type: 'bool',
1500
+ },
1136
1501
  ],
1137
- "internalType": "struct VaultHub.VaultSocket",
1138
- "name": "",
1139
- "type": "tuple"
1140
- }
1502
+ internalType: 'struct VaultHub.VaultSocket',
1503
+ name: '',
1504
+ type: 'tuple',
1505
+ },
1141
1506
  ],
1142
- "stateMutability": "view",
1143
- "type": "function"
1507
+ stateMutability: 'view',
1508
+ type: 'function',
1144
1509
  },
1145
1510
  {
1146
- "inputs": [
1511
+ inputs: [
1147
1512
  {
1148
- "internalType": "address",
1149
- "name": "_vault",
1150
- "type": "address"
1151
- }
1513
+ internalType: 'address',
1514
+ name: '_vault',
1515
+ type: 'address',
1516
+ },
1152
1517
  ],
1153
- "name": "vaultSocket",
1154
- "outputs": [
1518
+ name: 'vaultSocket',
1519
+ outputs: [
1155
1520
  {
1156
- "components": [
1521
+ components: [
1157
1522
  {
1158
- "internalType": "address",
1159
- "name": "vault",
1160
- "type": "address"
1523
+ internalType: 'address',
1524
+ name: 'vault',
1525
+ type: 'address',
1161
1526
  },
1162
1527
  {
1163
- "internalType": "uint96",
1164
- "name": "sharesMinted",
1165
- "type": "uint96"
1528
+ internalType: 'uint96',
1529
+ name: 'sharesMinted',
1530
+ type: 'uint96',
1166
1531
  },
1167
1532
  {
1168
- "internalType": "uint96",
1169
- "name": "shareLimit",
1170
- "type": "uint96"
1533
+ internalType: 'uint96',
1534
+ name: 'shareLimit',
1535
+ type: 'uint96',
1171
1536
  },
1172
1537
  {
1173
- "internalType": "uint16",
1174
- "name": "reserveRatioBP",
1175
- "type": "uint16"
1538
+ internalType: 'uint16',
1539
+ name: 'reserveRatioBP',
1540
+ type: 'uint16',
1176
1541
  },
1177
1542
  {
1178
- "internalType": "uint16",
1179
- "name": "reserveRatioThresholdBP",
1180
- "type": "uint16"
1543
+ internalType: 'uint16',
1544
+ name: 'rebalanceThresholdBP',
1545
+ type: 'uint16',
1181
1546
  },
1182
1547
  {
1183
- "internalType": "uint16",
1184
- "name": "treasuryFeeBP",
1185
- "type": "uint16"
1548
+ internalType: 'uint16',
1549
+ name: 'treasuryFeeBP',
1550
+ type: 'uint16',
1186
1551
  },
1187
1552
  {
1188
- "internalType": "bool",
1189
- "name": "isDisconnected",
1190
- "type": "bool"
1191
- }
1553
+ internalType: 'bool',
1554
+ name: 'pendingDisconnect',
1555
+ type: 'bool',
1556
+ },
1192
1557
  ],
1193
- "internalType": "struct VaultHub.VaultSocket",
1194
- "name": "",
1195
- "type": "tuple"
1196
- }
1558
+ internalType: 'struct VaultHub.VaultSocket',
1559
+ name: '',
1560
+ type: 'tuple',
1561
+ },
1197
1562
  ],
1198
- "stateMutability": "view",
1199
- "type": "function"
1563
+ stateMutability: 'view',
1564
+ type: 'function',
1200
1565
  },
1201
1566
  {
1202
- "inputs": [],
1203
- "name": "vaultsCount",
1204
- "outputs": [
1567
+ inputs: [],
1568
+ name: 'vaultsCount',
1569
+ outputs: [
1205
1570
  {
1206
- "internalType": "uint256",
1207
- "name": "",
1208
- "type": "uint256"
1209
- }
1571
+ internalType: 'uint256',
1572
+ name: '',
1573
+ type: 'uint256',
1574
+ },
1210
1575
  ],
1211
- "stateMutability": "view",
1212
- "type": "function"
1576
+ stateMutability: 'view',
1577
+ type: 'function',
1213
1578
  },
1214
1579
  {
1215
- "inputs": [
1580
+ inputs: [
1216
1581
  {
1217
- "internalType": "address",
1218
- "name": "_vault",
1219
- "type": "address"
1220
- }
1582
+ internalType: 'address',
1583
+ name: '_vault',
1584
+ type: 'address',
1585
+ },
1221
1586
  ],
1222
- "name": "voluntaryDisconnect",
1223
- "outputs": [],
1224
- "stateMutability": "nonpayable",
1225
- "type": "function"
1226
- }
1587
+ name: 'voluntaryDisconnect',
1588
+ outputs: [],
1589
+ stateMutability: 'nonpayable',
1590
+ type: 'function',
1591
+ },
1227
1592
  ];
1228
1593
  //# sourceMappingURL=VaultHub.js.map