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
NameTypeDescription
ourTokenIduint256the tokenId of the fragment
targetaddressthe address of the target
targetTokenIduint256the tokenId of the target

unassign

Unassigns a token
function unassign(uint256 ourTokenId, address target, uint256 targetTokenId) external;
Parameters
NameTypeDescription
ourTokenIduint256tokenId of our fragment
targetaddress
targetTokenIduint256

getAssignmentCount

Counts the number of unique assignments this token has
function getAssignmentCount(uint256 tokenId) external view returns (uint256);
Parameters
NameTypeDescription
tokenIduint256tokenId of our fragment

getAssignments

Gets assignments for a fragment
function getAssignments(uint256 tokenId, uint256 offset, uint256 count) external view returns (Assignment[] memory);
Parameters
NameTypeDescription
tokenIduint256tokenId of our fragment
offsetuint256the page offset
countuint256the maximum numer of entries to return