Skip to content

Commit 6b9e6e2

Browse files
committed
feat: updates for Hoodi upgrade
1 parent 860d8f9 commit 6b9e6e2

File tree

5 files changed

+51
-47
lines changed

5 files changed

+51
-47
lines changed

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: [

docs/cli/commands/contracts/dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ yarn start contracts dashboard -h
7272
| has-role \<address> \<role> \<account> | get has role by role and account |
7373
| health-shortfall-shares \<address> | get the amount of shares to rebalance to restore vault healthiness or to cover redemptions |
7474
| initialized \<address> | Calls the read-only function "initialized" on the contract. |
75-
| is-approved-to-connect \<address> | get the flag indicating whether the vault is approved by the node operator to connect to VaultHub |
7675
| latest-correction-timestamp \<address> | get the timestamp of the most recent settled growth correction |
7776
| latest-report lr\<address> | get the latest report data containing the total value and in-out delta |
7877
| liability-shares \<address> | get the number of stETHshares minted |
@@ -130,6 +129,7 @@ yarn start contracts dashboard -h
130129
| change-tier ct\<address> \<tierId> \<requestedShareLimit> | vault tier change with multi-role confirmation |
131130
| sync-tier st\<address> | requests a sync of tier on the OperatorGrid |
132131
| update-share-limit \<address> \<shareLimit> | requests a change of share limit on the OperatorGrid |
132+
| disburse-abnormally-high-fee \<address> | Disburses an abnormally high fee as `DEFAULT_ADMIN_ROLE`. Before calling this function, the caller must ensure that the high fee is expected, and the settled growth (used as baseline for fee) is set correctly. |
133133

134134
**\<roleAssignmentJSON>**
135135

docs/cli/commands/contracts/vault-factory.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ yarn start contracts factory -h
2525

2626
### Read
2727

28-
| Command | Description |
29-
| ----------------------- | -------------------------------------------------------------- |
30-
| info | get vault factory info |
31-
| BEACON | Calls the read-only function "BEACON" on the contract. |
32-
| DASHBOARD_IMPL | Calls the read-only function "DASHBOARD_IMPL" on the contract. |
33-
| LIDO_LOCATOR | Calls the read-only function "LIDO_LOCATOR" on the contract. |
34-
| deployedVaults \<vault> | Calls the read-only function "deployedVaults" on the contract. |
28+
| Command | Description |
29+
| ------------------------ | ---------------------------------------------------------------------- |
30+
| info | get vault factory info |
31+
| BEACON | Calls the read-only function "BEACON" on the contract. |
32+
| DASHBOARD_IMPL | Calls the read-only function "DASHBOARD_IMPL" on the contract. |
33+
| LIDO_LOCATOR | Calls the read-only function "LIDO_LOCATOR" on the contract. |
34+
| PREVIOUS_FACTORY | Calls the read-only function "PREVIOUS_FACTORY" on the contract. |
35+
| deployed-vaults \<vault> | get true if the vault was deployed by this factory or PREVIOUS_FACTORY |
3536

3637
### Write
3738

programs/contracts/dashboard/write.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,3 +1020,24 @@ dashboardWrite
10201020
payload: [shareLimit],
10211021
});
10221022
});
1023+
1024+
dashboardWrite
1025+
.command('disburse-abnormally-high-fee')
1026+
.description(
1027+
'Disburses an abnormally high fee as `DEFAULT_ADMIN_ROLE`. Before calling this function, the caller must ensure that the high fee is expected, and the settled growth (used as baseline for fee) is set correctly.',
1028+
)
1029+
.argument('<address>', 'dashboard address', stringToAddress)
1030+
.action(async (address: Address) => {
1031+
const contract = getDashboardContract(address);
1032+
1033+
const confirm = await confirmOperation(
1034+
'Are you sure you want to disburse an abnormally high fee as `DEFAULT_ADMIN_ROLE`?',
1035+
);
1036+
if (!confirm) return;
1037+
1038+
await callWriteMethodWithReceipt({
1039+
contract,
1040+
methodName: 'disburseAbnormallyHighFee',
1041+
payload: [],
1042+
});
1043+
});
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
import { ReadProgramCommandConfig } from 'utils';
1+
import { ReadProgramCommandConfig, stringToAddress } from 'utils';
22
import { VaultFactoryAbi } from 'abi';
33

44
export const readCommandConfig: ReadProgramCommandConfig<
55
typeof VaultFactoryAbi
6-
> = {};
6+
> = {
7+
deployedVaults: {
8+
name: 'deployed-vaults',
9+
description:
10+
'get true if the vault was deployed by this factory or PREVIOUS_FACTORY',
11+
arguments: {
12+
_vault: {
13+
name: 'vault',
14+
description: 'vault address',
15+
modifier: (value: string) => stringToAddress(value),
16+
},
17+
},
18+
},
19+
};

0 commit comments

Comments
 (0)