Fragment extensions
IPatchworkAssignable
IPatchwork721 extension for contracts supporting Patchwork assignment
import”@patchwork/contracts/PatchworkAssignable/IPatchworkAssignable.sol”;
Inherits:
IPatchworkScoped
Functions
assign
Assigns a token to another
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | ID of our token |
to | address | Address to assign to |
tokenId | uint256 | ID of the token to assign |
allowAssignment
Checks permissions for assignment
Parameters
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 |
Structs
Assignment
Represents an assignment of a token from an external NFT contract to a token in this contract.