@lidofinance/lsv-cli 1.0.0-alpha.7 → 1.0.0-alpha.9

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 (96) hide show
  1. package/README.md +217 -1
  2. package/dist/abi/Dashboard.js +1383 -0
  3. package/dist/abi/Dashboard.js.map +1 -0
  4. package/dist/abi/Delegation.js +1658 -0
  5. package/dist/abi/Delegation.js.map +1 -0
  6. package/dist/abi/LidoLocator.js +388 -0
  7. package/dist/abi/LidoLocator.js.map +1 -0
  8. package/dist/abi/StEth.js +496 -0
  9. package/dist/abi/StEth.js.map +1 -0
  10. package/dist/abi/StakingVault.js +786 -0
  11. package/dist/abi/StakingVault.js.map +1 -0
  12. package/dist/abi/TokenManager.js +759 -0
  13. package/dist/abi/TokenManager.js.map +1 -0
  14. package/dist/abi/VaultFactory.js +229 -0
  15. package/dist/abi/VaultFactory.js.map +1 -0
  16. package/dist/abi/VaultHub.js +923 -586
  17. package/dist/abi/VaultHub.js.map +1 -1
  18. package/dist/abi/Voting.js +887 -0
  19. package/dist/abi/Voting.js.map +1 -0
  20. package/dist/abi/index.js +26 -0
  21. package/dist/abi/index.js.map +1 -0
  22. package/dist/command/index.js +16 -0
  23. package/dist/command/index.js.map +1 -1
  24. package/dist/configs/constants.js +6 -0
  25. package/dist/configs/constants.js.map +1 -0
  26. package/dist/configs/deployed.js +118 -24
  27. package/dist/configs/deployed.js.map +1 -1
  28. package/dist/configs/envs.js +24 -16
  29. package/dist/configs/envs.js.map +1 -1
  30. package/dist/configs/index.js +1 -0
  31. package/dist/configs/index.js.map +1 -1
  32. package/dist/configs/utils.js +32 -0
  33. package/dist/configs/utils.js.map +1 -0
  34. package/dist/contracts/dashboard.js +19 -0
  35. package/dist/contracts/dashboard.js.map +1 -0
  36. package/dist/contracts/delegation.js +19 -0
  37. package/dist/contracts/delegation.js.map +1 -0
  38. package/dist/contracts/index.js +8 -0
  39. package/dist/contracts/index.js.map +1 -1
  40. package/dist/contracts/locator.js +20 -0
  41. package/dist/contracts/locator.js.map +1 -0
  42. package/dist/contracts/steth.js +19 -0
  43. package/dist/contracts/steth.js.map +1 -0
  44. package/dist/contracts/token-manager.js +20 -0
  45. package/dist/contracts/token-manager.js.map +1 -0
  46. package/dist/contracts/vault-factory.js +22 -0
  47. package/dist/contracts/vault-factory.js.map +1 -0
  48. package/dist/contracts/vault-hub.js +10 -8
  49. package/dist/contracts/vault-hub.js.map +1 -1
  50. package/dist/contracts/vault.js +18 -0
  51. package/dist/contracts/vault.js.map +1 -0
  52. package/dist/contracts/voting.js +22 -0
  53. package/dist/contracts/voting.js.map +1 -0
  54. package/dist/features/advanced-config.js +21 -0
  55. package/dist/features/advanced-config.js.map +1 -0
  56. package/dist/features/index.js +20 -0
  57. package/dist/features/index.js.map +1 -0
  58. package/dist/features/token-manager.js +6 -0
  59. package/dist/features/token-manager.js.map +1 -0
  60. package/dist/features/vault-factory.js +36 -0
  61. package/dist/features/vault-factory.js.map +1 -0
  62. package/dist/features/voting.js +136 -0
  63. package/dist/features/voting.js.map +1 -0
  64. package/dist/programs/config.js +33 -0
  65. package/dist/programs/config.js.map +1 -0
  66. package/dist/programs/dashboard.js +688 -0
  67. package/dist/programs/dashboard.js.map +1 -0
  68. package/dist/programs/delegation.js +539 -0
  69. package/dist/programs/delegation.js.map +1 -0
  70. package/dist/programs/index.js +5 -0
  71. package/dist/programs/index.js.map +1 -1
  72. package/dist/programs/vault-factory.js +84 -0
  73. package/dist/programs/vault-factory.js.map +1 -0
  74. package/dist/programs/vault-hub.js +331 -116
  75. package/dist/programs/vault-hub.js.map +1 -1
  76. package/dist/programs/vault.js +378 -0
  77. package/dist/programs/vault.js.map +1 -0
  78. package/dist/programs/voting.js +53 -0
  79. package/dist/programs/voting.js.map +1 -0
  80. package/dist/providers/wallet.js +20 -18
  81. package/dist/providers/wallet.js.map +1 -1
  82. package/dist/types/common.js +3 -0
  83. package/dist/types/common.js.map +1 -0
  84. package/dist/types/config.js +3 -0
  85. package/dist/types/config.js.map +1 -0
  86. package/dist/types/index.js +19 -0
  87. package/dist/types/index.js.map +1 -0
  88. package/dist/utils/data-validators.js +51 -0
  89. package/dist/utils/data-validators.js.map +1 -0
  90. package/dist/utils/index.js +3 -0
  91. package/dist/utils/index.js.map +1 -1
  92. package/dist/utils/resolve-path.js +13 -0
  93. package/dist/utils/resolve-path.js.map +1 -0
  94. package/dist/utils/sleep.js +8 -0
  95. package/dist/utils/sleep.js.map +1 -0
  96. package/package.json +7 -3
