Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 copyright
- Loading branch information