Splits (Royalties) Facet
event MeemSplitsSet(uint256 tokenId, struct Split[] splits)
Emitted when token splits are set
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token |
splits | struct Split[] | The new splits for the token |
event RoyaltiesSet(uint256 tokenId, struct Part[] royalties)
Rarible v2 compatible event when royalties (splits) are set
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token |
royalties | struct Part[] | The royalties assigned to the token |
function getRaribleV2Royalties(uint256 tokenId) public view returns (struct Part[])
function handleSaleDistribution(uint256 tokenId, address msgSender) public payable
Overrides the MeemBaseERC721Facet function to distrubute royalties
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token being transferred |
msgSender | address | The address that is purchasing the token |
function lockSplits(uint256 tokenId) external
Locks the token splits
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token to lock (0 for minted tokens) |
function setSplits(uint256 tokenId, struct Split[] splits) external
Sets the token splits (royalties)
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token to lock (0 for minted tokens) |
splits | struct Split[] | The new splits |
Last modified 1yr ago