Commit Graph

591 Commits

Author SHA1 Message Date
Zachary Brown
2e34cc5fe8
Improve the help text for the peer command (#14542) 2023-02-10 17:33:34 -06:00
Arvid Norberg
91923ef8fa
optimize offers (#14531)
cache addition coins in offers, rather than executing the clvm puzzles repeatedly
2023-02-10 15:14:23 -06:00
Jeff
440abe1438
Offer CLI command help now shows --fee units as XCH (#14529)
specify XCH for --fee option to offer commands
show included fees when making an offer with a fee > 0
2023-02-09 16:40:35 -06:00
Adam Kelly
3b932a2c5b
Output proper json (#14451) 2023-02-07 18:23:37 -06:00
Adam Kelly
83c864b2f0
Correct fee estimate calculation to be in mojos, not millimojos (#14474) 2023-02-04 14:09:39 -06:00
Jeff
c107001334
Add SigningMode and update verify_signature RPC to work with sign_message_by_* RPCs (#14213)
* Updated `verify_signature` RPC to support signatures made by `sign_message_by_*` RPCs

* Updated RPC to use "signing_mode" param name with value "chip_0002"
Added CHIP_0002_SIGN_MESSAGE_PREFIX string constant

* Tests for verify_signature

* Update chia/wallet/wallet.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Adds SigningMode enum with CHIP-0002 and BLS message augmentation schemes
chia keys sign/verify support JSON output
chia keys verify now accepts the -b as_bytes option

* Fix a mypy warning

* Updated link to CHIP-0002

* isort

* Fix tests

* improve error handling

* comment how test data was generated

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-01-25 12:44:37 -06:00
Jack Nelson
99fbb056e1
Fix chia wallet coins cli bugs (#14388)
* fix fee bug

The fee should not be taken into account when dealing with CAT's or other non XCH coins.

* fix broken CAT removals

it was never implemented ...

* Update wallet_rpc_api.py
2023-01-24 19:33:25 -06:00
Matt Hauff
6d44c96ea4
Make the --id flag on cancel_offer required (#14376)
Make the --id flag on cancel_offer required
2023-01-20 12:02:40 -06:00
Adam Kelly
e59666b319
Improve command line info display for fee estimation (#14336)
* Improve command line info display for fee estimation

* Update test
2023-01-13 12:23:22 -06:00
Jack Nelson
1796206f25
Fix fee and unit amounts when coin splitting or viewing coins (#14172)
* fix fee ammt

* remove unit type

* fix fee calc

* Revert "Merge commit '30b9173eb205db5476b72bba8ef61dd2c3d34645' into checkpoint/main_from_release_1.6.2_30b9173eb205db5476b72bba8ef61dd2c3d34645"

This reverts commit 9884a729ac, reversing
changes made to 39d733599d.

* clear up cli args

* Update coins.py

* fix lint

* add seperate error for only 1 coin with combine.
2023-01-06 12:05:17 -06:00
Kyle Altendorf
ccfaca8060
make wallet rpc client wallet id parameters accept int, not str (#14200)
* make wallet rpc client wallet id parameters accept int, not str

* Update chia/cmds/wallet_funcs.py
2022-12-22 00:12:33 -06:00
Earle Lowe
3140c223bd
TechDebt: add get_name to WalletProtocol (#13995)
* add get_name to WalletProtocol

* remove async from did_wallet::get_name

* Return "Standard Wallet" for get_name
2022-12-20 13:26:06 -06:00
Amine Khaldi
9884a729ac
Merge commit '30b9173eb205db5476b72bba8ef61dd2c3d34645' into checkpoint/main_from_release_1.6.2_30b9173eb205db5476b72bba8ef61dd2c3d34645 2022-12-17 12:57:33 +01:00
Amine Khaldi
22a94594f3
Merge commit '69501ae22a2aeddc705633b9997a909971799f8a' into checkpoint/main_from_release_1.6.2_69501ae22a2aeddc705633b9997a909971799f8a 2022-12-16 21:40:40 +01:00
Amine Khaldi
2b39b831c0
Merge commit '29590b86a5d41b5ea6da0f45f4b80bceb916e7b9' into checkpoint/main_from_release_1.6.2_29590b86a5d41b5ea6da0f45f4b80bceb916e7b9 2022-12-16 15:40:33 +01:00
Amine Khaldi
4a54941c50
Merge commit '81965c6dd57944294bb030e95f59ee0c8c9e94c4' into checkpoint/main_from_release_1.6.2_81965c6dd57944294bb030e95f59ee0c8c9e94c4 2022-12-15 11:55:19 +01:00
Earle Lowe
30b9173eb2
Remove wallet coins list/split/combine options (#14132) 2022-12-13 18:47:07 -06:00
Earle Lowe
69501ae22a
Fees should always be in XCH mojos units (#14127)
Fees are always XCH mojos
2022-12-13 17:02:18 -06:00
Almog De Paz
b5f44027dd
don't throw unnecessary exception on peer connect (#14108)
don't throw unnecessary exception
2022-12-13 01:29:05 -06:00
Earle Lowe
29590b86a5
Cleanup cli options for chia wallet coins {list,split,combine} (#14102)
* Cleanup options

* Various fixes

* List instead of Tuple
2022-12-12 09:49:37 -06:00
Earle Lowe
81965c6dd5
fix for short option collision (#14100)
* fix for short option collision

* Use coins_to_exclude as variable name

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* match click with parameter

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-12-09 19:22:57 -06:00
Kyle Altendorf
21cd8305f5
Make --number-of-coins required for the chia coins split CLI (#14072) 2022-12-07 20:45:38 -06:00
Jack Nelson
998ef392d9
fix coin selection cli decimal handling & splitting issue (#13908)
* we want to only use new addrs

* change to decimals on coin list output

* Revert "we want to only use new addrs"

This reverts commit 1d7a8f965f.

* resolve duplicate ph's by checking for them when adding them to spend bundle.

* isort

* Update chia/cmds/wallet_funcs.py

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>

* clear up code

* Update chia/cmds/coin_funcs.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* remove second loop

* remove unique addresses

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-12-07 20:06:21 -06:00
Jeff
ca536d7002
Display key labels when making a wallet key selection (#13936)
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-11-22 15:34:53 -06:00
jcteng
5858a84ae2
Windows: start daemon without a window and detached from current console (#9697)
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2022-11-22 15:32:00 -06:00
Jack Nelson
fb72a2558d
Add --fingerprint option to chia keys show (#13909)
* add fingerprint option to keys func

* rename func

* add fingerprint to cli tests

* Update tests/core/cmds/test_keys.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-11-18 10:51:02 -06:00
dustinface
2e2c297a80
util: Remove legacy keyring support (#13398) 2022-11-18 10:33:18 -06:00
dustinface
977d2e97cd
isort: Remove all chia.cmds exceptions and sort the related files (#13940) 2022-11-17 15:32:03 -06:00
Almog De Paz
ac2203eda8
Refactor test utils for import availability outside of repo (#13880)
* refactor for import availability outside of repo

* refactor for import availability outside of repo

* small revert

* newline

* fix imports

* fix pre-commit issues

* types issort, adapt mypy ignore

* redundant imports

* move files from util to simulator

* run pre_commit

* remove setup_nodes/keyring from isort.cfg

* fix asyncio import
2022-11-15 18:51:05 -06:00
Jack Nelson
72e83181cb
add target_coin amount to coin selection cli (chia wallet coins) (#13716)
* add target_coin ammt to wallet coin combine func

* fix slight bugs
2022-11-10 03:03:59 -06:00
Kyle Altendorf
095b9c337e
adjustments for new mypy (#13859)
* adjustments for new mypy

* assert something
2022-11-07 17:38:40 -06:00
Amine Khaldi
aa61fb71bf
Merge commit '7df5d336fed740c12084e6b266401f800c07e4a4' into checkpoint/main_from_release_1.6.1_7df5d336fed740c12084e6b266401f800c07e4a4 2022-11-01 21:58:56 +01:00
Amine Khaldi
8e986f3ccf
Merge commit 'f82c962bb08dca110a47d9ec54dfe78c409bc68b' into checkpoint/main_from_release_1.6.1_f82c962bb08dca110a47d9ec54dfe78c409bc68b 2022-11-01 19:31:59 +01:00
Amine Khaldi
445555a74e
Merge commit '5a955c2ed63f1232b35de833fdb17c1efe946459' into checkpoint/main_from_release_1.6.1_5a955c2ed63f1232b35de833fdb17c1efe946459 2022-11-01 19:02:41 +01:00
Amine Khaldi
f50e154910
Merge commit '0d8b5ab7631a9716e29359c1f37cddb820483ace' into checkpoint/main_from_release_1.6.1_0d8b5ab7631a9716e29359c1f37cddb820483ace 2022-11-01 18:06:48 +01:00
Kyle Altendorf
7df5d336fe
fix chia show -s with other options as well (#13738)
Regression introduced in b2c058970f results in `chia show -s` combined with anything else only showing the state regardless.
2022-10-28 23:56:51 -05:00
dustinface
f82c962bb0
cmds: Adjust default log level for chia plots (#13731) 2022-10-28 16:05:03 -05:00
William Allen
0986e488db
Updating old reference to chia peer -a (#13710)
* Updating old reference to chia peer -a

* Update chia/cmds/show_funcs.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-10-28 16:04:34 -05:00
Kyle Altendorf
5a955c2ed6
Revert "Fixed an issue where chia plotters command showed stack trace (#13734)" (#13743)
This reverts commit 0d8b5ab763.
2022-10-28 15:12:04 -05:00
Florin Chirica
ed55423db6
Add atari get sync status RPC. (#13440)
* Add atari get sync status RPC.

* Try to fix test.

* Try to fix test.

* Some fixes.

* Update tests/core/data_layer/test_data_rpc.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-10-28 15:05:03 -05:00
Izumi Hoshino
0d8b5ab763
Fixed an issue where chia plotters command showed stack trace (#13734) 2022-10-28 11:22:20 -05:00
Jack Nelson
e8ff7ea9a4
Coin Selection CLI / RPC Expansion (#13325)
* add max coin amount everywhere

* add excluded amounts to bare minimum

offers really does not need it passed.

* add excluded coin ids

* finish rpc stuff

* finalize commands

add coins command group & expand various coin selection methods

* fix argument processing & clean up code

* fix grammer

* small miss

* Update wallet_rpc_api.py

* fix test

* add combination command

* fix error

* move command group

* add new built in funcs for direct wallet coin searches.

* add get coin rpc

* add last command

* switch to pageable function

* fix args

* expand multi rpc call and tests

+ fix other things

* da lint

* add reverse coin sorting and ability to select coins

* Update wallet_state_manager.py

* fix types

* align with protocol

* fix asserts

* fix imports

* isort

* Update wallet_coin_store.py

* Update wallet_rpc_api.py
2022-10-24 14:03:53 -05:00
Amine Khaldi
26a2d07d86
Merge commit 'fa72e1e3adda460c3564c451b3aaf1bf6d7f73e9' into checkpoint/main_from_release_1.6.1_fa72e1e3adda460c3564c451b3aaf1bf6d7f73e9 2022-10-24 16:59:02 +01:00
Jack Nelson
4d890fc53e
small correction for unintentional change in cli (#13669)
* Update cmds_util.py

* fix lint
2022-10-19 23:23:35 -05:00
Karlkim Suwanmongkol
a3c4c2367a
chia keys show --json (display all keys as json) (#13637)
* chia keys show --json (display all keys as json)

* black (linting) chia keys show --json (display all keys as json)

* output a root object containing the keys array

* support key with empty label

* add test_show_json and test_show_mnemonic_json to test_keys

* chia keys show --json -- do not format json output

* tests/core/cmds/test_keys.py -- result.output.find(<value>) != -1

* tests/core/cmds/test_keys.py -- result.output.find(<value>) != -1 -- black

* Pass root_path in show_all_keys and fix tests

Co-authored-by: Jeff Cruikshank <jeff@chia.net>
2022-10-19 17:41:03 -05:00
Jack Nelson
769d9e2e2f
Clean up data layer code to use the standard cli client (#13586)
* add datalayer rpc  to async generator

* change datalayer to use proper generator

* fix fee

* lint
2022-10-19 17:02:05 -05:00
Earle Lowe
fa72e1e3ad
re-add type=SortKey for click 8 (#13663) 2022-10-19 14:33:42 -05:00
Adam Kelly
73e9d15cf7
Fee estimation. (#13645) 2022-10-18 09:12:22 -05:00
Earle Lowe
da3b2c3749
Set the type correctly for click (#13644) 2022-10-17 18:58:18 -05:00
Kyle Altendorf
5b3a8725ba
use @asynccontextmanager for chia.cmds.get_client() (#13580) 2022-10-05 11:05:29 -05:00