Commit Graph
14659 Commits
Author SHA1 Message Date
0970ba70da Fix backwards compatibility for add_private_key (cherrypick from main) (#18256)
Fix backwards compatibility for `add_private_key` (#18237)

* Fix backwards compatibility for `add_private_key`

* Another backwards compatibility fix

Co-authored-by: Matt Hauff <quexington@gmail.com>
2.4.2-rc1
2024-06-28 11:44:44 -07:00
Kyle AltendorfandGitHub 03e2444f58 avoid some diff coverage processing failures (#18196) 2024-06-28 07:42:06 -07:00
Earle LoweandGitHub abcbb97a53 Update to macos-12 for build and remove macos-11 (cherrypick from main) (#18257)
CHIA-802: Update to macos-12 for build and remove macos-11 (#18238)

* Update to macos-12 for build and remove macos-11

* Update MACOSX_DEPLOYMENT_TARGET
2024-06-27 11:47:22 -07:00
Kyle AltendorfandGitHub b6b61999ea correct more macos casing (#18249) 2024-06-26 09:23:15 -07:00
Matt HauffandGitHub bcbc7a7b50 [CHIA-819] Fix 12-word mnemonic support in keychain (#18246)
Fix 12 word mnemonic support in keychain
2024-06-26 09:22:48 -07:00
9e1a4dceb7 CHIA-732 Optimize min height leaf. (#18123)
* Optimize min height leaf.

* Lint.

* Lint.

* Add tests.

* Lint.

* Lint.

* Parametrize test.

* Lint.

* Update chia/data_layer/data_store.py

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

* Address review comments.

* Report all hashes.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-06-26 09:22:15 -07:00
c25eeb08f7 [CHIA-504] Add support for external signers (PLEASE SQUASH) (#18199)
* Repin hsms

* Add to sdist only allowed list

* Signer protocol tweaks

* Convert wallet RPC client to deserialized types

* Introduce @tx_out_cmd decorator

* Make execute_signing_instructions RPC

* Add transport layer support

* Add signer commands

* Rework wallet execute_signing_instructions

* Inadvertent merge changes

* Fix signer command tests

* Try a different approach: recursive flattening

* Bump hsms

* Add comments

* Test coverage

* Coverage ignores

* Remove inadvertent time traveler

* Bring in lost time traveler

* pylint

* Attempt to make qr test less flaky

* Actually test coverage ignore

* Small refactor for test coverage

* transport -> translation

* missed one

* transport -> translation

* Fix asdict error

* coverage

* Forgoe rotation testing for now

* Test coverage

* jsonify_unsigned_txs -> full_jsonify

* Move a class

* Add better type checking to framework

* explicitly state kwargs on _CommandParsingStage

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

* Address comments by @altendky

* Consolidate add_private_key and add_public_key

* Consolidate get_key_for_fingerprint and get_public_key_for_fingerprint

* Test fix

* Merge fix

* Bad merge

* Bad merge

* oops

* pylint

* Tweak keychain_proxy.get_key_for_fingerprint

* Fix wallet RPC test?

* pragma: no cover

* Redesign clvm_streamable

* Fix test imports

* black

* fix one more test

* Address comments by @altendky

* Test coverage

* bytes32

* Better CLI mnemonic check

* Use functools.partial

* Rename full jsonify to chip 29

* whoops missed a couple

* Better CLI mnemonic check

* black

* pylint

* Missed one

* black

* Farm at least one block

* Revert last change and fix 0 block farming

* black

* bad merge

* Merge fix

* Inadvertent changes

* Inadvertent changes

* Syncronize with quex.tx_out_decorator2

* These are no longer dictionaries.

* Use new clvm_streamable pattern

* Fix offer endpoint

* Add @tx_out_cmd decorator

* Bump ecdsa version

* Fix @marshal util to return proper transactions

* Add get_public_key

* port `chia wallet send` to @tx_out_cmd

* merge fix of puzzle hash derivation

* Port `chia wallet coins` to @tx_out_cmd

* Port chia wallet clawback to @tx_out_cmd

* Port `chia wallet take/cancel_offer` to @tx_out_cmd

* Port `chia wallet did ...` to @tx_out_cmd

* Port `chia wallet nft ...` to @tx_out_cmd

* Port `chia wallet notifications send` to @tx_out_cmd

* Port `chia wallet vcs ...` to @tx_out_cmd

* Port `chia dao ...` to @tx_out_cmd

* Exclude data layer and plotnft functions

* [no ci]

* Address comments by @AmineKhaldi

* Fix rpc util

* add test for BSTLSigningInstructions

* [UNDO] d9c6f54398

* [UNDO] 7fc1d2adfd

* [UNDO] 23c9ee8549

* [UNDO] aacc9f0228

* [UNDO] 548465403b

* Undo unintentional changes

* Stuff that's not part of this

* More stuff that doesn't belong

* One last thing that doesn't belong

* Unintentional change

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-06-26 09:21:33 -07:00
Amine KhaldiandGitHub b705350a9e CHIA-801 Cover AGG_SIG_ME_ADDITIONAL_DATA in message construction for test_agg_sig_illegal_suffix (#18235)
Cover AGG_SIG_ME_ADDITIONAL_DATA in message construction for test_agg_sig_illegal_suffix.
2024-06-25 11:52:09 -07:00
Earle LoweandGitHub 4572390f40 Add 12-word mnemonic known issue (#18245)
* Update CHANGELOG for 2.4.1

* Update some other items int he changelog

* Revert "Update some other items int he changelog"

This reverts commit 047b816cfe.

* changelog updates

* Add 12-word mnemonic known issue

* Update 12-word issue
2.4.1
2024-06-25 10:07:01 -07:00
Jack NelsonandGitHub a447734728 Refactor CLI by adding add new click types for fees, amounts, addresses and bytes32 (#15718) 2024-06-24 16:52:40 -07:00
Earle LoweandGitHub 406550e4cc Resolve light wallet syncing regression (#18236)
* Update CHANGELOG for 2.4.1

* Update some other items int he changelog

* Revert "Update some other items int he changelog"

This reverts commit 047b816cfe.

* changelog updates
2024-06-24 15:29:38 -07:00
Matt HauffandGitHub a83f59bf2b Fix backwards compatibility for add_private_key (#18237)
* Fix backwards compatibility for `add_private_key`

* Another backwards compatibility fix
2024-06-24 15:26:46 -07:00
Matt HauffandGitHub 058b80775a [CHIA-711] Add WalletActionScope (#18125)
* Add the concept of 'action scopes'

* Add `WalletActionScope`

* Add the concept of 'action scopes'

* pylint and test coverage

* add try/finally

* add try/except

* Undo giving a variable a name

* Test coverage

* Ban partial sigining in another scenario

* Make WalletActionScope an alias instead

* Add extra_spends to the action scope flow

* Add test for .add_pending_transactions
2024-06-24 14:34:02 -07:00
Amine KhaldiandGitHub bce4b4a494 CHIA-766 Deduplicate sb mempool asserts (#18175)
Deduplicate sb mempool asserts.
2024-06-24 14:12:20 -07:00
Kyle AltendorfandGitHub a958f80537 remove no-op semver action from rpm build (#18224) 2024-06-24 14:06:12 -07:00
wjblankeandGitHub 7a8489ecc9 Fix for freebsd suggested by user alghmma (#17994)
* fix for freebsd suggested by user alghmma

* fix copy paste
2024-06-24 13:56:04 -07:00
Amine KhaldiandGitHub 9abedb578b CHIA-765 Add the ability to set a fee in make_item (#18174)
Add the ability to set a fee in make_item.
2024-06-24 13:54:42 -07:00
Florin ChiricaandGitHub 20fb8b223f DL query multiple ancestors in upsert. (#18146) 2024-06-24 13:54:13 -07:00
Matt HauffandGitHub 6ed262e3fb [CHIA-690] Add offer expiration to CLI (#18193)
* Add offer expiration to CLI

* Add timezone information
2024-06-24 13:53:59 -07:00
Izumi HoshinoandGitHub 2e82142396 Fixed an issue where npx --no lerna clean -f didn't work (#18232)
Fixed an issue where npx --no lerna clean -f didnot work
2024-06-24 11:10:57 -07:00
Earle LoweandGitHub 4671193cbc CHIA-802: Update to macos-12 for build and remove macos-11 (#18238)
* Update to macos-12 for build and remove macos-11

* Update MACOSX_DEPLOYMENT_TARGET
2024-06-24 11:05:23 -07:00
Earle LoweandGitHub 4b2f9f0c7e Revert "use rust types for RecentChainData, ProofBlockHeader and WeightProof" #17738 (#18231)
Revert "use rust types for RecentChainData, ProofBlockHeader and WeightProof …"

This reverts commit 3f0d5c070b.
2.4.1-rc1
2024-06-21 18:02:55 -05:00
Kyle AltendorfandGitHub 7c54e60910 correct release case on mac (#18227)
* correct gh release upload casing of macos torrent file

(cherry picked from commit 310dbdd648)

* correct s3 upload case
2024-06-21 15:33:31 -05:00
Kyle AltendorfandGitHub eefca33875 Revert "Revert "Revert "CHIA-414 fixup datalayer benchmark""" (#18223)
Revert "Revert "Revert "CHIA-414 fixup datalayer benchmark"" (#18107)"

This reverts commit e87d51a993.
2024-06-21 15:32:39 -05:00
Amine Khaldi 63e6d92b34 Update anchor against GUI's main. 2024-06-21 16:59:04 +01:00
Amine KhaldiandGitHub 1d20bf336b CHIA-764 Make mk_item aware of bundle_coin_spends (#18173)
Make mk_item aware of bundle_coin_spends.
2024-06-21 09:04:46 -05:00
Amine KhaldiandGitHub c5e7a02116 CHIA-763 Inline additions_for_npc into MempoolItem's additions (#18172)
Inline additions_for_npc into MempoolItem's additions.
2024-06-21 09:04:36 -05:00
Amine KhaldiandGitHub 495d401cf1 CHIA-736 Annotate trade_manager.py (#18138)
Annotate trade_manager.py.
2024-06-21 08:59:52 -05:00
Matt HauffandGitHub 6ed1fb02bd [CHIA-754] Use tx_config in cancel_pending_trades (#18169)
Use tx_config in cancel_pending_trades
2024-06-21 08:59:11 -05:00
Matt HauffandGitHub ff3067815b (pylint) == -> is (#18207)
`==` -> `is`
2024-06-20 09:58:03 -05:00
Amine KhaldiandGitHub e0c36e8afd CHIA-767 Simplify invariant_check_mempool (#18176)
Simplify invariant_check_mempool
2024-06-20 08:10:14 -05:00
Amine KhaldiandGitHub 750b6ded1a CHIA-617 Annotate test_mempool.py (#18136)
Annotate test_mempool.py.
2024-06-20 08:09:47 -05:00
Amine Khaldi ec4401ec87 Merge commit '786cb31fda9541a64628f9b0f5535f6bfc4ffc9e' into checkpoint/main_from_release_2.4.0_786cb31fda9541a64628f9b0f5535f6bfc4ffc9e 2024-06-18 21:42:50 +01:00
Earle LoweandGitHub 4ce568b129 Update Changelog for 2.4.0 release (#18200)
* 2.4.0 changelog

* minor update

* minor updates
2.4.0
2024-06-18 14:26:50 -05:00
Kyle AltendorfandGitHub e87d51a993 Revert "Revert "CHIA-414 fixup datalayer benchmark"" (#18107)
* Revert "Revert "CHIA-414 fixup datalayer benchmark" (#18054)"

This reverts commit b49eb0a892.

* repeats

* report coefficients

* hardcode timeout

* 5

* no benchmarks

* 0.6

* repeat name

* format_number()

* higher limits

* 10x

* tidy
2024-06-18 14:25:34 -05:00
Kyle AltendorfandGitHub 60ae4bc384 CHIA-420 remove coroutine never awaited warning ignore (#18113)
remove coroutine never awaited warning ignore
2024-06-18 14:25:20 -05:00
Kyle AltendorfandGitHub 74b86c0001 remove unused tree_id parameter from DataStore.batch_upsert() (#18137) 2024-06-18 14:24:42 -05:00
Kyle AltendorfandGitHub 3061cd83d7 remove some pylint ignores (#18140) 2024-06-18 14:24:30 -05:00
Kyle AltendorfandGitHub 570d616cb9 add install action editable option test (#18168)
* add install action editable option test

* fixup

* job name

* shooby-doowah
2024-06-18 14:24:13 -05:00
Izumi HoshinoandGitHub 7034c04bfa Removed lerna from build_scripts (#18180)
* Removed `lerna` from build_scripts

* Fixed an issue where `electron-builder` in unexpected path was executed

* Fixed lint errors

* Use foreground-scripts with initial npm ci to see if it resolves strange mac dlopen problemFixed lint errors

* Removed `--foreground-scripts` from `npm ci`
2024-06-18 14:23:55 -05:00
Kyle AltendorfandGitHub a9dfc7589f avoid interpolating values into sql queries (#18181)
* avoid interpolating values into sql queries

* Update data_store.py
2024-06-18 14:23:18 -05:00
Chris MarslenderandGitHub 51cc569654 checkpoint: into main from release/2.4.0 @ 8893f13d07 (#18198)
Source hash: 8893f13d07
Remaining commits: 0
2024-06-18 14:22:49 -05:00
Matt HauffandGitHub 3637bd33c6 Delete chia.util.misc (#18170)
* Move VersionedBlob to chia.util.streamable

* Move format_bytes to chia.cmds.cmds_util

* Move format_minutes to chia.cmds.cmds_util

* Move prompt_yes_no to chia.cmds.cmds_util

* Move get_list_or_len to from chia.plot_sync.receiver

* Move validate_directory_writable to chia.cmds.cmds_util

* Move *termination_signals to test_services

* Move UInt*Range to chia.util.streamable

* Create chia.util.batches

* Create chia.server.signal_handlers

* Create chia._tests.util.split_managers

* Move ValuedEvent to chia.types.transaction_queue_entry

* Move available_logical_cores to chia.util.cpu

* Move caller_file_and_line to chia._tests.util.misc

* Move satisfies_hint to chia._tests.wallet.test_singleton_lifecycle_fast
2024-06-18 08:27:17 -05:00
Matt HauffandGitHub a36c0b822e [CHIA-710] Add the concept of 'action scopes' (#18124)
* Add the concept of 'action scopes'

* pylint and test coverage

* add try/finally

* Address comments by @altendky

* Address comments by @altendky

* 86 memos

* Only one callback

* pylint

* Address more comments by @altendky

* remove unused variable

* add comment
2024-06-17 18:00:59 -05:00
Earle LoweandGitHub 786cb31fda updated gui to electron 30.0.9 (#18194)
* update GUI pin to electron 30.0.9 55cdd0351eec1e7da8977d31b09c0e4d5a1f7a79

* Update GUI pin to merged commit hash for 30.0.9
2.4.0-rc3
2024-06-17 17:40:12 -05:00
Amine Khaldi b6fd5758e8 Merge commit '8893f13d075adc150e4ee4511f85b359533f9cc0' into checkpoint/main_from_release_2.4.0_8893f13d075adc150e4ee4511f85b359533f9cc0 2024-06-17 23:24:08 +01:00
Matt HauffandGitHub a6fca99e6f Remove chia.clvm.singleton (#18163)
Remove chia.clvm.singleton
2024-06-17 11:58:20 -05:00
Chris MarslenderandGitHub 84623cefa5 checkpoint: into main from release/2.4.0 @ 866493af56 (#18185)
Source hash: 866493af56
Remaining commits: 0
2024-06-17 11:57:56 -05:00
8893f13d07 updated gui to 5d6442180f9ddfda756c0c89de5ed56f2f225f06 (#18183) (#18187)
Co-authored-by: Mark Elrod <elrod@shallowpool.com>
2.4.0-rc2
2024-06-15 15:13:36 -05:00
Mark ElrodandGitHub 9d8edc5570 updated gui to 5d6442180f9ddfda756c0c89de5ed56f2f225f06 (#18183) 2024-06-14 20:20:10 -05:00