feat(Royalty): add batch_claim_all_revenue functionality#199
Merged
chao-peng-story merged 1 commit intomainfrom Mar 3, 2026
Merged
feat(Royalty): add batch_claim_all_revenue functionality#199chao-peng-story merged 1 commit intomainfrom
chao-peng-story merged 1 commit intomainfrom
Conversation
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
lucas2brh
approved these changes
Mar 3, 2026
yingyangxu2026
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.
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: