ICreatorBase

Git Source

Author: transientlabs.xyz

Base interface for creator contracts

Interface id = 0x1c8e024d

Functions

totalSupply

Function to get total supply minted so far

function totalSupply() external view returns (uint256);

setApprovedMintContracts

Function to set approved mint contracts

Access to owner or admin

function setApprovedMintContracts(address[] calldata minters, bool status) external;

Parameters

NameTypeDescription
mintersaddress[]Array of minters to grant approval to
statusboolStatus for the minters

setBlockListRegistry

Function to change the blocklist registry

Access to owner or admin

function setBlockListRegistry(address newBlockListRegistry) external;

Parameters

NameTypeDescription
newBlockListRegistryaddressThe new blocklist registry

blocklistRegistry

Function to get the blocklist registry

function blocklistRegistry() external view returns (IBlockListRegistry);

setNftDelegationRegistry

Function to change the TL NFT delegation registry

Access to owner or admin

function setNftDelegationRegistry(address newNftDelegationRegistry) external;

Parameters

NameTypeDescription
newNftDelegationRegistryaddressThe new blocklist registry

tlNftDelegationRegistry

Function to get the delegation registry

function tlNftDelegationRegistry() external view returns (ITLNftDelegationRegistry);

setDefaultRoyalty

Function to set the default royalty specification

Requires owner or admin

function setDefaultRoyalty(address newRecipient, uint256 newPercentage) external;

Parameters

NameTypeDescription
newRecipientaddressThe new royalty payout address
newPercentageuint256The new royalty percentage in basis (out of 10,000)

setTokenRoyalty

Function to override a token's royalty info

Requires owner or admin

function setTokenRoyalty(uint256 tokenId, address newRecipient, uint256 newPercentage) external;

Parameters

NameTypeDescription
tokenIduint256The token to override royalty for
newRecipientaddressThe new royalty payout address for the token id
newPercentageuint256The new royalty percentage in basis (out of 10,000) for the token id

setStoryStatus

Function to enable or disable collector story inscriptions

Requires owner or admin

function setStoryStatus(bool status) external;

Parameters

NameTypeDescription
statusboolThe status to set for collector story inscriptions

storyEnabled

Function to get the status of collector stories

function storyEnabled() external view returns (bool);

Returns

NameTypeDescription
<none>boolbool Status of collector stories being enabled

Events

StoryStatusUpdate

Event for changing the story status

event StoryStatusUpdate(address indexed sender, bool indexed status);

BlockListRegistryUpdate

Event for changing the BlockList registry

event BlockListRegistryUpdate(
    address indexed sender, address indexed prevBlockListRegistry, address indexed newBlockListRegistry
);

NftDelegationRegistryUpdate

Event for changing the NFT Delegation registry

event NftDelegationRegistryUpdate(
    address indexed sender, address indexed prevNftDelegationRegistry, address indexed newNftDelegationRegistry
);