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
7f419ccab1
commit
6d955c49a1
1
deployments/mainnet_1/PayloadIGP13.json
Normal file
1
deployments/mainnet_1/PayloadIGP13.json
Normal file
File diff suppressed because one or more lines are too long
22
scripts/deployIGP13.js
Normal file
22
scripts/deployIGP13.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const hre = require("hardhat");
|
||||
const { ethers } = hre;
|
||||
|
||||
async function main() {
|
||||
const PayloadIGP13 = await ethers.getContractFactory("PayloadIGP13")
|
||||
const payloadIGP13 = await PayloadIGP13.deploy()
|
||||
await payloadIGP13.deployed()
|
||||
|
||||
console.log("PayloadIGP13: ", payloadIGP13.address)
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: payloadIGP13.address,
|
||||
constructorArguments: []
|
||||
})
|
||||
}
|
||||
|
||||
main()
|
||||
.then(() => process.exit(0))
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
});
|
17
scripts/deploySimulation.js
Normal file
17
scripts/deploySimulation.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const hre = require("hardhat");
|
||||
const { ethers } = hre;
|
||||
|
||||
async function main() {
|
||||
const payload = await ethers.deployContract("PayloadIGP13", [])
|
||||
await payload.waitForDeployment()
|
||||
|
||||
console.log("PayloadIGP13: ", payload.target)
|
||||
console.log()
|
||||
}
|
||||
|
||||
main()
|
||||
.then(() => process.exit(0))
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
});
|
Loading…
Reference in New Issue
Block a user