KeyValueResolver.sol

Resolver used for returning values associated with keys. This is the
preferred approach for adding additional attribution to IP that the
IP originator thinks is beneficial to have on chain.

_values

mapping(address => mapping(string => string)) _values

Stores key-value pairs associated with each IP.

setValue

function setValue(address ipId, string key, string val) external virtual

Sets the string value for a specified key of an IP ID.

Enforced to be only callable by users with valid permission to call on behalf of the ipId.

Parameters

NameTypeDescription
ipIdaddressThe canonical identifier of the IP asset.
keystringThe string parameter key to update.
valstringThe value to set for the specified key.

value

function value(address ipId, string key) external view virtual returns (string)

Retrieves the string value associated with a key for an IP asset.

Parameters

NameTypeDescription
ipIdaddress
keystringThe string parameter key to query.

Return Values

NameTypeDescription
[0]stringvalue The value associated with the specified key.

supportsInterface

function supportsInterface(bytes4 id) public view virtual returns (bool)

IERC165 interface support.