mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
deployment script
This commit is contained in:
parent
9599794bbc
commit
1213bd91d5
1
deployments/mainnet_1/PayloadIGP8.json
Normal file
1
deployments/mainnet_1/PayloadIGP8.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
22
scripts/deployIGP8.js
Normal 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);
|
||||
});
|
Loading…
Reference in New Issue
Block a user