Fragment extensions
IPatchworkMultiAssignable
IPatchwork721 extension for contracts supporting Patchwork assignment
import”@patchwork/contracts/PatchworkAssignable/IPatchworkAssignable.sol”;
Inherits:
IPatchworkAssignable
Functions
isAssignedTo
Checks if this fragment is assigned to a target
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | the tokenId of the fragment |
target | address | the address of the target |
targetTokenId | uint256 | the tokenId of the target |
unassign
Unassigns a token
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | tokenId of our fragment |
target | address | |
targetTokenId | uint256 |
getAssignmentCount
Counts the number of unique assignments this token has
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | tokenId of our fragment |
getAssignments
Gets assignments for a fragment
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | tokenId of our fragment |
offset | uint256 | the page offset |
count | uint256 | the maximum numer of entries to return |