-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment file to update strategist address (#2341)
* Add deployment file to update strategist address * Update fixtures * Update file * Better error handling * Update migrations.json * Update brownie scripts * Fix migrations.json * Fix one AMO test
- Loading branch information
1 parent
79f2ae3
commit 39d5825
Showing
10 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
const EXECUTOR_ROLE = | ||
"0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63"; | ||
|
||
module.exports = deployOnBaseWithGuardian( | ||
{ | ||
deployName: "021_multichain_strategist", | ||
// useTimelock: false, | ||
}, | ||
async ({ ethers }) => { | ||
const cOETHbVaultProxy = await ethers.getContract("OETHBaseVaultProxy"); | ||
const cOETHbVault = await ethers.getContractAt( | ||
"IVault", | ||
cOETHbVaultProxy.address | ||
); | ||
|
||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.base.timelock | ||
); | ||
|
||
return { | ||
name: "Switch to Multichain Strategist", | ||
actions: [ | ||
{ | ||
contract: cOETHbVault, | ||
signature: "setStrategistAddr(address)", | ||
args: [addresses.base.multichainStrategist], | ||
}, | ||
{ | ||
contract: cOETHbVault, | ||
signature: "setTrusteeAddress(address)", | ||
args: [addresses.base.multichainStrategist], | ||
}, | ||
{ | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [EXECUTOR_ROLE, addresses.base.multichainStrategist], | ||
}, | ||
{ | ||
contract: cTimelock, | ||
signature: "revokeRole(bytes32,address)", | ||
args: [EXECUTOR_ROLE, addresses.base.strategist], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters