Interface for managing mint policies on the object minter

All functions apply to the set represented by the calling contract and must be access-controlled

Functions

addMintPolicy

Adds a new mint policy for the set represented by the calling contract

function addMintPolicy(MintPolicy memory policy) external returns (uint32 index);

Parameters

NameTypeDescription
policyMintPolicyThe policy configuration to add

Returns

NameTypeDescription
indexuint32Assigned policy index

disableMintPolicy

Disables a mint policy for the set represented by the calling contract

function disableMintPolicy(uint32 index) external;

Parameters

NameTypeDescription
indexuint32Index of the policy to disable

enableMintPolicy

Enables a mint policy for the set represented by the calling contract

function enableMintPolicy(uint32 index) external;

Parameters

NameTypeDescription
indexuint32Index of the policy to enable