RelayRecipient contract
Methods
getTrustedForwarder
function getTrustedForwarder() external view returns (address)
⚠️ Warning ⚠️ The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | The address of the Forwarder contract that is being used. |
isTrustedForwarder
function isTrustedForwarder(address forwarder) external view returns (bool)
⚠️ Warning ⚠️ The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.
Parameters
| Name | Type | Description |
|---|---|---|
| forwarder | address | The address of the Forwarder contract that is being used. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bool | isTrustedForwarder true if the Forwarder is trusted to forward relayed transactions by this Recipient. |
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
renounceOwnership
function renounceOwnership() external nonpayable
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.
setTrustedForwarder
function setTrustedForwarder(address forwarder) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| forwarder | address | undefined |
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | undefined |
Events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Errors
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
The owner is not a valid owner account. (eg. address(0))
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | undefined |
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
The caller account is not authorized to perform an operation.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | undefined |