feat(IPAsset): add batch_mint_and_register_ip_asset_with_pil_terms method#201
Merged
chao-peng-story merged 1 commit intomainfrom Mar 3, 2026
Conversation
…thod Implement batch minting and registering of IP assets with PIL terms attached, based on TypeScript SDK implementation. This method uses multicall to batch multiple mint and register operations in a single transaction. Changes: - Add batch_mint_and_register_ip_asset_with_pil_terms to IPAsset resource - Support encodedTxDataOnly option in mint_and_register_ip_asset_with_pil_terms for multicall batching - Add _parse_tx_license_terms_attached_event_for_ip helper to parse license terms for specific IPs - Add unit tests covering successful batch minting, metadata, recipient, and empty args scenarios - Add integration tests for batch minting with PIL terms and metadata/recipient options - Use allow_duplicates=True in tests to handle duplicate license terms in same NFT collection
yingyangxu2026
approved these changes
Mar 3, 2026
lucas2brh
approved these changes
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement batch minting and registering of IP assets with PIL terms attached, based on TypeScript SDK implementation. This method uses multicall to batch multiple mint and register operations in a single transaction.
Changes: