Commit e11955a
authored
fix: claimed in staking info endpoint (#1445)
* fix: claimed in staking info endpoint
* fix existing tests
* add test for kusama (includes era 6508)
* updated docs
* implement new logic & update test responses
* add test for partially claimed & overview = null
* updated docs
* output up until 84 eras & update tests
* Remove yarn.lock files from PR
* check before unwrapping & fix types
* run linter
* docs: added links & updated schema description
* updated logic of claimed field for validator account
- removed `partially claimed` value
- added `undefined` value
- updated tests
* fix for claimed in case of validator account
- bringing back `partially claimed` for validator
* moved validator logic in separate function
* adding first draft of nominator logic
* nominator logic when validator era partially claimed
- Added validator and nominator status types to allow specific status values for each
- Updated existing test
* added test for nominator
* run linter
* abstracting logic into separate functions
* add implementation_details guide
* remove docs dist
* kept historical tests data but changed format
* docs small update
* Updated eras section & code comments
* updated cases section in implementation guide
* implemented optimization changes from Filippo
* optimized era and depth calculation
* updated claimedRewards & removed redundant check
* updated eras function
* updated implementation guide based on Filippos questions
* updated the docs
* add code_flow image in guide
* updated copyright1 parent 194f3e7 commit e11955a
File tree
56 files changed
+10463
-1855
lines changed- docs/src
- e2e-tests/historical/endpoints
- kusama/accounts/staking-info
- polkadot/accounts/staking-info
- westend/accounts/staking-info
- guides
- media
- src
- services
- accounts
- blocks
- test-helpers
- mock
- accounts
- data
- responses/accounts
- test-helpers
- metadata
- registries
- types/responses
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+10463
-1855
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
| 419 | + | |
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| |||
2819 | 2820 | | |
2820 | 2821 | | |
2821 | 2822 | | |
2822 | | - | |
| 2823 | + | |
2823 | 2824 | | |
2824 | 2825 | | |
2825 | | - | |
2826 | | - | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
2827 | 2832 | | |
2828 | 2833 | | |
2829 | 2834 | | |
| |||
4822 | 4827 | | |
4823 | 4828 | | |
4824 | 4829 | | |
4825 | | - | |
4826 | | - | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
4827 | 4838 | | |
4828 | | - | |
4829 | | - | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
| 4847 | + | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
4830 | 4852 | | |
4831 | 4853 | | |
4832 | 4854 | | |
| |||
0 commit comments