Skip to main content

SignatureMintERC1155

Methods

mintWithSignature

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

Mints tokens according to the provided mint request.

Parameters

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

Returns

NameTypeDescription
signeraddressundefined

verify

function verify(ISignatureMintERC1155.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
_reqISignatureMintERC1155.MintRequestundefined
_signaturebytesundefined

Returns

NameTypeDescription
successboolundefined
signeraddressundefined

Events

TokensMintedWithSignature

event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, ISignatureMintERC1155.MintRequest mintRequest)

Parameters

NameTypeDescription
signer indexedaddressundefined
mintedTo indexedaddressundefined
tokenIdMinted indexeduint256undefined
mintRequestISignatureMintERC1155.MintRequestundefined