-
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 separate directory for arbitrum * Add deployment files for granting canceller role to 5/8 * Add deployment file to remove OUSD AMO strategy * Fix interface name * Fix tests and add proposal IDs * Update migrations.json on base * Update .migrations.json file
- Loading branch information
1 parent
f40e43f
commit 237d508
Showing
14 changed files
with
156 additions
and
12 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
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,27 @@ | ||
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnBaseWithGuardian( | ||
{ | ||
deployName: "024_multisig_as_canceller", | ||
}, | ||
async ({ ethers }) => { | ||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.base.timelock | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
return { | ||
name: "Grant canceller role to 5/8 Multisig", | ||
actions: [ | ||
{ | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.base.governor], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
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,37 @@ | ||
const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deploymentWithGovernanceProposal( | ||
{ | ||
deployName: "119_multisig_as_canceller", | ||
forceDeploy: false, | ||
//forceSkip: true, | ||
reduceQueueTime: true, | ||
deployerIsProposer: false, | ||
proposalId: | ||
"68528526132026080998168122859635399048147530736160306492805070199180314362200", | ||
}, | ||
async () => { | ||
const { timelockAddr } = await getNamedAccounts(); | ||
|
||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
timelockAddr | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
// Governance Actions | ||
// ---------------- | ||
return { | ||
name: "Grant canceller role to 5/8 Multisig", | ||
actions: [ | ||
{ | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.mainnet.Guardian], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
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,43 @@ | ||
const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deploymentWithGovernanceProposal( | ||
{ | ||
deployName: "120_remove_ousd_amo", | ||
forceDeploy: false, | ||
//forceSkip: true, | ||
reduceQueueTime: true, | ||
deployerIsProposer: false, | ||
proposalId: | ||
"47377301530901645877668147419124102540503539821842750844128770769774878595548", | ||
}, | ||
async () => { | ||
const cOUSDVaultProxy = await ethers.getContract("VaultProxy"); | ||
const cOUSDVault = await ethers.getContractAt( | ||
"IVault", | ||
cOUSDVaultProxy.address | ||
); | ||
|
||
const cOUSDMetaStrategyProxy = await ethers.getContract( | ||
"ConvexOUSDMetaStrategyProxy" | ||
); | ||
|
||
// Governance Actions | ||
// ---------------- | ||
return { | ||
name: "Remove OUSD AMO Strategy", | ||
actions: [ | ||
{ | ||
contract: cOUSDVault, | ||
signature: "removeStrategy(address)", | ||
args: [cOUSDMetaStrategyProxy.address], | ||
}, | ||
{ | ||
contract: cOUSDVault, | ||
signature: "setOusdMetaStrategy(address)", | ||
args: [addresses.zero], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
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,27 @@ | ||
const { deployOnSonic } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnSonic( | ||
{ | ||
deployName: "005_multisig_as_canceller", | ||
}, | ||
async ({ ethers }) => { | ||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.sonic.timelock | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Grant canceller role to 5/8 Multisig | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.sonic.admin], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"084_deploy_woeth_on_arb": 1707820141, | ||
"088_upgrade_woeth_on_arb": 1710959437 | ||
"001_deploy_woeth_on_arb": 1707820141, | ||
"002_upgrade_woeth_on_arb": 1710959437 | ||
} |
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