* add collateral type field to cdp and collateral param
* fix upstream tests
* fix simulations
* fix validation logic
* update incentive to use collateral type instead of denom
* use collateral type instead of denom in cdp
* remove unused code
* address review comments
* add module accounts command
* update get accounts query to return array of
module accounts instead of map of addresses
* update tests and add update swagger
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
* bump SDK version to v0.38.3
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: denalimarsh <denalimarsh@gmail.com>
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
* fix: use correct path for cdp queries
* fix: avoid params being confused for cdp denom
* fix: use consistent terminology
* fix: struct tag mismatch for repayment
* fix: use plural when querying multiple cdps
* fix: use correct type for query by ratio
* wip: refactor cdp query paths
* wip: routing queries
* fix: route prefixes
* wip: address review comments
* Update x/cdp/client/rest/query.go
Co-Authored-By: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
* use post instead of put
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
* feat: add swagger
* add version info for mainnet
* feat: update swagger
* fix: type in get params path
* feat: example for creating cdp
* feat: example broadcast signed tx
* feat: examples for depositing to cdp
* added README with example cdp create rest-server request (#358)
* fix: make link-check happy
Co-authored-by: Denali Marsh <denalimarsh@gmail.com>
* AugmentedCDP type, codec registration, querier update
* added unique error for augmented cdp loading
* added AugmentedCDPs type for cdps query res
* query results for cdps (by denom) & cdps-by-ratio (by denom & ratio)
* status: converting collateral value into debt coin denom
* collateral value denominated in debt coin
* query cdps-by-ratio now searches by collateralization ratio instead of absolute ratio
* updated alias, code comments
* updated querier tests
* support multiple principal coins and their associated fees
* collateralization ratio calculations on updated fees
* include calculated fees in total debt calculation