Commit Graph

31 Commits

Author SHA1 Message Date
Matt Hauff
aac1792192
Port get_notifications RPC to RPC marshaller (#17283)
* Port get_notifications RPC to RPC marshaller

* Fix test (I hate this)

* Don't use string formatting in SQL query

* rename notification member variable

* Missed a couple?

* Suggestion by @altendky (w/ black fix >:( )
2024-01-23 10:05:39 -08:00
Izumi Hoshino
d4ff6ef448
Fixed an issue where chia wallet did transfer command mistreats the type of fee (#15138)
* Fixed an issue where `did_tranfer_did` mistreated the unit of `--fee`

* Fixed test
2024-01-19 11:37:52 -06:00
Kyle Altendorf
86e4faf654
more pkg_resources in tests (#17225) 2024-01-09 09:09:07 -06:00
Matt Hauff
1a33cfdecc
Add --override flage to make_offer (#17220) 2024-01-05 12:22:06 -08:00
Kyle Altendorf
65dfbbb6aa
add Service type variables for each combination (#16970) 2023-11-30 13:38:38 -06:00
Kyle Altendorf
5484024ef3
move time_out_assert() family back to tests (#16846) 2023-11-16 11:20:18 -06:00
dependabot[bot]
e986d1e3ee
build(deps-dev): bump mypy from 1.5.1 to 1.7.0 (#16788)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-14 12:20:56 -06:00
Arvid Norberg
95e5b97557
Use bls from chia rs (#16715)
* replace blspy imports with chia_rs imports for BLS types

* remove blspy-stubs, since we're dropping the blspy dependency. chia_rs has type stubs already
2023-11-07 09:06:52 -08:00
Kyle Altendorf
b1bdbc40ab
use anyio for tests (#16738)
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2023-11-01 13:04:27 -05:00
Kyle Altendorf
90c1441af0
apply pyupgrade --py38-plus --keep-runtime-typing (#14646) 2023-10-24 12:01:23 -05:00
Kyle Altendorf
4b003ea24a
consistently use CliRunner.invoke(catch_exceptions=False) (#16523) 2023-10-13 15:14:13 -05:00
Geoff Walmsley
75af6a98d8
Dao wallet (#16500)
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
Co-authored-by: Matthew Howard <m.o.howard97@gmail.com>
Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>
Co-authored-by: Karlkim Suwanmongkol <karlkim@gmail.com>
Co-authored-by: Sebastjan Trepca <trepca@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-10-11 14:19:12 -05:00
Earle Lowe
cda2b09d72
Add config option to set rpc timeout and use it for simulator tests (#16545) 2023-10-10 15:03:27 -05:00
Kyle Altendorf
51d3bf018e
Revert "Dao wallet" (#16465) 2023-10-01 11:57:09 -05:00
matt-o-how
810df50bf6
Dao wallet (#15559)
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
Co-authored-by: Geoff Walmsley <geoffwalmsley@gmail.com>
Co-authored-by: Geoff Walmsley <5695735+geoffwalmsley@users.noreply.github.com>
Co-authored-by: Karlkim Suwanmongkol <karlkim@gmail.com>
Co-authored-by: Sebastjan Trepca <trepca@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-09-30 14:24:35 -05:00
Amine Khaldi
b06ea0c6e5
Avoid setting test config items to their default values (#16225) 2023-09-19 08:36:26 -05:00
Matt Hauff
efff83e7be
Add timelock information to Trades and Transactions (#15915) 2023-09-12 11:28:01 -05:00
Kyle Altendorf
4ba48af7a5
DataLayer fingerprint control (#16132)
* preliminary DataLayer fingerprint control implementation

* add cli and tests

* tidy

* catch up with `@pytest.mark.limit_consensus_modes`

* drop unneeded limit consensus modes

* deal with todos
2023-08-30 13:27:01 -05:00
Matt Hauff
6af4f86171
Add extra_conditions as an option to transaction endpoints (#15911)
Add extra_conditions as an argument to all transaction methods
2023-08-29 13:48:16 -05:00
Matt Hauff
a545e6a8a7
Introduce TXConfig and CoinSelectionConfig (#15666)
* Explore TXConfig

* test fixes

* more test fixs

* more test fixs

* Make TXConfig a CoinSelectionConfig subclass

* Move RPC config loading into decorator

* Fix mempool performance test

* Fix wallet sync test

* Fix streamable

* Forgot send_transaction_multi

* Remove potentially_inside_lock change

* Add .override to config object

* A few fixes from review

* Get create_message_spend working with tx_config.reuse_puzhash

* pylint and rebase fixes

* Add tests for CMD loaders

* Add RPC client and tests for cancel_offers endpoint

* Add some coverage

* Fix did test

* Add DID test coverage

* add tests for TXConfig & CoinSelectionConfig

* Add reuse_puzhash to dl wallet test

* Add reuse puzhash to dl_wallet test

* Add test coverage to wallet sync test

* Add more tests for TXConfig

* Add tests for coin_funcs.py

* Add some wallet_funcs tests

* Bad merge

* Fix bad test

* condense cmd tests

* test coverage ignore

* merge fix

* Undo GUI change

* Remove a couple of unused tx_endpoints

* Changes due to (#15846)

* Merge fixes

* new=True

* Fix the coins tests

* Fix DID tests

* Fix NFT tests

* Fix VC tests

* Fix wallet tests

* Delete now uneccessary tests

* Fix bad change
2023-08-18 14:03:37 -05:00
Arvid Norberg
7408225b87
add missing method to FullNodeRpcClient mock (#16095) 2023-08-17 16:42:51 -05:00
Jack Nelson
4ddd542588
Add Wallet CLI Unit tests (#15886)
* add transaction wallet tests

* add all wallet tests

fix ci

fix path for runners

Update cmd_test_utils.py

Update cmd_test_utils.py

fix ci

fix ci pls i swear

* add did command tests

* add nft and coins tests

* move cli command assert to a central place

* switch to combined string assert

* add notifications commands

* add all vc commands

* separate wallet tests

* fix coverage a tad

* switch to central no_confirm & monkey patch it

* remove problamatic options
2023-08-14 10:19:12 -05:00
Matt Hauff
7184e53506
Skip problematic test (#15928) 2023-08-07 11:39:23 -05:00
Arvid Norberg
cb4bade2fe
dataclasses does not allow mutable member initializers (#15879) 2023-07-27 16:05:32 -05:00
Jack Nelson
ed4c5217cc
Add Click CLI Unit Tests (Proof of Concept) (#15746)
* testing utils v1

* testing utils v2

* tests for chia show

* oopsies

* fix chia root not working & rename class

* change to generated full block instead of pre-generated mess

* fix capsys, BASE_LIST and add more comments

* ignore mypy ...
2023-07-25 21:42:52 -05:00
Izumi Hoshino
1f9081a225
Added total_effective_plot_size for get_harvesters RPC API (#15770)
* Added `total_effective_plot_size` for `get_harvesters` RPC API

* Fixed lint error

* Change the type of `total_effective_plot_size` in Receiver to `int`

* Fixed lint error

* Fixed lint error 2

* Changed text

* Added test

* Fixed lint error

* Fixed lint error 2

* Fixed a test issue

* Added config.py to tests/cmds
2023-07-18 12:36:12 -05:00
Kyle Altendorf
e2a5f8d7da
correct sim test to x in a and y in a (#15554) 2023-06-29 20:48:06 -05:00
Jack Nelson
f2cc1f2ea1
Have simulator not rely on chia_root as originally implemented. & fix simulator tests (#15157)
* fix parent path issue

* Update default_root.py

* remove fstring

* Update test-single.yml

* allow for multiple parallel runs
2023-05-17 12:55:12 -05:00
Jack Nelson
432e881439
Make Simulator CLI Tests Less Flaky (#15163)
* make less flaky by adding finally

* add different path for each test

in case path delete fails
2023-05-09 15:15:21 -05:00
Jack Nelson
872f939132
Add Chia Simulator tools directly Into Chia Blockchain (#15005)
* add simulator tool + tests into chia blockchain

add chia dev ...

* isort

* make sim chia root use normal chia root as a part of it

* fix starting path for tests

* cleanup start and stop + cli

* add extra env message

* fix cmds

* update test

* add existing_plots arg

* change to consume_errors

* fix tests

* cleanup cmds_util.py

* cleanup click

* clean up block_tools

dataclass + logic cleanup & tests

* isort block_tools.py
2023-04-19 19:48:21 -05:00
Adam Kelly
db19671827
Check Wallet DB integrity (#14401)
* Check Wallet DB integrity

* Update command line help

* Improve duplicate DerivationPath index error message

* Move tests to chia/tests

* lint

* py init file

* Print WalletType names

* Don't complain about wallets not having derivation entries that don't need them

* Validate addresses used in order

* Update tests with new error output

* Fix check_addresses_used_contiguous in the case when the last address of the previous wallet was unused
2023-02-21 18:35:15 -06:00