Appearance
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
| Name | Type | Description |
|---|---|---|
| _to | address | The address to mint the tokens to |
| _tokenId | uint256[] | The ID of the token to mint |
| _quantity | uint256[] | The number of tokens to mint |
Return Values
| Name | Type | Description |
|---|---|---|
| totalFee | uint256 | The total fee collected for the mint |
| recipients | address[] | The addresses of the fee recipients |
| feeAmounts | uint256[] | 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
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token to mint |
| _quantity | uint256 | The number of tokens to mint |
Return Values
| Name | Type | Description |
|---|---|---|
| totalCost | uint256 | The total cost for minting the specified quantity of tokens |
_setCreatorSplit
solidity
function _setCreatorSplit(uint256 creatorSplitBips) internalSets the creator's split percentage for fees
Parameters
| Name | Type | Description |
|---|---|---|
| creatorSplitBips | uint256 | The creator's split in basis points (1/100th of a percent) |
_setReferralSplit
solidity
function _setReferralSplit(uint256 referralSplitBips) internalSets the referral split percentage for fees
Parameters
| Name | Type | Description |
|---|---|---|
| referralSplitBips | uint256 | The referral split in basis points (1/100th of a percent) |