Skip to main content

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​

NameTypeDescription
_0addressThe 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​

NameTypeDescription
forwarderaddressThe address of the Forwarder contract that is being used.

Returns​

NameTypeDescription
_0boolisTrustedForwarder 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​

NameTypeDescription
_0addressundefined

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​

NameTypeDescription
forwarderaddressundefined

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​

NameTypeDescription
newOwneraddressundefined

Events​

OwnershipTransferred​

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Errors​

OwnableInvalidOwner​

error OwnableInvalidOwner(address owner)

The owner is not a valid owner account. (eg. address(0))

Parameters​

NameTypeDescription
owneraddressundefined

OwnableUnauthorizedAccount​

error OwnableUnauthorizedAccount(address account)

The caller account is not authorized to perform an operation.

Parameters​

NameTypeDescription
accountaddressundefined