23 lines
785 B
Solidity
23 lines
785 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.6.12;
|
|
|
|
import "@forge-std/Script.sol";
|
|
|
|
import { TornadoStakingRewards } from "@root/TornadoStakingRewards.sol";
|
|
import { Parameters } from "@proprietary/Parameters.sol";
|
|
import { RestoreRewardsProposal } from "@root/Proposal.sol";
|
|
|
|
contract DeployScript is Script, Parameters {
|
|
function run() external {
|
|
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
|
|
vm.startBroadcast(deployerPrivateKey);
|
|
|
|
TornadoStakingRewards governanceStakingImplementation =
|
|
new TornadoStakingRewards(_governanceAddress, _tokenAddress, _relayerRegistryAddress);
|
|
|
|
RestoreRewardsProposal proposal = new RestoreRewardsProposal(address(governanceStakingImplementation));
|
|
|
|
vm.stopBroadcast();
|
|
}
|
|
}
|