Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Identify provenance of license policies added to IP ids #29

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

Ramarti
Copy link
Contributor

@Ramarti Ramarti commented Jan 25, 2024

This difference is useful for license compatibility and derivation.

We add to LicenseRegistry:

mapping(address => bool[]) private _policyPerIpIdSetByLinking;
event PolicyAddedToIpId(address indexed caller, address indexed ipId, uint256 indexed policyId, bool setByLinking);
function isPolicyIdAtIndexSetByLinking(address ipId, uint256 index) external view returns (bool);

Set By linking true means the policy was inherited from parent Ip Id.

@Ramarti Ramarti merged commit fc47b62 into storyprotocol:main Jan 25, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants