Skip to content

feat(IPAsset): add batch_mint_and_register_ip_asset_with_pil_terms method#201

Merged
chao-peng-story merged 1 commit intomainfrom
feature/batch-mint-and-register-ip-asset-with-pil-terms
Mar 3, 2026
Merged

feat(IPAsset): add batch_mint_and_register_ip_asset_with_pil_terms method#201
chao-peng-story merged 1 commit intomainfrom
feature/batch-mint-and-register-ip-asset-with-pil-terms

Conversation

@chao-peng-story
Copy link
Collaborator

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

…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
@chao-peng-story chao-peng-story merged commit 5ea0515 into main Mar 3, 2026
15 checks passed
@chao-peng-story chao-peng-story deleted the feature/batch-mint-and-register-ip-asset-with-pil-terms branch March 3, 2026 06:01
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