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/PatchworkPatch/IPatchworkPatch.sol”;
Inherits:
IPatchworkScoped
Functions
mintPatch
Creates a new token for the owner, representing a patch
function mintPatch(address owner, PatchTarget memory target) external payable returns (uint256 tokenId);
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)
function updateOwnership(uint256 tokenId) external;
Parameters
| Name | Type | Description |
|---|
tokenId | uint256 | ID of the token |
ownerOfPatch
Returns the underlying stored owner of a token ignoring real patched NFT ownership
function ownerOfPatch(uint256 tokenId) external view returns (address);
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
struct PatchTarget {
address addr;
uint256 tokenId;
}