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

Add tests for PILicenseTemplate and Licensing Module #332

Merged
merged 6 commits into from
Dec 10, 2024

Conversation

jacqueline-57b
Copy link
Collaborator

@jacqueline-57b jacqueline-57b commented Dec 5, 2024

Description

This pr adds tests for PILicenseTemplate and Licensing Module, includes:

  • PILicenseTemplate
    • Register non-commercial PIL license terms
    • Register commercial use license terms
    • Register commercial remix license terms
    • Register commercial remix license terms with commercialRevShare larger than max value
  • Licensing Module
    • IP Asset attach a license except for default one
    • IP asset owner mint license tokens
    • Non-IP asset owner mint license tokens
    • Mint license tokens with amount 0
    • Mint license tokens with different receivers
    • Register derivative with the license that parent IP attached
    • Register derivative with the license that parent IP doesn’t attached
    • IP asset already attached a non-default license and register derivative
    • License token holder register derivative with the license token

Test Plan

  • Run all e2e tests - npx hardhat test --network odyssey

Related Issue

Notes

@jacqueline-57b jacqueline-57b marked this pull request as ready for review December 6, 2024 07:50
@kingster-will kingster-will merged commit 9d66823 into main Dec 10, 2024
4 checks passed
@kingster-will kingster-will deleted the add-license-tests branch December 10, 2024 14:31
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.

2 participants