@@ -3,892 +3,1229 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VaultHubAbi = void 0;
4
4
  exports.VaultHubAbi = [
5
5
  {
6
- inputs: [
7
- {
8
- internalType: "address",
9
- name: "vault",
10
- type: "address",
11
- },
6
+ "inputs": [],
7
+ "name": "AccessControlBadConfirmation",
8
+ "type": "error"
9
+ },
10
+ {
11
+ "inputs": [
12
12
  {
13
- internalType: "int256",
14
- name: "reserveRatio",
15
- type: "int256",
13
+ "internalType": "address",
14
+ "name": "account",
15
+ "type": "address"
16
16
  },
17
17
  {
18
- internalType: "uint256",
19
- name: "minReserveRatio",
20
- type: "uint256",
21
- },
18
+ "internalType": "bytes32",
19
+ "name": "neededRole",
20
+ "type": "bytes32"
21
+ }
22
22
  ],
23
- name: "AlreadyBalanced",
24
- type: "error",
23
+ "name": "AccessControlUnauthorizedAccount",
24
+ "type": "error"
25
25
  },
26
26
  {
27
- inputs: [
27
+ "inputs": [
28
28
  {
29
- internalType: "address",
30
- name: "vault",
31
- type: "address",
29
+ "internalType": "address",
30
+ "name": "vault",
31
+ "type": "address"
32
32
  },
33
33
  {
34
- internalType: "uint256",
35
- name: "index",
36
- type: "uint256",
34
+ "internalType": "uint256",
35
+ "name": "mintedShares",
36
+ "type": "uint256"
37
37
  },
38
+ {
39
+ "internalType": "uint256",
40
+ "name": "rebalancingThresholdInShares",
41
+ "type": "uint256"
42
+ }
38
43
  ],
39
- name: "AlreadyConnected",
40
- type: "error",
44
+ "name": "AlreadyBalanced",
45
+ "type": "error"
41
46
  },
42
47
  {
43
- inputs: [
48
+ "inputs": [
44
49
  {
45
- internalType: "address",
46
- name: "vault",
47
- type: "address",
50
+ "internalType": "address",
51
+ "name": "vault",
52
+ "type": "address"
48
53
  },
49
54
  {
50
- internalType: "uint256",
51
- name: "capShares",
52
- type: "uint256",
53
- },
55
+ "internalType": "uint256",
56
+ "name": "index",
57
+ "type": "uint256"
58
+ }
59
+ ],
60
+ "name": "AlreadyConnected",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [
54
65
  {
55
- internalType: "uint256",
56
- name: "maxCapShares",
57
- type: "uint256",
58
- },
66
+ "internalType": "bytes32",
67
+ "name": "codehash",
68
+ "type": "bytes32"
69
+ }
59
70
  ],
60
- name: "CapTooHigh",
61
- type: "error",
71
+ "name": "AlreadyExists",
72
+ "type": "error"
62
73
  },
63
74
  {
64
- inputs: [
75
+ "inputs": [
65
76
  {
66
- internalType: "address",
67
- name: "vault",
68
- type: "address",
77
+ "internalType": "address",
78
+ "name": "vault",
79
+ "type": "address"
69
80
  },
70
81
  {
71
- internalType: "uint256",
72
- name: "capVaultBalance",
73
- type: "uint256",
82
+ "internalType": "uint256",
83
+ "name": "capShares",
84
+ "type": "uint256"
74
85
  },
75
86
  {
76
- internalType: "uint256",
77
- name: "maxExternalBalance",
78
- type: "uint256",
79
- },
87
+ "internalType": "uint256",
88
+ "name": "maxMintableExternalShares",
89
+ "type": "uint256"
90
+ }
80
91
  ],
81
- name: "ExternalBalanceCapReached",
82
- type: "error",
92
+ "name": "ExternalSharesCapReached",
93
+ "type": "error"
83
94
  },
84
95
  {
85
- inputs: [
96
+ "inputs": [
86
97
  {
87
- internalType: "address",
88
- name: "vault",
89
- type: "address",
98
+ "internalType": "address",
99
+ "name": "vault",
100
+ "type": "address"
90
101
  },
91
102
  {
92
- internalType: "int256",
93
- name: "reserveRatio",
94
- type: "int256",
95
- },
103
+ "internalType": "uint256",
104
+ "name": "amount",
105
+ "type": "uint256"
106
+ }
107
+ ],
108
+ "name": "InsufficientSharesToBurn",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
96
113
  {
97
- internalType: "uint256",
98
- name: "minReserveRatio",
99
- type: "uint256",
114
+ "internalType": "address",
115
+ "name": "vault",
116
+ "type": "address"
100
117
  },
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "valuation",
121
+ "type": "uint256"
122
+ }
101
123
  ],
102
- name: "MinReserveRatioReached",
103
- type: "error",
124
+ "name": "InsufficientValuationToMint",
125
+ "type": "error"
104
126
  },
105
127
  {
106
- inputs: [
128
+ "inputs": [],
129
+ "name": "InvalidInitialization",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [
107
134
  {
108
- internalType: "address",
109
- name: "vault",
110
- type: "address",
135
+ "internalType": "address",
136
+ "name": "vault",
137
+ "type": "address"
111
138
  },
112
139
  {
113
- internalType: "uint256",
114
- name: "capShares",
115
- type: "uint256",
116
- },
140
+ "internalType": "uint256",
141
+ "name": "sharesMinted",
142
+ "type": "uint256"
143
+ }
117
144
  ],
118
- name: "MintCapReached",
119
- type: "error",
145
+ "name": "NoMintedSharesShouldBeLeft",
146
+ "type": "error"
120
147
  },
121
148
  {
122
- inputs: [
149
+ "inputs": [
123
150
  {
124
- internalType: "string",
125
- name: "operation",
126
- type: "string",
151
+ "internalType": "string",
152
+ "name": "operation",
153
+ "type": "string"
127
154
  },
128
155
  {
129
- internalType: "address",
130
- name: "addr",
131
- type: "address",
132
- },
156
+ "internalType": "address",
157
+ "name": "addr",
158
+ "type": "address"
159
+ }
133
160
  ],
134
- name: "NotAuthorized",
135
- type: "error",
161
+ "name": "NotAuthorized",
162
+ "type": "error"
136
163
  },
137
164
  {
138
- inputs: [
165
+ "inputs": [
139
166
  {
140
- internalType: "address",
141
- name: "vault",
142
- type: "address",
143
- },
167
+ "internalType": "address",
168
+ "name": "vault",
169
+ "type": "address"
170
+ }
144
171
  ],
145
- name: "NotConnectedToHub",
146
- type: "error",
172
+ "name": "NotConnectedToHub",
173
+ "type": "error"
147
174
  },
148
175
  {
149
- inputs: [
176
+ "inputs": [
150
177
  {
151
- internalType: "address",
152
- name: "vault",
153
- type: "address",
178
+ "internalType": "address",
179
+ "name": "vault",
180
+ "type": "address"
154
181
  },
155
182
  {
156
- internalType: "uint256",
157
- name: "balance",
158
- type: "uint256",
183
+ "internalType": "uint256",
184
+ "name": "balance",
185
+ "type": "uint256"
159
186
  },
160
187
  {
161
- internalType: "uint256",
162
- name: "shouldBe",
163
- type: "uint256",
164
- },
188
+ "internalType": "uint256",
189
+ "name": "shouldBe",
190
+ "type": "uint256"
191
+ }
165
192
  ],
166
- name: "NotEnoughBalance",
167
- type: "error",
193
+ "name": "NotEnoughBalance",
194
+ "type": "error"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "NotInitializing",
199
+ "type": "error"
168
200
  },
