* adding empty query files where we will implement the cli and rest interfaces
* adding querier file
* adding aliases, querier, expected keepers, types, module updates
* starting to work on query
* adding alias for QueryCirculatingSupply
* adding TotalCirculatingSupply type
* adding alias for TotalCirculatingSupply type
* adding QueryCirculatingSupplyCmd to clieng query file
* adding register routes function
* adding rest query handling function, register endpoint
* fix types include statement
* remove unused mux include
* another import fix
* remove unused variable
* adding rest to module
* fix missing variable names
* another missing variable fix
* remove dead code comment
* fix typo in circulating-supply
* fix import
* fix querierroute return to return the module name instead of empty string
* rename function, fix build issue
* return error instead of nil if there is an error
* import types from cosmos sdk, fix return type
* set querier route to module name in key.go
* adding query and rest updates
* aliasing new querying circulating supply function
* directly write output
* fix routes
* adding total supply functionality
* converting from microkava to kava
* Update x/validator-vesting/client/cli/query.go
typo fix
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* feat: update swagger to testnet 4000
* feat: update server to public https address
* fix: use correct method for post price
* feat: move to separate testnet repo
* 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>