ObjectMinterAdmin

Git Source

Provides helper functions for managing minting policies via an external ObjectMinter.

Designed to be inherited by set contracts. Assumes SetContext is properly configured. All functions apply to the calling set and must be protected by access control.

Functions

addMintPolicy

Adds a new minting policy for this set.

Only callable by the set owner or an authorized admin.

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

Parameters

NameTypeDescription
policyMintPolicyThe minting policy to add.

Returns

NameTypeDescription
indexuint32The index of the newly added policy.

disableMintPolicy

Disables an existing minting policy for this set.

Only callable by the set owner or an authorized admin.

function disableMintPolicy(uint32 index) external;

Parameters

NameTypeDescription
indexuint32The index of the policy to disable.

enableMintPolicy

Enables a previously disabled minting policy for this set.

Only callable by the set owner or an authorized admin.

function enableMintPolicy(uint32 index) external;

Parameters

NameTypeDescription
indexuint32The index of the policy to enable.

_objectMinter

function _objectMinter() private view returns (IObjectMinter);