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

NameTypeDescription
ipIdaddressThe address identifier of the IP asset.

Return Values

NameTypeDescription
[0]bytesmetadata 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

NameTypeDescription
ipIdaddressThe address identifier of the IP asset.
metadatabytesThe metadata in bytes to associate with the IP asset.