Skip to content

Conversation

@bonnie57
Copy link
Collaborator

@bonnie57 bonnie57 commented Oct 17, 2025

Description

  1. Add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method
  2. Add unit and integration tests

Test Plan

Unit tests

image

Integration tests

image

@bonnie57 bonnie57 changed the title feat: add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method [WIP] feat: add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method Oct 17, 2025
…te_royalty_tokens method to use RoyaltyShareInput for improved type safety
@bonnie57 bonnie57 changed the title [WIP] feat: add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method feat: add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method Oct 21, 2025
@bonnie57 bonnie57 merged commit 3f14cd8 into PYSDK-54 Oct 21, 2025
5 checks passed
@bonnie57 bonnie57 deleted the PYSDK-51 branch October 21, 2025 02:22
bonnie57 added a commit that referenced this pull request Oct 21, 2025
…ute_royalty_tokens method (#150)

* feat: implement NativeRoyaltyPolicy enum and utility function for royalty policy address resolution

* refactor: update royalty share handling by replacing deprecated RoyaltyShare with get_royalty_shares utility function

* refactor: streamline license terms validation in IPAsset class by introducing _validate_license_terms_data method

* feat: implement mint_and_register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method in IPAsset class

* feat: enhance IPAsset class with new test cases for minting, registering IP, and attaching PIL terms with royalty distribution

* feat: add licensing configuration to IPAsset tests and enhance type annotations for clarity

* refactor: move test_mint_and_register_ip_and_attach_pil_terms_and_distribute_royalty_tokens to TestIPAssetMint class for better organization

* docs: improve documentation clarity in IPAsset and royalty utility functions by adding missing punctuation

* feat: add the register_ip_and_attach_pil_terms_and_distribute_royalty_tokens method (#152)

* test: add integration test for registering IP, attaching PIL terms, and distributing royalty tokens in IPAsset class

* feat: add IPMetadataInput and related tests for registering IP with metadata in IPAsset class

* fix: update type annotation for royalty_shares parameter in _distribute_royalty_tokens method to use RoyaltyShareInput for improved type safety
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.

3 participants