chia-blockchain 2.5.2rc2__py3-none-any.whl → 2.5.3rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (640) hide show
  1. chia/__init__.py +7 -0
  2. chia/_tests/blockchain/blockchain_test_utils.py +1 -1
  3. chia/_tests/blockchain/test_augmented_chain.py +54 -5
  4. chia/_tests/blockchain/test_blockchain.py +5 -12
  5. chia/_tests/blockchain/test_blockchain_transactions.py +3 -5
  6. chia/_tests/blockchain/test_get_block_generator.py +2 -2
  7. chia/_tests/blockchain/test_lookup_fork_chain.py +2 -2
  8. chia/_tests/clvm/benchmark_costs.py +2 -1
  9. chia/_tests/clvm/coin_store.py +4 -3
  10. chia/_tests/clvm/test_chialisp_deserialization.py +2 -2
  11. chia/_tests/clvm/test_curry_and_treehash.py +1 -1
  12. chia/_tests/clvm/test_puzzle_compression.py +2 -2
  13. chia/_tests/clvm/test_puzzles.py +2 -2
  14. chia/_tests/clvm/test_singletons.py +2 -2
  15. chia/_tests/clvm/test_spend_sim.py +1 -1
  16. chia/_tests/cmds/cmd_test_utils.py +2 -2
  17. chia/_tests/cmds/test_click_types.py +2 -2
  18. chia/_tests/cmds/test_cmd_framework.py +6 -6
  19. chia/_tests/cmds/test_show.py +4 -3
  20. chia/_tests/cmds/test_tx_config_args.py +1 -1
  21. chia/_tests/cmds/testing_classes.py +2 -2
  22. chia/_tests/cmds/wallet/test_consts.py +2 -2
  23. chia/_tests/cmds/wallet/test_did.py +2 -2
  24. chia/_tests/cmds/wallet/test_nft.py +2 -2
  25. chia/_tests/cmds/wallet/test_notifications.py +3 -2
  26. chia/_tests/cmds/wallet/test_vcs.py +2 -2
  27. chia/_tests/cmds/wallet/test_wallet.py +4 -8
  28. chia/_tests/conftest.py +4 -3
  29. chia/_tests/connection_utils.py +2 -2
  30. chia/_tests/core/cmds/test_keys.py +1 -2
  31. chia/_tests/core/cmds/test_wallet.py +2 -2
  32. chia/_tests/core/consensus/test_block_creation.py +2 -2
  33. chia/_tests/core/consensus/test_pot_iterations.py +1 -1
  34. chia/_tests/core/custom_types/test_coin.py +2 -2
  35. chia/_tests/core/custom_types/test_proof_of_space.py +2 -2
  36. chia/_tests/core/custom_types/test_spend_bundle.py +2 -2
  37. chia/_tests/core/data_layer/conftest.py +1 -1
  38. chia/_tests/core/data_layer/test_data_layer.py +1 -1
  39. chia/_tests/core/data_layer/test_data_layer_util.py +1 -1
  40. chia/_tests/core/data_layer/test_data_rpc.py +2 -2
  41. chia/_tests/core/data_layer/test_data_store.py +1 -1
  42. chia/_tests/core/data_layer/test_data_store_schema.py +1 -1
  43. chia/_tests/core/data_layer/util.py +2 -1
  44. chia/_tests/core/farmer/test_farmer_api.py +1 -1
  45. chia/_tests/core/full_node/full_sync/test_full_sync.py +1 -7
  46. chia/_tests/core/full_node/ram_db.py +2 -1
  47. chia/_tests/core/full_node/stores/test_block_store.py +2 -2
  48. chia/_tests/core/full_node/stores/test_coin_store.py +2 -2
  49. chia/_tests/core/full_node/stores/test_full_node_store.py +3 -3
  50. chia/_tests/core/full_node/stores/test_hint_store.py +2 -2
  51. chia/_tests/core/full_node/stores/test_sync_store.py +1 -1
  52. chia/_tests/core/full_node/test_address_manager.py +1 -1
  53. chia/_tests/core/full_node/test_block_height_map.py +2 -2
  54. chia/_tests/core/full_node/test_conditions.py +1 -1
  55. chia/_tests/core/full_node/test_full_node.py +346 -164
  56. chia/_tests/core/full_node/test_generator_tools.py +3 -2
  57. chia/_tests/core/full_node/test_hint_management.py +2 -2
  58. chia/_tests/core/full_node/test_performance.py +2 -15
  59. chia/_tests/core/full_node/test_subscriptions.py +1 -1
  60. chia/_tests/core/full_node/test_transactions.py +186 -185
  61. chia/_tests/core/full_node/test_tx_processing_queue.py +1 -1
  62. chia/_tests/core/make_block_generator.py +2 -2
  63. chia/_tests/core/mempool/test_mempool.py +165 -22
  64. chia/_tests/core/mempool/test_mempool_fee_estimator.py +1 -1
  65. chia/_tests/core/mempool/test_mempool_fee_protocol.py +1 -1
  66. chia/_tests/core/mempool/test_mempool_manager.py +476 -66
  67. chia/_tests/core/mempool/test_mempool_performance.py +2 -2
  68. chia/_tests/core/mempool/test_singleton_fast_forward.py +19 -25
  69. chia/_tests/core/node_height.py +2 -1
  70. chia/_tests/core/server/test_capabilities.py +1 -1
  71. chia/_tests/core/server/test_dos.py +36 -28
  72. chia/_tests/core/server/test_loop.py +3 -3
  73. chia/_tests/core/server/test_rate_limits.py +1 -1
  74. chia/_tests/core/server/test_server.py +2 -2
  75. chia/_tests/core/services/test_services.py +1 -1
  76. chia/_tests/core/ssl/test_ssl.py +1 -1
  77. chia/_tests/core/test_coins.py +2 -1
  78. chia/_tests/core/test_cost_calculation.py +2 -2
  79. chia/_tests/core/test_crawler.py +2 -2
  80. chia/_tests/core/test_db_conversion.py +2 -2
  81. chia/_tests/core/test_db_validation.py +26 -13
  82. chia/_tests/core/test_farmer_harvester_rpc.py +2 -2
  83. chia/_tests/core/test_full_node_rpc.py +2 -2
  84. chia/_tests/core/test_merkle_set.py +2 -2
  85. chia/_tests/core/test_program.py +2 -2
  86. chia/_tests/core/test_rpc_util.py +1 -1
  87. chia/_tests/core/test_seeder.py +1 -1
  88. chia/_tests/core/util/test_block_cache.py +3 -3
  89. chia/_tests/core/util/test_jsonify.py +3 -2
  90. chia/_tests/core/util/test_keychain.py +3 -3
  91. chia/_tests/core/util/test_streamable.py +3 -4
  92. chia/_tests/environments/wallet.py +3 -2
  93. chia/_tests/farmer_harvester/test_farmer.py +3 -4
  94. chia/_tests/farmer_harvester/test_farmer_harvester.py +2 -2
  95. chia/_tests/farmer_harvester/test_filter_prefix_bits.py +2 -2
  96. chia/_tests/farmer_harvester/test_third_party_harvesters.py +3 -4
  97. chia/_tests/fee_estimation/test_fee_estimation_integration.py +1 -1
  98. chia/_tests/fee_estimation/test_fee_estimation_rpc.py +2 -2
  99. chia/_tests/fee_estimation/test_fee_estimation_unit_tests.py +1 -1
  100. chia/_tests/fee_estimation/test_mempoolitem_height_added.py +3 -4
  101. chia/_tests/generator/test_compression.py +20 -10
  102. chia/_tests/generator/test_rom.py +7 -9
  103. chia/_tests/plot_sync/test_delta.py +2 -2
  104. chia/_tests/plot_sync/test_plot_sync.py +2 -2
  105. chia/_tests/plot_sync/test_receiver.py +2 -2
  106. chia/_tests/plot_sync/test_sender.py +2 -2
  107. chia/_tests/plot_sync/test_sync_simulated.py +2 -2
  108. chia/_tests/plot_sync/util.py +3 -2
  109. chia/_tests/plotting/test_plot_manager.py +1 -1
  110. chia/_tests/pools/test_pool_cli_parsing.py +3 -2
  111. chia/_tests/pools/test_pool_cmdline.py +2 -2
  112. chia/_tests/pools/test_pool_puzzles_lifecycle.py +3 -3
  113. chia/_tests/pools/test_pool_rpc.py +4 -5
  114. chia/_tests/pools/test_pool_wallet.py +1 -1
  115. chia/_tests/pools/test_wallet_pool_store.py +2 -2
  116. chia/_tests/rpc/test_rpc_client.py +1 -1
  117. chia/_tests/rpc/test_rpc_server.py +1 -1
  118. chia/_tests/simulation/test_simulation.py +36 -8
  119. chia/_tests/simulation/test_simulator.py +5 -5
  120. chia/_tests/simulation/test_start_simulator.py +2 -2
  121. chia/_tests/timelord/test_new_peak.py +2 -2
  122. chia/_tests/tools/test_run_block.py +3 -2
  123. chia/_tests/util/benchmark_cost.py +2 -2
  124. chia/_tests/util/benchmarks.py +17 -6
  125. chia/_tests/util/blockchain.py +2 -1
  126. chia/_tests/util/blockchain_mock.py +9 -5
  127. chia/_tests/util/build_network_protocol_files.py +2 -1
  128. chia/_tests/util/constants.py +2 -1
  129. chia/_tests/util/full_sync.py +6 -3
  130. chia/_tests/util/gen_ssl_certs.py +2 -2
  131. chia/_tests/util/generator_tools_testing.py +4 -3
  132. chia/_tests/util/get_name_puzzle_conditions.py +2 -2
  133. chia/_tests/util/misc.py +16 -2
  134. chia/_tests/util/network_protocol_data.py +17 -7
  135. chia/_tests/util/run_block.py +6 -8
  136. chia/_tests/util/setup_nodes.py +4 -3
  137. chia/_tests/util/spend_sim.py +9 -5
  138. chia/_tests/util/test_condition_tools.py +2 -2
  139. chia/_tests/util/test_config.py +2 -1
  140. chia/_tests/util/test_errors.py +2 -1
  141. chia/_tests/util/test_full_block_utils.py +17 -7
  142. chia/_tests/util/test_misc.py +1 -1
  143. chia/_tests/util/test_network_protocol_test.py +24 -24
  144. chia/_tests/util/test_replace_str_to_bytes.py +2 -2
  145. chia/_tests/util/test_trusted_peer.py +1 -1
  146. chia/_tests/util/time_out_assert.py +20 -7
  147. chia/_tests/wallet/cat_wallet/test_cat_lifecycle.py +1 -1
  148. chia/_tests/wallet/cat_wallet/test_cat_outer_puzzle.py +2 -2
  149. chia/_tests/wallet/cat_wallet/test_cat_wallet.py +5 -6
  150. chia/_tests/wallet/cat_wallet/test_offer_lifecycle.py +17 -15
  151. chia/_tests/wallet/cat_wallet/test_trades.py +2 -2
  152. chia/_tests/wallet/clawback/test_clawback_lifecycle.py +2 -2
  153. chia/_tests/wallet/clawback/test_clawback_metadata.py +2 -2
  154. chia/_tests/wallet/conftest.py +3 -3
  155. chia/_tests/wallet/db_wallet/test_db_graftroot.py +3 -5
  156. chia/_tests/wallet/db_wallet/test_dl_offers.py +2 -2
  157. chia/_tests/wallet/db_wallet/test_dl_wallet.py +433 -384
  158. chia/_tests/wallet/did_wallet/test_did.py +3 -3
  159. chia/_tests/wallet/nft_wallet/test_nft_1_offers.py +2 -2
  160. chia/_tests/wallet/nft_wallet/test_nft_bulk_mint.py +2 -2
  161. chia/_tests/wallet/nft_wallet/test_nft_lifecycle.py +3 -4
  162. chia/_tests/wallet/nft_wallet/test_nft_offers.py +1293 -703
  163. chia/_tests/wallet/nft_wallet/test_nft_puzzles.py +28 -30
  164. chia/_tests/wallet/nft_wallet/test_nft_wallet.py +2 -2
  165. chia/_tests/wallet/nft_wallet/test_ownership_outer_puzzle.py +2 -2
  166. chia/_tests/wallet/rpc/config.py +1 -1
  167. chia/_tests/wallet/rpc/test_dl_wallet_rpc.py +2 -2
  168. chia/_tests/wallet/rpc/test_wallet_rpc.py +20 -77
  169. chia/_tests/wallet/simple_sync/test_simple_sync_protocol.py +9 -7
  170. chia/_tests/wallet/sync/test_wallet_sync.py +79 -31
  171. chia/_tests/wallet/test_clvm_streamable.py +2 -2
  172. chia/_tests/wallet/test_coin_management.py +7 -7
  173. chia/_tests/wallet/test_coin_selection.py +20 -2
  174. chia/_tests/wallet/test_conditions.py +2 -2
  175. chia/_tests/wallet/test_debug_spend_bundle.py +2 -2
  176. chia/_tests/wallet/test_new_wallet_protocol.py +2 -2
  177. chia/_tests/wallet/test_nft_store.py +2 -2
  178. chia/_tests/wallet/test_notifications.py +2 -2
  179. chia/_tests/wallet/test_puzzle_store.py +2 -2
  180. chia/_tests/wallet/test_sign_coin_spends.py +2 -2
  181. chia/_tests/wallet/test_signer_protocol.py +3 -3
  182. chia/_tests/wallet/test_singleton.py +3 -11
  183. chia/_tests/wallet/test_singleton_lifecycle_fast.py +12 -13
  184. chia/_tests/wallet/test_singleton_store.py +2 -4
  185. chia/_tests/wallet/test_transaction_store.py +2 -2
  186. chia/_tests/wallet/test_util.py +2 -2
  187. chia/_tests/wallet/test_wallet.py +53 -49
  188. chia/_tests/wallet/test_wallet_action_scope.py +24 -6
  189. chia/_tests/wallet/test_wallet_blockchain.py +1 -1
  190. chia/_tests/wallet/test_wallet_coin_store.py +2 -2
  191. chia/_tests/wallet/test_wallet_interested_store.py +2 -2
  192. chia/_tests/wallet/test_wallet_node.py +3 -3
  193. chia/_tests/wallet/test_wallet_retry.py +3 -3
  194. chia/_tests/wallet/test_wallet_state_manager.py +8 -8
  195. chia/_tests/wallet/test_wallet_test_framework.py +1 -1
  196. chia/_tests/wallet/test_wallet_trade_store.py +2 -2
  197. chia/_tests/wallet/test_wallet_utils.py +2 -2
  198. chia/_tests/wallet/vc_wallet/test_cr_outer_puzzle.py +3 -2
  199. chia/_tests/wallet/vc_wallet/test_vc_lifecycle.py +15 -15
  200. chia/_tests/wallet/vc_wallet/test_vc_wallet.py +5 -3
  201. chia/_tests/wallet/wallet_block_tools.py +15 -7
  202. chia/_tests/weight_proof/test_weight_proof.py +3 -3
  203. chia/cmds/chia.py +0 -2
  204. chia/cmds/cmd_classes.py +3 -3
  205. chia/cmds/cmd_helpers.py +4 -4
  206. chia/cmds/cmds_util.py +2 -2
  207. chia/cmds/coin_funcs.py +3 -2
  208. chia/cmds/coins.py +1 -1
  209. chia/cmds/data.py +2 -2
  210. chia/cmds/data_funcs.py +3 -2
  211. chia/cmds/db_upgrade_func.py +2 -2
  212. chia/cmds/db_validate_func.py +15 -8
  213. chia/cmds/farm.py +2 -4
  214. chia/cmds/keys.py +0 -2
  215. chia/cmds/keys_funcs.py +1 -1
  216. chia/cmds/netspace_funcs.py +2 -1
  217. chia/cmds/param_types.py +2 -2
  218. chia/cmds/plotnft.py +2 -2
  219. chia/cmds/plotnft_funcs.py +2 -2
  220. chia/cmds/rpc.py +1 -1
  221. chia/cmds/show.py +1 -2
  222. chia/cmds/show_funcs.py +6 -3
  223. chia/cmds/signer.py +1 -2
  224. chia/cmds/sim.py +1 -2
  225. chia/cmds/sim_funcs.py +2 -2
  226. chia/cmds/wallet.py +2 -2
  227. chia/cmds/wallet_funcs.py +4 -11
  228. chia/consensus/block_body_validation.py +3 -4
  229. chia/consensus/block_creation.py +10 -6
  230. chia/consensus/block_header_validation.py +3 -4
  231. chia/consensus/block_record.py +2 -3
  232. chia/consensus/block_rewards.py +1 -1
  233. chia/consensus/blockchain.py +20 -17
  234. chia/consensus/blockchain_interface.py +5 -4
  235. chia/consensus/coinbase.py +2 -2
  236. chia/consensus/constants.py +1 -1
  237. chia/consensus/cost_calculator.py +2 -1
  238. chia/consensus/default_constants.py +4 -3
  239. chia/consensus/deficit.py +3 -2
  240. chia/consensus/difficulty_adjustment.py +8 -9
  241. chia/consensus/find_fork_point.py +4 -3
  242. chia/consensus/full_block_to_block_record.py +4 -3
  243. chia/consensus/get_block_challenge.py +4 -3
  244. chia/consensus/get_block_generator.py +3 -2
  245. chia/consensus/make_sub_epoch_summary.py +3 -2
  246. chia/consensus/multiprocess_validation.py +9 -4
  247. chia/consensus/pos_quality.py +1 -1
  248. chia/consensus/pot_iterations.py +4 -3
  249. chia/consensus/vdf_info_computation.py +4 -3
  250. chia/daemon/client.py +1 -1
  251. chia/daemon/keychain_server.py +1 -1
  252. chia/daemon/server.py +1 -1
  253. chia/daemon/windows_signal.py +1 -1
  254. chia/data_layer/data_layer.py +4 -3
  255. chia/data_layer/data_layer_errors.py +1 -1
  256. chia/data_layer/data_layer_util.py +2 -2
  257. chia/data_layer/data_layer_wallet.py +47 -69
  258. chia/data_layer/data_store.py +1 -1
  259. chia/data_layer/dl_wallet_store.py +5 -6
  260. chia/data_layer/download_data.py +1 -1
  261. chia/data_layer/s3_plugin_service.py +4 -4
  262. chia/data_layer/singleton_record.py +23 -0
  263. chia/data_layer/util/benchmark.py +2 -1
  264. chia/farmer/farmer.py +4 -6
  265. chia/farmer/farmer_api.py +4 -6
  266. chia/full_node/bitcoin_fee_estimator.py +2 -1
  267. chia/full_node/block_height_map.py +2 -2
  268. chia/full_node/block_store.py +8 -9
  269. chia/{util → full_node}/check_fork_next_block.py +2 -1
  270. chia/full_node/coin_store.py +10 -10
  271. chia/full_node/fee_estimate.py +2 -1
  272. chia/full_node/fee_estimation.py +2 -1
  273. chia/full_node/fee_estimator.py +2 -1
  274. chia/full_node/fee_estimator_interface.py +1 -1
  275. chia/full_node/fee_history.py +2 -1
  276. chia/full_node/fee_tracker.py +2 -1
  277. chia/full_node/full_node.py +15 -13
  278. chia/full_node/full_node_api.py +12 -32
  279. chia/full_node/full_node_store.py +4 -3
  280. chia/full_node/hint_management.py +2 -1
  281. chia/full_node/hint_store.py +3 -3
  282. chia/full_node/mempool.py +79 -12
  283. chia/full_node/mempool_check_conditions.py +6 -7
  284. chia/full_node/mempool_manager.py +168 -21
  285. chia/full_node/pending_tx_cache.py +2 -2
  286. chia/full_node/subscriptions.py +2 -2
  287. chia/full_node/sync_store.py +2 -3
  288. chia/full_node/tx_processing_queue.py +2 -1
  289. chia/full_node/weight_proof.py +5 -8
  290. chia/harvester/harvester.py +5 -3
  291. chia/harvester/harvester_api.py +2 -2
  292. chia/introducer/introducer.py +30 -2
  293. chia/introducer/introducer_api.py +9 -1
  294. chia/legacy/keyring.py +1 -2
  295. chia/plot_sync/exceptions.py +2 -1
  296. chia/plot_sync/receiver.py +2 -2
  297. chia/plot_sync/sender.py +1 -1
  298. chia/plotting/cache.py +2 -2
  299. chia/plotting/check_plots.py +4 -2
  300. chia/plotting/create_plots.py +1 -1
  301. chia/plotting/manager.py +3 -3
  302. chia/plotting/util.py +2 -2
  303. chia/pools/pool_config.py +1 -1
  304. chia/pools/pool_puzzles.py +23 -17
  305. chia/pools/pool_wallet.py +22 -9
  306. chia/pools/pool_wallet_info.py +2 -2
  307. chia/protocols/farmer_protocol.py +3 -6
  308. chia/protocols/full_node_protocol.py +3 -2
  309. chia/protocols/harvester_protocol.py +3 -4
  310. chia/protocols/pool_protocol.py +2 -2
  311. chia/protocols/shared_protocol.py +2 -1
  312. chia/protocols/timelord_protocol.py +4 -4
  313. chia/protocols/wallet_protocol.py +2 -2
  314. chia/rpc/data_layer_rpc_api.py +3 -4
  315. chia/rpc/data_layer_rpc_client.py +3 -2
  316. chia/rpc/farmer_rpc_api.py +2 -2
  317. chia/rpc/farmer_rpc_client.py +2 -1
  318. chia/rpc/full_node_rpc_api.py +3 -2
  319. chia/rpc/full_node_rpc_client.py +3 -2
  320. chia/rpc/harvester_rpc_api.py +2 -1
  321. chia/rpc/rpc_client.py +2 -2
  322. chia/rpc/rpc_server.py +1 -1
  323. chia/rpc/wallet_request_types.py +2 -62
  324. chia/rpc/wallet_rpc_api.py +98 -628
  325. chia/rpc/wallet_rpc_client.py +5 -253
  326. chia/seeder/crawl_store.py +1 -1
  327. chia/seeder/crawler.py +2 -2
  328. chia/seeder/peer_record.py +2 -1
  329. chia/seeder/start_crawler.py +3 -1
  330. chia/server/address_manager.py +2 -1
  331. chia/server/address_manager_store.py +1 -1
  332. chia/server/capabilities.py +2 -1
  333. chia/server/introducer_peers.py +2 -1
  334. chia/server/node_discovery.py +1 -1
  335. chia/server/outbound_message.py +2 -1
  336. chia/server/server.py +2 -2
  337. chia/server/start_data_layer.py +2 -1
  338. chia/server/start_farmer.py +3 -1
  339. chia/server/start_full_node.py +4 -2
  340. chia/server/start_harvester.py +3 -1
  341. chia/server/start_introducer.py +12 -1
  342. chia/server/start_service.py +2 -1
  343. chia/server/start_timelord.py +3 -1
  344. chia/server/start_wallet.py +3 -1
  345. chia/server/upnp.py +1 -2
  346. chia/server/ws_connection.py +3 -4
  347. chia/simulator/add_blocks_in_batches.py +5 -3
  348. chia/simulator/block_tools.py +16 -12
  349. chia/simulator/full_node_simulator.py +9 -14
  350. chia/simulator/setup_services.py +5 -3
  351. chia/simulator/simulator_full_node_rpc_api.py +3 -2
  352. chia/simulator/simulator_full_node_rpc_client.py +3 -2
  353. chia/simulator/simulator_protocol.py +3 -2
  354. chia/simulator/simulator_test_tools.py +2 -2
  355. chia/simulator/start_simulator.py +3 -2
  356. chia/simulator/wallet_tools.py +3 -4
  357. chia/timelord/iters_from_block.py +4 -4
  358. chia/timelord/timelord.py +7 -12
  359. chia/timelord/timelord_api.py +3 -3
  360. chia/timelord/timelord_state.py +4 -3
  361. chia/types/block_protocol.py +2 -2
  362. chia/types/blockchain_format/coin.py +2 -2
  363. chia/types/blockchain_format/program.py +1 -1
  364. chia/types/blockchain_format/proof_of_space.py +3 -4
  365. chia/types/blockchain_format/tree_hash.py +1 -1
  366. chia/types/blockchain_format/vdf.py +3 -4
  367. chia/types/clvm_cost.py +1 -1
  368. chia/types/coin_record.py +4 -3
  369. chia/types/coin_spend.py +1 -1
  370. chia/types/eligible_coin_spends.py +9 -5
  371. chia/types/fee_rate.py +1 -1
  372. chia/types/generator_types.py +3 -3
  373. chia/types/internal_mempool_item.py +3 -2
  374. chia/types/mempool_item.py +10 -3
  375. chia/types/mempool_submission_status.py +2 -1
  376. chia/types/mojos.py +1 -1
  377. chia/types/peer_info.py +2 -1
  378. chia/types/transaction_queue_entry.py +2 -1
  379. chia/types/unfinished_header_block.py +4 -4
  380. chia/types/validation_state.py +2 -1
  381. chia/types/weight_proof.py +1 -9
  382. chia/util/augmented_chain.py +20 -9
  383. chia/util/block_cache.py +8 -4
  384. chia/util/condition_tools.py +2 -2
  385. chia/util/full_block_utils.py +3 -4
  386. chia/util/generator_tools.py +2 -2
  387. chia/util/initial-config.yaml +2 -11
  388. chia/util/network.py +2 -2
  389. chia/util/prev_transaction_block.py +2 -1
  390. chia/util/task_timing.py +1 -1
  391. chia/util/vdf_prover.py +3 -3
  392. chia/util/ws_message.py +1 -1
  393. chia/wallet/cat_wallet/cat_info.py +3 -2
  394. chia/wallet/cat_wallet/cat_outer_puzzle.py +3 -2
  395. chia/wallet/cat_wallet/cat_utils.py +6 -4
  396. chia/wallet/cat_wallet/cat_wallet.py +16 -18
  397. chia/wallet/cat_wallet/lineage_store.py +2 -1
  398. chia/wallet/coin_selection.py +5 -5
  399. chia/wallet/conditions.py +22 -16
  400. chia/wallet/db_wallet/db_wallet_puzzles.py +15 -15
  401. chia/wallet/derivation_record.py +2 -2
  402. chia/wallet/derive_keys.py +2 -2
  403. chia/wallet/did_wallet/did_info.py +3 -2
  404. chia/wallet/did_wallet/did_wallet.py +41 -19
  405. chia/wallet/did_wallet/did_wallet_puzzles.py +18 -12
  406. chia/wallet/driver_protocol.py +1 -1
  407. chia/wallet/lineage_proof.py +3 -2
  408. chia/wallet/nft_wallet/metadata_outer_puzzle.py +6 -7
  409. chia/wallet/nft_wallet/nft_info.py +5 -5
  410. chia/wallet/nft_wallet/nft_puzzle_utils.py +293 -0
  411. chia/wallet/nft_wallet/nft_puzzles.py +21 -298
  412. chia/wallet/nft_wallet/nft_wallet.py +47 -62
  413. chia/wallet/nft_wallet/ownership_outer_puzzle.py +4 -8
  414. chia/wallet/nft_wallet/singleton_outer_puzzle.py +3 -2
  415. chia/wallet/nft_wallet/transfer_program_puzzle.py +6 -10
  416. chia/wallet/nft_wallet/uncurry_nft.py +6 -8
  417. chia/wallet/notification_manager.py +5 -5
  418. chia/wallet/notification_store.py +3 -2
  419. chia/wallet/outer_puzzles.py +2 -1
  420. chia/wallet/puzzles/clawback/drivers.py +21 -8
  421. chia/wallet/puzzles/clawback/metadata.py +3 -2
  422. chia/wallet/puzzles/clawback/puzzle_decorator.py +5 -4
  423. chia/wallet/puzzles/deployed_puzzle_hashes.json +0 -10
  424. chia/wallet/puzzles/p2_conditions.py +3 -2
  425. chia/wallet/puzzles/p2_delegated_conditions.py +3 -2
  426. chia/wallet/puzzles/p2_delegated_puzzle.py +3 -2
  427. chia/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.py +3 -3
  428. chia/wallet/puzzles/p2_m_of_n_delegate_direct.py +3 -2
  429. chia/wallet/puzzles/p2_puzzle_hash.py +4 -3
  430. chia/wallet/puzzles/puzzle_utils.py +3 -2
  431. chia/wallet/puzzles/singleton_top_layer.py +26 -10
  432. chia/wallet/puzzles/singleton_top_layer_v1_1.py +21 -9
  433. chia/wallet/puzzles/tails.py +21 -129
  434. chia/wallet/signer_protocol.py +3 -2
  435. chia/wallet/singleton.py +12 -6
  436. chia/wallet/singleton_record.py +3 -2
  437. chia/wallet/trade_manager.py +31 -55
  438. chia/wallet/trade_record.py +3 -2
  439. chia/wallet/trading/offer.py +14 -13
  440. chia/wallet/trading/trade_store.py +3 -4
  441. chia/wallet/transaction_record.py +2 -2
  442. chia/wallet/util/blind_signer_tl.py +3 -2
  443. chia/wallet/util/compute_hints.py +3 -2
  444. chia/wallet/util/compute_memos.py +2 -2
  445. chia/wallet/util/curry_and_treehash.py +1 -2
  446. chia/wallet/util/merkle_tree.py +1 -1
  447. chia/wallet/util/merkle_utils.py +1 -1
  448. chia/wallet/util/new_peak_queue.py +2 -1
  449. chia/wallet/util/notifications.py +5 -4
  450. chia/wallet/util/peer_request_cache.py +3 -2
  451. chia/wallet/util/puzzle_compression.py +6 -4
  452. chia/wallet/util/puzzle_decorator.py +6 -4
  453. chia/wallet/util/query_filter.py +3 -2
  454. chia/wallet/util/tx_config.py +3 -3
  455. chia/wallet/util/wallet_sync_utils.py +2 -2
  456. chia/wallet/util/wallet_types.py +2 -3
  457. chia/wallet/vc_wallet/cr_cat_drivers.py +18 -22
  458. chia/wallet/vc_wallet/cr_cat_wallet.py +14 -10
  459. chia/wallet/vc_wallet/cr_outer_puzzle.py +2 -2
  460. chia/wallet/vc_wallet/vc_drivers.py +50 -68
  461. chia/wallet/vc_wallet/vc_store.py +2 -2
  462. chia/wallet/vc_wallet/vc_wallet.py +47 -15
  463. chia/wallet/wallet.py +51 -46
  464. chia/wallet/wallet_action_scope.py +4 -0
  465. chia/wallet/wallet_blockchain.py +12 -7
  466. chia/wallet/wallet_coin_record.py +3 -2
  467. chia/wallet/wallet_coin_store.py +3 -2
  468. chia/wallet/wallet_info.py +2 -1
  469. chia/wallet/wallet_interested_store.py +3 -2
  470. chia/wallet/wallet_nft_store.py +4 -4
  471. chia/wallet/wallet_node.py +3 -4
  472. chia/wallet/wallet_pool_store.py +3 -4
  473. chia/wallet/wallet_protocol.py +19 -5
  474. chia/wallet/wallet_puzzle_store.py +2 -2
  475. chia/wallet/wallet_retry_store.py +3 -6
  476. chia/wallet/wallet_singleton_store.py +2 -2
  477. chia/wallet/wallet_state_manager.py +20 -197
  478. chia/wallet/wallet_transaction_store.py +2 -2
  479. chia/wallet/wallet_user_store.py +2 -1
  480. chia/wallet/wallet_weight_proof_handler.py +3 -2
  481. {chia_blockchain-2.5.2rc2.dist-info → chia_blockchain-2.5.3rc1.dist-info}/METADATA +3 -2
  482. chia_blockchain-2.5.3rc1.dist-info/RECORD +891 -0
  483. mozilla-ca/cacert.pem +64 -33
  484. chia/_tests/clvm/test_condition_codes.py +0 -13
  485. chia/_tests/cmds/wallet/test_dao.py +0 -565
  486. chia/_tests/wallet/dao_wallet/__init__.py +0 -0
  487. chia/_tests/wallet/dao_wallet/config.py +0 -3
  488. chia/_tests/wallet/dao_wallet/test_dao_clvm.py +0 -1330
  489. chia/_tests/wallet/dao_wallet/test_dao_wallets.py +0 -3488
  490. chia/cmds/dao.py +0 -1064
  491. chia/cmds/dao_funcs.py +0 -598
  492. chia/consensus/puzzles/__init__.py +0 -0
  493. chia/consensus/puzzles/chialisp_deserialisation.clsp +0 -69
  494. chia/consensus/puzzles/chialisp_deserialisation.clsp.hex +0 -1
  495. chia/consensus/puzzles/rom_bootstrap_generator.clsp +0 -37
  496. chia/consensus/puzzles/rom_bootstrap_generator.clsp.hex +0 -1
  497. chia/full_node/puzzles/__init__.py +0 -0
  498. chia/full_node/puzzles/block_program_zero.clsp +0 -14
  499. chia/full_node/puzzles/block_program_zero.clsp.hex +0 -1
  500. chia/full_node/puzzles/decompress_coin_spend_entry.clsp +0 -5
  501. chia/full_node/puzzles/decompress_coin_spend_entry.clsp.hex +0 -1
  502. chia/full_node/puzzles/decompress_coin_spend_entry_with_prefix.clsp +0 -7
  503. chia/full_node/puzzles/decompress_coin_spend_entry_with_prefix.clsp.hex +0 -1
  504. chia/full_node/puzzles/decompress_puzzle.clsp +0 -6
  505. chia/full_node/puzzles/decompress_puzzle.clsp.hex +0 -1
  506. chia/pools/puzzles/__init__.py +0 -0
  507. chia/pools/puzzles/pool_member_innerpuz.clsp +0 -70
  508. chia/pools/puzzles/pool_member_innerpuz.clsp.hex +0 -1
  509. chia/pools/puzzles/pool_waitingroom_innerpuz.clsp +0 -69
  510. chia/pools/puzzles/pool_waitingroom_innerpuz.clsp.hex +0 -1
  511. chia/simulator/simulator_constants.py +0 -13
  512. chia/types/blockchain_format/foliage.py +0 -8
  513. chia/types/blockchain_format/pool_target.py +0 -5
  514. chia/types/blockchain_format/reward_chain_block.py +0 -6
  515. chia/types/blockchain_format/sized_bytes.py +0 -11
  516. chia/util/ints.py +0 -19
  517. chia/wallet/cat_wallet/dao_cat_info.py +0 -28
  518. chia/wallet/cat_wallet/dao_cat_wallet.py +0 -669
  519. chia/wallet/cat_wallet/puzzles/__init__.py +0 -0
  520. chia/wallet/cat_wallet/puzzles/cat_truths.clib +0 -31
  521. chia/wallet/cat_wallet/puzzles/cat_v2.clsp +0 -397
  522. chia/wallet/cat_wallet/puzzles/cat_v2.clsp.hex +0 -1
  523. chia/wallet/cat_wallet/puzzles/delegated_tail.clsp +0 -25
  524. chia/wallet/cat_wallet/puzzles/delegated_tail.clsp.hex +0 -1
  525. chia/wallet/cat_wallet/puzzles/everything_with_signature.clsp +0 -15
  526. chia/wallet/cat_wallet/puzzles/everything_with_signature.clsp.hex +0 -1
  527. chia/wallet/cat_wallet/puzzles/genesis_by_coin_id.clsp +0 -26
  528. chia/wallet/cat_wallet/puzzles/genesis_by_coin_id.clsp.hex +0 -1
  529. chia/wallet/cat_wallet/puzzles/genesis_by_coin_id_or_singleton.clsp +0 -42
  530. chia/wallet/cat_wallet/puzzles/genesis_by_coin_id_or_singleton.clsp.hex +0 -1
  531. chia/wallet/cat_wallet/puzzles/genesis_by_puzzle_hash.clsp +0 -24
  532. chia/wallet/cat_wallet/puzzles/genesis_by_puzzle_hash.clsp.hex +0 -1
  533. chia/wallet/dao_wallet/__init__.py +0 -0
  534. chia/wallet/dao_wallet/dao_info.py +0 -61
  535. chia/wallet/dao_wallet/dao_utils.py +0 -811
  536. chia/wallet/dao_wallet/dao_wallet.py +0 -2119
  537. chia/wallet/did_wallet/puzzles/__init__.py +0 -0
  538. chia/wallet/did_wallet/puzzles/did_innerpuz.clsp +0 -135
  539. chia/wallet/did_wallet/puzzles/did_innerpuz.clsp.hex +0 -1
  540. chia/wallet/payment.py +0 -33
  541. chia/wallet/puzzles/augmented_condition.clsp +0 -13
  542. chia/wallet/puzzles/augmented_condition.clsp.hex +0 -1
  543. chia/wallet/puzzles/condition_codes.clib +0 -77
  544. chia/wallet/puzzles/curry-and-treehash.clib +0 -102
  545. chia/wallet/puzzles/curry.clib +0 -135
  546. chia/wallet/puzzles/curry_by_index.clib +0 -16
  547. chia/wallet/puzzles/dao_cat_eve.clsp +0 -17
  548. chia/wallet/puzzles/dao_cat_eve.clsp.hex +0 -1
  549. chia/wallet/puzzles/dao_cat_launcher.clsp +0 -36
  550. chia/wallet/puzzles/dao_cat_launcher.clsp.hex +0 -1
  551. chia/wallet/puzzles/dao_finished_state.clsp +0 -35
  552. chia/wallet/puzzles/dao_finished_state.clsp.hex +0 -1
  553. chia/wallet/puzzles/dao_finished_state.clsp.hex.sha256tree +0 -1
  554. chia/wallet/puzzles/dao_lockup.clsp +0 -288
  555. chia/wallet/puzzles/dao_lockup.clsp.hex +0 -1
  556. chia/wallet/puzzles/dao_lockup.clsp.hex.sha256tree +0 -1
  557. chia/wallet/puzzles/dao_proposal.clsp +0 -377
  558. chia/wallet/puzzles/dao_proposal.clsp.hex +0 -1
  559. chia/wallet/puzzles/dao_proposal.clsp.hex.sha256tree +0 -1
  560. chia/wallet/puzzles/dao_proposal_timer.clsp +0 -78
  561. chia/wallet/puzzles/dao_proposal_timer.clsp.hex +0 -1
  562. chia/wallet/puzzles/dao_proposal_timer.clsp.hex.sha256tree +0 -1
  563. chia/wallet/puzzles/dao_proposal_validator.clsp +0 -87
  564. chia/wallet/puzzles/dao_proposal_validator.clsp.hex +0 -1
  565. chia/wallet/puzzles/dao_proposal_validator.clsp.hex.sha256tree +0 -1
  566. chia/wallet/puzzles/dao_spend_p2_singleton_v2.clsp +0 -240
  567. chia/wallet/puzzles/dao_spend_p2_singleton_v2.clsp.hex +0 -1
  568. chia/wallet/puzzles/dao_spend_p2_singleton_v2.clsp.hex.sha256tree +0 -1
  569. chia/wallet/puzzles/dao_treasury.clsp +0 -115
  570. chia/wallet/puzzles/dao_treasury.clsp.hex +0 -1
  571. chia/wallet/puzzles/dao_update_proposal.clsp +0 -44
  572. chia/wallet/puzzles/dao_update_proposal.clsp.hex +0 -1
  573. chia/wallet/puzzles/json.clib +0 -25
  574. chia/wallet/puzzles/merkle_utils.clib +0 -18
  575. chia/wallet/puzzles/notification.clsp +0 -7
  576. chia/wallet/puzzles/notification.clsp.hex +0 -1
  577. chia/wallet/puzzles/p2_1_of_n.clsp +0 -22
  578. chia/wallet/puzzles/p2_1_of_n.clsp.hex +0 -1
  579. chia/wallet/puzzles/p2_conditions.clsp +0 -3
  580. chia/wallet/puzzles/p2_conditions.clsp.hex +0 -1
  581. chia/wallet/puzzles/p2_delegated_conditions.clsp +0 -18
  582. chia/wallet/puzzles/p2_delegated_conditions.clsp.hex +0 -1
  583. chia/wallet/puzzles/p2_delegated_puzzle.clsp +0 -19
  584. chia/wallet/puzzles/p2_delegated_puzzle.clsp.hex +0 -1
  585. chia/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.clsp +0 -91
  586. chia/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.clsp.hex +0 -1
  587. chia/wallet/puzzles/p2_m_of_n_delegate_direct.clsp +0 -108
  588. chia/wallet/puzzles/p2_m_of_n_delegate_direct.clsp.hex +0 -1
  589. chia/wallet/puzzles/p2_parent.clsp +0 -19
  590. chia/wallet/puzzles/p2_parent.clsp.hex +0 -1
  591. chia/wallet/puzzles/p2_puzzle_hash.clsp +0 -18
  592. chia/wallet/puzzles/p2_puzzle_hash.clsp.hex +0 -1
  593. chia/wallet/puzzles/p2_singleton.clsp +0 -30
  594. chia/wallet/puzzles/p2_singleton.clsp.hex +0 -1
  595. chia/wallet/puzzles/p2_singleton_aggregator.clsp +0 -81
  596. chia/wallet/puzzles/p2_singleton_aggregator.clsp.hex +0 -1
  597. chia/wallet/puzzles/p2_singleton_or_delayed_puzhash.clsp +0 -50
  598. chia/wallet/puzzles/p2_singleton_or_delayed_puzhash.clsp.hex +0 -1
  599. chia/wallet/puzzles/p2_singleton_via_delegated_puzzle.clsp +0 -47
  600. chia/wallet/puzzles/p2_singleton_via_delegated_puzzle.clsp.hex +0 -1
  601. chia/wallet/puzzles/settlement_payments.clsp +0 -49
  602. chia/wallet/puzzles/settlement_payments.clsp.hex +0 -1
  603. chia/wallet/puzzles/sha256tree.clib +0 -11
  604. chia/wallet/puzzles/singleton_launcher.clsp +0 -16
  605. chia/wallet/puzzles/singleton_launcher.clsp.hex +0 -1
  606. chia/wallet/puzzles/singleton_top_layer.clsp +0 -177
  607. chia/wallet/puzzles/singleton_top_layer.clsp.hex +0 -1
  608. chia/wallet/puzzles/singleton_top_layer_v1_1.clsp +0 -107
  609. chia/wallet/puzzles/singleton_top_layer_v1_1.clsp.hex +0 -1
  610. chia/wallet/puzzles/singleton_truths.clib +0 -21
  611. chia/wallet/vc_wallet/cr_puzzles/__init__.py +0 -0
  612. chia/wallet/vc_wallet/cr_puzzles/conditions_w_fee_announce.clsp +0 -3
  613. chia/wallet/vc_wallet/cr_puzzles/conditions_w_fee_announce.clsp.hex +0 -1
  614. chia/wallet/vc_wallet/cr_puzzles/credential_restriction.clsp +0 -304
  615. chia/wallet/vc_wallet/cr_puzzles/credential_restriction.clsp.hex +0 -1
  616. chia/wallet/vc_wallet/cr_puzzles/flag_proofs_checker.clsp +0 -45
  617. chia/wallet/vc_wallet/cr_puzzles/flag_proofs_checker.clsp.hex +0 -1
  618. chia/wallet/vc_wallet/vc_puzzles/__init__.py +0 -0
  619. chia/wallet/vc_wallet/vc_puzzles/covenant_layer.clsp +0 -30
  620. chia/wallet/vc_wallet/vc_puzzles/covenant_layer.clsp.hex +0 -1
  621. chia/wallet/vc_wallet/vc_puzzles/eml_covenant_morpher.clsp +0 -75
  622. chia/wallet/vc_wallet/vc_puzzles/eml_covenant_morpher.clsp.hex +0 -1
  623. chia/wallet/vc_wallet/vc_puzzles/eml_transfer_program_covenant_adapter.clsp +0 -32
  624. chia/wallet/vc_wallet/vc_puzzles/eml_transfer_program_covenant_adapter.clsp.hex +0 -1
  625. chia/wallet/vc_wallet/vc_puzzles/eml_update_metadata_with_DID.clsp +0 -80
  626. chia/wallet/vc_wallet/vc_puzzles/eml_update_metadata_with_DID.clsp.hex +0 -1
  627. chia/wallet/vc_wallet/vc_puzzles/exigent_metadata_layer.clsp +0 -163
  628. chia/wallet/vc_wallet/vc_puzzles/exigent_metadata_layer.clsp.hex +0 -1
  629. chia/wallet/vc_wallet/vc_puzzles/p2_announced_delegated_puzzle.clsp +0 -16
  630. chia/wallet/vc_wallet/vc_puzzles/p2_announced_delegated_puzzle.clsp.hex +0 -1
  631. chia/wallet/vc_wallet/vc_puzzles/standard_vc_backdoor_puzzle.clsp +0 -74
  632. chia/wallet/vc_wallet/vc_puzzles/standard_vc_backdoor_puzzle.clsp.hex +0 -1
  633. chia/wallet/vc_wallet/vc_puzzles/std_parent_morpher.clsp +0 -23
  634. chia/wallet/vc_wallet/vc_puzzles/std_parent_morpher.clsp.hex +0 -1
  635. chia/wallet/vc_wallet/vc_puzzles/viral_backdoor.clsp +0 -64
  636. chia/wallet/vc_wallet/vc_puzzles/viral_backdoor.clsp.hex +0 -1
  637. chia_blockchain-2.5.2rc2.dist-info/RECORD +0 -1042
  638. {chia_blockchain-2.5.2rc2.dist-info → chia_blockchain-2.5.3rc1.dist-info}/LICENSE +0 -0
  639. {chia_blockchain-2.5.2rc2.dist-info → chia_blockchain-2.5.3rc1.dist-info}/WHEEL +0 -0
  640. {chia_blockchain-2.5.2rc2.dist-info → chia_blockchain-2.5.3rc1.dist-info}/entry_points.txt +0 -0