169
201
  {
170
- inputs: [
202
+ "inputs": [],
203
+ "name": "PauseUntilMustBeInFuture",
204
+ "type": "error"
205
+ },
206
+ {
207
+ "inputs": [],
208
+ "name": "PausedExpected",
209
+ "type": "error"
210
+ },
211
+ {
212
+ "inputs": [
171
213
  {
172
- internalType: "address",
173
- name: "vault",
174
- type: "address",
214
+ "internalType": "address",
215
+ "name": "vault",
216
+ "type": "address"
217
+ }
218
+ ],
219
+ "name": "RebalanceFailed",
220
+ "type": "error"
221
+ },
222
+ {
223
+ "inputs": [
224
+ {
225
+ "internalType": "address",
226
+ "name": "vault",
227
+ "type": "address"
175
228
  },
176
229
  {
177
- internalType: "uint256",
178
- name: "amount",
179
- type: "uint256",
230
+ "internalType": "uint256",
231
+ "name": "reserveRatioBP",
232
+ "type": "uint256"
180
233
  },
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "maxReserveRatioBP",
237
+ "type": "uint256"
238
+ }
181
239
  ],
182
- name: "NotEnoughShares",
183
- type: "error",
240
+ "name": "ReserveRatioTooHigh",
241
+ "type": "error"
184
242
  },
185
243
  {
186
- inputs: [
244
+ "inputs": [],
245
+ "name": "ResumedExpected",
246
+ "type": "error"
247
+ },
248
+ {
249
+ "inputs": [
187
250
  {
188
- internalType: "address",
189
- name: "vault",
190
- type: "address",
251
+ "internalType": "address",
252
+ "name": "vault",
253
+ "type": "address"
191
254
  },
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "capShares",
258
+ "type": "uint256"
259
+ }
192
260
  ],
193
- name: "RebalanceFailed",
194
- type: "error",
261
+ "name": "ShareLimitExceeded",
262
+ "type": "error"
195
263
  },
196
264
  {
197
- inputs: [
265
+ "inputs": [
198
266
  {
199
- internalType: "address",
200
- name: "vault",
201
- type: "address",
267
+ "internalType": "address",
268
+ "name": "vault",
269
+ "type": "address"
202
270
  },
203
271
  {
204
- internalType: "uint256",
205
- name: "reserveRatioBP",
206
- type: "uint256",
272
+ "internalType": "uint256",
273
+ "name": "capShares",
274
+ "type": "uint256"
207
275
  },
208
276
  {
209
- internalType: "uint256",
210
- name: "maxReserveRatioBP",
211
- type: "uint256",
212
- },
277
+ "internalType": "uint256",
278
+ "name": "maxCapShares",
279
+ "type": "uint256"
280
+ }
213
281
  ],
214
- name: "ReserveRatioTooHigh",
215
- type: "error",
282
+ "name": "ShareLimitTooHigh",
283
+ "type": "error"
216
284
  },
217
285
  {
218
- inputs: [
286
+ "inputs": [
219
287
  {
220
- internalType: "address",
221
- name: "vault",
222
- type: "address",
223
- },
288
+ "internalType": "address",
289
+ "name": "vault",
290
+ "type": "address"
291
+ }
224
292
  ],
225
- name: "StETHMintFailed",
226
- type: "error",
293
+ "name": "StETHMintFailed",
294
+ "type": "error"
227
295
  },
228
296
  {
229
- inputs: [],
230
- name: "TooManyVaults",
231
- type: "error",
297
+ "inputs": [],
298
+ "name": "TooManyVaults",
299
+ "type": "error"
232
300
  },
233
301
  {
234
- inputs: [
302
+ "inputs": [
235
303
  {
236
- internalType: "address",
237
- name: "vault",
238
- type: "address",
304
+ "internalType": "address",
305
+ "name": "vault",
306
+ "type": "address"
239
307
  },
240
308
  {
241
- internalType: "uint256",
242
- name: "treasuryFeeBP",
243
- type: "uint256",
309
+ "internalType": "uint256",
310
+ "name": "treasuryFeeBP",
311
+ "type": "uint256"
244
312
  },
245
313
  {
246
- internalType: "uint256",
247
- name: "maxTreasuryFeeBP",
248
- type: "uint256",
249
- },
314
+ "internalType": "uint256",
315
+ "name": "maxTreasuryFeeBP",
316
+ "type": "uint256"
317
+ }
250
318
  ],
251
- name: "TreasuryFeeTooHigh",
252
- type: "error",
319
+ "name": "TreasuryFeeTooHigh",
320
+ "type": "error"
253
321
  },
254
322
  {
255
- inputs: [
323
+ "inputs": [
256
324
  {
257
- internalType: "string",
258
- name: "argument",
259
- type: "string",
260
- },
325
+ "internalType": "address",
326
+ "name": "beacon",
327
+ "type": "address"
328
+ }
261
329
  ],
262
- name: "ZeroArgument",
263
- type: "error",
330
+ "name": "VaultProxyNotAllowed",
331
+ "type": "error"
264
332
  },
265
333
  {
266
- anonymous: false,
267
- inputs: [
334
+ "inputs": [
268
335
  {
269
- indexed: true,
270
- internalType: "address",
271
- name: "vault",
272
- type: "address",
273
- },
274
- {
275
- indexed: false,
276
- internalType: "uint256",
277
- name: "amountOfTokens",
278
- type: "uint256",
279
- },
336
+ "internalType": "string",
337
+ "name": "argument",
338
+ "type": "string"
339
+ }
280
340
  ],
281
- name: "BurnedStETHOnVault",
282
- type: "event",
341
+ "name": "ZeroArgument",
342
+ "type": "error"
283
343
  },
284
344
  {
285
- anonymous: false,
286
- inputs: [
345
+ "inputs": [],
346
+ "name": "ZeroPauseDuration",
347
+ "type": "error"
348
+ },
349
+ {
350
+ "anonymous": false,
351
+ "inputs": [
287
352
  {
288
- indexed: true,
289
- internalType: "address",
290
- name: "vault",
291
- type: "address",
353
+ "indexed": true,
354
+ "internalType": "address",
355
+ "name": "vault",
356
+ "type": "address"
292
357
  },
293
358
  {
294
- indexed: false,
295
- internalType: "uint256",
296
- name: "amountOfTokens",
297
- type: "uint256",
298
- },
359
+ "indexed": false,
360
+ "internalType": "uint256",
361
+ "name": "amountOfShares",
362
+ "type": "uint256"
363
+ }
299
364
  ],
300
- name: "MintedStETHOnVault",
301
- type: "event",
365
+ "name": "BurnedSharesOnVault",
366
+ "type": "event"
302
367
  },
