chia-blockchain/tests/wallet
Jeff d136b84498
Fixed Offer history limit and GUI sorting (#10025)
* trade_store: Migrated the `is_my_offer` property from the serialized
trade_record to a new `is_my_offer` column in the trade_records table.
Rewrote get_trades_between to move the query/sorting into the database.
This supports the presentation of offers in the GUI (two lists sorted by
relevance).

RPC: get_all_offers now accepts options to restrict the listing to
completed offers, my offers, taken offers. Added get_offers_count call
to return a breakdown of the number of offers (my offers, taken offers,
total).

CLI: Updated `chia wallet get_offers` to include options to exclude
created/taken offers, as well as an option to reverse the listing. The
-ia|--include-all option has been renamed -ic|--include-completed to
make sense in the context of the --exclude-[my-offers|taken-offers]
options. The full listing is now output, fixing the issue with hitting
the prior paging cap of 50 records.

* Linter fixes

* Updated trade tests. Fixed reverse sort when ordering offers by relevance.

* Make column spec explicit on insert to better support possible future migrations. If a future migration adds a new column with a default value, inserts/updates made by an older client will fail unless the insert explicitly indicates which columns are being updated. By explicitly listing the columns to update, any unspecified columns will have their default value applied.
2022-01-31 18:48:05 -08:00
..
cat_wallet Sync improvements (#9974) 2022-01-28 19:16:47 -08:00
did_wallet Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
rl_wallet Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
rpc Fixed Offer history limit and GUI sorting (#10025) 2022-01-31 18:48:05 -08:00
simple_sync Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
sync Sync improvements (#9974) 2022-01-28 19:16:47 -08:00
__init__.py Fix tests. 2020-03-29 15:23:27 -07:00
test_bech32m.py Use sed to change imports from src to chia. 2021-04-04 21:41:39 -07:00
test_chialisp.py Use sed to change imports from src to chia. 2021-04-04 21:41:39 -07:00
test_puzzle_store.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
test_singleton_lifecycle_fast.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
test_singleton_lifecycle.py remove commented-out debug breakpoint()s (#8114) 2021-08-18 10:13:03 -07:00
test_singleton.py Pools mainnet (#7047) 2021-06-29 14:21:25 -07:00
test_taproot.py Use sed to change imports from src to chia. 2021-04-04 21:41:39 -07:00
test_wallet_blockchain.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
test_wallet_interested_store.py Pools mainnet (#7047) 2021-06-29 14:21:25 -07:00
test_wallet_key_val_store.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
test_wallet_store.py Rename src to chia. 2021-04-04 21:41:39 -07:00
test_wallet_user_store.py pool_wallet: Deterministic derivation of auth key, and only count poo… (#9922) 2022-01-30 12:31:55 -05:00
test_wallet.py Sync improvements (#9974) 2022-01-28 19:16:47 -08:00