import”@patchwork/contracts/PatchworkAssignable/IPatchworkAssignable.sol”;
Inherits:
IPatchworkScopedDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
IPatchwork721 extension for contracts supporting Patchwork assignment
IPatchworkScopedfunction assign(uint256 ourTokenId, address to, uint256 tokenId) external;
| Name | Type | Description |
|---|---|---|
ourTokenId | uint256 | ID of our token |
to | address | Address to assign to |
tokenId | uint256 | ID of the token to assign |
function allowAssignment(
uint256 ourTokenId,
address target,
uint256 targetTokenId,
address targetOwner,
address by,
string memory scopeName
) external view returns (bool);
| Name | Type | Description |
|---|---|---|
ourTokenId | uint256 | the tokenID to assign |
target | address | the address of the target |
targetTokenId | uint256 | the tokenID of the target |
targetOwner | address | the ownerOf of the target |
by | address | the account invoking the assignment to Patchwork Protocol |
scopeName | string | the scope name of the contract to assign to |
struct Assignment {
address tokenAddr;
uint256 tokenId;
}