Skip to content

Commit

Permalink
Merge branch 'feat/withdrawal-credentials' into feat/vaults-triggerab…
Browse files Browse the repository at this point in the history
…le-exits

# Conflicts:
#	scripts/scratch/steps/0130-grant-roles.ts
  • Loading branch information
tamtamchik committed Feb 3, 2025
2 parents 8bedfe6 + 6da1d6f commit cd8ec7e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/scratch/steps/0130-grant-roles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { ethers } from "hardhat";

import { Accounting, Burner, StakingRouter, ValidatorsExitBusOracle, WithdrawalQueueERC721 } from "typechain-types";
import {
Accounting,
Burner,
StakingRouter,
ValidatorsExitBusOracle,
WithdrawalQueueERC721,
WithdrawalVault,
} from "typechain-types";

import { loadContract } from "lib/contract";
import { makeTx } from "lib/deploy";
Expand All @@ -19,6 +26,7 @@ export async function main() {
const burnerAddress = state[Sk.burner].address;
const stakingRouterAddress = state[Sk.stakingRouter].proxy.address;
const withdrawalQueueAddress = state[Sk.withdrawalQueueERC721].proxy.address;
const withdrawalVaultAddress = state[Sk.withdrawalVault].proxy.address;
const accountingOracleAddress = state[Sk.accountingOracle].proxy.address;
const accountingAddress = state[Sk.accounting].proxy.address;
const validatorsExitBusOracleAddress = state[Sk.validatorsExitBusOracle].proxy.address;
Expand Down Expand Up @@ -81,6 +89,13 @@ export async function main() {
from: deployer,
});

// WithdrawalVault
const withdrawalVault = await loadContract<WithdrawalVault>("WithdrawalVault", withdrawalVaultAddress);
const fullWithdrawalRequestRole = await withdrawalVault.ADD_FULL_WITHDRAWAL_REQUEST_ROLE();
await makeTx(withdrawalVault, "grantRole", [fullWithdrawalRequestRole, validatorsExitBusOracleAddress], {
from: deployer,
});

// Burner
const burner = await loadContract<Burner>("Burner", burnerAddress);
// NB: REQUEST_BURN_SHARES_ROLE is already granted to Lido in Burner constructor
Expand Down

0 comments on commit cd8ec7e

Please sign in to comment.