-
Notifications
You must be signed in to change notification settings - Fork 0
Optimize balance handling, fix indexing, and update to poktroll events #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jorgecuesta
merged 10 commits into
main
from
feature/changes-to-match-flatten-events-overnight-fix
Sep 22, 2025
Merged
Optimize balance handling, fix indexing, and update to poktroll events #60
jorgecuesta
merged 10 commits into
main
from
feature/changes-to-match-flatten-events-overnight-fix
Sep 22, 2025
Conversation
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
…oktroll#1672 PR where `Coin` attributes where changed to `string` in the following format `121upokt`
…pr. - Refactored claim attribute handling for streamlined processing and improved data extraction. - Added improved support for managing new schema fields such as `sessionEndBlockHeight`, `serviceId`, `proofValidationStatus`, and more. - Optimized `EventClaimSettled` and `EventSupplierSlashed` mapping logic by introducing better handling for missing or optional attributes. - Updated protobuf definitions to align with new requirements and added missing fields to several event messages.
- Added support for `rewardDistribution` to handle cases where `settlementResult` is undefined. - Introduced handling for mint, burn, and module-to-module transfers within settlement logic. - Updated `getDenomAndAmount` utility to account for parsing errors and ensure robust handling of string inputs.
…when directly available.
… and `operator_address` keys for improved flexibility.
…extraction logic, ensuring accurate matching of `service`, `app`, and `supplier` attributes.
…te parsing - Refactored functions to properly handle `EventClaimUpdated` and `EventClaimSettled` scenarios. - Improved validations and added detailed error logs for claim-related processing, offering better debugging insights. - Fixed attribute handling and parsing for claims, proofs, and slashing events. - Updated several utility function calls with consistent formatting and better error management logic.
- Replaced `nativeBalanceChanges` with direct updates to `Balance` entities. - Optimized bulk balance updates using `updateBalances`. - Removed unused functions and types associated with `NativeBalanceChange`.
- Dropped `nativeBalanceChanges` field in `Account`. - Updated balance handling logic to dynamically check conditions and skip unnecessary updates. - Consolidated balance update logic to optimize performance.
- Removed redundant promises array and streamlined update method. - Added block record removal logic before saving updates. - Ensured consistent block range assignment during bulk creation for optimized balance handling.
10 tasks
Alann27
approved these changes
Sep 22, 2025
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.
Summary
NativeBalanceChangesince was not used and slowing down the entire processEventClaimSettledpoktroll#1682To match this changes we needed to update:
Type of change
Select one or more:
Sanity Checklist