-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Rewarder instance within ConributionRewardExt init function (#746
- Loading branch information
1 parent
6343cc5
commit da0696a
Showing
9 changed files
with
227 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pragma solidity ^0.5.17; | ||
|
||
import "../schemes/ContributionRewardExt.sol"; | ||
|
||
|
||
contract RewarderMock is Rewarder { | ||
ContributionRewardExt public contributionRewardExt; | ||
|
||
function initialize(address payable _contributionRewardExt) external { | ||
contributionRewardExt = ContributionRewardExt(_contributionRewardExt); | ||
} | ||
|
||
function redeemEtherByRewarder(bytes32 _proposalId, address payable _beneficiary, uint256 _amount) | ||
public { | ||
contributionRewardExt.redeemEtherByRewarder(_proposalId, _beneficiary, _amount); | ||
} | ||
|
||
function redeemNativeTokenByRewarder(bytes32 _proposalId, address payable _beneficiary, uint256 _amount) | ||
public { | ||
contributionRewardExt.redeemNativeTokenByRewarder(_proposalId, _beneficiary, _amount); | ||
} | ||
|
||
function redeemExternalTokenByRewarder(bytes32 _proposalId, address payable _beneficiary, uint256 _amount) | ||
public { | ||
contributionRewardExt.redeemExternalTokenByRewarder(_proposalId, _beneficiary, _amount); | ||
} | ||
|
||
function redeemReputationByRewarder(bytes32 _proposalId, address payable _beneficiary, uint256 _amount) | ||
public { | ||
contributionRewardExt.redeemReputationByRewarder(_proposalId, _beneficiary, _amount); | ||
} | ||
} |
Oops, something went wrong.