Skip to content

Commit 3de48d3

Browse files
authored
Merge pull request #83 from lidofinance/feature/hoodi-updates
Feature/hoodi updates
2 parents 3cf565e + 6b9e6e2 commit 3de48d3

File tree

16 files changed

+223
-150
lines changed

16 files changed

+223
-150
lines changed

abi/AccessControlConfirmable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const AccessControlConfirmableAbi = [
122122
{
123123
indexed: true,
124124
internalType: 'bytes32',
125-
name: 'role',
125+
name: 'roleOrAddress',
126126
type: 'bytes32',
127127
},
128128
{

abi/Dashboard.ts

Lines changed: 50 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { OperatorGridErrorsAbi } from './OperatorGrid.js';
33
import { VaultHubErrorsAbi } from './VaultHub.js';
44

55
export const DashboardErrorsAbi = [
6+
{
7+
inputs: [],
8+
name: 'AbnormallyHighFee',
9+
type: 'error',
10+
},
611
{
712
inputs: [],
813
name: 'AccessControlBadConfirmation',
@@ -107,16 +112,6 @@ export const DashboardErrorsAbi = [
107112
name: 'ForbiddenByPDGPolicy',
108113
type: 'error',
109114
},
110-
{
111-
inputs: [],
112-
name: 'ForbiddenToConnectByNodeOperator',
113-
type: 'error',
114-
},
115-
{
116-
inputs: [],
117-
name: 'NonProxyCallsForbidden',
118-
type: 'error',
119-
},
120115
{
121116
inputs: [],
122117
name: 'PDGPolicyAlreadyActive',
@@ -143,22 +138,6 @@ export const DashboardErrorsAbi = [
143138
name: 'SafeCastOverflowedIntDowncast',
144139
type: 'error',
145140
},
146-
{
147-
inputs: [
148-
{
149-
internalType: 'uint8',
150-
name: 'bits',
151-
type: 'uint8',
152-
},
153-
{
154-
internalType: 'uint256',
155-
name: 'value',
156-
type: 'uint256',
157-
},
158-
],
159-
name: 'SafeCastOverflowedUintDowncast',
160-
type: 'error',
161-
},
162141
{
163142
inputs: [
164143
{
@@ -185,6 +164,11 @@ export const DashboardErrorsAbi = [
185164
name: 'SenderNotMember',
186165
type: 'error',
187166
},
167+
{
168+
inputs: [],
169+
name: 'SettledGrowthMismatch',
170+
type: 'error',
171+
},
188172
{
189173
inputs: [],
190174
name: 'TierChangeNotConfirmed',
@@ -253,19 +237,6 @@ export const DashboardAbi = [
253237
stateMutability: 'nonpayable',
254238
type: 'constructor',
255239
},
256-
{
257-
anonymous: false,
258-
inputs: [
259-
{
260-
indexed: false,
261-
internalType: 'bool',
262-
name: 'isApproved',
263-
type: 'bool',
264-
},
265-
],
266-
name: 'ApprovedToConnectSet',
267-
type: 'event',
268-
},
269240
{
270241
anonymous: false,
271242
inputs: [
@@ -321,9 +292,9 @@ export const DashboardAbi = [
321292
inputs: [
322293
{
323294
indexed: false,
324-
internalType: 'uint64',
295+
internalType: 'uint256',
325296
name: 'timestamp',
326-
type: 'uint64',
297+
type: 'uint256',
327298
},
328299
],
329300
name: 'CorrectionTimestampUpdated',
@@ -359,15 +330,15 @@ export const DashboardAbi = [
359330
},
360331
{
361332
indexed: false,
362-
internalType: 'uint64',
333+
internalType: 'uint256',
363334
name: 'oldFeeRate',
364-
type: 'uint64',
335+
type: 'uint256',
365336
},
366337
{
367338
indexed: false,
368-
internalType: 'uint64',
339+
internalType: 'uint256',
369340
name: 'newFeeRate',
370-
type: 'uint64',
341+
type: 'uint256',
371342
},
372343
],
373344
name: 'FeeRateSet',
@@ -479,7 +450,7 @@ export const DashboardAbi = [
479450
{
480451
indexed: true,
481452
internalType: 'bytes32',
482-
name: 'role',
453+
name: 'roleOrAddress',
483454
type: 'bytes32',
484455
},
485456
{
@@ -1059,14 +1030,25 @@ export const DashboardAbi = [
10591030
name: '_requestedShareLimit',
10601031
type: 'uint256',
10611032
},
1033+
{
1034+
internalType: 'uint256',
1035+
name: '_currentSettledGrowth',
1036+
type: 'uint256',
1037+
},
10621038
],
10631039
name: 'connectAndAcceptTier',
10641040
outputs: [],
10651041
stateMutability: 'payable',
10661042
type: 'function',
10671043
},
10681044
{
1069-
inputs: [],
1045+
inputs: [
1046+
{
1047+
internalType: 'uint256',
1048+
name: '_currentSettledGrowth',
1049+
type: 'uint256',
1050+
},
1051+
],
10701052
name: 'connectToVaultHub',
10711053
outputs: [],
10721054
stateMutability: 'payable',
@@ -1096,6 +1078,13 @@ export const DashboardAbi = [
10961078
stateMutability: 'nonpayable',
10971079
type: 'function',
10981080
},
1081+
{
1082+
inputs: [],
1083+
name: 'disburseAbnormallyHighFee',
1084+
outputs: [],
1085+
stateMutability: 'nonpayable',
1086+
type: 'function',
1087+
},
10991088
{
11001089
inputs: [],
11011090
name: 'disburseFee',
@@ -1356,19 +1345,6 @@ export const DashboardAbi = [
13561345
stateMutability: 'view',
13571346
type: 'function',
13581347
},
1359-
{
1360-
inputs: [],
1361-
name: 'isApprovedToConnect',
1362-
outputs: [
1363-
{
1364-
internalType: 'bool',
1365-
name: '',
1366-
type: 'bool',
1367-
},
1368-
],
1369-
stateMutability: 'view',
1370-
type: 'function',
1371-
},
13721348
{
13731349
inputs: [],
13741350
name: 'latestCorrectionTimestamp',
@@ -1641,7 +1617,13 @@ export const DashboardAbi = [
16411617
type: 'function',
16421618
},
16431619
{
1644-
inputs: [],
1620+
inputs: [
1621+
{
1622+
internalType: 'uint256',
1623+
name: '_currentSettledGrowth',
1624+
type: 'uint256',
1625+
},
1626+
],
16451627
name: 'reconnectToVaultHub',
16461628
outputs: [],
16471629
stateMutability: 'nonpayable',
@@ -1770,19 +1752,6 @@ export const DashboardAbi = [
17701752
stateMutability: 'nonpayable',
17711753
type: 'function',
17721754
},
1773-
{
1774-
inputs: [
1775-
{
1776-
internalType: 'bool',
1777-
name: '_isApproved',
1778-
type: 'bool',
1779-
},
1780-
],
1781-
name: 'setApprovedToConnect',
1782-
outputs: [],
1783-
stateMutability: 'nonpayable',
1784-
type: 'function',
1785-
},
17861755
{
17871756
inputs: [
17881757
{
@@ -1940,7 +1909,13 @@ export const DashboardAbi = [
19401909
},
19411910
],
19421911
name: 'transferVaultOwnership',
1943-
outputs: [],
1912+
outputs: [
1913+
{
1914+
internalType: 'bool',
1915+
name: '',
1916+
type: 'bool',
1917+
},
1918+
],
19441919
stateMutability: 'nonpayable',
19451920
type: 'function',
19461921
},

abi/OperatorGrid.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,22 @@ export const OperatorGridErrorsAbi = [
218218
name: 'ReserveRatioTooHigh',
219219
type: 'error',
220220
},
221+
{
222+
inputs: [
223+
{
224+
internalType: 'uint8',
225+
name: 'bits',
226+
type: 'uint8',
227+
},
228+
{
229+
internalType: 'uint256',
230+
name: 'value',
231+
type: 'uint256',
232+
},
233+
],
234+
name: 'SafeCastOverflowedUintDowncast',
235+
type: 'error',
236+
},
221237
{
222238
inputs: [],
223239
name: 'SenderNotMember',
@@ -437,7 +453,7 @@ export const OperatorGridAbi = [
437453
{
438454
indexed: true,
439455
internalType: 'bytes32',
440-
name: 'role',
456+
name: 'roleOrAddress',
441457
type: 'bytes32',
442458
},
443459
{
@@ -1284,6 +1300,19 @@ export const OperatorGridAbi = [
12841300
stateMutability: 'nonpayable',
12851301
type: 'function',
12861302
},
1303+
{
1304+
inputs: [
1305+
{
1306+
internalType: 'uint256',
1307+
name: '_newConfirmExpiry',
1308+
type: 'uint256',
1309+
},
1310+
],
1311+
name: 'setConfirmExpiry',
1312+
outputs: [],
1313+
stateMutability: 'nonpayable',
1314+
type: 'function',
1315+
},
12871316
{
12881317
inputs: [
12891318
{

abi/PredepositGuarantee.ts

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const PredepositGuaranteeAbi = [
2121
},
2222
{
2323
internalType: 'uint64',
24-
name: '_changeSlot',
24+
name: '_pivotSlot',
2525
type: 'uint64',
2626
},
2727
],
@@ -49,6 +49,11 @@ export const PredepositGuaranteeAbi = [
4949
name: 'AccessControlUnauthorizedAccount',
5050
type: 'error',
5151
},
52+
{
53+
inputs: [],
54+
name: 'ArrayLengthsNotMatch',
55+
type: 'error',
56+
},
5257
{
5358
inputs: [],
5459
name: 'CompensateFailed',
@@ -94,11 +99,6 @@ export const PredepositGuaranteeAbi = [
9499
name: 'InvalidSlot',
95100
type: 'error',
96101
},
97-
{
98-
inputs: [],
99-
name: 'InvalidTimestamp',
100-
type: 'error',
101-
},
102102
{
103103
inputs: [
104104
{
@@ -379,37 +379,6 @@ export const PredepositGuaranteeAbi = [
379379
name: 'ZeroPauseDuration',
380380
type: 'error',
381381
},
382-
{
383-
anonymous: false,
384-
inputs: [
385-
{
386-
indexed: true,
387-
internalType: 'address',
388-
name: 'nodeOperator',
389-
type: 'address',
390-
},
391-
{
392-
indexed: true,
393-
internalType: 'address',
394-
name: 'to',
395-
type: 'address',
396-
},
397-
{
398-
indexed: false,
399-
internalType: 'uint128',
400-
name: 'total',
401-
type: 'uint128',
402-
},
403-
{
404-
indexed: false,
405-
internalType: 'uint128',
406-
name: 'locked',
407-
type: 'uint128',
408-
},
409-
],
410-
name: 'BalanceCompensated',
411-
type: 'event',
412-
},
413382
{
414383
anonymous: false,
415384
inputs: [

abi/StakingVault.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,6 @@ export const StakingVaultErrorsAbi = [
182182
name: 'TransferFailed',
183183
type: 'error',
184184
},
185-
{
186-
inputs: [],
187-
name: 'VaultOssified',
188-
type: 'error',
189-
},
190185
{
191186
inputs: [],
192187
name: 'WithdrawalFeeInvalidData',
@@ -794,7 +789,7 @@ export const StakingVaultAbi = [
794789
inputs: [],
795790
name: 'renounceOwnership',
796791
outputs: [],
797-
stateMutability: 'nonpayable',
792+
stateMutability: 'view',
798793
type: 'function',
799794
},
800795
{

0 commit comments

Comments
 (0)