Commit ca42208
authored
Added handler of EventRelayMiningDifficultyUpdated and bug fixes (#40)
## 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)1 parent a2a276a commit ca42208
File tree
17 files changed
+517
-111
lines changed- src/mappings
- authz
- poktroll
- primitives
- types
- utils
17 files changed
+517
-111
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| 316 | + | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
| |||
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
| |||
738 | 747 | | |
739 | 748 | | |
740 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
741 | 761 | | |
742 | 762 | | |
743 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
148 | 149 | | |
0 commit comments