28 lines
996 B
JavaScript
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"))
|