Skip to content

Solidity API

PropsTokenSplit

This contract manages token splits for Props tokens. It inherits from PropsBaseFacet, PropsTokenSplitInternal, and implements IPropsTokenSplit.

upsertTokenSplit

solidity
function upsertTokenSplit(uint256 _tokenId, address _splitAddress) public

Upserts (inserts or updates) a token split for a given token ID

Only callable by accounts with SPLITS_MANAGER_ROLE or the diamond owner

Parameters

NameTypeDescription
_tokenIduint256The ID of the token for which to upsert the split
_splitAddressaddressThe address of the split contract

getTokenSplit

solidity
function getTokenSplit(uint256 _tokenId) external view returns (address)

Retrieves the split address for a given token ID

Parameters

NameTypeDescription
_tokenIduint256The ID of the token to query

Return Values

NameTypeDescription
[0]addressThe address of the split contract for the given token ID