@@ -5,18 +5,18 @@ from typing import Optional
5
5
 
6
6
  import pytest
7
7
  from chia_rs import G2Element
8
+ from chia_rs.sized_bytes import bytes32
9
+ from chia_rs.sized_ints import uint32, uint64
8
10
 
9
11
  from chia._tests.util.spend_sim import CostLogger, sim_and_client
10
12
  from chia.types.blockchain_format.coin import Coin
11
13
  from chia.types.blockchain_format.program import Program
12
- from chia.types.blockchain_format.sized_bytes import bytes32
13
14
  from chia.types.coin_spend import CoinSpend, make_spend
14
15
  from chia.types.mempool_inclusion_status import MempoolInclusionStatus
15
16
  from chia.util.errors import Err
16
17
  from chia.util.hash import std_hash
17
- from chia.util.ints import uint32, uint64
18
+ from chia.wallet.conditions import CreateCoin
18
19
  from chia.wallet.lineage_proof import LineageProof
19
- from chia.wallet.payment import Payment
20
20
  from chia.wallet.puzzles.singleton_top_layer_v1_1 import (
21
21
  launch_conditions_and_coinsol,
22
22
  puzzle_for_singleton,
@@ -30,14 +30,14 @@ from chia.wallet.vc_wallet.vc_drivers import (
30
30
  construct_exigent_metadata_layer,
31
31
  create_covenant_layer,
32
32
  create_did_tp,
33
+ create_revocation_layer,
33
34
  create_std_parent_morpher,
34
- create_viral_backdoor,
35
35
  match_covenant_layer,
36
36
  match_did_tp,
37
- match_viral_backdoor,
37
+ match_revocation_layer,
38
38
  solve_covenant_layer,
39
39
  solve_did_tp,
40
- solve_viral_backdoor,
40
+ solve_revocation_layer,
41
41
  )
42
42
  from chia.wallet.wallet_spend_bundle import WalletSpendBundle
43
43
 
@@ -311,13 +311,13 @@ async def test_did_tp(cost_logger: CostLogger) -> None:
311
311
 
312
312
 
313
313
  @pytest.mark.anyio
314
- async def test_viral_backdoor(cost_logger: CostLogger) -> None:
314
+ async def test_revocation_layer(cost_logger: CostLogger) -> None:
315
315
  async with sim_and_client() as (sim, client):
316
316
  # Setup and farm the puzzle
317
317
  hidden_puzzle: Program = Program.to((1, [[61, 1]])) # assert a coin announcement that the solution tells us
318
318
  hidden_puzzle_hash: bytes32 = hidden_puzzle.get_tree_hash()
319
- p2_either_puzzle: Program = create_viral_backdoor(hidden_puzzle_hash, ACS_PH)
320
- assert match_viral_backdoor(uncurry_puzzle(p2_either_puzzle)) == (hidden_puzzle_hash, ACS_PH)
319
+ p2_either_puzzle: Program = create_revocation_layer(hidden_puzzle_hash, ACS_PH)
320
+ assert match_revocation_layer(uncurry_puzzle(p2_either_puzzle)) == (hidden_puzzle_hash, ACS_PH)
321
321
 
322
322
  await sim.farm_block(p2_either_puzzle.get_tree_hash())
323
323
  p2_either_coin: Coin = (
@@ -333,7 +333,7 @@ async def test_viral_backdoor(cost_logger: CostLogger) -> None:
333
333
  make_spend(
334
334
  p2_either_coin,
335
335
  p2_either_puzzle,
336
- solve_viral_backdoor(
336
+ solve_revocation_layer(
337
337
  ACS,
338
338
  Program.to(None),
339
339
  hidden=True,
@@ -352,7 +352,7 @@ async def test_viral_backdoor(cost_logger: CostLogger) -> None:
352
352
  make_spend(
353
353
  p2_either_coin,
354
354
  p2_either_puzzle,
355
- solve_viral_backdoor(
355
+ solve_revocation_layer(
356
356
  hidden_puzzle,
357
357
  Program.to(bytes32.zeros),
358
358
  hidden=True,
@@ -366,7 +366,7 @@ async def test_viral_backdoor(cost_logger: CostLogger) -> None:
366
366
 
367
367
  # Spend the inner puzzle
368
368
  brick_hash: bytes32 = bytes32.zeros
369
- wrapped_brick_hash: bytes32 = create_viral_backdoor(
369
+ wrapped_brick_hash: bytes32 = create_revocation_layer(
370
370
  hidden_puzzle_hash,
371
371
  brick_hash,
372
372
  ).get_tree_hash()
@@ -378,7 +378,7 @@ async def test_viral_backdoor(cost_logger: CostLogger) -> None:
378
378
  make_spend(
379
379
  p2_either_coin,
380
380
  p2_either_puzzle,
381
- solve_viral_backdoor(
381
+ solve_revocation_layer(
382
382
  ACS,
383
383
  Program.to([[51, brick_hash, 0]]),
384
384
  ),
@@ -615,7 +615,7 @@ async def test_vc_lifecycle(test_syncing: bool, cost_logger: CostLogger) -> None
615
615
  AUTHORIZED_PROVIDERS: list[bytes32] = [launcher_id]
616
616
  dpuz_1, launch_crcat_spend_1, cr_1 = CRCAT.launch(
617
617
  cr_coin_1,
618
- Payment(ACS_PH, uint64(cr_coin_1.amount), []),
618
+ CreateCoin(ACS_PH, uint64(cr_coin_1.amount)),
619
619
  Program.to(None),
620
620
  Program.to(None),
621
621
  AUTHORIZED_PROVIDERS,
@@ -623,7 +623,7 @@ async def test_vc_lifecycle(test_syncing: bool, cost_logger: CostLogger) -> None
623
623
  )
624
624
  dpuz_2, launch_crcat_spend_2, cr_2 = CRCAT.launch(
625
625
  cr_coin_2,
626
- Payment(ACS_PH, uint64(cr_coin_2.amount), []),
626
+ CreateCoin(ACS_PH, uint64(cr_coin_2.amount)),
627
627
  Program.to(None),
628
628
  Program.to(None),
629
629
  AUTHORIZED_PROVIDERS,
@@ -6,6 +6,8 @@ from typing import Any, Callable, Optional
6
6
 
7
7
  import pytest
8
8
  from chia_rs import G2Element
9
+ from chia_rs.sized_bytes import bytes32
10
+ from chia_rs.sized_ints import uint64
9
11
  from typing_extensions import Literal
10
12
 
11
13
  from chia._tests.environments.wallet import WalletEnvironment, WalletStateTransition, WalletTestFramework
@@ -15,11 +17,9 @@ from chia.rpc.wallet_rpc_client import WalletRpcClient
15
17
  from chia.simulator.full_node_simulator import FullNodeSimulator
16
18
  from chia.types.blockchain_format.coin import coin_as_list
17
19
  from chia.types.blockchain_format.program import Program
18
- from chia.types.blockchain_format.sized_bytes import bytes32
19
20
  from chia.types.coin_spend import make_spend
20
21
  from chia.types.peer_info import PeerInfo
21
22
  from chia.util.bech32m import encode_puzzle_hash
22
- from chia.util.ints import uint64
23
23
  from chia.wallet.cat_wallet.cat_utils import CAT_MOD, construct_cat_puzzle
24
24
  from chia.wallet.cat_wallet.cat_wallet import CATWallet
25
25
  from chia.wallet.did_wallet.did_wallet import DIDWallet
@@ -719,8 +719,10 @@ async def test_self_revoke(wallet_environments: WalletTestFramework) -> None:
719
719
  wallet_environments.tx_config, push=False
720
720
  ) as action_scope:
721
721
  await (await wallet_node_0.wallet_state_manager.get_or_create_vc_wallet()).generate_signed_transaction(
722
- new_vc_record.vc.launcher_id,
722
+ [uint64(1)],
723
+ [await wallet_0.get_puzzle_hash(new=not action_scope.config.tx_config.reuse_puzhash)],
723
724
  action_scope,
725
+ vc_id=new_vc_record.vc.launcher_id,
724
726
  new_proof_hash=bytes32.zeros,
725
727
  self_revoke=True,
726
728
  )
@@ -3,23 +3,32 @@ from __future__ import annotations
3
3
  import time
4
4
  from typing import Any, Optional
5
5
 
6
- from chia_rs import G1Element, G2Element, compute_merkle_set_root
6
+ from chia_rs import (
7
+ ConsensusConstants,
8
+ Foliage,
9
+ FoliageBlockData,
10
+ FoliageTransactionBlock,
11
+ G1Element,
12
+ G2Element,
13
+ PoolTarget,
14
+ RewardChainBlock,
15
+ RewardChainBlockUnfinished,
16
+ TransactionsInfo,
17
+ compute_merkle_set_root,
18
+ )
19
+ from chia_rs.sized_bytes import bytes32, bytes100
20
+ from chia_rs.sized_ints import uint8, uint32, uint64, uint128
7
21
  from chiabip158 import PyBIP158
8
22
 
9
23
  from chia.consensus.block_record import BlockRecord
10
24
  from chia.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
11
25
  from chia.consensus.coinbase import create_farmer_coin, create_pool_coin
12
- from chia.consensus.constants import ConsensusConstants
13
26
  from chia.consensus.full_block_to_block_record import block_to_block_record
14
27
  from chia.full_node.bundle_tools import simple_solution_generator
15
28
  from chia.simulator.block_tools import BlockTools, compute_additions_unchecked
16
29
  from chia.types.blockchain_format.classgroup import ClassgroupElement
17
30
  from chia.types.blockchain_format.coin import Coin, hash_coin_ids
18
- from chia.types.blockchain_format.foliage import Foliage, FoliageBlockData, FoliageTransactionBlock, TransactionsInfo
19
- from chia.types.blockchain_format.pool_target import PoolTarget
20
31
  from chia.types.blockchain_format.proof_of_space import ProofOfSpace
21
- from chia.types.blockchain_format.reward_chain_block import RewardChainBlock, RewardChainBlockUnfinished
22
- from chia.types.blockchain_format.sized_bytes import bytes32, bytes100
23
32
  from chia.types.blockchain_format.vdf import VDFInfo, VDFProof
24
33
  from chia.types.full_block import FullBlock
25
34
  from chia.types.generator_types import BlockGenerator
@@ -27,7 +36,6 @@ from chia.types.spend_bundle import SpendBundle
27
36
  from chia.types.unfinished_block import UnfinishedBlock
28
37
  from chia.util.block_cache import BlockCache
29
38
  from chia.util.hash import std_hash
30
- from chia.util.ints import uint8, uint32, uint64, uint128
31
39
 
32
40
  DEFAULT_PROOF_OF_SPACE = ProofOfSpace(
33
41
  bytes32.zeros,
@@ -3,22 +3,22 @@ from __future__ import annotations
3
3
  from typing import Optional
4
4
 
5
5
  import pytest
6
+ from chia_rs import ConsensusConstants
7
+ from chia_rs.sized_bytes import bytes32
8
+ from chia_rs.sized_ints import uint8, uint32, uint64
6
9
 
7
10
  from chia._tests.util.blockchain_mock import BlockchainMock
8
11
  from chia.consensus.block_record import BlockRecord
9
- from chia.consensus.constants import ConsensusConstants
10
12
  from chia.consensus.default_constants import DEFAULT_CONSTANTS
11
13
  from chia.consensus.full_block_to_block_record import block_to_block_record
12
14
  from chia.consensus.pot_iterations import calculate_iterations_quality
13
15
  from chia.full_node.weight_proof import WeightProofHandler, _map_sub_epoch_summaries, _validate_summaries_weight
14
16
  from chia.simulator.block_tools import BlockTools
15
17
  from chia.types.blockchain_format.proof_of_space import calculate_prefix_bits, verify_and_get_quality_string
16
- from chia.types.blockchain_format.sized_bytes import bytes32
17
18
  from chia.types.blockchain_format.sub_epoch_summary import SubEpochSummary
18
19
  from chia.types.full_block import FullBlock
19
20
  from chia.types.header_block import HeaderBlock
20
21
  from chia.util.generator_tools import get_block_header
21
- from chia.util.ints import uint8, uint32, uint64
22
22
 
23
23
 
24
24
  async def load_blocks_dont_validate(
chia/cmds/chia.py CHANGED
@@ -10,7 +10,6 @@ from chia.cmds.beta import beta_cmd
10
10
  from chia.cmds.cmd_classes import ChiaCliContext
11
11
  from chia.cmds.completion import completion
12
12
  from chia.cmds.configure import configure_cmd
13
- from chia.cmds.dao import dao_cmd
14
13
  from chia.cmds.data import data_cmd
15
14
  from chia.cmds.db import db_cmd
16
15
  from chia.cmds.dev import dev_cmd
@@ -139,7 +138,6 @@ cli.add_command(data_cmd)
139
138
  cli.add_command(passphrase_cmd)
140
139
  cli.add_command(beta_cmd)
141
140
  cli.add_command(completion)
142
- cli.add_command(dao_cmd)
143
141
  cli.add_command(dev_cmd)
144
142
 
145
143
 
chia/cmds/cmd_classes.py CHANGED
@@ -21,9 +21,9 @@ from typing import (
21
21
  )
22
22
 
23
23
  import click
24
+ from chia_rs.sized_bytes import bytes32
24
25
  from typing_extensions import dataclass_transform
25
26
 
26
- from chia.types.blockchain_format.sized_bytes import bytes32
27
27
  from chia.util.byte_types import hexstr_to_bytes
28
28
  from chia.util.default_root import DEFAULT_ROOT_PATH
29
29
  from chia.util.streamable import is_type_SpecificOptional
@@ -271,11 +271,11 @@ def chia_command(
271
271
  # passed through the dataclass wrapper. Not sure what to do about this right now.
272
272
  if sys.version_info < (3, 10): # pragma: no cover
273
273
  # stuff below 3.10 doesn't know about kw_only
274
- wrapped_cls: type[ChiaCommand] = dataclass( # type: ignore[assignment]
274
+ wrapped_cls: type[ChiaCommand] = dataclass(
275
275
  frozen=True,
276
276
  )(cls)
277
277
  else:
278
- wrapped_cls: type[ChiaCommand] = dataclass( # type: ignore[assignment]
278
+ wrapped_cls: type[ChiaCommand] = dataclass(
279
279
  frozen=True,
280
280
  kw_only=True,
281
281
  )(cls)
chia/cmds/cmd_helpers.py CHANGED
@@ -7,12 +7,13 @@ from functools import cached_property
7
7
  from pathlib import Path
8
8
  from typing import Any, Callable, Optional, TypeVar
9
9
 
10
+ from chia_rs.sized_bytes import bytes32
11
+ from chia_rs.sized_ints import uint64
12
+
10
13
  from chia.cmds.cmd_classes import ChiaCliContext, command_helper, option
11
14
  from chia.cmds.cmds_util import CMDCoinSelectionConfigLoader, CMDTXConfigLoader, TransactionBundle, get_wallet_client
12
15
  from chia.cmds.param_types import AmountParamType, Bytes32ParamType, CliAmount, TransactionFeeParamType, cli_amount_none
13
16
  from chia.rpc.wallet_rpc_client import WalletRpcClient
14
- from chia.types.blockchain_format.sized_bytes import bytes32
15
- from chia.util.ints import uint64
16
17
  from chia.wallet.conditions import ConditionValidTimes
17
18
  from chia.wallet.transaction_record import TransactionRecord
18
19
  from chia.wallet.util.tx_config import CoinSelectionConfig, TXConfig
@@ -33,8 +34,7 @@ class NeedsWalletRPC:
33
34
  "-wp",
34
35
  "--wallet-rpc_port",
35
36
  help=(
36
- "Set the port where the Wallet is hosting the RPC interface."
37
- "See the rpc_port under wallet in config.yaml."
37
+ "Set the port where the Wallet is hosting the RPC interface. See the rpc_port under wallet in config.yaml."
38
38
  ),
39
39
  type=int,
40
40
  default=None,
chia/cmds/cmds_util.py CHANGED
@@ -11,6 +11,8 @@ from typing import Any, Callable, Optional, TypeVar
11
11
 
12
12
  import click
13
13
  from aiohttp import ClientConnectorCertificateError, ClientConnectorError
14
+ from chia_rs.sized_bytes import bytes32
15
+ from chia_rs.sized_ints import uint16, uint32, uint64
14
16
 
15
17
  from chia.cmds.param_types import AmountParamType, Bytes32ParamType, CliAmount, cli_amount_none
16
18
  from chia.consensus.default_constants import DEFAULT_CONSTANTS
@@ -23,11 +25,9 @@ from chia.rpc.rpc_client import ResponseFailureError, RpcClient
23
25
  from chia.rpc.wallet_request_types import LogIn
24
26
  from chia.rpc.wallet_rpc_client import WalletRpcClient
25
27
  from chia.simulator.simulator_full_node_rpc_client import SimulatorFullNodeRpcClient
26
- from chia.types.blockchain_format.sized_bytes import bytes32
27
28
  from chia.types.mempool_submission_status import MempoolSubmissionStatus
28
29
  from chia.util.config import load_config
29
30
  from chia.util.errors import CliRpcConnectionError, InvalidPathError
30
- from chia.util.ints import uint16, uint32, uint64
31
31
  from chia.util.keychain import KeyData
32
32
  from chia.util.streamable import Streamable, streamable
33
33
  from chia.wallet.conditions import ConditionValidTimes
chia/cmds/coin_funcs.py CHANGED
@@ -5,16 +5,17 @@ import sys
5
5
  from collections.abc import Sequence
6
6
  from typing import Optional
7
7
 
8
+ from chia_rs.sized_bytes import bytes32
9
+ from chia_rs.sized_ints import uint16, uint32, uint64
10
+
8
11
  from chia.cmds.cmd_helpers import WalletClientInfo
9
12
  from chia.cmds.cmds_util import CMDCoinSelectionConfigLoader, CMDTXConfigLoader, cli_confirm
10
13
  from chia.cmds.param_types import CliAmount
11
14
  from chia.cmds.wallet_funcs import get_mojo_per_unit, get_wallet_type, print_balance
12
15
  from chia.rpc.wallet_request_types import CombineCoins, SplitCoins
13
16
  from chia.types.blockchain_format.coin import Coin
14
- from chia.types.blockchain_format.sized_bytes import bytes32
15
17
  from chia.util.bech32m import encode_puzzle_hash
16
18
  from chia.util.config import selected_network_address_prefix
17
- from chia.util.ints import uint16, uint32, uint64
18
19
  from chia.wallet.conditions import ConditionValidTimes
19
20
  from chia.wallet.transaction_record import TransactionRecord
20
21
  from chia.wallet.util.wallet_types import WalletType
chia/cmds/coins.py CHANGED
@@ -4,6 +4,7 @@ from collections.abc import Sequence
4
4
  from typing import Optional
5
5
 
6
6
  import click
7
+ from chia_rs.sized_bytes import bytes32
7
8
 
8
9
  from chia.cmds.cmd_classes import (
9
10
  chia_command,
@@ -16,7 +17,6 @@ from chia.cmds.cmd_helpers import (
16
17
  transaction_endpoint_runner,
17
18
  )
18
19
  from chia.cmds.param_types import AmountParamType, Bytes32ParamType, CliAmount
19
- from chia.types.blockchain_format.sized_bytes import bytes32
20
20
  from chia.wallet.transaction_record import TransactionRecord
21
21
 
22
22
 
chia/cmds/data.py CHANGED
@@ -7,11 +7,11 @@ from pathlib import Path
7
7
  from typing import Any, Callable, Optional, TypeVar, Union
8
8
 
9
9
  import click
10
+ from chia_rs.sized_bytes import bytes32
11
+ from chia_rs.sized_ints import uint64
10
12
 
11
13
  from chia.cmds import options
12
14
  from chia.cmds.param_types import Bytes32ParamType
13
- from chia.types.blockchain_format.sized_bytes import bytes32
14
- from chia.util.ints import uint64
15
15
 
16
16
  _T = TypeVar("_T")
17
17
 
chia/cmds/data_funcs.py CHANGED
@@ -6,12 +6,13 @@ from collections.abc import AsyncIterator
6
6
  from pathlib import Path
7
7
  from typing import Any, Optional
8
8
 
9
+ from chia_rs.sized_bytes import bytes32
10
+ from chia_rs.sized_ints import uint64
11
+
9
12
  from chia.cmds.cmds_util import get_any_service_client
10
13
  from chia.rpc.data_layer_rpc_client import DataLayerRpcClient
11
- from chia.types.blockchain_format.sized_bytes import bytes32
12
14
  from chia.util.byte_types import hexstr_to_bytes
13
15
  from chia.util.default_root import resolve_root_path
14
- from chia.util.ints import uint64
15
16
 
16
17
 
17
18
  @contextlib.asynccontextmanager
@@ -220,7 +220,7 @@ def convert_v1_to_v2(in_path: Path, out_path: Path) -> None:
220
220
  br.block
221
221
  FROM block_records br
222
222
  JOIN full_blocks fb ON br.header_hash = fb.header_hash
223
- WHERE br.rowid IN ({','.join('?' * len(rowids))})
223
+ WHERE br.rowid IN ({",".join("?" * len(rowids))})
224
224
  """,
225
225
  rowids,
226
226
  )
@@ -330,7 +330,7 @@ def convert_v1_to_v2(in_path: Path, out_path: Path) -> None:
330
330
  coin_id,
331
331
  hint
332
332
  FROM hints
333
- WHERE id IN ({','.join('?' * len(rows))})
333
+ WHERE id IN ({",".join("?" * len(rows))})
334
334
  """,
335
335
  [id_tuple[0] for id_tuple in rows],
336
336
  )
@@ -3,9 +3,11 @@ from __future__ import annotations
3
3
  from pathlib import Path
4
4
  from typing import Any, Optional
5
5
 
6
+ from chia_rs.sized_bytes import bytes32
7
+
6
8
  from chia.consensus.block_record import BlockRecord
9
+ from chia.consensus.constants import replace_str_to_bytes
7
10
  from chia.consensus.default_constants import DEFAULT_CONSTANTS
8
- from chia.types.blockchain_format.sized_bytes import bytes32
9
11
  from chia.types.full_block import FullBlock
10
12
  from chia.util.config import load_config
11
13
  from chia.util.path import path_from_root
@@ -17,19 +19,20 @@ def db_validate_func(
17
19
  *,
18
20
  validate_blocks: bool,
19
21
  ) -> None:
22
+ config: dict[str, Any] = load_config(root_path, "config.yaml")
20
23
  if in_db_path is None:
21
- config: dict[str, Any] = load_config(root_path, "config.yaml")["full_node"]
22
- selected_network: str = config["selected_network"]
23
- db_pattern: str = config["database_path"]
24
+ full_node_config = config["full_node"]
25
+ selected_network: str = full_node_config["selected_network"]
26
+ db_pattern: str = full_node_config["database_path"]
24
27
  db_path_replaced: str = db_pattern.replace("CHALLENGE", selected_network)
25
28
  in_db_path = path_from_root(root_path, db_path_replaced)
26
29
 
27
- validate_v2(in_db_path, validate_blocks=validate_blocks)
30
+ validate_v2(in_db_path, config=config, validate_blocks=validate_blocks)
28
31
 
29
32
  print(f"\n\nDATABASE IS VALID: {in_db_path}\n")
30
33
 
31
34
 
32
- def validate_v2(in_path: Path, *, validate_blocks: bool) -> None:
35
+ def validate_v2(in_path: Path, *, config: dict[str, Any], validate_blocks: bool) -> None:
33
36
  import sqlite3
34
37
  from contextlib import closing
35
38
 
@@ -174,10 +177,14 @@ def validate_v2(in_path: Path, *, validate_blocks: bool) -> None:
174
177
 
175
178
  # make sure the prev_hash pointer of block height 0 is the genesis
176
179
  # challenge
177
- if next_hash != DEFAULT_CONSTANTS.AGG_SIG_ME_ADDITIONAL_DATA:
180
+ service_config = config["full_node"]
181
+ network_id = service_config["selected_network"]
182
+ overrides = service_config["network_overrides"]["constants"][network_id]
183
+ updated_constants = replace_str_to_bytes(DEFAULT_CONSTANTS, **overrides)
184
+ if next_hash != updated_constants.AGG_SIG_ME_ADDITIONAL_DATA:
178
185
  raise RuntimeError(
179
186
  f"Blockchain has invalid genesis challenge {next_hash}, expected "
180
- f"{DEFAULT_CONSTANTS.AGG_SIG_ME_ADDITIONAL_DATA.hex()}"
187
+ f"{updated_constants.AGG_SIG_ME_ADDITIONAL_DATA.hex()}"
181
188
  )
182
189
 
183
190
  if num_orphans > 0:
chia/cmds/farm.py CHANGED
@@ -17,8 +17,7 @@ def farm_cmd() -> None:
17
17
  "-p",
18
18
  "--rpc-port",
19
19
  help=(
20
- "Set the port where the Full Node is hosting the RPC interface. "
21
- "See the rpc_port under full_node in config.yaml"
20
+ "Set the port where the Full Node is hosting the RPC interface. See the rpc_port under full_node in config.yaml"
22
21
  ),
23
22
  type=int,
24
23
  default=None,
@@ -36,8 +35,7 @@ def farm_cmd() -> None:
36
35
  "-hp",
37
36
  "--harvester-rpc-port",
38
37
  help=(
39
- "Set the port where the Harvester is hosting the RPC interface"
40
- "See the rpc_port under harvester in config.yaml"
38
+ "Set the port where the Harvester is hosting the RPC interface. See the rpc_port under harvester in config.yaml"
41
39
  ),
42
40
  type=int,
43
41
  default=None,
chia/cmds/keys.py CHANGED
@@ -380,8 +380,6 @@ def _resolve_fingerprint_and_sk(
380
380
  if non_observer_derivation and resolved_sk is None:
381
381
  print("Could not resolve private key for non-observer derivation")
382
382
  raise ResolutionError()
383
- else:
384
- pass
385
383
 
386
384
  if reolved_fp is None:
387
385
  print("A fingerprint of a root key to derive from is required")
chia/cmds/keys_funcs.py CHANGED
@@ -8,6 +8,7 @@ from pathlib import Path
8
8
  from typing import Any, Optional, Union
9
9
 
10
10
  from chia_rs import AugSchemeMPL, G1Element, G2Element, PrivateKey
11
+ from chia_rs.sized_ints import uint32
11
12
 
12
13
  from chia.consensus.coinbase import create_puzzlehash_for_pk
13
14
  from chia.types.signing_mode import SigningMode
@@ -15,7 +16,6 @@ from chia.util.bech32m import bech32_encode, convertbits, encode_puzzle_hash
15
16
  from chia.util.config import load_config
16
17
  from chia.util.errors import KeychainException
17
18
  from chia.util.file_keyring import MAX_LABEL_LENGTH
18
- from chia.util.ints import uint32
19
19
  from chia.util.keychain import (
20
20
  Keychain,
21
21
  KeyData,
@@ -3,9 +3,10 @@ from __future__ import annotations
3
3
  from pathlib import Path
4
4
  from typing import Optional
5
5
 
6
+ from chia_rs.sized_bytes import bytes32
7
+
6
8
  from chia.cmds.cmds_util import format_bytes, get_any_service_client
7
9
  from chia.rpc.full_node_rpc_client import FullNodeRpcClient
8
- from chia.types.blockchain_format.sized_bytes import bytes32
9
10
 
10
11
 
11
12
  async def netstorge_async(root_path: Path, rpc_port: Optional[int], delta_block_height: str, start: str) -> None:
chia/cmds/param_types.py CHANGED
@@ -5,14 +5,14 @@ from decimal import Decimal, InvalidOperation
5
5
  from typing import Any, Callable, Optional, Union
6
6
 
7
7
  import click
8
+ from chia_rs.sized_bytes import bytes32
9
+ from chia_rs.sized_ints import uint64
8
10
 
9
11
  from chia.cmds.cmd_classes import ChiaCliContext
10
12
  from chia.cmds.units import units
11
- from chia.types.blockchain_format.sized_bytes import bytes32
12
13
  from chia.util.bech32m import bech32_decode, decode_puzzle_hash
13
14
  from chia.util.config import load_config, selected_network_address_prefix
14
15
  from chia.util.default_root import DEFAULT_ROOT_PATH
15
- from chia.util.ints import uint64
16
16
  from chia.wallet.util.address_type import AddressType
17
17
 
18
18
  one_decimal_mojo = Decimal("1e-12")
chia/cmds/plotnft.py CHANGED
@@ -4,6 +4,8 @@ from dataclasses import field
4
4
  from typing import Optional
5
5
 
6
6
  import click
7
+ from chia_rs.sized_bytes import bytes32
8
+ from chia_rs.sized_ints import uint64
7
9
 
8
10
  from chia.cmds.cmd_classes import ChiaCliContext, chia_command, option
9
11
  from chia.cmds.cmd_helpers import NeedsWalletRPC
@@ -13,9 +15,7 @@ from chia.cmds.param_types import (
13
15
  CliAddress,
14
16
  TransactionFeeParamType,
15
17
  )
16
- from chia.types.blockchain_format.sized_bytes import bytes32
17
18
  from chia.util.errors import CliRpcConnectionError
18
- from chia.util.ints import uint64
19
19
 
20
20
 
21
21
  @click.group("plotnft", help="Manage your plot NFTs")
@@ -11,6 +11,8 @@ from pprint import pprint
11
11
  from typing import Any, Callable, Optional
12
12
 
13
13
  import aiohttp
14
+ from chia_rs.sized_bytes import bytes32
15
+ from chia_rs.sized_ints import uint32, uint64
14
16
 
15
17
  from chia.cmds.cmd_helpers import WalletClientInfo
16
18
  from chia.cmds.cmds_util import (
@@ -28,11 +30,9 @@ from chia.rpc.farmer_rpc_client import FarmerRpcClient
28
30
  from chia.rpc.wallet_rpc_client import WalletRpcClient
29
31
  from chia.server.server import ssl_context_for_root
30
32
  from chia.ssl.create_ssl import get_mozilla_ca_crt
31
- from chia.types.blockchain_format.sized_bytes import bytes32
32
33
  from chia.util.bech32m import encode_puzzle_hash
33
34
  from chia.util.default_root import DEFAULT_ROOT_PATH
34
35
  from chia.util.errors import CliRpcConnectionError
35
- from chia.util.ints import uint32, uint64
36
36
  from chia.wallet.transaction_record import TransactionRecord
37
37
  from chia.wallet.util.address_type import AddressType
38
38
  from chia.wallet.util.wallet_types import WalletType
chia/cmds/rpc.py CHANGED
@@ -8,10 +8,10 @@ from typing import Any, Optional, TextIO
8
8
 
9
9
  import click
10
10
  from aiohttp import ClientResponseError
11
+ from chia_rs.sized_ints import uint16
11
12
 
12
13
  from chia.cmds.cmd_classes import ChiaCliContext
13
14
  from chia.util.config import load_config
14
- from chia.util.ints import uint16
15
15
 
16
16
  services: list[str] = ["crawler", "daemon", "farmer", "full_node", "harvester", "timelord", "wallet", "data_layer"]
17
17
 
chia/cmds/show.py CHANGED
@@ -13,8 +13,7 @@ from chia.cmds.show_funcs import show_async
13
13
  "-p",
14
14
  "--rpc-port",
15
15
  help=(
16
- "Set the port where the Full Node is hosting the RPC interface. "
17
- "See the rpc_port under full_node in config.yaml"
16
+ "Set the port where the Full Node is hosting the RPC interface. See the rpc_port under full_node in config.yaml"
18
17
  ),
19
18
  type=int,
20
19
  default=None,
chia/cmds/show_funcs.py CHANGED
@@ -4,16 +4,18 @@ import json
4
4
  from pathlib import Path
5
5
  from typing import Any, Optional, Union
6
6
 
7
+ from chia_rs.sized_bytes import bytes32
8
+
7
9
  from chia.rpc.full_node_rpc_client import FullNodeRpcClient
8
- from chia.types.blockchain_format.sized_bytes import bytes32
9
10
 
10
11
 
11
12
  async def print_blockchain_state(node_client: FullNodeRpcClient, config: dict[str, Any]) -> bool:
12
13
  import time
13
14
 
15
+ from chia_rs.sized_ints import uint64
16
+
14
17
  from chia.cmds.cmds_util import format_bytes
15
18
  from chia.consensus.block_record import BlockRecord
16
- from chia.util.ints import uint64
17
19
 
18
20
  blockchain_state = await node_client.get_blockchain_state()
19
21
  if blockchain_state is None:
@@ -97,8 +99,9 @@ async def print_block_from_hash(
97
99
  ) -> None:
98
100
  import time
99
101
 
102
+ from chia_rs.sized_bytes import bytes32
103
+
100
104
  from chia.consensus.block_record import BlockRecord
101
- from chia.types.blockchain_format.sized_bytes import bytes32
102
105
  from chia.types.full_block import FullBlock
103
106
  from chia.util.bech32m import encode_puzzle_hash
104
107
 
chia/cmds/signer.py CHANGED
@@ -161,8 +161,7 @@ class SPOut(QrCodeDisplay, _SPTranslation):
161
161
  return
162
162
  elif len(self.output_file) != len(outputs):
163
163
  print(
164
- "Incorrect number of file outputs specified, "
165
- f"expected: {len(outputs)} got {len(self.output_file)}"
164
+ f"Incorrect number of file outputs specified, expected: {len(outputs)} got {len(self.output_file)}"
166
165
  )
167
166
  return
168
167
  else:
chia/cmds/sim.py CHANGED
@@ -17,8 +17,7 @@ from chia.util.default_root import SIMULATOR_ROOT_PATH
17
17
  "-p",
18
18
  "--rpc-port",
19
19
  help=(
20
- "Set the port where the Simulator is hosting the RPC interface. "
21
- "See the rpc_port under full_node in config.yaml"
20
+ "Set the port where the Simulator is hosting the RPC interface. See the rpc_port under full_node in config.yaml"
22
21
  ),
23
22
  type=int,
24
23
  default=None,