iotaledger / iotaledger/ts-packages

Populate last epoch rewards inside the epoch details page

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
explorer
Dominant language
TypeScript
Stars
3
Forks
3
Avg merge
1d 2h
Merged PRs (30d)
12

Description

In the epoch page, in the participating validators table, we populate as empty the earned rewards. This is because we cant use the `client.queryEvents` function with multiple filters as they are not supported eg

```ts
const validatorEventsResponse = await client.queryEvents({
query: {
And: [
{ MoveEventType: VALIDATORS_EVENTS_QUERY },
{
TimeRange: {
endTime: '1744053576322',
startTime: (1744053576322 + 86400000).toString(),
},
},
],
},
cursor: currCursor,
limit: Math.min(limit, QUERY_MAX_RESULT_LIMIT),
order,
});
```
isnt working so we cant fetch the events in a specific epoch.
Depends on the indexer/fullnode supporting these filters https://github.com/iotaledger/iota/issues/5818

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the epoch details page and inspect the participating validators table and its use of client.queryEvents. Review the limitations described for multiple filters and track issue #5818 for indexer/fullnode support. Done means earned rewards are populated for validators in the last epoch.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.