Fragment extensions
IPatchworkSingleAssignable
IPatchwork721 extension for contracts supporting Patchwork assignment
import”@patchwork/contracts/PatchworkSingleAssignable/IPatchworkSingleAssignable.sol”;
Inherits:
IPatchworkAssignable
Functions
unassign
Unassigns a token
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | ID of our token |
getAssignedTo
Returns the address and token ID that our token is assigned to
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | ID of our token |
Returns
Name | Type | Description |
---|---|---|
<none> | address | address the address this is assigned to |
<none> | uint256 | uint256 the tokenId this is assigned to |
unassignedOwnerOf
Returns the underlying stored owner of a token ignoring current assignment
Parameters
Name | Type | Description |
---|---|---|
ourTokenId | uint256 | ID of our token |
Returns
Name | Type | Description |
---|---|---|
<none> | address | address address of the owner |
onAssignedTransfer
Sends events for a token when the assigned-to token has been transferred
Parameters
Name | Type | Description |
---|---|---|
from | address | Sender address |
to | address | Recipient address |
tokenId | uint256 | ID of the token |
updateOwnership
Updates the real underlying ownership of a token in storage (if different from current)
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |