IPMetadataProvider.sol
Base contract used for customization of canonical IP metadata.
MODULE_REGISTRY
contract IModuleRegistry MODULE_REGISTRY
Gets the protocol-wide module registry.
_ipMetadata
mapping(address => bytes) _ipMetadata
Maps IPs to their metadata based on their IP IDs.
constructor
constructor(address moduleRegistry) public
getMetadata
function getMetadata(address ipId) external view virtual returns (bytes)
Gets the metadata associated with an IP asset.
Parameters
Name | Type | Description |
---|---|---|
ipId | address | The address identifier of the IP asset. |
Return Values
Name | Type | Description |
---|---|---|
[0] | bytes | metadata The encoded metadata associated with the IP asset. |
setMetadata
function setMetadata(address ipId, bytes metadata) external
Sets the metadata associated with an IP asset.
Parameters
Name | Type | Description |
---|---|---|
ipId | address | The address identifier of the IP asset. |
metadata | bytes | The metadata in bytes to associate with the IP asset. |
Updated 2 months ago