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

License integration with Royalty module #59

Merged
merged 7 commits into from
Feb 1, 2024

Conversation

jdubpark
Copy link
Contributor

@jdubpark jdubpark commented Feb 1, 2024

This PR integrates the existing Licensing flows with the new Royalty module.

In the UML Policy Framework Manager, derivative IPAssets linked to parents via commercial licenses will be enforced to share any payments received. We utilize a modified version of 0xSplits with a custom Claimer contract by @Spablob to facilitate graph/tree-based license revenue sharing.

In this PR, we will introduce basic integration tests between UML licenses and 0xSplits-based royalty payments. Notably, the most basic integration test, which tests a root-child-child-child (four-level, single-line tree), can be found in test/foundry/integration/big-bang/NftLicenseRoyalty.t.sol.

@jdubpark jdubpark changed the base branch from main to beta-tmp-sdk-rc3 February 1, 2024 21:43
Copy link
Contributor

@Ramarti Ramarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge, but we need to test more royalty configurations in other PRs

- Modify UMLPolicy and framework manager to support multiple royalty
  policies, configured by license policy creation
- Fix tests and scripts affected by the modified UMLPolicyFrameworkManager
  contract & UMLPolicy struct
@jdubpark jdubpark marked this pull request as ready for review February 1, 2024 22:43
@jdubpark jdubpark merged commit 942d129 into storyprotocol:beta-tmp-sdk-rc3 Feb 1, 2024
1 check passed
jdubpark added a commit that referenced this pull request Feb 2, 2024
* test(wip): License with enforced Royalty

* feat: Royalty distribution on Licensing

* docs: Test detail comments

* feat: License Royalty enhancements

- Modify UMLPolicy and framework manager to support multiple royalty
  policies, configured by license policy creation
- Fix tests and scripts affected by the modified UMLPolicyFrameworkManager
  contract & UMLPolicy struct

* fix(test): cont. Change LSClaimer name to resolve conflict

* test: Integration test fix, helper fix, Mock token fix
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