Skip to content

Solidity API

PropsTokenSplitInternal

Internal contract for managing token splits

This contract provides internal functions for updating and retrieving token splits

_upsertTokenSplit

solidity
function _upsertTokenSplit(uint256 _tokenId, address _splitAddress) internal

Updates or inserts a token split for a given token ID

This function updates the split address for a specific token ID in the storage

Parameters

NameTypeDescription
_tokenIduint256The ID of the token for which to set the split
_splitAddressaddressThe address to receive the split for the given token ID

_getTokenSplit

solidity
function _getTokenSplit(uint256 _tokenId) internal view returns (address)

Retrieves the split address for a given token ID

This function reads the split address from storage for the specified token ID

Parameters

NameTypeDescription
_tokenIduint256The ID of the token for which to get the split address

Return Values

NameTypeDescription
[0]addressThe address set to receive the split for the given token ID