proposal-25-restore-rewards/scripts/deployProposal.js
AlienTornadosaurusHex 80078475d5 add hardhat deploy logic
Signed-off-by: AlienTornadosaurusHex <>
2023-06-12 19:39:42 +00:00

28 lines
996 B
JavaScript

const hre = require('hardhat')
const config = require("../config")
const { ethers } = hre
async function main() {
const factory_staking = await ethers.getContractFactory("TornadoStakingRewards")
const factory_proposal = await ethers.getContractFactory("Proposal")
const staking = await factory_staking.deploy(config.governanceProxy, config.torn, config.registryProxy)
console.log("\nStaking contract impl successfully deployed @ " + staking.address + '\n')
await hre.run('verify:verify', {
address: staking.address,
constructorArguments: [config.governanceProxy, config.torn, config.registryProxy],
})
const proposal = await factory_proposal.deploy(staking.address)
console.log("\nProposal 25 successfully deployed @ " + proposal.address + '\n')
await hre.run('verify:verify', {
address: proposal.address,
constructorArguments: [staking.address],
})
}
main().then((res) => console.log(res ?? "\nScript finished.\n"))