Mint Permissions Functions

Mint Permissions Contract Functions

approveMint

Gets approval to mint

Input Parameters: extension address, address, tokenID

ERC721

interface IERC721CreatorMintPermissions is IERC165 {

    /**
     * @dev get approval to mint
     */
    function approveMint(address extension, address to, uint256 tokenId) external;
}

ERC1155

interface IERC1155CreatorMintPermissions is IERC165 {

    /**
     * @dev get approval to mint
     */
    function approveMint(address extension, address[] calldata to, uint256[] calldata tokenIds, uint256[] calldata amounts) external;
}

Setting Mint Permissions

setMintPermissions

Adds a Mint Permissions contract to a registered extension contract

Input Parameters: extension address, mint permissions contract address

function setMintPermissions(address extension, address permissions) external override adminRequired {
        _setMintPermissions(extension, permissions);
    }

Last updated