fix: staking payouts historicApi, and add tests (#762)
* staking payouts historicApi * start tests * boilerplate for tests * mock data and types for tests * stakingPayouts reponse * mock data for staking payouts * lint eraRewardPoints * setup main test * adjust custom response * generate correct types for mock data * correct nominator data * correct eraRewardPoints * add error tests * fix eraRewardPoints types * add test for extractTotalValidatorRewardPoints * replace EraRewardPoints type * lint * clean empty line * tests for eraExposure * add deriveNominatorExposures for vals and noms * general cleanup, and DRY * add polkadot v9122 registry * add docs and switch things over to polkadotV9122registry * lint * fix doc grumbles * Update src/services/accounts/AccountsStakingPayoutsService.spec.ts Co-authored-by: Niklas Adolfsson <[email protected]> * cleanup comments * mapToBe -> mockEraRewardsMap * lint * Update src/services/accounts/AccountsStakingPayoutsService.spec.ts Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: David <[email protected]>