* Add cdp/totals rest endpoint for aggregated principal and fees
* Add total collateral to aggregated cdp
* Add pagination
* Update totalPrincipal endpoint to use keeper GetTotalPrincipal
* Update documentation for queryGetTotalPrincipal
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* Remove unused AggregatedCDP types
* Make CDP type optional, return all if not provided
* add total collateral endpoint that efficient fetches collateral
for a types, only iterating cdps for types b, etc
* correctly and efficienlty filter for a single collateral type
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
* add no votes information to polling status, updating events and querier
cli/rest responses. This allows clients to differeniate between no and
abstain votes
* update querier test to include no vote assertion
* fix: update supply migration to add swp token supply
* add full migration test with app initialization
* fix: use correct chain-id in test app initialization
* address review comments
* extract hard claim migration function
* tidy up claim delegator index migration
* fix invalid hard claims
* fix comment missed in merge conflict reolution
* fix tests
* minor migration refactor
* overwrite usdx claims with latest reward indexes
* add missing usdx claims in migration
* add script to calculate missing usdx rewards
* generate missing rewards using preliminary data
* add missing usdx rewards in migration
* update missing rewards data to use correct genesis
* test rewards were not decreased
* add tests for missing reward calculations
* clarify function names
* test to assert total new rewards are as expected
* remove unecessary todo item
* implement swp airdrop to usdx depositors to hard
* verify swp airdrop amount, total supply, affected users
* remove unused test code
* add map as go file
* update tests to use stored variable
* re-add snapshot test
* update snapshot testdata
* remove unused code for generating swp airdrop map
* remove snapshot test
* add swp token distribution
* bump test timeouts
* address review comments
* use global variables to simplify testing assertions on swp supply
* optional: swp migration test and small refactor (#1005)
* add test to ensure balances are not decreased
* simplify slice manipulation
* bump context deadline in circleci
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>