Skip to content

Solidity API

PropsERC1155CreatorSplitsInternal

_executeMint

solidity
function _executeMint(address _to, uint256[] _tokenId, uint256[] _quantity) internal returns (uint256 totalFee, address[] recipients, uint256[] feeAmounts)

Executes the minting process for ERC1155 tokens

Parameters

NameTypeDescription
_toaddressThe address to mint the tokens to
_tokenIduint256[]The ID of the token to mint
_quantityuint256[]The number of tokens to mint

Return Values

NameTypeDescription
totalFeeuint256The total fee collected for the mint
recipientsaddress[]The addresses of the fee recipients
feeAmountsuint256[]The amounts paid to each recipient

_calculateMintCost

solidity
function _calculateMintCost(uint256 _tokenId, uint256 _quantity) internal view returns (uint256 totalCost)

Calculates the total cost for minting a specific quantity of tokens

Parameters

NameTypeDescription
_tokenIduint256The ID of the token to mint
_quantityuint256The number of tokens to mint

Return Values

NameTypeDescription
totalCostuint256The total cost for minting the specified quantity of tokens

_setCreatorSplit

solidity
function _setCreatorSplit(uint256 creatorSplitBips) internal

Sets the creator's split percentage for fees

Parameters

NameTypeDescription
creatorSplitBipsuint256The creator's split in basis points (1/100th of a percent)

_setReferralSplit

solidity
function _setReferralSplit(uint256 referralSplitBips) internal

Sets the referral split percentage for fees

Parameters

NameTypeDescription
referralSplitBipsuint256The referral split in basis points (1/100th of a percent)