0g-chain/x
Derrick Lee f84a8b0be0
Add /cdp/totalPrincipal and /cdp/totalCollateral Endpoints (#1027)
* 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>
2021-10-23 13:09:59 -05:00
..
auction add v0.13 legacy types for kava-5 (#784) 2021-02-02 15:10:57 -07:00
bep3 Misc simulation fixes (#963) 2021-07-15 10:46:56 -05:00
cdp Add /cdp/totalPrincipal and /cdp/totalCollateral Endpoints (#1027) 2021-10-23 13:09:59 -05:00
committee Add No Vote Information to Polling Status for Committee Proposals (#1023) 2021-10-12 09:51:01 -06:00
hard Test Hard module's genesis init/export (#1011) 2021-09-01 13:11:15 +02:00
incentive Remove unnecessary msg field in incentive (#988) 2021-08-10 22:56:19 -06:00
issuance address issues from audit (#793) 2021-02-04 11:35:24 -07:00
kavadist add community multi-spend proposal (#915) 2021-06-02 11:03:25 -06:00
pricefeed fix: return nil instead of empty byte slice (#878) 2021-03-15 08:41:36 -06:00
swap fix: use correct format for pool names in cli help text (#1016) 2021-09-01 15:12:42 -06:00
validator-vesting Add circulating supply endpoint for SWP (#1015) 2021-09-01 09:21:31 -06:00