303
368
  {
304
- anonymous: false,
305
- inputs: [
306
- {
307
- indexed: true,
308
- internalType: "bytes32",
309
- name: "role",
310
- type: "bytes32",
311
- },
369
+ "anonymous": false,
370
+ "inputs": [
371
+ {
372
+ "indexed": false,
373
+ "internalType": "uint64",
374
+ "name": "version",
375
+ "type": "uint64"
376
+ }
377
+ ],
378
+ "name": "Initialized",
379
+ "type": "event"
380
+ },
381
+ {
382
+ "anonymous": false,
383
+ "inputs": [
312
384
  {
313
- indexed: true,
314
- internalType: "bytes32",
315
- name: "previousAdminRole",
316
- type: "bytes32",
385
+ "indexed": true,
386
+ "internalType": "address",
387
+ "name": "vault",
388
+ "type": "address"
317
389
  },
318
390
  {
319
- indexed: true,
320
- internalType: "bytes32",
321
- name: "newAdminRole",
322
- type: "bytes32",
323
- },
391
+ "indexed": false,
392
+ "internalType": "uint256",
393
+ "name": "amountOfShares",
394
+ "type": "uint256"
395
+ }
396
+ ],
397
+ "name": "MintedSharesOnVault",
398
+ "type": "event"
399
+ },
400
+ {
401
+ "anonymous": false,
402
+ "inputs": [
403
+ {
404
+ "indexed": false,
405
+ "internalType": "uint256",
406
+ "name": "duration",
407
+ "type": "uint256"
408
+ }
324
409
  ],
325
- name: "RoleAdminChanged",
326
- type: "event",
410
+ "name": "Paused",
411
+ "type": "event"
327
412
  },
328
413
  {
329
- anonymous: false,
330
- inputs: [
414
+ "anonymous": false,
415
+ "inputs": [],
416
+ "name": "Resumed",
417
+ "type": "event"
418
+ },
419
+ {
420
+ "anonymous": false,
421
+ "inputs": [
331
422
  {
332
- indexed: true,
333
- internalType: "bytes32",
334
- name: "role",
335
- type: "bytes32",
423
+ "indexed": true,
424
+ "internalType": "bytes32",
425
+ "name": "role",
426
+ "type": "bytes32"
336
427
  },
337
428
  {
338
- indexed: true,
339
- internalType: "address",
340
- name: "account",
341
- type: "address",
429
+ "indexed": true,
430
+ "internalType": "bytes32",
431
+ "name": "previousAdminRole",
432
+ "type": "bytes32"
342
433
  },
343
434
  {
344
- indexed: true,
345
- internalType: "address",
346
- name: "sender",
347
- type: "address",
348
- },
435
+ "indexed": true,
436
+ "internalType": "bytes32",
437
+ "name": "newAdminRole",
438
+ "type": "bytes32"
439
+ }
349
440
  ],
350
- name: "RoleGranted",
351
- type: "event",
441
+ "name": "RoleAdminChanged",
442
+ "type": "event"
352
443
  },
353
444
  {
354
- anonymous: false,
355
- inputs: [
445
+ "anonymous": false,
446
+ "inputs": [
356
447
  {
357
- indexed: true,
358
- internalType: "bytes32",
359
- name: "role",
360
- type: "bytes32",
448
+ "indexed": true,
449
+ "internalType": "bytes32",
450
+ "name": "role",
451
+ "type": "bytes32"
361
452
  },
362
453
  {
363
- indexed: true,
364
- internalType: "address",
365
- name: "account",
366
- type: "address",
454
+ "indexed": true,
455
+ "internalType": "address",
456
+ "name": "account",
457
+ "type": "address"
367
458
  },
368
459
  {
369
- indexed: true,
370
- internalType: "address",
371
- name: "sender",
372
- type: "address",
373
- },
460
+ "indexed": true,
461
+ "internalType": "address",
462
+ "name": "sender",
463
+ "type": "address"
464
+ }
374
465
  ],
375
- name: "RoleRevoked",
376
- type: "event",
466
+ "name": "RoleGranted",
467
+ "type": "event"
377
468
  },
378
469
  {
379
- anonymous: false,
380
- inputs: [
381
- {
382
- indexed: true,
383
- internalType: "address",
384
- name: "vault",
385
- type: "address",
386
- },
470
+ "anonymous": false,
471
+ "inputs": [
387
472
  {
388
- indexed: false,
389
- internalType: "uint256",
390
- name: "capShares",
391
- type: "uint256",
473
+ "indexed": true,
474
+ "internalType": "bytes32",
475
+ "name": "role",
476
+ "type": "bytes32"
392
477
  },
393
478
  {
394
- indexed: false,
395
- internalType: "uint256",
396
- name: "minReserveRatioBP",
397
- type: "uint256",
479
+ "indexed": true,
480
+ "internalType": "address",
481
+ "name": "account",
482
+ "type": "address"
398
483
  },
399
484
  {
400
- indexed: false,
401
- internalType: "uint256",
402
- name: "treasuryFeeBP",
403
- type: "uint256",
404
- },
485
+ "indexed": true,
486
+ "internalType": "address",
487
+ "name": "sender",
488
+ "type": "address"
489
+ }
405
490
  ],
406
- name: "VaultConnected",
407
- type: "event",
491
+ "name": "RoleRevoked",
492
+ "type": "event"
408
493
  },
