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

Policy compatibility Part1 #61

Merged
merged 9 commits into from
Feb 3, 2024
Merged

Conversation

Ramarti
Copy link
Contributor

@Ramarti Ramarti commented Feb 2, 2024

This PR starts modifying the Policy Frameworks to support validity checks for the viability to set policies, mint licenses and set parents in the connected IP Graph.
LicenseRegistry now

  • Stores separately policies added to an IP by the the owner, and inherited.

  • When adding a new policy, verifies feasibility, asking the policy framework to determine compatibility when a derivative with multiple parents is detected

  • Introducing a new bytes variable (rights) associated to each IpId, so it can be helpful to carry state when iterating over multiple policies when checking

  • We move away from the typical unit test in favor of writing down the human readable test cases, as if it was integration tests, for the UMLPolicyFramework

  • Written down integration test cases

@Ramarti Ramarti marked this pull request as ready for review February 2, 2024 23:27
@Ramarti Ramarti changed the title Policy compatibility Policy compatibility Part1 Feb 2, 2024
contracts/interfaces/licensing/IPolicyFrameworkManager.sol Outdated Show resolved Hide resolved
contracts/modules/licensing/UMLPolicyFrameworkManager.sol Outdated Show resolved Hide resolved
contracts/registries/LicenseRegistry.sol Outdated Show resolved Hide resolved
test/foundry/modules/licensing/README.md Show resolved Hide resolved
test/foundry/modules/licensing/README.md Outdated Show resolved Hide resolved
@Ramarti Ramarti merged commit 752c003 into storyprotocol:main Feb 3, 2024
1 check failed
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.

4 participants