Skip to main content

SignatureMintERC20Upgradeable

Methods

mintWithSignature

function mintWithSignature(ISignatureMintERC20.MintRequest req, bytes signature) external payable returns (address signer)

Mints tokens according to the provided mint request.

Parameters

NameTypeDescription
reqISignatureMintERC20.MintRequestThe payload / mint request.
signaturebytesThe signature produced by an account signing the mint request.

Returns

NameTypeDescription
signeraddressundefined

verify

function verify(ISignatureMintERC20.MintRequest _req, bytes _signature) external view returns (bool success, address signer)

Verifies that a mint request is signed by an account holding MINTER_ROLE (at the time of the function call).

Parameters

NameTypeDescription
_reqISignatureMintERC20.MintRequestundefined
_signaturebytesundefined

Returns

NameTypeDescription
successboolundefined
signeraddressundefined

Events

TokensMintedWithSignature

event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, ISignatureMintERC20.MintRequest mintRequest)

Parameters

NameTypeDescription
signer indexedaddressundefined
mintedTo indexedaddressundefined
mintRequestISignatureMintERC20.MintRequestundefined