* auction query fixes
* minor formating tweaks
* add phase info to debt & surplus auctions
* add base auction struct tags
* use module name in querier paths
* update rest tx endoint to use http body
* improve invalid coins error messages
* add rest examples
* align starting auction ID with gov and cdp
* fix cdp test broken by auction ID change
* fix all tests broken by ID change
* 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>
* feat: differentiate auction types when queried
* feat: display auction type
* feat: add phase of collateral auctions
* fix: set reverse phase directly
* feat: revert base auction, use querying specifc structs
* fix: pass auction as interface to handlers
* set reverse phase on max bid (#348)
* Revert "set reverse phase on max bid (#348)" (#351)
This reverts commit 4b855250d529a4cbecb16d9d32b25ffeaffa3a68.
* fix: missing return
* fix: include collateral auction type
* fix: always include phase field for queries
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
* added events, attributes to pricefeed msgs and core functionality
* removed added space
* conditionally emit market_price_updated if price has changed
* updated expiry to Unix format
* add overview and basic structure
* add state and params
* add basic messages
* add state transitions
* add begin block state transitions
* add missing titles
* add concepts
* add events
* update state and concepts
* update for liquidator changes
* update events
* mention module accounts
* update begin block
* update params
* update page numbering
* add fee descriptions
* add broken link linter
* add broken link linter to CI
* move link check to end of CI
* update typo
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* address review comments
* Update x/cdp/spec/06_params.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* Update x/cdp/spec/README.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* Update x/cdp/spec/README.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* make auctions not expire without bids
* add events
* improve genesis state validation
* add genesis tests
* Keeper auctions test, types auctions test, keeper bidding test
* Resolved TODOs, added querier test
* Removed 'import x/liquidator' from keeper_test package for circleci
* Fixes for lack of liquidator module account in tests
* update comment
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* add more events attributes
* feat: add back bidding on closed auction test
* feat: test failed debt/collateral auctions
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Denali Marsh <denalimarsh@gmail.com>