Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c65010a
fix: claimed in staking info endpoint
Imod7 Jun 4, 2024
50943e1
fix existing tests
Imod7 Jun 4, 2024
82457aa
add test for kusama (includes era 6508)
Imod7 Jun 7, 2024
9012e24
updated docs
Imod7 Jun 13, 2024
f320c08
implement new logic & update test responses
Imod7 Jun 14, 2024
2aa5996
add test for partially claimed & overview = null
Imod7 Jun 18, 2024
de06c6b
updated docs
Imod7 Jun 18, 2024
8c47eda
output up until 84 eras & update tests
Imod7 Jun 18, 2024
56e3738
merge master, update historical tests & code for lastReward
Imod7 Jun 20, 2024
9e838e8
Remove yarn.lock files from PR
Imod7 Jun 20, 2024
753f3ee
check before unwrapping & fix types
Imod7 Jun 21, 2024
7ac0236
run linter
Imod7 Jun 21, 2024
171e10a
docs: added links & updated schema description
Imod7 Jun 24, 2024
88be07e
updated logic of claimed field for validator account
Imod7 Aug 5, 2024
cd66735
fix for claimed in case of validator account
Imod7 Aug 6, 2024
00a54a0
moved validator logic in separate function
Imod7 Aug 22, 2024
df175e8
adding first draft of nominator logic
Imod7 Sep 16, 2024
0829f44
nominator logic when validator era partially claimed
Imod7 Sep 19, 2024
22ad9f7
added test for nominator
Imod7 Nov 4, 2024
b04c28f
Merged master, resolve conflicts & rebuilt docs
Imod7 Nov 4, 2024
4a2cba0
run linter
Imod7 Nov 4, 2024
343f2cb
abstracting logic into separate functions
Imod7 Nov 5, 2024
af6f130
add implementation_details guide
Imod7 Jan 6, 2025
f0c3e3f
remove docs dist
Imod7 Jan 6, 2025
18e840a
kept historical tests data but changed format
Imod7 Jan 8, 2025
c7b7256
docs small update
Imod7 Jan 8, 2025
9bc1c08
Updated eras section & code comments
Imod7 Jan 10, 2025
9278ed9
updated cases section in implementation guide
Imod7 Jan 10, 2025
31a5fff
implemented optimization changes from Filippo
Imod7 Jan 13, 2025
3b4ffd4
optimized era and depth calculation
Imod7 Jan 14, 2025
b69bebf
updated claimedRewards & removed redundant check
Imod7 Jan 15, 2025
af9a896
updated eras function
Imod7 Jan 15, 2025
1d8c110
updated implementation guide based on Filippos questions
Imod7 Jan 15, 2025
a6d643b
updated the docs
Imod7 Jan 15, 2025
c9cf371
add code_flow image in guide
Imod7 Jan 15, 2025
c218362
merge master & resolve conflicts
Imod7 Jan 16, 2025
029420c
updated copyright
Imod7 Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/dist/app.bundle.js

Large diffs are not rendered by default.

23 changes: 19 additions & 4 deletions docs/src/openapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4259,11 +4259,26 @@ components:
format: unsignedInteger
claimedRewards:
type: array
description: Array of eras for which the stakers behind a validator have
claimed rewards. Only updated for _validators._
description: Array of objects, each containing an `era` and its corresponding `status`,
which represents the rewards status of the stakers backing a validator. Only updated
for _validators._ This array is populated with values from `stakingLedger.legacyClaimedRewards`
or `stakingLedger.claimedRewards`, as well as the `query.staking.claimedRewards` call, depending
on whether the queried block is before or after the migration. For more details on the implementation
and the migration, refer to the related PR and linked issue.
Copy link
Contributor

@IkerAlus IkerAlus Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where/how can the user find the relevant linked info?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added specific links of the PR and linked issue. Let me know if this covers your question. I also updated the schema description since I no longer return lastReward. Changes included in this commit.

items:
type: string
format: unsignedInteger
type: object
properties:
era:
type: string
description: The era for which we check the rewards status.
format: unsignedInteger
status:
type: string
description: The rewards status of the stakers backing a validator.
enum:
- claimed
- unclaimed
- partially claimed
description: The staking ledger.
StakingProgress:
type: object
Expand Down
Loading