Skip to content

Conversation

@Alann27
Copy link
Contributor

@Alann27 Alann27 commented Dec 4, 2025

Summary

Recreated index application logic to handle the messages and events that updates suppliers in parallel:

  • Removed unused application handlers and related code.
  • Consolidated application processing into indexApplications.
  • Exported internal utility methods (parseAttribute, getAttributes, etc.) for broader use.
  • Deprecated event/message handling for suppliers now processed via indexApplications.
  • Enhanced modularity for application-related functions.
  • Added missed handling of the burn of stake of the applications by making relays.

Issue

Our previous logic was indexing every application update sequentially, one by one. Also, the stake of the applications was not being burn for them doing relays.

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

- Removed unused application messages and event handlers.
- Consolidated application-specific processing into `indexApplications` at applications.ts.
- Deprecated direct handling of application messages/events outside `indexApplications`.
- Improved modularity for handling application-related functionality.
…/message sorting logic. Improved error handling in `handleAppMsgStake` for missing stake fields. Simplified inflation rate logic in `getGlobalInflationRate` by removing default fallback. Removed duplicate `sortEventsAndMsgs` function definition.
@Alann27 Alann27 requested a review from jorgecuesta December 4, 2025 01:49
@Alann27 Alann27 self-assigned this Dec 4, 2025
@Alann27 Alann27 added the enhancement New feature or request label Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants