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
NameTypeDescription
owneraddressAddress of the owner of the token
targetPatchTargetpath to target of patch
Returns
NameTypeDescription
tokenIduint256ID 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
NameTypeDescription
tokenIduint256ID 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
NameTypeDescription
tokenIduint256ID of the token
Returns
NameTypeDescription
<none>addressaddress Address of the owner

Structs


PatchTarget

A canonical path to a Patched ERC-721
struct PatchTarget {
    address addr;
    uint256 tokenId;
}