import”@patchwork/contracts/PatchworkSingleAssignable/IPatchworkSingleAssignable.sol”;

Inherits: IPatchworkAssignable

Functions


unassign

Unassigns a token

function unassign(uint256 ourTokenId) external;

Parameters

NameTypeDescription
ourTokenIduint256ID 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

NameTypeDescription
ourTokenIduint256ID of our token

Returns

NameTypeDescription
<none>addressaddress the address this is assigned to
<none>uint256uint256 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

NameTypeDescription
ourTokenIduint256ID of our token

Returns

NameTypeDescription
<none>addressaddress 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

NameTypeDescription
fromaddressSender address
toaddressRecipient address
tokenIduint256ID of the token

updateOwnership

Updates the real underlying ownership of a token in storage (if different from current)

function updateOwnership(uint256 tokenId) external;

Parameters

NameTypeDescription
tokenIduint256ID of the token