409
494
  {
410
- anonymous: false,
411
- inputs: [
495
+ "anonymous": false,
496
+ "inputs": [
412
497
  {
413
- indexed: true,
414
- internalType: "address",
415
- name: "vault",
416
- type: "address",
498
+ "indexed": true,
499
+ "internalType": "address",
500
+ "name": "vault",
501
+ "type": "address"
417
502
  },
503
+ {
504
+ "indexed": false,
505
+ "internalType": "uint256",
506
+ "name": "newShareLimit",
507
+ "type": "uint256"
508
+ }
418
509
  ],
419
- name: "VaultDisconnected",
420
- type: "event",
510
+ "name": "ShareLimitUpdated",
511
+ "type": "event"
421
512
  },
422
513
  {
423
- anonymous: false,
424
- inputs: [
514
+ "anonymous": false,
515
+ "inputs": [
425
516
  {
426
- indexed: true,
427
- internalType: "address",
428
- name: "vault",
429
- type: "address",
517
+ "indexed": true,
518
+ "internalType": "address",
519
+ "name": "vault",
520
+ "type": "address"
430
521
  },
431
522
  {
432
- indexed: false,
433
- internalType: "uint256",
434
- name: "tokensBurnt",
435
- type: "uint256",
523
+ "indexed": false,
524
+ "internalType": "uint256",
525
+ "name": "capShares",
526
+ "type": "uint256"
436
527
  },
437
528
  {
438
- indexed: false,
439
- internalType: "int256",
440
- name: "newReserveRatio",
441
- type: "int256",
529
+ "indexed": false,
530
+ "internalType": "uint256",
531
+ "name": "minReserveRatio",
532
+ "type": "uint256"
442
533
  },
534
+ {
535
+ "indexed": false,
536
+ "internalType": "uint256",
537
+ "name": "treasuryFeeBP",
538
+ "type": "uint256"
539
+ }
443
540
  ],
444
- name: "VaultRebalanced",
445
- type: "event",
541
+ "name": "VaultConnected",
542
+ "type": "event"
446
543
  },
447
544
  {
448
- inputs: [],
449
- name: "DEFAULT_ADMIN_ROLE",
450
- outputs: [
451
- {
452
- internalType: "bytes32",
453
- name: "",
454
- type: "bytes32",
455
- },
545
+ "anonymous": false,
546
+ "inputs": [
547
+ {
548
+ "indexed": true,
549
+ "internalType": "address",
550
+ "name": "vault",
551
+ "type": "address"
552
+ }
456
553
  ],
457
- stateMutability: "view",
458
- type: "function",
554
+ "name": "VaultDisconnected",
555
+ "type": "event"
459
556
  },
460
557
  {
461
- inputs: [],
462
- name: "STETH",
463
- outputs: [
558
+ "anonymous": false,
559
+ "inputs": [
560
+ {
561
+ "indexed": true,
562
+ "internalType": "bytes32",
563
+ "name": "codehash",
564
+ "type": "bytes32"
565
+ }
566
+ ],
567
+ "name": "VaultProxyCodehashAdded",
568
+ "type": "event"
569
+ },
570
+ {
571
+ "anonymous": false,
572
+ "inputs": [
464
573
  {
465
- internalType: "contract StETH",
466
- name: "",
467
- type: "address",
574
+ "indexed": true,
575
+ "internalType": "address",
576
+ "name": "vault",
577
+ "type": "address"
468
578
  },
579
+ {
580
+ "indexed": false,
581
+ "internalType": "uint256",
582
+ "name": "sharesBurned",
583
+ "type": "uint256"
584
+ }
585
+ ],
586
+ "name": "VaultRebalanced",
587
+ "type": "event"
588
+ },
589
+ {
590
+ "inputs": [],
591
+ "name": "DEFAULT_ADMIN_ROLE",
592
+ "outputs": [
593
+ {
594
+ "internalType": "bytes32",
595
+ "name": "",
596
+ "type": "bytes32"
597
+ }
469
598
  ],
470
- stateMutability: "view",
471
- type: "function",
599
+ "stateMutability": "view",
600
+ "type": "function"
472
601
  },
473
602
  {
474
- inputs: [],
475
- name: "VAULT_MASTER_ROLE",
476
- outputs: [
603
+ "inputs": [],
604
+ "name": "PAUSE_INFINITELY",
605
+ "outputs": [
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [],
617
+ "name": "PAUSE_ROLE",
618
+ "outputs": [
619
+ {
620
+ "internalType": "bytes32",
621
+ "name": "",
622
+ "type": "bytes32"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "RESUME_ROLE",
631
+ "outputs": [
632
+ {
633
+ "internalType": "bytes32",
634
+ "name": "",
635
+ "type": "bytes32"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "STETH",
644
+ "outputs": [
645
+ {
646
+ "internalType": "contract ILido",
647
+ "name": "",
648
+ "type": "address"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "VAULT_MASTER_ROLE",
657
+ "outputs": [
658
+ {
659
+ "internalType": "bytes32",
660
+ "name": "",
661
+ "type": "bytes32"
662
+ }
663
+ ],
664
+ "stateMutability": "view",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "VAULT_REGISTRY_ROLE",
670
+ "outputs": [
671
+ {
672
+ "internalType": "bytes32",
673
+ "name": "",
674
+ "type": "bytes32"
675
+ }
676
+ ],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [
477
682
  {
478
- internalType: "bytes32",
479
- name: "",
480
- type: "bytes32",
481
- },
683
+ "internalType": "bytes32",
684
+ "name": "codehash",
685
+ "type": "bytes32"
686
+ }
482
687
  ],
483
- stateMutability: "view",
484
- type: "function",
688
+ "name": "addVaultProxyCodehash",
689
+ "outputs": [],
690
+ "stateMutability": "nonpayable",
691
+ "type": "function"
485
692
  },
486
693
  {
487
- inputs: [
694
+ "inputs": [
488
695
  {
489
- internalType: "uint256",
490
- name: "_amountOfTokens",
491
- type: "uint256",
696
+ "internalType": "address",
697
+ "name": "_vault",
698
+ "type": "address"
492
699
  },
700
+ {
701
+ "internalType": "uint256",
702
+ "name": "_amountOfShares",
703
+ "type": "uint256"
704
+ }
493
705
  ],
494
- name: "burnStethBackedByVault",
495
- outputs: [],
496
- stateMutability: "nonpayable",
497
- type: "function",
706
+ "name": "burnSharesBackedByVault",
707
+ "outputs": [],
708
+ "stateMutability": "nonpayable",
709
+ "type": "function"
498
710
  },
499
711
  {
500
- inputs: [
712
+ "inputs": [
501
713
  {
502
- internalType: "contract ILockable",
503
- name: "_vault",
504
- type: "address",
714
+ "internalType": "address",
715
+ "name": "_vault",
716
+ "type": "address"
505
717
  },
506
718
  {
507
- internalType: "uint256",
508
- name: "_capShares",
509
- type: "uint256",
719
+ "internalType": "uint256",
720
+ "name": "_shareLimit",
721
+ "type": "uint256"
510
722
  },
511
723
  {
512
- internalType: "uint256",
513
- name: "_minReserveRatioBP",
514
- type: "uint256",
724
+ "internalType": "uint256",
725
+ "name": "_reserveRatioBP",
726
+ "type": "uint256"
515
727
  },
516
728
  {
517
- internalType: "uint256",
518
- name: "_treasuryFeeBP",
519
- type: "uint256",
729
+ "internalType": "uint256",
730
+ "name": "_reserveRatioThresholdBP",
731
+ "type": "uint256"
520
732
  },
733
+ {
734
+ "internalType": "uint256",
735
+ "name": "_treasuryFeeBP",
736
+ "type": "uint256"
737
+ }
521
738
  ],
522
- name: "connectVault",
523
- outputs: [],
524
- stateMutability: "nonpayable",
525
- type: "function",
739
+ "name": "connectVault",
740
+ "outputs": [],
741
+ "stateMutability": "nonpayable",
742
+ "type": "function"
526
743
  },
527
744
  {
528
- inputs: [],
529
- name: "disconnectVault",
530
- outputs: [],
531
- stateMutability: "nonpayable",
532
- type: "function",
745
+ "inputs": [
746
+ {
747
+ "internalType": "address",
748
+ "name": "_vault",
749
+ "type": "address"
750
+ }
751
+ ],
752
+ "name": "disconnect",
753
+ "outputs": [],
754
+ "stateMutability": "nonpayable",
755
+ "type": "function"
533
756
  },
534
757
  {
535
- inputs: [
758
+ "inputs": [
536
759
  {
537
- internalType: "contract ILockable",
538
- name: "_vault",
539
- type: "address",
540
- },
760
+ "internalType": "address",
761
+ "name": "_vault",
762
+ "type": "address"
763
+ }
541
764
  ],
542
- name: "forceRebalance",
543
- outputs: [],
544
- stateMutability: "nonpayable",
545
- type: "function",
765
+ "name": "forceRebalance",
766
+ "outputs": [],
767
+ "stateMutability": "nonpayable",
768
+ "type": "function"
546
769
  },
547
770
  {
548
- inputs: [
771
+ "inputs": [],
772
+ "name": "getResumeSinceTimestamp",
773
+ "outputs": [
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [
549
785
  {
550
- internalType: "bytes32",
551
- name: "role",
552
- type: "bytes32",
553
- },
786
+ "internalType": "bytes32",
787
+ "name": "role",
788
+ "type": "bytes32"
789
+ }
554
790
  ],
555
- name: "getRoleAdmin",
556
- outputs: [
791
+ "name": "getRoleAdmin",
792
+ "outputs": [
557
793
  {
558
- internalType: "bytes32",
559
- name: "",
560
- type: "bytes32",
561
- },
794
+ "internalType": "bytes32",
795
+ "name": "",
796
+ "type": "bytes32"
797
+ }
562
798
  ],
563
- stateMutability: "view",
564
- type: "function",
799
+ "stateMutability": "view",
800
+ "type": "function"
565
801
  },
566
802
  {
567
- inputs: [
803
+ "inputs": [
568
804
  {
569
- internalType: "bytes32",
570
- name: "role",
571
- type: "bytes32",
805
+ "internalType": "bytes32",
806
+ "name": "role",
807
+ "type": "bytes32"
572
808
  },
573
809
  {
574
- internalType: "uint256",
575
- name: "index",
576
- type: "uint256",
577
- },
810
+ "internalType": "uint256",
811
+ "name": "index",
812
+ "type": "uint256"
813
+ }
578
814
  ],
579
- name: "getRoleMember",
580
- outputs: [
815
+ "name": "getRoleMember",
816
+ "outputs": [
581
817
  {
582
- internalType: "address",
583
- name: "",
584
- type: "address",
585
- },
818
+ "internalType": "address",
819
+ "name": "",
820
+ "type": "address"
821
+ }
586
822
  ],
587
- stateMutability: "view",
588
- type: "function",
823
+ "stateMutability": "view",
824
+ "type": "function"
589
825
  },
590
826
  {
591
- inputs: [
827
+ "inputs": [
592
828
  {
593
- internalType: "bytes32",
594
- name: "role",
595
- type: "bytes32",
596
- },
829
+ "internalType": "bytes32",
830
+ "name": "role",
831
+ "type": "bytes32"
832
+ }
597
833
  ],
598
- name: "getRoleMemberCount",
599
- outputs: [
834
+ "name": "getRoleMemberCount",
835
+ "outputs": [
600
836
  {
601
- internalType: "uint256",
602
- name: "",
603
- type: "uint256",
604
- },
837
+ "internalType": "uint256",
838
+ "name": "",
839
+ "type": "uint256"
840
+ }
605
841
  ],
606
- stateMutability: "view",
607
- type: "function",
842
+ "stateMutability": "view",
843
+ "type": "function"
608
844
  },
609
845
  {
610
- inputs: [
846
+ "inputs": [
611
847
  {
612
- internalType: "bytes32",
613
- name: "role",
614
- type: "bytes32",
615
- },
848
+ "internalType": "bytes32",
849
+ "name": "role",
850
+ "type": "bytes32"
851
+ }
852
+ ],
853
+ "name": "getRoleMembers",
854
+ "outputs": [
616
855
  {
617
- internalType: "address",
618
- name: "account",
619
- type: "address",
620
- },
856
+ "internalType": "address[]",
857
+ "name": "",
858
+ "type": "address[]"
859
+ }
621
860
  ],
622
- name: "grantRole",
623
- outputs: [],
624
- stateMutability: "nonpayable",
625
- type: "function",
861
+ "stateMutability": "view",
862
+ "type": "function"
626
863
  },
627
864
  {
628
- inputs: [
865
+ "inputs": [
629
866
  {
630
- internalType: "bytes32",
631
- name: "role",
632
- type: "bytes32",
867
+ "internalType": "bytes32",
868
+ "name": "role",
869
+ "type": "bytes32"
633
870
  },
634
871
  {
635
- internalType: "address",
636
- name: "account",
637
- type: "address",
638
- },
872
+ "internalType": "address",
873
+ "name": "account",
874
+ "type": "address"
875
+ }
639
876
  ],
640
- name: "hasRole",
641
- outputs: [
642
- {
643
- internalType: "bool",
644
- name: "",
645
- type: "bool",
646
- },
647
- ],
648
- stateMutability: "view",
649
- type: "function",
877
+ "name": "grantRole",
878
+ "outputs": [],
879
+ "stateMutability": "nonpayable",
880
+ "type": "function"
650
881
  },
651
882
  {
652
- inputs: [
883
+ "inputs": [
653
884
  {
654
- internalType: "address",
655
- name: "_receiver",
656
- type: "address",
885
+ "internalType": "bytes32",
886
+ "name": "role",
887
+ "type": "bytes32"
657
888
  },
658
889
  {
659
- internalType: "uint256",
660
- name: "_amountOfTokens",
661
- type: "uint256",
662
- },
890
+ "internalType": "address",
891
+ "name": "account",
892
+ "type": "address"
893
+ }
663
894
  ],
664
- name: "mintStethBackedByVault",
665
- outputs: [
895
+ "name": "hasRole",
896
+ "outputs": [
666
897
  {
667
- internalType: "uint256",
668
- name: "totalEtherToLock",
669
- type: "uint256",
670
- },
898
+ "internalType": "bool",
899
+ "name": "",
900
+ "type": "bool"
901
+ }
671
902
  ],
672
- stateMutability: "nonpayable",
673
- type: "function",
903
+ "stateMutability": "view",
904
+ "type": "function"
674
905
  },
675
906
  {
676
- inputs: [],
677
- name: "rebalance",
678
- outputs: [],
679
- stateMutability: "payable",
680
- type: "function",
907
+ "inputs": [],
908
+ "name": "isPaused",
909
+ "outputs": [
910
+ {
911
+ "internalType": "bool",
912
+ "name": "",
913
+ "type": "bool"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
681
918
  },
682
919
  {
683
- inputs: [
920
+ "inputs": [
684
921
  {
685
- internalType: "bytes32",
686
- name: "role",
687
- type: "bytes32",
922
+ "internalType": "address",
923
+ "name": "_vault",
924
+ "type": "address"
688
925
  },
689
926
  {
690
- internalType: "address",
691
- name: "account",
692
- type: "address",
927
+ "internalType": "address",
928
+ "name": "_recipient",
929
+ "type": "address"
693
930
  },
931
+ {
932
+ "internalType": "uint256",
933
+ "name": "_amountOfShares",
934
+ "type": "uint256"
935
+ }
694
936
  ],
695
- name: "renounceRole",
696
- outputs: [],
697
- stateMutability: "nonpayable",
698
- type: "function",
937
+ "name": "mintSharesBackedByVault",
938
+ "outputs": [],
939
+ "stateMutability": "nonpayable",
940
+ "type": "function"
699
941
  },
700
942
  {
701
- inputs: [
943
+ "inputs": [
702
944
  {
703
- internalType: "contract ILockable",
704
- name: "_vault",
705
- type: "address",
706
- },
945
+ "internalType": "uint256",
946
+ "name": "_duration",
947
+ "type": "uint256"
948
+ }
707
949
  ],
708
- name: "reserveRatio",
709
- outputs: [
950
+ "name": "pauseFor",
951
+ "outputs": [],
952
+ "stateMutability": "nonpayable",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [
710
957
  {
711
- internalType: "int256",
712
- name: "",
713
- type: "int256",
714
- },
958
+ "internalType": "uint256",
959
+ "name": "_pauseUntilInclusive",
960
+ "type": "uint256"
961
+ }
715
962
  ],
716
- stateMutability: "view",
717
- type: "function",
963
+ "name": "pauseUntil",
964
+ "outputs": [],
965
+ "stateMutability": "nonpayable",
966
+ "type": "function"
718
967
  },
719
968
  {
720
- inputs: [
969
+ "inputs": [],
970
+ "name": "rebalance",
971
+ "outputs": [],
972
+ "stateMutability": "payable",
973
+ "type": "function"
974
+ },
975
+ {
976
+ "inputs": [
721
977
  {
722
- internalType: "bytes32",
723
- name: "role",
724
- type: "bytes32",
978
+ "internalType": "bytes32",
979
+ "name": "role",
980
+ "type": "bytes32"
725
981
  },
726
982
  {
727
- internalType: "address",
728
- name: "account",
729
- type: "address",
730
- },
983
+ "internalType": "address",
984
+ "name": "callerConfirmation",
985
+ "type": "address"
986
+ }
731
987
  ],
732
- name: "revokeRole",
733
- outputs: [],
734
- stateMutability: "nonpayable",
735
- type: "function",
988
+ "name": "renounceRole",
989
+ "outputs": [],
990
+ "stateMutability": "nonpayable",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [],
995
+ "name": "resume",
996
+ "outputs": [],
997
+ "stateMutability": "nonpayable",
998
+ "type": "function"
736
999
  },
737
1000
  {
738
- inputs: [
1001
+ "inputs": [
739
1002
  {
740
- internalType: "bytes4",
741
- name: "interfaceId",
742
- type: "bytes4",
1003
+ "internalType": "bytes32",
1004
+ "name": "role",
1005
+ "type": "bytes32"
743
1006
  },
1007
+ {
1008
+ "internalType": "address",
1009
+ "name": "account",
1010
+ "type": "address"
1011
+ }
744
1012
  ],
745
- name: "supportsInterface",
746
- outputs: [
1013
+ "name": "revokeRole",
1014
+ "outputs": [],
1015
+ "stateMutability": "nonpayable",
1016
+ "type": "function"
1017
+ },
1018
+ {
1019
+ "inputs": [
747
1020
  {
748
- internalType: "bool",
749
- name: "",
750
- type: "bool",
751
- },
1021
+ "internalType": "bytes4",
1022
+ "name": "interfaceId",
1023
+ "type": "bytes4"
1024
+ }
752
1025
  ],
753
- stateMutability: "view",
754
- type: "function",
1026
+ "name": "supportsInterface",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "bool",
1030
+ "name": "",
1031
+ "type": "bool"
1032
+ }
1033
+ ],
1034
+ "stateMutability": "view",
1035
+ "type": "function"
755
1036
  },
756
1037
  {
757
- inputs: [],
758
- name: "treasury",
759
- outputs: [
1038
+ "inputs": [
760
1039
  {
761
- internalType: "address",
762
- name: "",
763
- type: "address",
1040
+ "internalType": "address",
1041
+ "name": "_vault",
1042
+ "type": "address"
764
1043
  },
1044
+ {
1045
+ "internalType": "uint256",
1046
+ "name": "_amountOfShares",
1047
+ "type": "uint256"
1048
+ }
765
1049
  ],
766
- stateMutability: "view",
767
- type: "function",
1050
+ "name": "transferAndBurnSharesBackedByVault",
1051
+ "outputs": [],
1052
+ "stateMutability": "nonpayable",
1053
+ "type": "function"
768
1054
  },
769
1055
  {
770
- inputs: [
1056
+ "inputs": [
771
1057
  {
772
- internalType: "uint256",
773
- name: "_index",
774
- type: "uint256",
1058
+ "internalType": "address",
1059
+ "name": "_vault",
1060
+ "type": "address"
775
1061
  },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "_shareLimit",
1065
+ "type": "uint256"
1066
+ }
1067
+ ],
1068
+ "name": "updateShareLimit",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "uint256",
1077
+ "name": "_index",
1078
+ "type": "uint256"
1079
+ }
776
1080
  ],
777
- name: "vault",
778
- outputs: [
1081
+ "name": "vault",
1082
+ "outputs": [
779
1083
  {
780
- internalType: "contract ILockable",
781
- name: "",
782
- type: "address",
783
- },
1084
+ "internalType": "address",
1085
+ "name": "",
1086
+ "type": "address"
1087
+ }
784
1088
  ],
785
- stateMutability: "view",
786
- type: "function",
1089
+ "stateMutability": "view",
1090
+ "type": "function"
787
1091
  },
788
1092
  {
789
- inputs: [
1093
+ "inputs": [
790
1094
  {
791
- internalType: "uint256",
792
- name: "_index",
793
- type: "uint256",
794
- },
1095
+ "internalType": "uint256",
1096
+ "name": "_index",
1097
+ "type": "uint256"
1098
+ }
795
1099
  ],
796
- name: "vaultSocket",
797
- outputs: [
1100
+ "name": "vaultSocket",
1101
+ "outputs": [
798
1102
  {
799
- components: [
1103
+ "components": [
800
1104
  {
801
- internalType: "contract ILockable",
802
- name: "vault",
803
- type: "address",
1105
+ "internalType": "address",
1106
+ "name": "vault",
1107
+ "type": "address"
804
1108
  },
805
1109
  {
806
- internalType: "uint96",
807
- name: "capShares",
808
- type: "uint96",
1110
+ "internalType": "uint96",
1111
+ "name": "sharesMinted",
1112
+ "type": "uint96"
809
1113
  },
810
1114
  {
811
- internalType: "uint96",
812
- name: "mintedShares",
813
- type: "uint96",
1115
+ "internalType": "uint96",
1116
+ "name": "shareLimit",
1117
+ "type": "uint96"
814
1118
  },
815
1119
  {
816
- internalType: "uint16",
817
- name: "minReserveRatioBP",
818
- type: "uint16",
1120
+ "internalType": "uint16",
1121
+ "name": "reserveRatioBP",
1122
+ "type": "uint16"
819
1123
  },
820
1124
  {
821
- internalType: "uint16",
822
- name: "treasuryFeeBP",
823
- type: "uint16",
1125
+ "internalType": "uint16",
1126
+ "name": "reserveRatioThresholdBP",
1127
+ "type": "uint16"
824
1128
  },
1129
+ {
1130
+ "internalType": "uint16",
1131
+ "name": "treasuryFeeBP",
1132
+ "type": "uint16"
1133
+ },
1134
+ {
1135
+ "internalType": "bool",
1136
+ "name": "isDisconnected",
1137
+ "type": "bool"
1138
+ }
825
1139
  ],
826
- internalType: "struct VaultHub.VaultSocket",
827
- name: "",
828
- type: "tuple",
829
- },
1140
+ "internalType": "struct VaultHub.VaultSocket",
1141
+ "name": "",
1142
+ "type": "tuple"
1143
+ }
830
1144
  ],
831
- stateMutability: "view",
832
- type: "function",
1145
+ "stateMutability": "view",
1146
+ "type": "function"
833
1147
  },
834
1148
  {
835
- inputs: [
1149
+ "inputs": [
836
1150
  {
837
- internalType: "contract ILockable",
838
- name: "_vault",
839
- type: "address",
840
- },
1151
+ "internalType": "address",
1152
+ "name": "_vault",
1153
+ "type": "address"
1154
+ }
841
1155
  ],
842
- name: "vaultSocket",
843
- outputs: [
1156
+ "name": "vaultSocket",
1157
+ "outputs": [
844
1158
  {
845
- components: [
1159
+ "components": [
846
1160
  {
847
- internalType: "contract ILockable",
848
- name: "vault",
849
- type: "address",
1161
+ "internalType": "address",
1162
+ "name": "vault",
1163
+ "type": "address"
850
1164
  },
851
1165
  {
852
- internalType: "uint96",
853
- name: "capShares",
854
- type: "uint96",
1166
+ "internalType": "uint96",
1167
+ "name": "sharesMinted",
1168
+ "type": "uint96"
855
1169
  },
856
1170
  {
857
- internalType: "uint96",
858
- name: "mintedShares",
859
- type: "uint96",
1171
+ "internalType": "uint96",
1172
+ "name": "shareLimit",
1173
+ "type": "uint96"
860
1174
  },
861
1175
  {
862
- internalType: "uint16",
863
- name: "minReserveRatioBP",
864
- type: "uint16",
1176
+ "internalType": "uint16",
1177
+ "name": "reserveRatioBP",
1178
+ "type": "uint16"
865
1179
  },
866
1180
  {
867
- internalType: "uint16",
868
- name: "treasuryFeeBP",
869
- type: "uint16",
1181
+ "internalType": "uint16",
1182
+ "name": "reserveRatioThresholdBP",
1183
+ "type": "uint16"
870
1184
  },
1185
+ {
1186
+ "internalType": "uint16",
1187
+ "name": "treasuryFeeBP",
1188
+ "type": "uint16"
1189
+ },
1190
+ {
1191
+ "internalType": "bool",
1192
+ "name": "isDisconnected",
1193
+ "type": "bool"
1194
+ }
871
1195
  ],
872
- internalType: "struct VaultHub.VaultSocket",
873
- name: "",
874
- type: "tuple",
875
- },
1196
+ "internalType": "struct VaultHub.VaultSocket",
1197
+ "name": "",
1198
+ "type": "tuple"
1199
+ }
876
1200
  ],
877
- stateMutability: "view",
878
- type: "function",
1201
+ "stateMutability": "view",
1202
+ "type": "function"
879
1203
  },
880
1204
  {
881
- inputs: [],
882
- name: "vaultsCount",
883
- outputs: [
884
- {
885
- internalType: "uint256",
886
- name: "",
887
- type: "uint256",
888
- },
1205
+ "inputs": [],
1206
+ "name": "vaultsCount",
1207
+ "outputs": [
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "",
1211
+ "type": "uint256"
1212
+ }
889
1213
  ],
890
- stateMutability: "view",
891
- type: "function",
1214
+ "stateMutability": "view",
1215
+ "type": "function"
892
1216
  },
1217
+ {
1218
+ "inputs": [
1219
+ {
1220
+ "internalType": "address",
1221
+ "name": "_vault",
1222
+ "type": "address"
1223
+ }
1224
+ ],
1225
+ "name": "voluntaryDisconnect",
1226
+ "outputs": [],
1227
+ "stateMutability": "nonpayable",
1228
+ "type": "function"
1229
+ }
893
1230
  ];
894
1231
  //# sourceMappingURL=VaultHub.js.map