2023-06-12 16:22:32 +03:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.12;
|
|
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
|
|
import { ProposalUtils } from "./ProposalUtils.sol";
|
|
|
|
import { Proposal, IGovernance } from "./interfaces/IGovernance.sol";
|
|
|
|
|
|
|
|
import { TornadoStakingRewards } from "@root/TornadoStakingRewards.sol";
|
|
|
|
import { RestoreRewardsProposal } from "@root/Proposal.sol";
|
|
|
|
|
|
|
|
import { Test } from "@forge-std/Test.sol";
|
|
|
|
|
|
|
|
contract MockProposal is Test, ProposalUtils {
|
|
|
|
modifier executeCurrentProposalBefore() {
|
|
|
|
createAndExecuteProposal();
|
|
|
|
_;
|
|
|
|
}
|
|
|
|
|
2023-06-14 02:39:58 +03:00
|
|
|
function createAndExecuteProposal() public {
|
2023-06-12 16:22:32 +03:00
|
|
|
TornadoStakingRewards governanceStakingImplementation =
|
|
|
|
new TornadoStakingRewards(_governanceAddress, _tokenAddress, _relayerRegistryAddress);
|
|
|
|
|
|
|
|
RestoreRewardsProposal proposal = new RestoreRewardsProposal(address(governanceStakingImplementation));
|
2023-06-13 01:17:34 +03:00
|
|
|
|
2023-06-14 02:39:58 +03:00
|
|
|
proposeAndExecute(address(proposal));
|
2023-06-12 16:22:32 +03:00
|
|
|
}
|
|
|
|
}
|