Appearance
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) publicUpserts (inserts or updates) a token split for a given token ID
Only callable by accounts with SPLITS_MANAGER_ROLE or the diamond owner
Parameters
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token for which to upsert the split |
| _splitAddress | address | The 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
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token to query |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | The address of the split contract for the given token ID |