GSNRecipientMock.sol 991 B

12345678910111213141516171819202122232425262728293031
  1. pragma solidity ^0.5.0;
  2. import "./ContextMock.sol";
  3. import "../GSN/GSNRecipient.sol";
  4. // By inheriting from GSNRecipient, Context's internal functions are overridden automatically
  5. contract GSNRecipientMock is ContextMock, GSNRecipient {
  6. function withdrawDeposits(uint256 amount, address payable payee) public {
  7. _withdrawDeposits(amount, payee);
  8. }
  9. function acceptRelayedCall(address, address, bytes calldata, uint256, uint256, uint256, uint256, bytes calldata, uint256)
  10. external
  11. view
  12. returns (uint256, bytes memory)
  13. {
  14. return (0, "");
  15. }
  16. function _preRelayedCall(bytes memory) internal returns (bytes32) {
  17. // solhint-disable-previous-line no-empty-blocks
  18. }
  19. function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal {
  20. // solhint-disable-previous-line no-empty-blocks
  21. }
  22. function upgradeRelayHub(address newRelayHub) public {
  23. return _upgradeRelayHub(newRelayHub);
  24. }
  25. }