Documentation Index
Fetch the complete documentation index at: https://docs.patchwork.dev/llms.txt
Use this file to discover all available pages before exploring further.
import”@patchwork/contracts/PatchworkAssignable/IPatchworkAssignable.sol”;
Inherits:
IPatchworkAssignable
Functions
isAssignedTo
Checks if this fragment is assigned to a target
function isAssignedTo(uint256 ourTokenId, address target, uint256 targetTokenId) external view returns (bool);
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
function unassign(uint256 ourTokenId, address target, uint256 targetTokenId) external;
Parameters
| Name | Type | Description |
|---|
ourTokenId | uint256 | tokenId of our fragment |
target | address | |
targetTokenId | uint256 | |
getAssignmentCount
Counts the number of unique assignments this token has
function getAssignmentCount(uint256 tokenId) external view returns (uint256);
Parameters
| Name | Type | Description |
|---|
tokenId | uint256 | tokenId of our fragment |
getAssignments
Gets assignments for a fragment
function getAssignments(uint256 tokenId, uint256 offset, uint256 count) external view returns (Assignment[] memory);
Parameters
| Name | Type | Description |
|---|
tokenId | uint256 | tokenId of our fragment |
offset | uint256 | the page offset |
count | uint256 | the maximum numer of entries to return |