* Merge GSNBouncerBase into GSNRecipient
* Remove emtpy implementations for _pre and _post
* Rename bouncers to recipients
* Rename bouncers documentation to strategies
* Rewrite guides and docstrings to use the strategy naming scheme
* Address review comments
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* change wording of docs
(cherry picked from commit aae95db4e0)
21 lines
606 B
Solidity
21 lines
606 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "../GSN/GSNRecipient.sol";
|
|
import "../GSN/GSNRecipientERC20Fee.sol";
|
|
|
|
contract GSNRecipientERC20FeeMock is GSNRecipient, GSNRecipientERC20Fee {
|
|
constructor(string memory name, string memory symbol) public GSNRecipientERC20Fee(name, symbol) {
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
}
|
|
|
|
function mint(address account, uint256 amount) public {
|
|
_mint(account, amount);
|
|
}
|
|
|
|
event MockFunctionCalled(uint256 senderBalance);
|
|
|
|
function mockFunction() public {
|
|
emit MockFunctionCalled(token().balanceOf(_msgSender()));
|
|
}
|
|
}
|