EeseePaymaster
EeseePaymaster
A paymaster allowing addresses holding ESE tokens to pay for a GSN transaction.
ESE
ESE token this contract uses.
nonces
Nonces for each address.
SIGNER_ROLE
Signer role in {accessManager}.
approvedContracts
Contracts approved for use.
Refilled
TokensCharged
Withdrawn
ApproveContract
RevokeContractApproval
InvalidESE
ExpiredDeadline
InvalidSender
InvalidSignature
ActualChargeHigher
AddressNotApproved
AlreadyApproved
withdrawTokens
Withdraws ESE collected from users.
Parameters
Return Values
approveContract
Approves contract for use. Emits {ApproveContract} event.
Parameters
revokeContractApproval
_Revokes contract approval from {address}. Emits {RevokeContractApproval} event.
Parameters
versionPaymaster
Return Values
getGasAndDataLimits
Return the Gas Limits for Paymaster's functions and maximum msg.data length values for this Paymaster. This function allows different paymasters to have different properties without changes to the RelayHub.
Return Values
Inherited from EeseeRoleHandler
Inherited from EIP712
eip712Domain
_See {EIP-5267}.
Available since v4.9._
Inherited from IERC5267
EIP712DomainChanged
MAY be emitted to signal that the domain could have changed.
Inherited from BasePaymaster
getRelayHub
Return Values
supportsInterface
_Returns true if this contract implements the interface defined by interfaceId
. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.
This function call must use less than 30 000 gas._
setRelayHub
setTrustedForwarder
The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with. the Recipients must trust this Forwarder as well in order for the configuration to remain functional.
getTrustedForwarder
Return Values
withdrawRelayHubDepositTo
Withdraw deposit from the RelayHub.
Parameters
preRelayedCall
Called by the Relay in view mode and later by the RelayHub
on-chain to validate that the Paymaster agrees to pay for this call.
The request is considered to be rejected by the Paymaster in one of the following conditions:
preRelayedCall()
method revertsthe
Forwarder
reverts because of nonce or signature errorthe
Paymaster
returnedrejectOnRecipientRevert: true
and the recipient contract reverted (and all that did not consume more thanacceptanceBudget
gas).
In any of the above cases, all Paymaster calls and the recipient call are reverted. In any other case the Paymaster will pay for the gas cost of the transaction. Note that even if postRelayedCall
is reverted the Paymaster will be charged.
Parameters
Return Values
postRelayedCall
This method is called after the actual relayed function call. It may be used to record the transaction (e.g. charge the caller by some contract logic) for this call.
Revert in this functions causes a revert of the client's relayed call (and preRelayedCall(), but the Paymaster is still committed to pay the relay for the entire transaction.
Parameters
Inherited from Ownable
owner
Returns the address of the current owner.
renounceOwnership
_Leaves the contract without owner. It will not be possible to call onlyOwner
functions. Can only be called by the current owner.
NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner._
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
OwnershipTransferred
Last updated