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/PatchworkSingleAssignable/IPatchworkSingleAssignable.sol”;
Inherits:
IPatchworkAssignable
Functions
unassign
Unassigns a token
function unassign(uint256 ourTokenId) external;
Parameters
| Name | Type | Description |
|---|
ourTokenId | uint256 | ID of our token |
getAssignedTo
Returns the address and token ID that our token is assigned to
function getAssignedTo(uint256 ourTokenId) external view returns (address, uint256);
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
function unassignedOwnerOf(uint256 ourTokenId) external view returns (address);
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
function onAssignedTransfer(address from, address to, uint256 tokenId) external;
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)
function updateOwnership(uint256 tokenId) external;
Parameters
| Name | Type | Description |
|---|
tokenId | uint256 | ID of the token |