mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
const hre = require("hardhat");
|
|
const { ethers } = hre;
|
|
|
|
async function main() {
|
|
const oldTimelockAddress = "0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC"
|
|
const guardain = "0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e"
|
|
|
|
// const Timelock = await ethers.getContractFactory("InstaTimelock")
|
|
const timelock = await ethers.getContractAt("InstaTimelock", "0x2386dc45added673317ef068992f19421b481f4c")
|
|
// const timelock = await Timelock.deploy(oldTimelockAddress, guardain)
|
|
// await timelock.deployed()
|
|
|
|
// const GovernorDelegate = await ethers.getContractFactory("InstaGovernorBravoDelegate")
|
|
const governorDelegate = await ethers.getContractAt("InstaGovernorBravoDelegate", "0x00613f7e762124711c7647f9eab5c8a88632ee47")
|
|
// const governorDelegate = await GovernorDelegate.deploy()
|
|
// await governorDelegate.deployed()
|
|
|
|
const PayloadIGP7 = await ethers.getContractFactory("PayloadIGP7")
|
|
const payloadIGP7 = await PayloadIGP7.deploy(governorDelegate.address, timelock.address)
|
|
await payloadIGP7.deployed()
|
|
|
|
console.log("PayloadIGP7: ", payloadIGP7.address)
|
|
console.log("InstaTimelock: ", timelock.address)
|
|
console.log("InstaGovernorBravoDelegate: ", governorDelegate.address)
|
|
|
|
|
|
await hre.run("verify:verify", {
|
|
address: timelock.address,
|
|
constructorArguments: [oldTimelockAddress, guardain]
|
|
})
|
|
|
|
await hre.run("verify:verify", {
|
|
address: governorDelegate.address,
|
|
constructorArguments: []
|
|
})
|
|
|
|
await hre.run("verify:verify", {
|
|
address: payloadIGP7.address,
|
|
constructorArguments: [governorDelegate.address, timelock.address]
|
|
})
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch(error => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|