0g-chain/x/cdp/keeper
Denali Marsh e2f515ba9e
Querier improvements: CDP and Auction priority 1 queries (#644)
* query auction by lot owner

* add SavingsRateDistributed to store

* v2cdps: filtered cdps query

* update v2cdps cli examples

* add savings rate dist counter to begin blocker

* implement savings rate dist cli query

* implement cdp REST queries

* minor auction CLI/REST updates

* fix auction querier bug

* update REST endpoint to 'cdps'

* update to savings-rate-dist

* update SavingsRateDistributed get/set

* update tests

* fix savings rate dist rounding errors

* 'collateralDenom' -> 'collateralType'

* refactor 'v2cdps' -> 'cdps', add ratio param

* fix augmented CDP type, msg string() method

* fix cdp querier test

* filter query results efficiently

* querier tests

* limit type iteration if owner defined

* improve savings rate dist genesis validation

* default sdk.Dec{} to sdk.ZeroDec in queries

* update condition logic for finding intersection

* fix cdp querier filtering

* Update kava-4 swagger (#653)

* add collateral_type, update cdp params

* savings rate, auctions, get cdps

* drop owner from AuctionResponse

* remove duplicate collateral denom

* update query paths with {collateral-type}
2020-09-16 20:45:10 -04:00
..
auctions_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
auctions.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
cdp_test.go fix: enforce cdp denom matches collateral type (#638) 2020-08-27 07:21:35 -04:00
cdp.go fix: enforce cdp denom matches collateral type (#638) 2020-08-27 07:21:35 -04:00
deposit_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
deposit.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
draw_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
draw.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
fees_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
fees.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
integration_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
keeper_bench_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
keeper_test.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
keeper.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
params.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
querier_test.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
querier.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
savings_test.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
savings.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
seize_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
seize.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00