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/Patchwork1155Patch/IPatchwork1155Patch.sol”;
Inherits:
IPatchworkScopedFunctions
mintPatch
Creates a new token for the owner, representing a patch| Name | Type | Description |
|---|---|---|
to | address | Address of the owner of the patch token |
target | PatchTarget | Path to an 1155 to patch |
| Name | Type | Description |
|---|---|---|
tokenId | uint256 | ID of the newly minted token |
Structs
PatchTarget
A canonical path to a Patched ERC-1155.IPatchworkReversible1155Patch
This is an IPatchwork1155Patch extension to enable reverse lookup.import”@patchwork/contracts/IPatchworkReversible1155Patch/IPatchworkReversible1155Patch.sol”;
Inherits:
IPatchwork1155PatchFunctions
getTokenIdByTarget
Returns the token ID (if it exists) for an 1155 that may have been patchedRequires reverse storage enabled.
| Name | Type | Description |
|---|---|---|
target | PatchTarget | The 1155 target that was patched |
| Name | Type | Description |
|---|---|---|
tokenId | uint256 | token ID of the patch |