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): support custom license templates and decouple terms registration from attachment #123

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

sebsadface
Copy link
Member

Description

This PR introduces support for custom license templates in LicenseAttachmentWorkflows. It removes the needs for license term IDs prediction during signature generation by decoupling license term registration from the registerIpAndAttachPILTerms function.

Key Changes

  • Removed the registerPILTermsAndAttach function from LicenseAttachmentWorkflows.
  • Renamed and refactored:
    • registerIpAndAttachPILTerms is now registerIpAndAttachLicenseTerms.
    • It now accepts a license template and an already registered license term ID, instead of registering new terms internally.
  • Added mintAndRegisterIpAndAttachLicenseTerms to support IP registration for an existing NFT and attaching pre-registered license terms.
  • Updated documentation to reflect these changes.

Test Plan

Refactored tests to align with the updated functionality. All tests pass locally.

Related Issue

Notes

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

@sebsadface sebsadface merged commit 68f4a4a into storyprotocol:main Nov 21, 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 refactor-license 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
2 participants