-
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 script for multichain strategist (#2356)
* Add deployment file and update fixtures * Rename deployment file * Fund on fork * clean up tests * Fix failing tests * Add proposal ID * Remove comments
- Loading branch information
1 parent
5ff14c4
commit ebdc81c
Showing
4 changed files
with
129 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
|
||
module.exports = deploymentWithGovernanceProposal( | ||
{ | ||
deployName: "118_multichain_strategist", | ||
forceDeploy: false, | ||
//forceSkip: true, | ||
reduceQueueTime: true, | ||
deployerIsProposer: false, | ||
proposalId: | ||
"29029286887383246507190904901480289164471194993284788972189545670391461770154", | ||
}, | ||
async () => { | ||
const { multichainStrategistAddr } = await getNamedAccounts(); | ||
|
||
const cOETHVaultProxy = await ethers.getContract("OETHVaultProxy"); | ||
const cOETHVault = await ethers.getContractAt( | ||
"IVault", | ||
cOETHVaultProxy.address | ||
); | ||
|
||
const cOUSDVaultProxy = await ethers.getContract("VaultProxy"); | ||
const cOUSDVault = await ethers.getContractAt( | ||
"IVault", | ||
cOUSDVaultProxy.address | ||
); | ||
|
||
const cOETHBuybackProxy = await ethers.getContract("OETHBuybackProxy"); | ||
const cOETHBuyback = await ethers.getContractAt( | ||
"OETHBuyback", | ||
cOETHBuybackProxy.address | ||
); | ||
|
||
const cOUSDBuybackProxy = await ethers.getContract("BuybackProxy"); | ||
const cOUSDBuyback = await ethers.getContractAt( | ||
"OUSDBuyback", | ||
cOUSDBuybackProxy.address | ||
); | ||
|
||
const cOETHHarvesterSimple = await ethers.getContract( | ||
"OETHHarvesterSimple" | ||
); | ||
|
||
// Governance Actions | ||
// ---------------- | ||
return { | ||
name: "Switch to multichain guardian", | ||
actions: [ | ||
{ | ||
contract: cOETHVault, | ||
signature: "setStrategistAddr(address)", | ||
args: [multichainStrategistAddr], | ||
}, | ||
{ | ||
contract: cOUSDVault, | ||
signature: "setStrategistAddr(address)", | ||
args: [multichainStrategistAddr], | ||
}, | ||
{ | ||
contract: cOETHBuyback, | ||
signature: "setStrategistAddr(address)", | ||
args: [multichainStrategistAddr], | ||
}, | ||
{ | ||
contract: cOUSDBuyback, | ||
signature: "setStrategistAddr(address)", | ||
args: [multichainStrategistAddr], | ||
}, | ||
{ | ||
contract: cOETHHarvesterSimple, | ||
signature: "setStrategistAddr(address)", | ||
args: [multichainStrategistAddr], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
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