deployment script

This commit is contained in:
Thrilok kumar 2024-03-03 00:10:34 -05:00
parent 9599794bbc
commit 1213bd91d5
4 changed files with 30 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,15 +5,13 @@ 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 Timelock = await ethers.getContractFactory("InstaTimelock")
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 GovernorDelegate = await ethers.getContractFactory("InstaGovernorBravoDelegate")
const governorDelegate = await GovernorDelegate.deploy()
await governorDelegate.deployed()
const PayloadIGP7 = await ethers.getContractFactory("PayloadIGP7")
const payloadIGP7 = await PayloadIGP7.deploy(governorDelegate.address, timelock.address)

22
scripts/deployIGP8.js Normal file
View File

@ -0,0 +1,22 @@
const hre = require("hardhat");
const { ethers } = hre;
async function main() {
const PayloadIGP8 = await ethers.getContractFactory("PayloadIGP8")
const payloadIGP8 = await PayloadIGP8.deploy()
await payloadIGP8.deployed()
console.log("PayloadIGP8: ", payloadIGP8.address)
await hre.run("verify:verify", {
address: payloadIGP8.address,
constructorArguments: []
})
}
main()
.then(() => process.exit(0))
.catch(error => {
console.error(error);
process.exit(1);
});