Patch extensions
IPatchworkPatch
IPatchwork721 extension for contracts supporting Patchwork patch standard
import”@patchwork/contracts/PatchworkPatch/IPatchworkPatch.sol”;
Inherits:
IPatchworkScoped
Functions
mintPatch
Creates a new token for the owner, representing a patch
Parameters
Name | Type | Description |
---|---|---|
owner | address | Address of the owner of the token |
target | PatchTarget | path to target of patch |
Returns
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the newly minted 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 |
ownerOfPatch
Returns the underlying stored owner of a token ignoring real patched NFT ownership
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
<none> | address | address Address of the owner |
Structs
PatchTarget
A canonical path to a Patched ERC-721