deployment script

This commit is contained in:
Thrilok kumar 2024-03-11 16:29:32 -04:00
parent 9c5da11f40
commit 58182e1976
4 changed files with 46 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

22
scripts/deployIGP10.js Normal file
View File

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

22
scripts/deployIGP9.js Normal file
View File

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