Commit Graph
248 Commits
Author SHA1 Message Date
Matt HauffandGitHub 4ace81ae17 [LABS-294] Add kw_only to all wallet RPC types (#20324)
Add `kw_only` to all wallet RPC types
2026-01-21 09:48:44 -08:00
Matt HauffandGitHub 979cfd1a54 [LABS-307] Extract manual syncing logic out of wallet RPC (#20318)
* Extract manual syncing logic out of wallet RPC

* Fix test

* Inicidental indentation?
2026-01-16 11:17:26 -08:00
Amine KhaldiandGitHub 20f86e15d1 CHIA-3866 Prioritize trusted peers in FullNodeAPI's send_transaction (#20401)
Prioritize trusted peers in FullNodeAPI's send_transaction.
2026-01-14 13:43:45 -08:00
Matt HauffandGitHub 5ed0eeff54 [LABS-302] Forward send_transaction and cat_spend to create_signed_transaction (#20321)
* Pipe `send_transaction` thru `create_signed_transaction`

* Pipe `cat_spend` thru `create_signed_transaction`

* Add back the wallet checks
2026-01-13 14:31:21 -08:00
Matt HauffandGitHub 6a1b2314f8 [LABS-387] Revert accidental RPC parameter name change (#20362)
Revert accidental RPC parameter name change
2025-12-29 10:40:24 -08:00
Earle LoweandGitHub 5727efb904 Fixes to test_long_sync_untrusted_break (#20327)
* Fixes to test_long_sync_untrusted_break

* Address bugbot comments re ip address string

* Remove commented out debug code

* Apply suggestions from bugbot
2025-12-18 08:48:08 -08:00
Arvid NorbergandGitHub aefefb416e bump WEIGHT_PROOF_RECENT_BLOCKS for tests (#20348)
* increase WEIGHT_PROOF_RECENT_BLOCKS in the test constants, to make it more robust

* improve error message when WEIGHT_PROOF_RECENT_BLOCKS is too small

* fix test_wallet_blockchain.py

* fix test_wallet_node.py

* fix test_wallet_sync.py
2025-12-15 09:47:08 -08:00
Matt HauffandGitHub 88e9f78bea [LABS-291] Port get_farmed_amount to @marshal (#20187)
Port `get_farmed_amount` to `@marshal`
2025-12-10 09:57:27 -08:00
Matt HauffandGitHub a745d88961 [LABS-249] Port crcat_approve_pending to @marshal (#20116)
* Port `crcat_approve_pending` to `@marshal`

* Forgot `push=True`
2025-12-09 13:15:55 -08:00
Matt HauffandGitHub 47ed91c8ec [LABS-305] Extract signing functionality from wallet RPC to its own library (#20317)
* Extract `verify_signature`

* Extract `sign_message_by_address`

* Extract (most of) `sign_message_by_id`
2025-12-09 11:28:09 -08:00
Matt HauffandGitHub a05a0c57d2 [CHIA-3707] Port create_new_wallet to @marshal (#20087)
* Add the request types

* Add the request types

* some test fixes

* Add the client ports

* Fix tests

* Add cmd support and fix a test

* Missed a couple

* Add test for `CreateNewWallet.__post_init__()`
2025-12-08 09:31:51 -08:00
Matt HauffandGitHub 8eba5d8490 [CHIA-3686] Port send_transaction_multi to @marshal (#20071)
* Port `send_transaction_multi` to `@marshal`

* test coverage
2025-12-04 09:43:05 -08:00
Matt HauffandGitHub b50d58fc42 Fix flaky test (#20306) 2025-12-04 09:38:41 -08:00
Arvid NorbergandGitHub 426590feaf bump chia_rs and update uses of RewardChainBlock and SubEpochSummary (#20304) 2025-12-03 10:27:55 -08:00
Matt HauffandGitHub b6e8a9e3bc [LABS-303] Simplify spend_clawback_coins (#20300)
* Simplify `spend_clawback_coins`

* specific exception

* Okay not so fancy

* Couple of tests
2025-12-02 10:14:38 -08:00
Matt HauffandGitHub f0a141f688 [CHIA-3687] Port create_signed_transaction to @marshal (#20067)
* Port `create_signed_transaction` to `@marshal`

* Hack in the old interface for `send_transaction_multi`

* Bad rebase
2025-12-01 18:01:45 -08:00
8315f62ae6 Import check_time_locks() and CoinRecord (#19848)
* initial commit

* fix int to bool map

* another int bool map

* cast error to Err class

* cast to Err in a couple other places

* remaining couple

* ruff

* inline coinstore bool

* typing fixes

* import directly from rust and remove legacy file

* fix lingering ref to coinrecord

* another outdated import

* ruff

* typping fix

* minor simplifications

* Fix test

* fix import merge

* address comments

* undo coin_store change

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
Co-authored-by: Matt <quexington@gmail.com>
2025-11-26 12:48:42 -08:00
Matt HauffandGitHub cdd19fb35c [LABS-301] Extract split_coins and combine_coins RPCs to WalletStateManager (#20290)
* Extract `split_coins` to `WalletStateManager`

* Extract `combine_coins`

* < 2
2025-11-25 11:58:56 -08:00
Matt HauffandGitHub be744cab12 [LABS-298] Simplify push_transactions (#20279)
* Simplify `push_transactions`

* Further simplify
2025-11-25 11:58:12 -08:00
Matt HauffandGitHub bc957225e7 [LABS-288] Less asset_id: str (#20261)
* Less `asset_id: str`

* Missed a couple

* Missed a couple more

* Missed another?
2025-11-25 11:37:48 -08:00
Matt HauffandGitHub 2b3c11e170 [CHIA-3610] Port cancel_offer(s) to @marshal (#20066)
* Port `cancel_offer` to `@marshal`

* Port `cancel_offers` to `@marshal`

* forgot `push=True`
2025-11-25 10:57:19 -08:00
Matt HauffandGitHub eed4283ec3 [LABS-345] Update hsms to 0.3.2 (#20289)
* Update `hsms` to 0.3.2

* Repin in pyproject.toml

* Remove unintentional changes

* actually undo?
2025-11-21 09:58:36 -08:00
Matt HauffandGitHub 5ffb3618a3 [CHIA-3609] Port get_offer(s) to @marshal (#20062)
* Port `get_offer` to `@marshal`

* Port `get_all_offers` to `@marshal`
2025-11-21 09:45:26 -08:00
Arvid NorbergandGitHub 70b182e9c7 [CHIA-3805] reduce use of pool_reward_puzzle_hash feature of BlockTools (#20277)
* reduce use of pool_reward_puzzle_hash feature of BlockTools, since it's not supported by v2 plots

* the BlockTools feature to ask for a specific pool puzzle hash are not supported by v2 proofs. v2 plots only have pool contract puzzle hash
2025-11-21 09:44:53 -08:00
Matt HauffandGitHub d34bb600f0 [LABS-310] Improve WalletStateManager.get_wallet error handling (#20260)
* Improve `WalletStateManager.get_wallet` error handling

* Fix test regex
2025-11-21 09:38:34 -08:00
Earle LoweandGitHub f6fc9328ed Change GetTransactions to use uint32 to support wallets with very large numbers of transactions (#20278) 2025-11-21 09:35:48 -08:00
Matt HauffandGitHub edfd6ac045 Fix a flaky test (and less DEFAULT_TX_CONFIG) (#20280) 2025-11-21 09:33:16 -08:00
Matt HauffandGitHub 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
2971eb0a3c [LABS-290] Port test_wallet_rpc.py to WalletTestFramework (#20253)
* Port `test_send_transaction`

* Port `test_push_transactions`

* Port `test_get_balance`

* Port `test_get_farmed_amount`

* Port `test_get_farmed_amount_with_fee`

* Port `test_get_timestamp_for_height`

* (restrict some parametrizations)

* Port `create_signed_transaction` (and fix WalletTestFramework)

* Port `test_create_signed_transaction_with_puzzle/coin_announcement`

* Port `test_create_signed_transaction_with_excluded_coins`

* Port `test_get_transactions`

* Port `test_get_transaction_count`

* Port `test_get_coin_records_by_names`

* Port `test_did_endpoints`

* Port `test_nft_endpoints`

* Port `test_key_and_address_endpoints`

* Port `test_select_coins_rpc`

* Port `test_get_coin_records_rpc`

* Port `test_get_coin_records_rpc_limits/failures`

* Port `test_notification_rpcs`

* Port `test_verify_signature`

* Port `test_set_wallet_resync_on_startup`

* Port `test_set_wallet_resync_on_startup_disable`

* Port `test_set_wallet_resync_schema`

* Port `test_cat_spend_run_tail`

* Port `test_get_balances`

* Delete unused fixtures

* Remove DEFAULT_TX_CONFIG

* Fix reuse_puzhash behavior

* Minor improvements.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-11-15 10:52:36 -08:00
Matt HauffandGitHub 3cf5058793 [LABS-297] Merge get/delete_(all_)notifications (#20259)
* Merge get_(all)_notifications

* Merge delete_(all)_notifications

* Remove unused code path
2025-11-15 10:50:33 -08:00
Arvid NorbergandGitHub 38d2d9f2d0 make sure to pass in the correct previous transaction block height (#20237)
* make sure to pass in the correct previous transaction block height to get_flags_for_height_and_constants()

* review comments
2025-11-14 16:29:51 -06:00
Matt HauffandGitHub b1009b100e [LABS-296] Merge get_cat_spendable_coins into get_spendable_coins_for_wallet (#20230)
* merge `get_cat_spendable_coins` into `get_spendable_coins_for_wallet`

* Remove `get_max_spendable_coins` as well

* Fix CR-CAT wallet

* Make the max cap optional
2025-11-12 09:11:07 -07:00
599cff3fb1 [LABS-323] Dedup test_spend_clawback_coins (#20221)
* Comment about coverage between tests

* Add a test for errors in wallet file

* Modify manual claim test to do multiple clawbacks at once

* Convert `test_wallet_clawback_claim_auto`

* Convert `test_wallet_clawback_clawback`

* Convert `test_wallet_clawback_sent_self`

* Convert `test_wallet_clawback_claim_manual`

* Convert `test_wallet_clawback_reorg`

* Convert `test_get_clawback_coins`

* Convert `test_clawback_resync`

* Delete original test

* Cleanup helper comments

* Delete auto claim settings test

* Delete get auto claim settings test

* Minor improvement.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-11-06 12:26:18 -07:00
Matt HauffandGitHub 0c05cbb42c [LABS-289] Add kw_only=True to TransactionRecord (#20228)
Add `kw_only=True` to `TransactionRecord`
2025-11-06 11:13:21 -07:00
Matt HauffandGitHub 74ec8a44d4 [CHIA-3608] Port take_offer to @marshal (#20061)
* Port `take_offer` to `@marshal`

* `TransactionEndpointRequest` misses
2025-11-06 09:35:24 -07:00
Matt HauffandGitHub 1202e933a6 [LABS-293] Ensure wallet is synced for RPC TX endpoints (#20190)
* Ensure wallet is synced for RPC tx endpoints

* Address flakes

* more flakes

* More flakes in DL tests
2025-11-03 09:17:06 -07:00
Matt HauffandGitHub fcdb8e4925 Manual fixes for upcoming Ruff pyupgrade push (#20213)
* Manual fixes

* Revert back to variable in type expression

* Fix streamable to handle UnionType
2025-11-03 09:16:42 -07:00
Matt HauffandGitHub 590be179fc [LABS-161] Add a method for creating outgoing transactions (#20209)
* Add a method for creating outgoing transactions

* Fix some oversights wrt wallet_id
2025-10-31 08:56:15 -07:00
Matt HauffandGitHub 284310d637 [CHIA-3607] Port get_offer_summary to @marshal (#20058)
* Port `get_offer_summary` to `@marshal`

* test coverage
2025-10-31 08:55:36 -07:00
Matt HauffandGitHub 657b637544 [LABS-151] Replace NIL with Program.NIL (#20189)
Replace `NIL` with `Program.NIL`
2025-10-24 11:24:28 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Earle Lowe
38d8598fc6 build(deps): bump click from 8.1.8 to 8.3.0 (#20146)
* build(deps): bump click from 8.1.8 to 8.3.0

Bumps [click](https://github.com/pallets/click) from 8.1.8 to 8.3.0.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.8...8.3.0)

---
updated-dependencies:
- dependency-name: click
  dependency-version: 8.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove workaround for click.Choice and Enum

* place the default sortkey first to fix some click strangeness

* Ignore duplicate option warnings for specific test

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2025-10-23 10:05:27 -07:00
Matt HauffandGitHub 0a26924688 [CHIA-3606] Port create_offer_for_ids to @marshal (#20056)
* Port `create_offer_for_ids` to `@marshal`

* Self from typing_extensions

* Fix support for "" in PuzzleInfo/Solver
2025-10-21 11:00:37 -07:00
Matt HauffandGitHub 18c1010240 [LABS-285] Fix RPC key deletion endpoints to actually delete intended DBs (#20171)
Fix RPC key deletion endpoints to actually delete intended DBs
2025-10-21 10:58:04 -07:00
joemickyandGitHub fa2acb13da chore: fix a large number of spelling issues in comments (#20068)
Signed-off-by: joemicky <joemickychang@outlook.com>
2025-10-17 06:34:54 -07:00
deepdringandGitHub 30e3985ee0 chore: fix some minor issues in comment (#19980)
chore: fix some minor issues in the comment

Signed-off-by: deepdring <deepdrink@icloud.com>
2025-10-17 06:33:45 -07:00
Matt HauffandGitHub 0158ff2783 [CHIA-3605] Port cat_spend to @marshal (#20007)
* Port `cat_spend` to `@marshal`

* fix tests

* test coverage
2025-10-14 15:42:44 -07:00
Kyle AltendorfandGitHub f6d4b7615e Increase nft_wallet test timeout from 25 to 45 minutes (#20134)
https://github.com/Chia-Network/chia-blockchain/actions/runs/18313182324/usage
2025-10-09 08:50:55 -07:00
Matt HauffandGitHub b45f67765f [CHIA-3604] Port easy CAT endpoints to @marshal (#19992)
* Port `spend_clawback_coins` to `@marshal`

* fix tests

* fix test again

* how do I keep missing these?

* Port `select_coins` to `@marshal`

* fix tests

* fix test

* Port `get_spendable_coins`

* Port `get_coin_records_by_names`

* Port `send_notifications` to `@marshal`

* Fixing the thing that is always broken

* Remove accidental import

* Port `get_default_cat_list`

* Port `cat_set_name`

* Port `cat_get_name`

* Port `get_stray_cats`

* Port `cat_get_asset_id`

* Port `cat_asset_id_to_name`

* Port `check_offer_validity`

* Port `get_offers_count`
2025-09-23 12:48:40 -07:00
Matt HauffandGitHub 9d71f283c3 [CHIA-3603] Port send_notifications to @marshal (#19987)
* Port `spend_clawback_coins` to `@marshal`

* fix tests

* fix test again

* how do I keep missing these?

* Port `select_coins` to `@marshal`

* fix tests

* fix test

* Port `get_spendable_coins`

* Port `get_coin_records_by_names`

* Port `send_notifications` to `@marshal`

* Fixing the thing that is always broken

* Remove accidental import
2025-09-19 13:27:03 -07:00
Matt HauffandGitHub 61034b5646 [CHIA-3602] Port wallet coin endpoints to @marshal (#19966)
* Port `spend_clawback_coins` to `@marshal`

* fix tests

* fix test again

* how do I keep missing these?

* Port `select_coins` to `@marshal`

* fix tests

* fix test

* Port `get_spendable_coins`

* Port `get_coin_records_by_names`

* bad port of `include_spent_coins`

* Less bad replace logic

* Actually autofill the CoinSelectionConfigLoader in `get_spendable_coins`

* Comments by @altendky
2025-09-13 11:11:03 -07:00