IPatchwork721
Interface for contracts supporting Patchwork metadata standard.
Inherits:
IPatchworkScoped
IPatchworkMetadata
IERC5192
IERC721
Functions
schemaURI
Returns the URI of the schema
Returns
Name | Type | Description |
---|---|---|
<none> | string | string the URI of the schema |
schema
Returns the metadata schema
Returns
Name | Type | Description |
---|---|---|
<none> | MetadataSchema | MetadataSchema the metadata schema |
imageURI
Returns the URI of the image associated with the given token ID
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
<none> | string | string the image URI |
setPermissions
Sets permissions for a given address
Parameters
Name | Type | Description |
---|---|---|
to | address | Address to set permissions for |
permissions | uint256 | Permissions value |
storePackedMetadataSlot
Stores packed metadata for a given token ID and slot
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
slot | uint256 | Slot to store metadata |
data | uint256 | Metadata to store |
storePackedMetadata
Stores packed metadata for a given token ID
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
data | uint256[] | Metadata to store |
loadPackedMetadataSlot
Loads packed metadata for a given token ID and slot
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
slot | uint256 | Slot to load metadata from |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | uint256 the raw slot data as a uint256 |
loadPackedMetadata
Loads packed metadata for a given token ID
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256[] | uint256[] the raw slot data as a uint256 array |
getFreezeNonce
Returns the freeze nonce for a given token ID.
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
nonce | uint256 | the nonce |
setFrozen
Sets the freeze status of a token (ERC-5192).
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
frozen | bool | Freeze status to set |
frozen
Gets the freeze status of a token (ERC-5192).
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | bool true if frozen, false if not |
setLocked
Sets the lock status of a token (ERC-5192).
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | ID of the token |
locked | bool | Lock status to set |
Events
Frozen
Emitted when the freeze status is changed to frozen.
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | The identifier for a token. |
Thawed
Emitted when the locking status is changed to not frozen.
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | The identifier for a token. |
PermissionChange
Emitted when the permissions are changed
Parameters
Name | Type | Description |
---|---|---|
to | address | The address the permissions are assigned to |
permissions | uint256 | The permissions |
SchemaChange
Emitted when the schema has changed
Parameters
Name | Type | Description |
---|---|---|
addr | address | the address of the Patchwork721 |