IRelayRecipient.sol 872 B

123456789101112131415161718192021222324252627282930
  1. pragma solidity ^0.5.0;
  2. /*
  3. * @dev Interface for a contract that will be called via the GSN from RelayHub.
  4. */
  5. contract IRelayRecipient {
  6. /**
  7. * @dev Returns the address of the RelayHub instance this recipient interacts with.
  8. */
  9. function getHubAddr() public view returns (address);
  10. function acceptRelayedCall(
  11. address relay,
  12. address from,
  13. bytes calldata encodedFunction,
  14. uint256 transactionFee,
  15. uint256 gasPrice,
  16. uint256 gasLimit,
  17. uint256 nonce,
  18. bytes calldata approvalData,
  19. uint256 maxPossibleCharge
  20. )
  21. external
  22. view
  23. returns (uint256, bytes memory);
  24. function preRelayedCall(bytes calldata context) external returns (bytes32);
  25. function postRelayedCall(bytes calldata context, bool success, uint actualCharge, bytes32 preRetVal) external;
  26. }