Mintable ERC-1155

Description

The MintableERC1155 contract is an module that provides minting functionality for ERC-1155 tokens. It includes features for requesting mints via signatures, setting and getting sales configurations, and managing metadata URIs. This contract ensures secure and controlled minting processes with the possibility of integrating primary sales.

Callback Functions

FunctionDescription
beforeMintERC1155Callback function for the ERC1155Core.mint function. Executes actions before minting tokens, including verification.
onTokenURICallback function for the ERC1155Core.tokenURI function. Returns the metadata URI for a given tokenId.

Fallback Functions

FunctionDescription
getSaleConfigReturns the sale configuration for a token, including the primary sale recipient.
setSaleConfigSets the sale configuration for a token, including the primary sale recipient. Requires manager role.
setTokenURISets the token URI for a given token. Emits MintableTokenURIUpdated and MetadataUpdate events. Requires minter role.
eip712DomainReturns the EIP-712 domain details.

Required Interfaces

InterfaceID
ERC-11550xd9b67a26

Supported Interfaces

InterfaceID
ERC-49060x49064906