* Split bid_duration field into forward/reverse durations
* Update params.go
* Update params_test for forward/reverse bid durations
* Remove duplicated import
* Replace bid duration on place bids
* Fix reversed bid errors
* Update auctions test
* Update bidding test
* Update testutil suite to use default forward/reverse bid durations
* Fix missing ReverseBidDuration param field
* Check if auction is reversed on forward bid
* Add test for conversion to reverse auction that reaches maxbid
* Make proto fields backwards compatible
* Use ForwardBidDuration for debt bid
* Make copy of v16 auction types
this doesn't actually work but keeping it in history
* Disable migrations
* Update debt tests to use forward bid duration
* resolve exhibit 41 - move redundant assignment into if block and only
assign if value is false. No need to assign true to already true value.
* fix exhibit 43 - use existing auctionID variable instead of GetID
* use improved name for auction type in case statemnt
* rename a to auction in PlaceBidSurplus for legibility (part of exhibit 44)
* rename a to auctions in PlaceForwardBidCollateral (part of exhibit 44)
* rename a to auction in PlaceReverseBigCollateral for legibility (part of exhibit 44)
* rename a to auction in PlaceBidDebt for legibility (part of exhibit 44)
* renmae rest of a to auction variables for legibility and resolve exhibit
44
* one missed rename and a typo fix
* 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>
* refactor bidding test
* add some more bid test cases
* add balance checks to bid tests
* add more checks to bid tests
* add min bid increments
* protect against negative lot amounts
* fix params tests
* change endblocker to beginblocker
* update spec
* fix params tests
* fix: update alias
Co-authored-by: Kevin Davis <karzak@users.noreply.github.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>
* 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>
* make auctions not expire without bids
* add events
* improve genesis state validation
* add genesis tests
* update comment
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* add more events attributes
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>