Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(licensing): enable multi-license attachment #128

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

sebsadface
Copy link
Member

Description

This PR introduces support for attaching multiple licenses in the LicenseAttachmentWorkflows and GroupingWorkflows contracts on the main branch.

Key Changes

  • Updated mintAndRegisterIpAndAttachPILTerms, mintAndRegisterIpAndAttachLicenseTerms, and registerIpAndAttachLicenseTerms in LicenseAttachmentWorkflows to support arrays of PIL terms/license template addresses and license term IDs for attaching multiple licenses to a newly registered IP.
  • Updated mintAndRegisterIpAndAttachLicenseAndAddToGroup and registerIpAndAttachLicenseAndAddToGroup in GroupingWorkflows to support arrays of license template addresses and license term IDs for attaching multiple licenses to new group member IPs.
  • Updated registerPILTermsAndAttach in LicensingHelper to manage the registration and attachment of multiple licenses.
  • Removed the unused registerPILTermsAndAttachWithSig function in LicensingHelper.

Test Plan

  • Modified existing tests for LicenseAttachmentWorkflows and GroupingWorkflows to validate the attachment of multiple licenses per function call instead of one.
  • Refactored tests to align with the updated functionality.

Related Issue

Notes

This PR include API changes, and requires updates to downstream integrations.

@sebsadface sebsadface merged commit 027eed9 into storyprotocol:main Nov 26, 2024
3 checks passed
sebsadface added a commit to sebsadface/pp-v1 that referenced this pull request Nov 28, 2024
…teWithSig` (storyprotocol#121)"

This reverts commit a6fbf2c.

Revert "feat(licensing): support custom license templates and decouple terms registration from attachment (storyprotocol#123)"

This reverts commit 68f4a4a.

Revert "feat(licensing): enable multi-license attachment (storyprotocol#128)"

This reverts commit 027eed9.
sebsadface added a commit to sebsadface/pp-v1 that referenced this pull request Nov 28, 2024
…teWithSig` (storyprotocol#121)"

This reverts commit a6fbf2c.

Revert "feat(licensing): support custom license templates and decouple terms registration from attachment (storyprotocol#123)"

This reverts commit 68f4a4a.

Revert "feat(licensing): enable multi-license attachment (storyprotocol#128)"

This reverts commit 027eed9.
sebsadface added a commit that referenced this pull request Nov 29, 2024
…teWithSig` (#121)" (#133)

* Revert "refactor(permission): enable direct function calls via `executeWithSig` (#121)"

This reverts commit a6fbf2c.

Revert "feat(licensing): support custom license templates and decouple terms registration from attachment (#123)"

This reverts commit 68f4a4a.

Revert "feat(licensing): enable multi-license attachment (#128)"

This reverts commit 027eed9.

* test(derivative): fix stack too deep
@sebsadface sebsadface deleted the multi-license-attach branch December 4, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Attaching Multiple Licenses to an IP During Registration
2 participants