Skip to content

feat(Royalty): add batch_claim_all_revenue functionality#199

Merged
chao-peng-story merged 1 commit intomainfrom
feature/batch-claim-all-revenue
Mar 3, 2026
Merged

feat(Royalty): add batch_claim_all_revenue functionality#199
chao-peng-story merged 1 commit intomainfrom
feature/batch-claim-all-revenue

Conversation

@chao-peng-story
Copy link
Collaborator

Implemented batch_claim_all_revenue method to claim revenue from multiple ancestor IPs in a single operation, with support for both sequential and multicall modes.

Changes:

  • Added multicall and build_multicall_transaction methods to RoyaltyWorkflows_client
  • Implemented batch_claim_all_revenue in Royalty resource with:
    • Support for single or multiple ancestor IPs
    • Optional multicall mode for batching multiple claims
    • Token aggregation by claimer and token address
    • Auto-transfer and auto-unwrap functionality
  • Added _encode_transaction_data() for multicall encoding to avoid premature gas estimation
  • Added 4 unit tests covering various batch claim scenarios
  • Added 2 integration tests for single and multiple ancestor scenarios

Implemented batch_claim_all_revenue method to claim revenue from multiple ancestor IPs
in a single operation, with support for both sequential and multicall modes.

Changes:
- Added multicall and build_multicall_transaction methods to RoyaltyWorkflows_client
- Implemented batch_claim_all_revenue in Royalty resource with:
  - Support for single or multiple ancestor IPs
  - Optional multicall mode for batching multiple claims
  - Token aggregation by claimer and token address
  - Auto-transfer and auto-unwrap functionality
- Added _encode_transaction_data() for multicall encoding to avoid premature gas estimation
- Added 4 unit tests covering various batch claim scenarios
- Added 2 integration tests for single and multiple ancestor scenarios
@chao-peng-story chao-peng-story merged commit 558e5cd into main Mar 3, 2026
15 checks passed
@chao-peng-story chao-peng-story deleted the feature/batch-claim-all-revenue branch March 3, 2026 06:00
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