MetadataService
Methods
REGISTRY
function REGISTRY() external view returns (address)
Get the registry’s address.
Returns
Name | Type | Description |
---|---|---|
address | address of the registry |
metadataURL
function metadataURL(address entity) external view returns (string value)
Get a URL with an entity’s metadata.
Parameters
Name | Type | Description |
---|---|---|
entity | address | address of the entity |
Returns
Name | Type | Description |
---|---|---|
value | string | metadata URL of the entity |
setMetadataURL
function setMetadataURL(string metadataURL) external nonpayable
Set a new metadata URL for a calling entity.
Parameters
Name | Type | Description |
---|---|---|
metadataURL | string | new metadata URL of the entity |
Events
SetMetadataURL
event SetMetadataURL(address indexed entity, string metadataURL)
Emitted when a metadata URL is set for an entity.
Parameters
Name | Type | Description |
---|---|---|
entity indexed | address | address of the entity |
metadataURL | string | new metadata URL of the entity |