Skip to content

Conversation

@jorgecuesta
Copy link
Collaborator

Summary

To match this changes we needed to update:

  • The proto files
  • The client generated code using buf
  • The handlers of the events affected

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

Alann27 and others added 10 commits July 22, 2025 12:17
…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.
… 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.
@jorgecuesta jorgecuesta requested a review from Alann27 September 22, 2025 16:32
@jorgecuesta jorgecuesta added bug Something isn't working enhancement New feature or request labels Sep 22, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Shannon Sep 22, 2025
@jorgecuesta jorgecuesta mentioned this pull request Sep 22, 2025
10 tasks
@jorgecuesta jorgecuesta merged commit 5701a44 into main Sep 22, 2025
2 of 3 checks passed
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Shannon Sep 22, 2025
@jorgecuesta jorgecuesta deleted the feature/changes-to-match-flatten-events-overnight-fix branch September 22, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants