Skip to content

Conversation

@Alann27
Copy link
Contributor

@Alann27 Alann27 commented Mar 19, 2025

Summary

  • Added handler of EventRelayMiningDifficultyUpdated
  • Added idx field to Events, Messages and Transactions
  • Fixed bug with applications when an application was being transferred, and it was re-staked then the transfer info was overwritten
  • Added unhandled use case when an application was being delegated to a gateway and the gateway was unstaked, the delegate relation wasn't removed
  • Fixed numClaimedComputedUnits, numEstimatedComputedUnits and claimedAmount of relays entities
  • Updated optimizedBulkCreate util to create a transaction for every batch instead of reuse the transaction of subql to avoid errors when there are too many items to be saved (like in the block 72710)

Issue

Missing event handler of EventRelayMiningDifficultyUpdated and some bugs that were explained in the summary

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

* Added `idx` field to Events, Messages and Transactions
* Fixed bug with applications when an application was being transferred, and it was re-staked then the transfer info was overwritten
* Added unhandled use case when an application was being delegated to a gateway and the gateway was unstaked, the delegate relation wasn't removed
* Fixed `numClaimedComputedUnits`, `numEstimatedComputedUnits` and `claimedAmount` of relays entities
* Updated `optimizedBulkCreate` util to create a transaction for every batch instead of reuse the transaction of subql to avoid errors when there are too many items to be saved (like in the block 72710)
@Alann27 Alann27 added bug Something isn't working enhancement New feature or request labels Mar 19, 2025
@Alann27 Alann27 requested a review from jorgecuesta March 19, 2025 15:37
@Alann27 Alann27 self-assigned this Mar 19, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Shannon Mar 19, 2025
@jorgecuesta jorgecuesta moved this from 📋 Backlog to 👀 In review in Shannon Mar 19, 2025
* Created stake.ts file in types directory
* Throwing error when the transaction fails in `optimizedBulkCreate`
@Alann27 Alann27 requested a review from jorgecuesta March 19, 2025 18:52
@jorgecuesta jorgecuesta merged commit ca42208 into main Mar 19, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Shannon Mar 19, 2025
@jorgecuesta jorgecuesta deleted the feature/adds-EventRelayMiningDifficultyUpdated-handler-and-bug-fixes branch March 19, 2025 19:27
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