chia-blockchain 2.5.0rc2__py3-none-any.whl → 2.5.1rc2__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 (637) hide show
  1. chia/_tests/README.md +1 -1
  2. chia/_tests/blockchain/blockchain_test_utils.py +24 -26
  3. chia/_tests/blockchain/test_augmented_chain.py +6 -8
  4. chia/_tests/blockchain/test_blockchain.py +409 -307
  5. chia/_tests/blockchain/test_blockchain_transactions.py +56 -75
  6. chia/_tests/blockchain/test_build_chains.py +11 -13
  7. chia/_tests/blockchain/test_get_block_generator.py +8 -8
  8. chia/_tests/blockchain/test_lookup_fork_chain.py +3 -4
  9. chia/_tests/build-init-files.py +3 -4
  10. chia/_tests/build-job-matrix.py +9 -9
  11. chia/_tests/check_sql_statements.py +2 -3
  12. chia/_tests/clvm/benchmark_costs.py +1 -1
  13. chia/_tests/clvm/coin_store.py +7 -5
  14. chia/_tests/clvm/test_chialisp_deserialization.py +8 -8
  15. chia/_tests/clvm/test_condition_codes.py +2 -2
  16. chia/_tests/clvm/test_curry_and_treehash.py +2 -4
  17. chia/_tests/clvm/test_message_conditions.py +184 -0
  18. chia/_tests/clvm/test_puzzle_compression.py +1 -2
  19. chia/_tests/clvm/test_puzzle_drivers.py +3 -3
  20. chia/_tests/clvm/test_puzzles.py +13 -18
  21. chia/_tests/clvm/test_singletons.py +17 -17
  22. chia/_tests/clvm/test_spend_sim.py +7 -7
  23. chia/_tests/cmds/cmd_test_utils.py +42 -45
  24. chia/_tests/cmds/conftest.py +2 -2
  25. chia/_tests/cmds/test_click_types.py +21 -16
  26. chia/_tests/cmds/test_cmd_framework.py +255 -35
  27. chia/_tests/cmds/test_cmds_util.py +2 -2
  28. chia/_tests/cmds/test_daemon.py +3 -3
  29. chia/_tests/cmds/test_dev_gh.py +131 -0
  30. chia/_tests/cmds/test_farm_cmd.py +1 -2
  31. chia/_tests/cmds/test_show.py +6 -6
  32. chia/_tests/cmds/test_tx_config_args.py +2 -1
  33. chia/_tests/cmds/wallet/test_dao.py +23 -23
  34. chia/_tests/cmds/wallet/test_did.py +29 -29
  35. chia/_tests/cmds/wallet/test_nft.py +24 -23
  36. chia/_tests/cmds/wallet/test_notifications.py +8 -8
  37. chia/_tests/cmds/wallet/test_tx_decorators.py +3 -3
  38. chia/_tests/cmds/wallet/test_vcs.py +97 -73
  39. chia/_tests/cmds/wallet/test_wallet.py +74 -75
  40. chia/_tests/cmds/wallet/test_wallet_check.py +5 -7
  41. chia/_tests/conftest.py +153 -38
  42. chia/_tests/connection_utils.py +7 -6
  43. chia/_tests/core/cmds/test_beta.py +3 -3
  44. chia/_tests/core/cmds/test_keys.py +6 -6
  45. chia/_tests/core/cmds/test_wallet.py +3 -3
  46. chia/_tests/core/consensus/test_block_creation.py +3 -5
  47. chia/_tests/core/custom_types/test_coin.py +1 -3
  48. chia/_tests/core/custom_types/test_spend_bundle.py +3 -4
  49. chia/_tests/core/daemon/test_daemon.py +58 -58
  50. chia/_tests/core/daemon/test_keychain_proxy.py +2 -1
  51. chia/_tests/core/data_layer/conftest.py +4 -3
  52. chia/_tests/core/data_layer/test_data_cli.py +1 -2
  53. chia/_tests/core/data_layer/test_data_layer.py +5 -5
  54. chia/_tests/core/data_layer/test_data_layer_util.py +8 -9
  55. chia/_tests/core/data_layer/test_data_rpc.py +75 -93
  56. chia/_tests/core/data_layer/test_data_store.py +38 -37
  57. chia/_tests/core/data_layer/test_data_store_schema.py +11 -11
  58. chia/_tests/core/data_layer/util.py +11 -10
  59. chia/_tests/core/farmer/test_farmer_api.py +6 -4
  60. chia/_tests/core/full_node/full_sync/test_full_sync.py +5 -10
  61. chia/_tests/core/full_node/ram_db.py +2 -2
  62. chia/_tests/core/full_node/stores/test_block_store.py +113 -11
  63. chia/_tests/core/full_node/stores/test_coin_store.py +37 -28
  64. chia/_tests/core/full_node/stores/test_full_node_store.py +34 -30
  65. chia/_tests/core/full_node/stores/test_hint_store.py +3 -4
  66. chia/_tests/core/full_node/test_address_manager.py +2 -2
  67. chia/_tests/core/full_node/test_block_height_map.py +1 -1
  68. chia/_tests/core/full_node/test_conditions.py +10 -12
  69. chia/_tests/core/full_node/test_full_node.py +2077 -1822
  70. chia/_tests/core/full_node/test_generator_tools.py +4 -4
  71. chia/_tests/core/full_node/test_hint_management.py +2 -2
  72. chia/_tests/core/full_node/test_performance.py +2 -5
  73. chia/_tests/core/full_node/test_subscriptions.py +4 -4
  74. chia/_tests/core/full_node/test_tx_processing_queue.py +5 -4
  75. chia/_tests/core/make_block_generator.py +5 -7
  76. chia/_tests/core/mempool/test_mempool.py +205 -208
  77. chia/_tests/core/mempool/test_mempool_fee_protocol.py +5 -5
  78. chia/_tests/core/mempool/test_mempool_item_queries.py +2 -4
  79. chia/_tests/core/mempool/test_mempool_manager.py +109 -80
  80. chia/_tests/core/mempool/test_mempool_performance.py +3 -4
  81. chia/_tests/core/mempool/test_singleton_fast_forward.py +12 -12
  82. chia/_tests/core/server/flood.py +6 -4
  83. chia/_tests/core/server/serve.py +10 -7
  84. chia/_tests/core/server/test_api_protocol.py +21 -0
  85. chia/_tests/core/server/test_capabilities.py +3 -5
  86. chia/_tests/core/server/test_dos.py +15 -16
  87. chia/_tests/core/server/test_loop.py +14 -10
  88. chia/_tests/core/server/test_node_discovery.py +1 -2
  89. chia/_tests/core/server/test_rate_limits.py +156 -44
  90. chia/_tests/core/server/test_server.py +8 -7
  91. chia/_tests/core/services/test_services.py +59 -37
  92. chia/_tests/core/ssl/test_ssl.py +5 -3
  93. chia/_tests/core/test_cost_calculation.py +5 -6
  94. chia/_tests/core/test_crawler.py +2 -2
  95. chia/_tests/core/test_db_conversion.py +5 -4
  96. chia/_tests/core/test_db_validation.py +6 -5
  97. chia/_tests/core/test_farmer_harvester_rpc.py +8 -7
  98. chia/_tests/core/test_filter.py +3 -5
  99. chia/_tests/core/test_full_node_rpc.py +64 -90
  100. chia/_tests/core/test_merkle_set.py +10 -10
  101. chia/_tests/core/test_program.py +2 -4
  102. chia/_tests/core/test_rpc_util.py +1 -2
  103. chia/_tests/core/test_seeder.py +124 -12
  104. chia/_tests/core/util/test_block_cache.py +5 -5
  105. chia/_tests/core/util/test_cached_bls.py +3 -3
  106. chia/_tests/core/util/test_config.py +13 -13
  107. chia/_tests/core/util/test_files.py +2 -2
  108. chia/_tests/core/util/test_jsonify.py +9 -9
  109. chia/_tests/core/util/test_keychain.py +13 -5
  110. chia/_tests/core/util/test_keyring_wrapper.py +6 -5
  111. chia/_tests/core/util/test_log_exceptions.py +3 -3
  112. chia/_tests/core/util/test_streamable.py +38 -38
  113. chia/_tests/db/test_db_wrapper.py +13 -12
  114. chia/_tests/environments/common.py +2 -2
  115. chia/_tests/environments/full_node.py +2 -2
  116. chia/_tests/environments/wallet.py +109 -48
  117. chia/_tests/farmer_harvester/test_farmer.py +35 -35
  118. chia/_tests/farmer_harvester/test_farmer_harvester.py +17 -17
  119. chia/_tests/farmer_harvester/test_filter_prefix_bits.py +6 -5
  120. chia/_tests/farmer_harvester/test_third_party_harvesters.py +73 -46
  121. chia/_tests/fee_estimation/test_fee_estimation_integration.py +8 -8
  122. chia/_tests/fee_estimation/test_fee_estimation_rpc.py +47 -47
  123. chia/_tests/fee_estimation/test_fee_estimation_unit_tests.py +6 -7
  124. chia/_tests/fee_estimation/test_mempoolitem_height_added.py +11 -11
  125. chia/_tests/generator/test_compression.py +13 -30
  126. chia/_tests/generator/test_generator_types.py +3 -3
  127. chia/_tests/generator/test_rom.py +7 -9
  128. chia/_tests/plot_sync/test_delta.py +2 -3
  129. chia/_tests/plot_sync/test_plot_sync.py +25 -24
  130. chia/_tests/plot_sync/test_receiver.py +9 -9
  131. chia/_tests/plot_sync/test_sender.py +1 -1
  132. chia/_tests/plot_sync/test_sync_simulated.py +27 -26
  133. chia/_tests/plot_sync/util.py +2 -1
  134. chia/_tests/plotting/test_plot_manager.py +54 -11
  135. chia/_tests/plotting/util.py +2 -3
  136. chia/_tests/pools/test_pool_cli_parsing.py +128 -0
  137. chia/_tests/pools/test_pool_cmdline.py +993 -15
  138. chia/_tests/pools/test_pool_config.py +3 -5
  139. chia/_tests/pools/test_pool_puzzles_lifecycle.py +10 -11
  140. chia/_tests/pools/test_pool_rpc.py +203 -90
  141. chia/_tests/pools/test_pool_wallet.py +12 -8
  142. chia/_tests/pools/test_wallet_pool_store.py +3 -3
  143. chia/_tests/process_junit.py +16 -17
  144. chia/_tests/rpc/test_rpc_client.py +59 -2
  145. chia/_tests/rpc/test_rpc_server.py +183 -0
  146. chia/_tests/simulation/test_simulation.py +5 -5
  147. chia/_tests/simulation/test_simulator.py +8 -10
  148. chia/_tests/simulation/test_start_simulator.py +5 -4
  149. chia/_tests/timelord/test_new_peak.py +19 -19
  150. chia/_tests/tools/test_run_block.py +1 -2
  151. chia/_tests/tools/test_virtual_project.py +591 -0
  152. chia/_tests/util/benchmark_cost.py +9 -9
  153. chia/_tests/util/benchmarks.py +1 -2
  154. chia/_tests/util/blockchain.py +12 -11
  155. chia/_tests/util/blockchain_mock.py +15 -15
  156. chia/_tests/util/build_network_protocol_files.py +12 -12
  157. chia/_tests/util/db_connection.py +3 -2
  158. chia/_tests/util/full_sync.py +14 -6
  159. chia/_tests/util/gen_ssl_certs.py +4 -5
  160. chia/_tests/util/generator_tools_testing.py +5 -7
  161. chia/_tests/util/get_name_puzzle_conditions.py +52 -0
  162. chia/_tests/util/key_tool.py +2 -3
  163. chia/_tests/util/misc.py +59 -106
  164. chia/_tests/util/network_protocol_data.py +7 -9
  165. chia/_tests/util/protocol_messages_json.py +112 -111
  166. chia/_tests/util/rpc.py +3 -0
  167. chia/_tests/util/run_block.py +16 -16
  168. chia/_tests/util/setup_nodes.py +25 -23
  169. chia/{clvm → _tests/util}/spend_sim.py +59 -55
  170. chia/_tests/util/split_managers.py +12 -9
  171. chia/_tests/util/temp_file.py +1 -1
  172. chia/_tests/util/test_action_scope.py +2 -1
  173. chia/_tests/util/test_async_pool.py +8 -8
  174. chia/_tests/util/test_build_job_matrix.py +2 -3
  175. chia/_tests/util/test_condition_tools.py +4 -6
  176. chia/_tests/util/test_config.py +5 -5
  177. chia/_tests/util/test_dump_keyring.py +1 -1
  178. chia/_tests/util/test_full_block_utils.py +19 -11
  179. chia/_tests/util/test_limited_semaphore.py +4 -3
  180. chia/_tests/util/test_logging_filter.py +2 -3
  181. chia/_tests/util/test_misc.py +29 -28
  182. chia/_tests/util/test_network.py +32 -31
  183. chia/_tests/util/test_network_protocol_files.py +2 -3
  184. chia/_tests/util/test_network_protocol_json.py +1 -0
  185. chia/_tests/util/test_network_protocol_test.py +18 -19
  186. chia/_tests/util/test_paginator.py +3 -4
  187. chia/_tests/util/test_pprint.py +1 -1
  188. chia/_tests/util/test_priority_mutex.py +18 -17
  189. chia/_tests/util/test_recursive_replace.py +2 -2
  190. chia/_tests/util/test_testnet_overrides.py +3 -3
  191. chia/_tests/util/test_timing.py +1 -1
  192. chia/_tests/util/test_trusted_peer.py +2 -2
  193. chia/_tests/util/time_out_assert.py +43 -6
  194. chia/_tests/wallet/cat_wallet/test_cat_lifecycle.py +13 -13
  195. chia/_tests/wallet/cat_wallet/test_cat_outer_puzzle.py +1 -1
  196. chia/_tests/wallet/cat_wallet/test_cat_wallet.py +117 -29
  197. chia/_tests/wallet/cat_wallet/test_offer_lifecycle.py +15 -15
  198. chia/_tests/wallet/cat_wallet/test_trades.py +50 -28
  199. chia/_tests/wallet/clawback/test_clawback_decorator.py +3 -5
  200. chia/_tests/wallet/clawback/test_clawback_lifecycle.py +6 -6
  201. chia/_tests/wallet/clawback/test_clawback_metadata.py +1 -2
  202. chia/_tests/wallet/conftest.py +135 -74
  203. chia/_tests/wallet/dao_wallet/test_dao_clvm.py +25 -17
  204. chia/_tests/wallet/dao_wallet/test_dao_wallets.py +75 -75
  205. chia/_tests/wallet/db_wallet/test_db_graftroot.py +10 -12
  206. chia/_tests/wallet/db_wallet/test_dl_offers.py +6 -6
  207. chia/_tests/wallet/db_wallet/test_dl_wallet.py +18 -18
  208. chia/_tests/wallet/did_wallet/test_did.py +1277 -474
  209. chia/_tests/wallet/nft_wallet/test_nft_1_offers.py +12 -11
  210. chia/_tests/wallet/nft_wallet/test_nft_bulk_mint.py +115 -105
  211. chia/_tests/wallet/nft_wallet/test_nft_lifecycle.py +6 -7
  212. chia/_tests/wallet/nft_wallet/test_nft_offers.py +16 -16
  213. chia/_tests/wallet/nft_wallet/test_nft_puzzles.py +3 -3
  214. chia/_tests/wallet/nft_wallet/test_nft_wallet.py +38 -12
  215. chia/_tests/wallet/nft_wallet/test_ownership_outer_puzzle.py +1 -1
  216. chia/_tests/wallet/rpc/test_dl_wallet_rpc.py +31 -33
  217. chia/_tests/wallet/rpc/test_wallet_rpc.py +218 -171
  218. chia/_tests/wallet/simple_sync/test_simple_sync_protocol.py +36 -37
  219. chia/_tests/wallet/sync/test_wallet_sync.py +241 -78
  220. chia/_tests/wallet/test_address_type.py +20 -20
  221. chia/_tests/wallet/test_clvm_streamable.py +5 -5
  222. chia/_tests/wallet/test_coin_management.py +354 -0
  223. chia/_tests/wallet/test_coin_selection.py +34 -35
  224. chia/_tests/wallet/test_conditions.py +28 -16
  225. chia/_tests/wallet/test_debug_spend_bundle.py +156 -14
  226. chia/_tests/wallet/test_new_wallet_protocol.py +29 -31
  227. chia/_tests/wallet/test_nft_store.py +1 -2
  228. chia/_tests/wallet/test_notifications.py +2 -2
  229. chia/_tests/wallet/test_offer_parsing_performance.py +1 -1
  230. chia/_tests/wallet/test_puzzle_store.py +2 -3
  231. chia/_tests/wallet/test_sign_coin_spends.py +3 -3
  232. chia/_tests/wallet/test_signer_protocol.py +33 -34
  233. chia/_tests/wallet/test_singleton_lifecycle_fast.py +29 -29
  234. chia/_tests/wallet/test_taproot.py +1 -1
  235. chia/_tests/wallet/test_transaction_store.py +23 -19
  236. chia/_tests/wallet/test_util.py +36 -32
  237. chia/_tests/wallet/test_wallet.py +37 -37
  238. chia/_tests/wallet/test_wallet_action_scope.py +8 -8
  239. chia/_tests/wallet/test_wallet_blockchain.py +4 -6
  240. chia/_tests/wallet/test_wallet_coin_store.py +34 -34
  241. chia/_tests/wallet/test_wallet_node.py +69 -72
  242. chia/_tests/wallet/test_wallet_retry.py +3 -3
  243. chia/_tests/wallet/test_wallet_state_manager.py +12 -5
  244. chia/_tests/wallet/test_wallet_trade_store.py +2 -2
  245. chia/_tests/wallet/test_wallet_utils.py +5 -4
  246. chia/_tests/wallet/vc_wallet/test_cr_outer_puzzle.py +3 -3
  247. chia/_tests/wallet/vc_wallet/test_vc_lifecycle.py +18 -18
  248. chia/_tests/wallet/vc_wallet/test_vc_wallet.py +69 -40
  249. chia/_tests/wallet/wallet_block_tools.py +27 -27
  250. chia/_tests/weight_proof/test_weight_proof.py +30 -30
  251. chia/apis.py +19 -0
  252. chia/cmds/beta.py +8 -7
  253. chia/cmds/beta_funcs.py +15 -11
  254. chia/cmds/check_wallet_db.py +29 -27
  255. chia/cmds/chia.py +17 -9
  256. chia/cmds/cmd_classes.py +87 -79
  257. chia/cmds/cmd_helpers.py +242 -0
  258. chia/cmds/cmds_util.py +56 -66
  259. chia/cmds/coin_funcs.py +168 -153
  260. chia/cmds/coins.py +156 -194
  261. chia/cmds/configure.py +4 -3
  262. chia/cmds/dao.py +89 -33
  263. chia/cmds/dao_funcs.py +55 -33
  264. chia/cmds/data.py +7 -6
  265. chia/cmds/data_funcs.py +26 -21
  266. chia/cmds/db.py +4 -3
  267. chia/cmds/db_backup_func.py +2 -2
  268. chia/cmds/db_upgrade_func.py +3 -3
  269. chia/cmds/db_validate_func.py +2 -2
  270. chia/cmds/dev.py +2 -0
  271. chia/cmds/farm.py +18 -5
  272. chia/cmds/farm_funcs.py +17 -24
  273. chia/cmds/gh.py +275 -0
  274. chia/cmds/init.py +4 -11
  275. chia/cmds/init_funcs.py +9 -9
  276. chia/cmds/installers.py +5 -3
  277. chia/cmds/keys.py +56 -39
  278. chia/cmds/keys_funcs.py +30 -31
  279. chia/cmds/netspace.py +6 -3
  280. chia/cmds/netspace_funcs.py +3 -2
  281. chia/cmds/param_types.py +16 -6
  282. chia/cmds/passphrase.py +8 -7
  283. chia/cmds/passphrase_funcs.py +7 -61
  284. chia/cmds/peer.py +2 -1
  285. chia/cmds/peer_funcs.py +5 -5
  286. chia/cmds/plotnft.py +207 -153
  287. chia/cmds/plotnft_funcs.py +205 -174
  288. chia/cmds/plots.py +14 -6
  289. chia/cmds/plotters.py +2 -1
  290. chia/cmds/rpc.py +48 -28
  291. chia/cmds/show.py +2 -1
  292. chia/cmds/show_funcs.py +7 -6
  293. chia/cmds/signer.py +50 -58
  294. chia/cmds/sim.py +22 -14
  295. chia/cmds/sim_funcs.py +11 -11
  296. chia/cmds/start.py +3 -3
  297. chia/cmds/start_funcs.py +9 -12
  298. chia/cmds/stop.py +4 -3
  299. chia/cmds/units.py +1 -3
  300. chia/cmds/wallet.py +252 -96
  301. chia/cmds/wallet_funcs.py +217 -143
  302. chia/consensus/block_body_validation.py +133 -86
  303. chia/consensus/block_creation.py +42 -21
  304. chia/consensus/block_header_validation.py +32 -37
  305. chia/consensus/block_record.py +1 -2
  306. chia/consensus/blockchain.py +167 -180
  307. chia/consensus/blockchain_interface.py +10 -10
  308. chia/consensus/constants.py +2 -2
  309. chia/consensus/default_constants.py +3 -4
  310. chia/consensus/difficulty_adjustment.py +5 -5
  311. chia/consensus/find_fork_point.py +5 -5
  312. chia/consensus/full_block_to_block_record.py +4 -4
  313. chia/consensus/get_block_challenge.py +2 -2
  314. chia/consensus/get_block_generator.py +4 -3
  315. chia/consensus/multiprocess_validation.py +207 -304
  316. chia/consensus/vdf_info_computation.py +3 -3
  317. chia/daemon/client.py +46 -27
  318. chia/daemon/keychain_proxy.py +10 -9
  319. chia/daemon/keychain_server.py +18 -18
  320. chia/daemon/server.py +103 -113
  321. chia/daemon/windows_signal.py +2 -2
  322. chia/data_layer/data_layer.py +64 -76
  323. chia/data_layer/data_layer_api.py +8 -0
  324. chia/data_layer/data_layer_errors.py +3 -3
  325. chia/data_layer/data_layer_server.py +2 -2
  326. chia/data_layer/data_layer_util.py +71 -71
  327. chia/data_layer/data_layer_wallet.py +63 -67
  328. chia/data_layer/data_store.py +72 -72
  329. chia/data_layer/dl_wallet_store.py +10 -10
  330. chia/data_layer/download_data.py +5 -5
  331. chia/data_layer/s3_plugin_service.py +9 -9
  332. chia/data_layer/util/benchmark.py +0 -1
  333. chia/data_layer/util/plugin.py +2 -3
  334. chia/farmer/farmer.py +46 -43
  335. chia/farmer/farmer_api.py +27 -21
  336. chia/full_node/block_height_map.py +6 -6
  337. chia/full_node/block_store.py +41 -35
  338. chia/full_node/coin_store.py +42 -41
  339. chia/full_node/fee_estimate.py +2 -2
  340. chia/full_node/fee_estimation.py +1 -2
  341. chia/full_node/fee_history.py +5 -6
  342. chia/full_node/fee_tracker.py +24 -24
  343. chia/full_node/full_node.py +574 -300
  344. chia/full_node/full_node_api.py +181 -130
  345. chia/full_node/full_node_store.py +43 -43
  346. chia/full_node/hint_management.py +4 -4
  347. chia/full_node/hint_store.py +9 -10
  348. chia/full_node/mempool.py +25 -19
  349. chia/full_node/mempool_check_conditions.py +11 -42
  350. chia/full_node/mempool_manager.py +48 -53
  351. chia/full_node/pending_tx_cache.py +9 -9
  352. chia/full_node/subscriptions.py +23 -24
  353. chia/full_node/sync_store.py +8 -7
  354. chia/full_node/tx_processing_queue.py +3 -3
  355. chia/full_node/util/__init__.py +0 -0
  356. chia/full_node/weight_proof.py +79 -78
  357. chia/harvester/harvester.py +9 -8
  358. chia/harvester/harvester_api.py +19 -13
  359. chia/introducer/introducer.py +7 -5
  360. chia/introducer/introducer_api.py +9 -3
  361. chia/legacy/keyring.py +6 -5
  362. chia/plot_sync/delta.py +8 -8
  363. chia/plot_sync/receiver.py +12 -11
  364. chia/plot_sync/sender.py +15 -12
  365. chia/plotters/bladebit.py +12 -12
  366. chia/plotters/chiapos.py +2 -2
  367. chia/plotters/madmax.py +8 -8
  368. chia/plotters/plotters.py +6 -6
  369. chia/plotters/plotters_util.py +6 -4
  370. chia/plotting/cache.py +8 -7
  371. chia/plotting/check_plots.py +8 -8
  372. chia/plotting/create_plots.py +6 -6
  373. chia/plotting/manager.py +22 -22
  374. chia/plotting/util.py +31 -19
  375. chia/pools/pool_config.py +7 -7
  376. chia/pools/pool_puzzles.py +16 -16
  377. chia/pools/pool_wallet.py +64 -57
  378. chia/pools/pool_wallet_info.py +3 -3
  379. chia/protocols/full_node_protocol.py +3 -3
  380. chia/protocols/harvester_protocol.py +12 -12
  381. chia/protocols/introducer_protocol.py +1 -2
  382. chia/protocols/protocol_message_types.py +4 -4
  383. chia/protocols/protocol_state_machine.py +2 -2
  384. chia/protocols/protocol_timing.py +1 -0
  385. chia/protocols/shared_protocol.py +3 -3
  386. chia/protocols/timelord_protocol.py +2 -2
  387. chia/protocols/wallet_protocol.py +33 -33
  388. chia/rpc/crawler_rpc_api.py +12 -7
  389. chia/rpc/data_layer_rpc_api.py +49 -44
  390. chia/rpc/data_layer_rpc_client.py +41 -41
  391. chia/rpc/data_layer_rpc_util.py +7 -11
  392. chia/rpc/farmer_rpc_api.py +32 -27
  393. chia/rpc/farmer_rpc_client.py +14 -14
  394. chia/rpc/full_node_rpc_api.py +53 -48
  395. chia/rpc/full_node_rpc_client.py +30 -30
  396. chia/rpc/harvester_rpc_api.py +16 -11
  397. chia/rpc/harvester_rpc_client.py +6 -6
  398. chia/rpc/rpc_client.py +34 -14
  399. chia/rpc/rpc_server.py +117 -43
  400. chia/rpc/timelord_rpc_api.py +9 -4
  401. chia/rpc/util.py +11 -211
  402. chia/rpc/wallet_request_types.py +276 -60
  403. chia/rpc/wallet_rpc_api.py +563 -399
  404. chia/rpc/wallet_rpc_client.py +220 -250
  405. chia/seeder/crawl_store.py +6 -8
  406. chia/seeder/crawler.py +23 -36
  407. chia/seeder/crawler_api.py +28 -22
  408. chia/seeder/dns_server.py +99 -50
  409. chia/seeder/start_crawler.py +13 -9
  410. chia/server/address_manager.py +19 -19
  411. chia/server/address_manager_store.py +17 -17
  412. chia/server/api_protocol.py +106 -1
  413. chia/server/capabilities.py +3 -3
  414. chia/server/chia_policy.py +17 -16
  415. chia/server/introducer_peers.py +3 -3
  416. chia/server/node_discovery.py +34 -38
  417. chia/server/rate_limit_numbers.py +26 -16
  418. chia/server/rate_limits.py +67 -27
  419. chia/server/server.py +52 -31
  420. chia/server/signal_handlers.py +6 -3
  421. chia/server/ssl_context.py +5 -5
  422. chia/server/start_data_layer.py +37 -23
  423. chia/server/start_farmer.py +28 -16
  424. chia/server/start_full_node.py +29 -23
  425. chia/server/start_harvester.py +28 -15
  426. chia/server/start_introducer.py +27 -15
  427. chia/server/start_service.py +17 -29
  428. chia/server/start_timelord.py +25 -18
  429. chia/server/start_wallet.py +22 -18
  430. chia/server/upnp.py +4 -3
  431. chia/server/ws_connection.py +68 -54
  432. chia/simulator/add_blocks_in_batches.py +54 -0
  433. chia/simulator/block_tools.py +65 -64
  434. chia/simulator/full_node_simulator.py +66 -74
  435. chia/simulator/setup_services.py +10 -9
  436. chia/simulator/simulator_full_node_rpc_api.py +12 -14
  437. chia/simulator/simulator_full_node_rpc_client.py +3 -5
  438. chia/simulator/simulator_test_tools.py +8 -7
  439. chia/simulator/socket.py +1 -4
  440. chia/simulator/ssl_certs.py +5 -5
  441. chia/simulator/ssl_certs_1.py +2 -4
  442. chia/simulator/ssl_certs_10.py +2 -4
  443. chia/simulator/ssl_certs_2.py +2 -4
  444. chia/simulator/ssl_certs_3.py +2 -4
  445. chia/simulator/ssl_certs_4.py +2 -4
  446. chia/simulator/ssl_certs_5.py +2 -4
  447. chia/simulator/ssl_certs_6.py +2 -4
  448. chia/simulator/ssl_certs_7.py +2 -4
  449. chia/simulator/ssl_certs_8.py +2 -4
  450. chia/simulator/ssl_certs_9.py +2 -4
  451. chia/simulator/start_simulator.py +14 -6
  452. chia/simulator/wallet_tools.py +21 -20
  453. chia/ssl/create_ssl.py +11 -11
  454. chia/timelord/iters_from_block.py +2 -2
  455. chia/timelord/timelord.py +57 -33
  456. chia/timelord/timelord_api.py +12 -6
  457. chia/timelord/timelord_launcher.py +10 -8
  458. chia/timelord/timelord_state.py +5 -5
  459. chia/types/block_protocol.py +2 -2
  460. chia/types/blockchain_format/coin.py +3 -3
  461. chia/types/blockchain_format/program.py +17 -18
  462. chia/types/blockchain_format/tree_hash.py +9 -9
  463. chia/types/coin_spend.py +8 -8
  464. chia/types/condition_with_args.py +1 -2
  465. chia/types/eligible_coin_spends.py +16 -15
  466. chia/types/generator_types.py +1 -2
  467. chia/types/internal_mempool_item.py +1 -2
  468. chia/types/mempool_item.py +7 -7
  469. chia/types/mempool_submission_status.py +2 -2
  470. chia/types/peer_info.py +1 -1
  471. chia/types/spend_bundle.py +1 -2
  472. chia/types/transaction_queue_entry.py +2 -2
  473. chia/types/unfinished_header_block.py +2 -2
  474. chia/types/validation_state.py +14 -0
  475. chia/types/weight_proof.py +5 -6
  476. chia/util/action_scope.py +8 -8
  477. chia/util/async_pool.py +6 -4
  478. chia/util/augmented_chain.py +13 -9
  479. chia/util/batches.py +5 -2
  480. chia/util/bech32m.py +14 -11
  481. chia/util/beta_metrics.py +5 -4
  482. chia/util/block_cache.py +5 -5
  483. chia/util/byte_types.py +2 -0
  484. chia/util/check_fork_next_block.py +3 -2
  485. chia/util/chia_logging.py +41 -21
  486. chia/util/collection.py +3 -3
  487. chia/util/condition_tools.py +18 -18
  488. chia/util/config.py +26 -25
  489. chia/util/cpu.py +2 -0
  490. chia/util/db_synchronous.py +2 -0
  491. chia/util/db_version.py +2 -0
  492. chia/util/db_wrapper.py +13 -10
  493. chia/util/default_root.py +17 -0
  494. chia/util/dump_keyring.py +6 -6
  495. chia/util/errors.py +5 -3
  496. chia/util/file_keyring.py +22 -33
  497. chia/util/files.py +2 -0
  498. chia/util/full_block_utils.py +31 -7
  499. chia/util/generator_tools.py +18 -8
  500. chia/util/hash.py +3 -1
  501. chia/util/initial-config.yaml +19 -0
  502. chia/util/inline_executor.py +2 -0
  503. chia/util/ip_address.py +39 -0
  504. chia/util/json_util.py +0 -4
  505. chia/util/keychain.py +27 -24
  506. chia/util/keyring_wrapper.py +65 -4
  507. chia/util/limited_semaphore.py +3 -1
  508. chia/util/lock.py +4 -2
  509. chia/util/log_exceptions.py +5 -2
  510. chia/util/logging.py +3 -1
  511. chia/util/lru_cache.py +2 -0
  512. chia/util/math.py +4 -4
  513. chia/util/network.py +15 -73
  514. chia/util/paginator.py +3 -1
  515. chia/util/path.py +2 -0
  516. chia/util/permissions.py +3 -2
  517. chia/util/prev_transaction_block.py +1 -3
  518. chia/util/priority_mutex.py +6 -3
  519. chia/util/profiler.py +7 -4
  520. chia/util/recursive_replace.py +2 -0
  521. chia/util/safe_cancel_task.py +2 -0
  522. chia/util/service_groups.py +2 -2
  523. chia/util/setproctitle.py +2 -0
  524. chia/util/significant_bits.py +2 -0
  525. chia/util/ssl_check.py +11 -11
  526. chia/util/streamable.py +44 -56
  527. chia/util/task_referencer.py +59 -0
  528. chia/util/task_timing.py +22 -18
  529. chia/util/timing.py +4 -1
  530. chia/util/vdf_prover.py +2 -3
  531. chia/util/virtual_project_analysis.py +540 -0
  532. chia/util/ws_message.py +6 -6
  533. chia/wallet/cat_wallet/cat_info.py +3 -3
  534. chia/wallet/cat_wallet/cat_outer_puzzle.py +3 -3
  535. chia/wallet/cat_wallet/cat_utils.py +5 -4
  536. chia/wallet/cat_wallet/cat_wallet.py +56 -70
  537. chia/wallet/cat_wallet/dao_cat_info.py +3 -3
  538. chia/wallet/cat_wallet/dao_cat_wallet.py +18 -18
  539. chia/wallet/cat_wallet/lineage_store.py +2 -2
  540. chia/wallet/coin_selection.py +15 -15
  541. chia/wallet/conditions.py +257 -71
  542. chia/wallet/dao_wallet/dao_info.py +4 -4
  543. chia/wallet/dao_wallet/dao_utils.py +43 -42
  544. chia/wallet/dao_wallet/dao_wallet.py +66 -68
  545. chia/wallet/db_wallet/db_wallet_puzzles.py +12 -8
  546. chia/wallet/derive_keys.py +11 -11
  547. chia/wallet/did_wallet/did_info.py +3 -3
  548. chia/wallet/did_wallet/did_wallet.py +56 -47
  549. chia/wallet/did_wallet/did_wallet_puzzles.py +7 -6
  550. chia/wallet/lineage_proof.py +4 -4
  551. chia/wallet/nft_wallet/metadata_outer_puzzle.py +2 -2
  552. chia/wallet/nft_wallet/nft_info.py +4 -4
  553. chia/wallet/nft_wallet/nft_puzzles.py +16 -16
  554. chia/wallet/nft_wallet/nft_wallet.py +90 -89
  555. chia/wallet/nft_wallet/ownership_outer_puzzle.py +2 -2
  556. chia/wallet/nft_wallet/singleton_outer_puzzle.py +2 -2
  557. chia/wallet/nft_wallet/transfer_program_puzzle.py +2 -2
  558. chia/wallet/nft_wallet/uncurry_nft.py +2 -2
  559. chia/wallet/notification_manager.py +5 -5
  560. chia/wallet/notification_store.py +6 -6
  561. chia/wallet/outer_puzzles.py +2 -2
  562. chia/wallet/payment.py +4 -5
  563. chia/wallet/puzzle_drivers.py +4 -4
  564. chia/wallet/puzzles/clawback/drivers.py +5 -5
  565. chia/wallet/puzzles/clawback/puzzle_decorator.py +7 -7
  566. chia/wallet/puzzles/load_clvm.py +2 -3
  567. chia/wallet/puzzles/p2_conditions.py +1 -2
  568. chia/wallet/puzzles/p2_delegated_conditions.py +1 -2
  569. chia/wallet/puzzles/p2_delegated_puzzle.py +2 -3
  570. chia/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.py +3 -4
  571. chia/wallet/puzzles/p2_m_of_n_delegate_direct.py +1 -2
  572. chia/wallet/puzzles/p2_puzzle_hash.py +1 -2
  573. chia/wallet/puzzles/puzzle_utils.py +7 -7
  574. chia/wallet/puzzles/singleton_top_layer.py +6 -5
  575. chia/wallet/puzzles/singleton_top_layer_v1_1.py +6 -5
  576. chia/wallet/puzzles/tails.py +34 -30
  577. chia/wallet/signer_protocol.py +7 -8
  578. chia/wallet/singleton.py +4 -4
  579. chia/wallet/trade_manager.py +155 -141
  580. chia/wallet/trade_record.py +5 -5
  581. chia/wallet/trading/offer.py +100 -101
  582. chia/wallet/trading/trade_store.py +14 -14
  583. chia/wallet/transaction_record.py +31 -16
  584. chia/wallet/util/address_type.py +4 -4
  585. chia/wallet/util/blind_signer_tl.py +8 -12
  586. chia/wallet/util/clvm_streamable.py +15 -15
  587. chia/wallet/util/compute_hints.py +5 -5
  588. chia/wallet/util/compute_memos.py +4 -6
  589. chia/wallet/util/curry_and_treehash.py +3 -2
  590. chia/wallet/util/debug_spend_bundle.py +6 -8
  591. chia/wallet/util/merkle_tree.py +10 -10
  592. chia/wallet/util/merkle_utils.py +10 -10
  593. chia/wallet/util/new_peak_queue.py +3 -3
  594. chia/wallet/util/peer_request_cache.py +8 -8
  595. chia/{util → wallet/util}/pprint.py +2 -3
  596. chia/wallet/util/puzzle_compression.py +3 -4
  597. chia/wallet/util/puzzle_decorator.py +10 -10
  598. chia/wallet/util/query_filter.py +9 -10
  599. chia/wallet/util/tx_config.py +12 -12
  600. chia/wallet/util/wallet_sync_utils.py +24 -21
  601. chia/wallet/util/wallet_types.py +9 -2
  602. chia/wallet/vc_wallet/cr_cat_drivers.py +28 -27
  603. chia/wallet/vc_wallet/cr_cat_wallet.py +42 -40
  604. chia/wallet/vc_wallet/cr_outer_puzzle.py +4 -4
  605. chia/wallet/vc_wallet/vc_drivers.py +16 -16
  606. chia/wallet/vc_wallet/vc_store.py +9 -9
  607. chia/wallet/vc_wallet/vc_wallet.py +35 -35
  608. chia/wallet/wallet.py +54 -54
  609. chia/wallet/wallet_action_scope.py +14 -13
  610. chia/wallet/wallet_blockchain.py +10 -10
  611. chia/wallet/wallet_coin_record.py +2 -2
  612. chia/wallet/wallet_coin_store.py +10 -10
  613. chia/wallet/wallet_info.py +1 -2
  614. chia/wallet/wallet_interested_store.py +5 -5
  615. chia/wallet/wallet_nft_store.py +6 -6
  616. chia/wallet/wallet_node.py +72 -76
  617. chia/wallet/wallet_node_api.py +33 -27
  618. chia/wallet/wallet_pool_store.py +1 -2
  619. chia/wallet/wallet_protocol.py +15 -15
  620. chia/wallet/wallet_puzzle_store.py +35 -4
  621. chia/wallet/wallet_retry_store.py +2 -2
  622. chia/wallet/wallet_singleton_store.py +10 -9
  623. chia/wallet/wallet_spend_bundle.py +4 -20
  624. chia/wallet/wallet_state_manager.py +223 -224
  625. chia/wallet/wallet_transaction_store.py +44 -18
  626. chia/wallet/wallet_user_store.py +2 -2
  627. chia/wallet/wallet_weight_proof_handler.py +2 -2
  628. {chia_blockchain-2.5.0rc2.dist-info → chia_blockchain-2.5.1rc2.dist-info}/LICENSE +1 -1
  629. {chia_blockchain-2.5.0rc2.dist-info → chia_blockchain-2.5.1rc2.dist-info}/METADATA +67 -72
  630. chia_blockchain-2.5.1rc2.dist-info/RECORD +1042 -0
  631. {chia_blockchain-2.5.0rc2.dist-info → chia_blockchain-2.5.1rc2.dist-info}/WHEEL +1 -1
  632. mozilla-ca/cacert.pem +32 -87
  633. chia/_tests/cmds/wallet/test_coins.py +0 -195
  634. chia/consensus/block_root_validation.py +0 -46
  635. chia/util/api_decorators.py +0 -89
  636. chia_blockchain-2.5.0rc2.dist-info/RECORD +0 -1028
  637. {chia_blockchain-2.5.0rc2.dist-info → chia_blockchain-2.5.1rc2.dist-info}/entry_points.txt +0 -0
@@ -1,9 +1,10 @@
1
+ # ruff: noqa: E501
1
2
  # this file is generated by build_network_protocol_files.py
2
3
  from __future__ import annotations
3
4
 
4
- from typing import Any, Dict
5
+ from typing import Any
5
6
 
6
- new_signage_point_json: Dict[str, Any] = {
7
+ new_signage_point_json: dict[str, Any] = {
7
8
  "challenge_hash": "0x34b2a753b0dc864e7218f8facf23ca0e2b636351df5289b76f5845d9a78b7026",
8
9
  "challenge_chain_sp": "0x9dc8b9d685c79acdf8780d994416dfcfb118e0adc99769ecfa94e1f40aa5bbe5",
9
10
  "reward_chain_sp": "0xb2828a2c7f6a2555c80c3ca9d10792a7da6ee80f686122ecd2c748dc0569a867",
@@ -14,7 +15,7 @@ new_signage_point_json: Dict[str, Any] = {
14
15
  "sp_source_data": None,
15
16
  }
16
17
 
17
- declare_proof_of_space_json: Dict[str, Any] = {
18
+ declare_proof_of_space_json: dict[str, Any] = {
18
19
  "challenge_hash": "0x3f44d177faa11cea40477f233a8b365cce77215a84f48f65a37b2ac35c7e3ccc",
19
20
  "challenge_chain_sp": "0x931c83fd8ef121177257301e11f41642618ddac65509939e252243e41bacbf78",
20
21
  "signage_point_index": 31,
@@ -38,7 +39,7 @@ declare_proof_of_space_json: Dict[str, Any] = {
38
39
  "include_signature_source_data": False,
39
40
  }
40
41
 
41
- request_signed_values_json: Dict[str, Any] = {
42
+ request_signed_values_json: dict[str, Any] = {
42
43
  "quality_string": "0x60649de258d2221ca6a178476861b13f8c394a992eaeae1f1159c32bbf703b45",
43
44
  "foliage_block_data_hash": "0x9da23e943246bb99ebeb5e773e35a445bbbfdbd45dd9b9df169eeca80880a53b",
44
45
  "foliage_transaction_block_hash": "0x5d76a4bcb3524d862e92317410583daf50828927885444c6d62ca8843635c46f",
@@ -47,7 +48,7 @@ request_signed_values_json: Dict[str, Any] = {
47
48
  "rc_block_unfinished": None,
48
49
  }
49
50
 
50
- farming_info_json: Dict[str, Any] = {
51
+ farming_info_json: dict[str, Any] = {
51
52
  "challenge_hash": "0x345cefad6a04d3ea4fec4b31e56000de622de9fe861afa53424138dd45307fc2",
52
53
  "sp_hash": "0x1105c288abb976e95804796aea5bb6f66a6b500c0f538d4e71f0d701cad9ff11",
53
54
  "timestamp": 16359391077414942762,
@@ -57,13 +58,13 @@ farming_info_json: Dict[str, Any] = {
57
58
  "lookup_time": 3942498,
58
59
  }
59
60
 
60
- signed_values_json: Dict[str, Any] = {
61
+ signed_values_json: dict[str, Any] = {
61
62
  "quality_string": "0x915de5949724e1fc92d334e589c26ddbcd67415cbbdbbfc5e6de93b3b33bb267",
62
63
  "foliage_block_data_signature": "0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
63
64
  "foliage_transaction_block_signature": "0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
64
65
  }
65
66
 
66
- new_peak_json: Dict[str, Any] = {
67
+ new_peak_json: dict[str, Any] = {
67
68
  "header_hash": "0x8a346e8dc02e9b44c0571caa74fd99f163d4c5d7deae9f8ddb00528721493f7a",
68
69
  "height": 2653549198,
69
70
  "weight": 196318552117141200341240034145143439804,
@@ -71,17 +72,17 @@ new_peak_json: Dict[str, Any] = {
71
72
  "unfinished_reward_block_hash": "0xdd421c55d4edaeeb3ad60e80d73c2005a1b275c381c7e418915200d7467711b5",
72
73
  }
73
74
 
74
- new_transaction_json: Dict[str, Any] = {
75
+ new_transaction_json: dict[str, Any] = {
75
76
  "transaction_id": "0xe4fe833328d4e82f9c57bc1fc2082c9b63da23e46927522cb5a073f9f0979b6a",
76
77
  "cost": 13950654730705425115,
77
78
  "fees": 10674036971945712700,
78
79
  }
79
80
 
80
- request_transaction_json: Dict[str, Any] = {
81
+ request_transaction_json: dict[str, Any] = {
81
82
  "transaction_id": "0x3dc310a07be53bfd701e4a0d77ce39836eeab4717fe25b1ae4c3f16aad0e5d83"
82
83
  }
83
84
 
84
- respond_transaction_json: Dict[str, Any] = {
85
+ respond_transaction_json: dict[str, Any] = {
85
86
  "transaction": {
86
87
  "coin_spends": [
87
88
  {
@@ -98,12 +99,12 @@ respond_transaction_json: Dict[str, Any] = {
98
99
  }
99
100
  }
100
101
 
101
- request_proof_of_weight_json: Dict[str, Any] = {
102
+ request_proof_of_weight_json: dict[str, Any] = {
102
103
  "total_number_of_blocks": 1109907246,
103
104
  "tip": "0x1fa3bfc747762c6edbe9937630e50b6982c3cf4fd67931f2ffcececb8c509839",
104
105
  }
105
106
 
106
- respond_proof_of_weight_json: Dict[str, Any] = {
107
+ respond_proof_of_weight_json: dict[str, Any] = {
107
108
  "wp": {
108
109
  "sub_epochs": [
109
110
  {
@@ -380,17 +381,17 @@ respond_proof_of_weight_json: Dict[str, Any] = {
380
381
  "tip": "0xbf71d6f1ecae308aacf87db77aeba5a06f5d1099bfc7005529885e1f2dad857f",
381
382
  }
382
383
 
383
- request_block_json: Dict[str, Any] = {"height": 678860074, "include_transaction_block": False}
384
+ request_block_json: dict[str, Any] = {"height": 678860074, "include_transaction_block": False}
384
385
 
385
- reject_block_json: Dict[str, Any] = {"height": 966946253}
386
+ reject_block_json: dict[str, Any] = {"height": 966946253}
386
387
 
387
- request_blocks_json: Dict[str, Any] = {
388
+ request_blocks_json: dict[str, Any] = {
388
389
  "start_height": 2578479570,
389
390
  "end_height": 3884442719,
390
391
  "include_transaction_block": False,
391
392
  }
392
393
 
393
- respond_blocks_json: Dict[str, Any] = {
394
+ respond_blocks_json: dict[str, Any] = {
394
395
  "start_height": 1000,
395
396
  "end_height": 4201431299,
396
397
  "blocks": [
@@ -749,9 +750,9 @@ respond_blocks_json: Dict[str, Any] = {
749
750
  ],
750
751
  }
751
752
 
752
- reject_blocks_json: Dict[str, Any] = {"start_height": 1160742782, "end_height": 1856800720}
753
+ reject_blocks_json: dict[str, Any] = {"start_height": 1160742782, "end_height": 1856800720}
753
754
 
754
- respond_block_json: Dict[str, Any] = {
755
+ respond_block_json: dict[str, Any] = {
755
756
  "block": {
756
757
  "finished_sub_slots": [
757
758
  {
@@ -930,15 +931,15 @@ respond_block_json: Dict[str, Any] = {
930
931
  }
931
932
  }
932
933
 
933
- new_unfinished_block_json: Dict[str, Any] = {
934
+ new_unfinished_block_json: dict[str, Any] = {
934
935
  "unfinished_reward_hash": "0x229646fb33551966039d9324c0d10166c554d20e9a11e3f30942ec0bb346377e"
935
936
  }
936
937
 
937
- request_unfinished_block_json: Dict[str, Any] = {
938
+ request_unfinished_block_json: dict[str, Any] = {
938
939
  "unfinished_reward_hash": "0x8b5e5a59f33bb89e1bfd5aca79409352864e70aa7765c331d641875f83d59d1d"
939
940
  }
940
941
 
941
- respond_unfinished_block_json: Dict[str, Any] = {
942
+ respond_unfinished_block_json: dict[str, Any] = {
942
943
  "unfinished_block": {
943
944
  "finished_sub_slots": [
944
945
  {
@@ -1078,20 +1079,20 @@ respond_unfinished_block_json: Dict[str, Any] = {
1078
1079
  }
1079
1080
  }
1080
1081
 
1081
- new_signage_point_or_end_of_subslot_json: Dict[str, Any] = {
1082
+ new_signage_point_or_end_of_subslot_json: dict[str, Any] = {
1082
1083
  "prev_challenge_hash": "0xf945510ccea927f832635e56bc20315c92943e108d2b458ac91a290a82e02997",
1083
1084
  "challenge_hash": "0x27a16b348971e5dfb258e7a01f0b300acbecf8339476afd144e8520f1981833b",
1084
1085
  "index_from_challenge": 102,
1085
1086
  "last_rc_infusion": "0xa619471c0ba0b8b8b92b7b2cb1241c2fbb2324c4f1a20a01eb7dcc0027393a56",
1086
1087
  }
1087
1088
 
1088
- request_signage_point_or_end_of_subslot_json: Dict[str, Any] = {
1089
+ request_signage_point_or_end_of_subslot_json: dict[str, Any] = {
1089
1090
  "challenge_hash": "0xedd45b516bf1dc3754c30a99e289639e05f967dc1b590df8a377652bee4f463c",
1090
1091
  "index_from_challenge": 217,
1091
1092
  "last_rc_infusion": "0xb574062b42a5b3d76ea141d3b89a4a1096f7797bafe625770047380448622420",
1092
1093
  }
1093
1094
 
1094
- respond_signage_point_json: Dict[str, Any] = {
1095
+ respond_signage_point_json: dict[str, Any] = {
1095
1096
  "index_from_challenge": 111,
1096
1097
  "challenge_chain_vdf": {
1097
1098
  "challenge": "0x7cbd5905838c1dc2becd00298a5b3a6e42b6a306d574c8897cd721f84d429972",
@@ -1119,7 +1120,7 @@ respond_signage_point_json: Dict[str, Any] = {
1119
1120
  },
1120
1121
  }
1121
1122
 
1122
- respond_end_of_subslot_json: Dict[str, Any] = {
1123
+ respond_end_of_subslot_json: dict[str, Any] = {
1123
1124
  "end_of_slot_bundle": {
1124
1125
  "challenge_chain": {
1125
1126
  "challenge_chain_end_of_slot_vdf": {
@@ -1175,11 +1176,11 @@ respond_end_of_subslot_json: Dict[str, Any] = {
1175
1176
  }
1176
1177
  }
1177
1178
 
1178
- request_mempool_transaction_json: Dict[str, Any] = {
1179
+ request_mempool_transaction_json: dict[str, Any] = {
1179
1180
  "filter": "0x0000000000000000000000000000000000000000000000000000000000000000"
1180
1181
  }
1181
1182
 
1182
- new_compact_vdf_json: Dict[str, Any] = {
1183
+ new_compact_vdf_json: dict[str, Any] = {
1183
1184
  "height": 1333973478,
1184
1185
  "header_hash": "0xe2188779d4a8e8fdf9cbe3103878b4c3f5f25a999fa8d04551c4ae01046c634e",
1185
1186
  "field_vdf": 169,
@@ -1192,7 +1193,7 @@ new_compact_vdf_json: Dict[str, Any] = {
1192
1193
  },
1193
1194
  }
1194
1195
 
1195
- request_compact_vdf_json: Dict[str, Any] = {
1196
+ request_compact_vdf_json: dict[str, Any] = {
1196
1197
  "height": 3529778757,
1197
1198
  "header_hash": "0x1c02dfbf437c464cfd3f71d2da283c22bd04b2061e3c6b4bfd8b859092957d96",
1198
1199
  "field_vdf": 207,
@@ -1205,7 +1206,7 @@ request_compact_vdf_json: Dict[str, Any] = {
1205
1206
  },
1206
1207
  }
1207
1208
 
1208
- respond_compact_vdf_json: Dict[str, Any] = {
1209
+ respond_compact_vdf_json: dict[str, Any] = {
1209
1210
  "height": 2759248594,
1210
1211
  "header_hash": "0x51f2e23ac76179d69bc9232420f47e2a332b8c2495c24ceef7f730feb53c9117",
1211
1212
  "field_vdf": 167,
@@ -1223,33 +1224,33 @@ respond_compact_vdf_json: Dict[str, Any] = {
1223
1224
  },
1224
1225
  }
1225
1226
 
1226
- request_peers_json: Dict[str, Any] = {}
1227
+ request_peers_json: dict[str, Any] = {}
1227
1228
 
1228
- respond_peers_json: Dict[str, Any] = {"peer_list": [{"host": "127.0.0.1", "port": 8444, "timestamp": 10796}]}
1229
+ respond_peers_json: dict[str, Any] = {"peer_list": [{"host": "127.0.0.1", "port": 8444, "timestamp": 10796}]}
1229
1230
 
1230
- new_unfinished_block2_json: Dict[str, Any] = {
1231
+ new_unfinished_block2_json: dict[str, Any] = {
1231
1232
  "unfinished_reward_hash": "0x229646fb33551966039d9324c0d10166c554d20e9a11e3f30942ec0bb346377e",
1232
1233
  "foliage_hash": "0x166c554d20e9a11e3f30942ec0bb346377e229646fb33551966039d9324c0d10",
1233
1234
  }
1234
1235
 
1235
- request_unfinished_block2_json: Dict[str, Any] = {
1236
+ request_unfinished_block2_json: dict[str, Any] = {
1236
1237
  "unfinished_reward_hash": "0x8b5e5a59f33bb89e1bfd5aca79409352864e70aa7765c331d641875f83d59d1d",
1237
1238
  "foliage_hash": "0xa79409352864e70aa7765c331d641875f83d59d1d8b5e5a59f33bb89e1bfd5ac",
1238
1239
  }
1239
1240
 
1240
- request_puzzle_solution_json: Dict[str, Any] = {
1241
+ request_puzzle_solution_json: dict[str, Any] = {
1241
1242
  "coin_name": "0x6edddb46bd154f50566b49c95812e0f1131a0a7162630349fc8d1d696e463e47",
1242
1243
  "height": 3905474497,
1243
1244
  }
1244
1245
 
1245
- puzzle_solution_response_json: Dict[str, Any] = {
1246
+ puzzle_solution_response_json: dict[str, Any] = {
1246
1247
  "coin_name": "0x45c4451fdeef92aa0706def2448adfaed8e4a1c0b08a6d303c57de661509c442",
1247
1248
  "height": 3776325015,
1248
1249
  "puzzle": "0xff01ffff33ffa0f8912302fb33b8188046662785704afc3dd945074e4b45499a7173946e044695ff8203e880ffff33ffa03eaa52e850322dbc281c6b922e9d8819c7b4120ee054c4aa79db50be516a2bcaff8207d08080",
1249
1250
  "solution": "0xff01ffff33ffa0f8912302fb33b8188046662785704afc3dd945074e4b45499a7173946e044695ff8203e880ffff33ffa03eaa52e850322dbc281c6b922e9d8819c7b4120ee054c4aa79db50be516a2bcaff8207d08080",
1250
1251
  }
1251
1252
 
1252
- respond_puzzle_solution_json: Dict[str, Any] = {
1253
+ respond_puzzle_solution_json: dict[str, Any] = {
1253
1254
  "response": {
1254
1255
  "coin_name": "0x45c4451fdeef92aa0706def2448adfaed8e4a1c0b08a6d303c57de661509c442",
1255
1256
  "height": 3776325015,
@@ -1258,12 +1259,12 @@ respond_puzzle_solution_json: Dict[str, Any] = {
1258
1259
  }
1259
1260
  }
1260
1261
 
1261
- reject_puzzle_solution_json: Dict[str, Any] = {
1262
+ reject_puzzle_solution_json: dict[str, Any] = {
1262
1263
  "coin_name": "0x2f16254e8e7a0b3fbe7bc709d29c5e7d2daa23ce1a2964e3f77b9413055029dd",
1263
1264
  "height": 2039721496,
1264
1265
  }
1265
1266
 
1266
- send_transaction_json: Dict[str, Any] = {
1267
+ send_transaction_json: dict[str, Any] = {
1267
1268
  "transaction": {
1268
1269
  "coin_spends": [
1269
1270
  {
@@ -1280,28 +1281,28 @@ send_transaction_json: Dict[str, Any] = {
1280
1281
  }
1281
1282
  }
1282
1283
 
1283
- transaction_ack_json: Dict[str, Any] = {
1284
+ transaction_ack_json: dict[str, Any] = {
1284
1285
  "txid": "0xfc30d2df70f4ca0a138d5135d352611ddf268ea46c59cde48c29c43d9472532c",
1285
1286
  "status": 30,
1286
1287
  "error": "None",
1287
1288
  }
1288
1289
 
1289
- new_peak_wallet_json: Dict[str, Any] = {
1290
+ new_peak_wallet_json: dict[str, Any] = {
1290
1291
  "header_hash": "0xee50e45652cb6a60e3ab0031aa425a6019648fe5344ae860e6fc14af1aa3c2fa",
1291
1292
  "height": 1093428752,
1292
1293
  "weight": 207496292293729126634170184354599452208,
1293
1294
  "fork_point_with_previous_peak": 133681371,
1294
1295
  }
1295
1296
 
1296
- request_block_header_json: Dict[str, Any] = {"height": 3562957314}
1297
+ request_block_header_json: dict[str, Any] = {"height": 3562957314}
1297
1298
 
1298
- request_block_headers_json: Dict[str, Any] = {
1299
+ request_block_headers_json: dict[str, Any] = {
1299
1300
  "start_height": 1234970524,
1300
1301
  "end_height": 234653234,
1301
1302
  "return_filter": False,
1302
1303
  }
1303
1304
 
1304
- respond_header_block_json: Dict[str, Any] = {
1305
+ respond_header_block_json: dict[str, Any] = {
1305
1306
  "header_block": {
1306
1307
  "finished_sub_slots": [
1307
1308
  {
@@ -1479,7 +1480,7 @@ respond_header_block_json: Dict[str, Any] = {
1479
1480
  }
1480
1481
  }
1481
1482
 
1482
- respond_block_headers_json: Dict[str, Any] = {
1483
+ respond_block_headers_json: dict[str, Any] = {
1483
1484
  "start_height": 923662371,
1484
1485
  "end_height": 992357623,
1485
1486
  "header_blocks": [
@@ -1661,15 +1662,15 @@ respond_block_headers_json: Dict[str, Any] = {
1661
1662
  ],
1662
1663
  }
1663
1664
 
1664
- reject_header_request_json: Dict[str, Any] = {"height": 17867635}
1665
+ reject_header_request_json: dict[str, Any] = {"height": 17867635}
1665
1666
 
1666
- request_removals_json: Dict[str, Any] = {
1667
+ request_removals_json: dict[str, Any] = {
1667
1668
  "height": 3500751918,
1668
1669
  "header_hash": "0xb44bc0e0fce20331a57081107dfd30ef39fc436e6e6ce4f6f0ab8db4f981d114",
1669
1670
  "coin_names": ["0xab62cfb2abaf9e1a475b707c3d3de35d6ef4a298b31137802fd9ea47d48ff0d5"],
1670
1671
  }
1671
1672
 
1672
- respond_removals_json: Dict[str, Any] = {
1673
+ respond_removals_json: dict[str, Any] = {
1673
1674
  "height": 461268095,
1674
1675
  "header_hash": "0xe2db23a6484b05d9ae1033efe8dcfcf5894fc600a6b93b03782fab8dd1cba8a4",
1675
1676
  "coins": [
@@ -1685,18 +1686,18 @@ respond_removals_json: Dict[str, Any] = {
1685
1686
  "proofs": [["0x652c312e1dd9f32bf074e17ae8b658bf47711bd1a5e6c937adfb0c80b51fa49d", "0x61616161616161616161"]],
1686
1687
  }
1687
1688
 
1688
- reject_removals_request_json: Dict[str, Any] = {
1689
+ reject_removals_request_json: dict[str, Any] = {
1689
1690
  "height": 3247661701,
1690
1691
  "header_hash": "0xd5eee2d2ad56663c1c1d1cbde69329862dcf29010683aa7a0da91712d6876caf",
1691
1692
  }
1692
1693
 
1693
- request_additions_json: Dict[str, Any] = {
1694
+ request_additions_json: dict[str, Any] = {
1694
1695
  "height": 2566479739,
1695
1696
  "header_hash": "0x17262e35437ddc95d43431d20657c096cff95f7ba93a39367f56f1f9df0f0277",
1696
1697
  "puzzle_hashes": ["0x6fc7b72bc37f462dc820d4b39c9e69e9e65b590ee1a6b0a06b5105d048c278d4"],
1697
1698
  }
1698
1699
 
1699
- respond_additions_json: Dict[str, Any] = {
1700
+ respond_additions_json: dict[str, Any] = {
1700
1701
  "height": 1992350400,
1701
1702
  "header_hash": "0x449ba349ce403c1acfcd46108758e7ada3a455e7a82dbee90860ec73adb090c9",
1702
1703
  "coins": [
@@ -1725,16 +1726,16 @@ respond_additions_json: Dict[str, Any] = {
1725
1726
  ],
1726
1727
  }
1727
1728
 
1728
- reject_additions_json: Dict[str, Any] = {
1729
+ reject_additions_json: dict[str, Any] = {
1729
1730
  "height": 3457211200,
1730
1731
  "header_hash": "0x4eb659e6dd727bc22191795692aae576922e56ae309871c352eede0c9dd8bb12",
1731
1732
  }
1732
1733
 
1733
- request_header_blocks_json: Dict[str, Any] = {"start_height": 2858301848, "end_height": 720941539}
1734
+ request_header_blocks_json: dict[str, Any] = {"start_height": 2858301848, "end_height": 720941539}
1734
1735
 
1735
- reject_header_blocks_json: Dict[str, Any] = {"start_height": 876520264, "end_height": 2908717391}
1736
+ reject_header_blocks_json: dict[str, Any] = {"start_height": 876520264, "end_height": 2908717391}
1736
1737
 
1737
- respond_header_blocks_json: Dict[str, Any] = {
1738
+ respond_header_blocks_json: dict[str, Any] = {
1738
1739
  "start_height": 4130100992,
1739
1740
  "end_height": 17664086,
1740
1741
  "header_blocks": [
@@ -1916,7 +1917,7 @@ respond_header_blocks_json: Dict[str, Any] = {
1916
1917
  ],
1917
1918
  }
1918
1919
 
1919
- coin_state_json: Dict[str, Any] = {
1920
+ coin_state_json: dict[str, Any] = {
1920
1921
  "coin": {
1921
1922
  "parent_coin_info": "0xd56f435d3382cb9aa5f50f51816e4c54487c66402339901450f3c810f1d77098",
1922
1923
  "puzzle_hash": "0x9944f63fcc251719b2f04c47ab976a167f96510736dc6fdfa8e037d740f4b5f3",
@@ -1926,14 +1927,14 @@ coin_state_json: Dict[str, Any] = {
1926
1927
  "created_height": 3361305811,
1927
1928
  }
1928
1929
 
1929
- register_for_ph_updates_json: Dict[str, Any] = {
1930
+ register_for_ph_updates_json: dict[str, Any] = {
1930
1931
  "puzzle_hashes": ["0xdf24b7dc1d5ffa12f112e198cd26385b5ab302b5c2e5f9d589e5cd3f7b900510"],
1931
1932
  "min_height": 874269130,
1932
1933
  }
1933
1934
 
1934
- reject_block_headers_json: Dict[str, Any] = {"start_height": 543373229, "end_height": 2347869036}
1935
+ reject_block_headers_json: dict[str, Any] = {"start_height": 543373229, "end_height": 2347869036}
1935
1936
 
1936
- respond_to_ph_updates_json: Dict[str, Any] = {
1937
+ respond_to_ph_updates_json: dict[str, Any] = {
1937
1938
  "puzzle_hashes": ["0x1be3bdc54b84901554e4e843966cfa3be3380054c968bebc41cc6be4aa65322f"],
1938
1939
  "min_height": 3664709982,
1939
1940
  "coin_states": [
@@ -1949,12 +1950,12 @@ respond_to_ph_updates_json: Dict[str, Any] = {
1949
1950
  ],
1950
1951
  }
1951
1952
 
1952
- register_for_coin_updates_json: Dict[str, Any] = {
1953
+ register_for_coin_updates_json: dict[str, Any] = {
1953
1954
  "coin_ids": ["0x1d7748531ece395e8bb8468b112d4ccdd1cea027359abd03c0b015edf666eec8"],
1954
1955
  "min_height": 3566185528,
1955
1956
  }
1956
1957
 
1957
- respond_to_coin_updates_json: Dict[str, Any] = {
1958
+ respond_to_coin_updates_json: dict[str, Any] = {
1958
1959
  "coin_ids": ["0xdb8bad6bd9de34d4884380176135f31a655dca18e9a5fadfb567145b81b6a9e0"],
1959
1960
  "min_height": 3818814774,
1960
1961
  "coin_states": [
@@ -1970,7 +1971,7 @@ respond_to_coin_updates_json: Dict[str, Any] = {
1970
1971
  ],
1971
1972
  }
1972
1973
 
1973
- coin_state_update_json: Dict[str, Any] = {
1974
+ coin_state_update_json: dict[str, Any] = {
1974
1975
  "height": 855344561,
1975
1976
  "fork_height": 1659753011,
1976
1977
  "peak_hash": "0x8512cc80a2976c81186e8963bc7af9d6d5732ccae5227fffee823f0bf3081e76",
@@ -1987,11 +1988,11 @@ coin_state_update_json: Dict[str, Any] = {
1987
1988
  ],
1988
1989
  }
1989
1990
 
1990
- request_children_json: Dict[str, Any] = {
1991
+ request_children_json: dict[str, Any] = {
1991
1992
  "coin_name": "0x15beeed2e6dd0cf1b81a3f68a49845c020912218e4c1f002a1b3f43333495478"
1992
1993
  }
1993
1994
 
1994
- respond_children_json: Dict[str, Any] = {
1995
+ respond_children_json: dict[str, Any] = {
1995
1996
  "coin_states": [
1996
1997
  {
1997
1998
  "coin": {
@@ -2005,21 +2006,21 @@ respond_children_json: Dict[str, Any] = {
2005
2006
  ]
2006
2007
  }
2007
2008
 
2008
- request_ses_info_json: Dict[str, Any] = {"start_height": 2704205398, "end_height": 2050258406}
2009
+ request_ses_info_json: dict[str, Any] = {"start_height": 2704205398, "end_height": 2050258406}
2009
2010
 
2010
- respond_ses_info_json: Dict[str, Any] = {
2011
+ respond_ses_info_json: dict[str, Any] = {
2011
2012
  "reward_chain_hash": ["0xb61cb91773995e99cb8259609c0985f915a5734a1706aeab9342a2d1c5abf71b"],
2012
2013
  "heights": [[1, 2, 3], [4, 606340525]],
2013
2014
  }
2014
2015
 
2015
- coin_state_filters_json: Dict[str, Any] = {
2016
+ coin_state_filters_json: dict[str, Any] = {
2016
2017
  "include_spent": True,
2017
2018
  "include_unspent": True,
2018
2019
  "include_hinted": True,
2019
2020
  "min_amount": 0,
2020
2021
  }
2021
2022
 
2022
- request_remove_puzzle_subscriptions_json: Dict[str, Any] = {
2023
+ request_remove_puzzle_subscriptions_json: dict[str, Any] = {
2023
2024
  "puzzle_hashes": [
2024
2025
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2025
2026
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2027,7 +2028,7 @@ request_remove_puzzle_subscriptions_json: Dict[str, Any] = {
2027
2028
  ]
2028
2029
  }
2029
2030
 
2030
- respond_remove_puzzle_subscriptions_json: Dict[str, Any] = {
2031
+ respond_remove_puzzle_subscriptions_json: dict[str, Any] = {
2031
2032
  "puzzle_hashes": [
2032
2033
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2033
2034
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2035,7 +2036,7 @@ respond_remove_puzzle_subscriptions_json: Dict[str, Any] = {
2035
2036
  ]
2036
2037
  }
2037
2038
 
2038
- request_remove_coin_subscriptions_json: Dict[str, Any] = {
2039
+ request_remove_coin_subscriptions_json: dict[str, Any] = {
2039
2040
  "coin_ids": [
2040
2041
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2041
2042
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2043,7 +2044,7 @@ request_remove_coin_subscriptions_json: Dict[str, Any] = {
2043
2044
  ]
2044
2045
  }
2045
2046
 
2046
- respond_remove_coin_subscriptions_json: Dict[str, Any] = {
2047
+ respond_remove_coin_subscriptions_json: dict[str, Any] = {
2047
2048
  "coin_ids": [
2048
2049
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2049
2050
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2051,7 +2052,7 @@ respond_remove_coin_subscriptions_json: Dict[str, Any] = {
2051
2052
  ]
2052
2053
  }
2053
2054
 
2054
- request_puzzle_state_json: Dict[str, Any] = {
2055
+ request_puzzle_state_json: dict[str, Any] = {
2055
2056
  "puzzle_hashes": [
2056
2057
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2057
2058
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2063,9 +2064,9 @@ request_puzzle_state_json: Dict[str, Any] = {
2063
2064
  "subscribe_when_finished": True,
2064
2065
  }
2065
2066
 
2066
- reject_puzzle_state_json: Dict[str, Any] = {"reason": 0}
2067
+ reject_puzzle_state_json: dict[str, Any] = {"reason": 0}
2067
2068
 
2068
- respond_puzzle_state_json: Dict[str, Any] = {
2069
+ respond_puzzle_state_json: dict[str, Any] = {
2069
2070
  "puzzle_hashes": [
2070
2071
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2071
2072
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2087,7 +2088,7 @@ respond_puzzle_state_json: Dict[str, Any] = {
2087
2088
  ],
2088
2089
  }
2089
2090
 
2090
- request_coin_state_json: Dict[str, Any] = {
2091
+ request_coin_state_json: dict[str, Any] = {
2091
2092
  "coin_ids": [
2092
2093
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2093
2094
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2098,7 +2099,7 @@ request_coin_state_json: Dict[str, Any] = {
2098
2099
  "subscribe": False,
2099
2100
  }
2100
2101
 
2101
- respond_coin_state_json: Dict[str, Any] = {
2102
+ respond_coin_state_json: dict[str, Any] = {
2102
2103
  "coin_ids": [
2103
2104
  "0x59710628755b6d7f7d0b5d84d5c980e7a1c52e55f5a43b531312402bd9045da7",
2104
2105
  "0xd4a68c9dc42d625092c3e71a657cce469ae4180d1b0632256d2da8ffc0a9beca",
@@ -2117,11 +2118,11 @@ respond_coin_state_json: Dict[str, Any] = {
2117
2118
  ],
2118
2119
  }
2119
2120
 
2120
- reject_coin_state_json: Dict[str, Any] = {"reason": 1}
2121
+ reject_coin_state_json: dict[str, Any] = {"reason": 1}
2121
2122
 
2122
- request_cost_info_json: Dict[str, Any] = {}
2123
+ request_cost_info_json: dict[str, Any] = {}
2123
2124
 
2124
- respond_cost_info_json: Dict[str, Any] = {
2125
+ respond_cost_info_json: dict[str, Any] = {
2125
2126
  "max_transaction_cost": 100000,
2126
2127
  "max_block_cost": 1000000,
2127
2128
  "max_mempool_cost": 10000000,
@@ -2130,13 +2131,13 @@ respond_cost_info_json: Dict[str, Any] = {
2130
2131
  "bump_fee_per_cost": 10,
2131
2132
  }
2132
2133
 
2133
- pool_difficulty_json: Dict[str, Any] = {
2134
+ pool_difficulty_json: dict[str, Any] = {
2134
2135
  "difficulty": 14819251421858580996,
2135
2136
  "sub_slot_iters": 12852879676624401630,
2136
2137
  "pool_contract_puzzle_hash": "0xc9423123ea65e6923e973b95531b4874570dae942cb757a2daec4a6971753886",
2137
2138
  }
2138
2139
 
2139
- harvester_handhsake_json: Dict[str, Any] = {
2140
+ harvester_handhsake_json: dict[str, Any] = {
2140
2141
  "farmer_public_keys": [
2141
2142
  "0xa04c6b5ac7dfb935f6feecfdd72348ccf1d4be4fe7e26acf271ea3b7d308da61e0a308f7a62495328a81f5147b66634c"
2142
2143
  ],
@@ -2145,7 +2146,7 @@ harvester_handhsake_json: Dict[str, Any] = {
2145
2146
  ],
2146
2147
  }
2147
2148
 
2148
- new_signage_point_harvester_json: Dict[str, Any] = {
2149
+ new_signage_point_harvester_json: dict[str, Any] = {
2149
2150
  "challenge_hash": "0xe342c21b4aeaa52349d42492be934692db58494ca9bce4a8697d06fdf8e583bb",
2150
2151
  "difficulty": 15615706268399948682,
2151
2152
  "sub_slot_iters": 10520767421667792980,
@@ -2161,7 +2162,7 @@ new_signage_point_harvester_json: Dict[str, Any] = {
2161
2162
  "filter_prefix_bits": 9,
2162
2163
  }
2163
2164
 
2164
- new_proof_of_space_json: Dict[str, Any] = {
2165
+ new_proof_of_space_json: dict[str, Any] = {
2165
2166
  "challenge_hash": "0x1b64ec6bf3fe33bb80eca5b64ff1c88be07771eaed1e98a7199510522087e56e",
2166
2167
  "sp_hash": "0xad1f8a74376ce8c5c93b7fbb355c2fb6d689ae4f4a7134166593d95265a3da30",
2167
2168
  "plot_identifier": "plot_1",
@@ -2179,7 +2180,7 @@ new_proof_of_space_json: Dict[str, Any] = {
2179
2180
  "fee_info": {"applied_fee_threshold": 1337},
2180
2181
  }
2181
2182
 
2182
- request_signatures_json: Dict[str, Any] = {
2183
+ request_signatures_json: dict[str, Any] = {
2183
2184
  "plot_identifier": "plot_1",
2184
2185
  "challenge_hash": "0xb5fa873020fa8b959d89bc2ffc5797501bf870ac8b30437cd6b4fcdea0812789",
2185
2186
  "sp_hash": "0xbccb7744192771f3a7abca2bce6ea03ed53f1f0d991c13bd2711ce32a2fb3777",
@@ -2245,7 +2246,7 @@ request_signatures_json: Dict[str, Any] = {
2245
2246
  },
2246
2247
  }
2247
2248
 
2248
- respond_signatures_json: Dict[str, Any] = {
2249
+ respond_signatures_json: dict[str, Any] = {
2249
2250
  "plot_identifier": "plot_1",
2250
2251
  "challenge_hash": "0x59468dce63b5b08490ec4eec4c461fc84b69b6f80a64f4c76b0d55780f7e7e7a",
2251
2252
  "sp_hash": "0x270b5fc00545db714077aba3b60245d769f492563f108a73b2b8502503d12b9e",
@@ -2261,7 +2262,7 @@ respond_signatures_json: Dict[str, Any] = {
2261
2262
  "farmer_reward_address_override": "0xcb3ddb903f52818724bb3b32fd5310f5e8623697561930dca73cb9da5dd9349c",
2262
2263
  }
2263
2264
 
2264
- plot_json: Dict[str, Any] = {
2265
+ plot_json: dict[str, Any] = {
2265
2266
  "filename": "plot_1",
2266
2267
  "size": 124,
2267
2268
  "plot_id": "0xb2eb7e5c5239e8610a9dd0e137e185966ebb430faf31ae4a0e55d86251065b98",
@@ -2273,9 +2274,9 @@ plot_json: Dict[str, Any] = {
2273
2274
  "compression_level": 0,
2274
2275
  }
2275
2276
 
2276
- request_plots_json: Dict[str, Any] = {}
2277
+ request_plots_json: dict[str, Any] = {}
2277
2278
 
2278
- respond_plots_json: Dict[str, Any] = {
2279
+ respond_plots_json: dict[str, Any] = {
2279
2280
  "plots": [
2280
2281
  {
2281
2282
  "filename": "plot_1",
@@ -2293,20 +2294,20 @@ respond_plots_json: Dict[str, Any] = {
2293
2294
  "no_key_filenames": ["str"],
2294
2295
  }
2295
2296
 
2296
- request_peers_introducer_json: Dict[str, Any] = {}
2297
+ request_peers_introducer_json: dict[str, Any] = {}
2297
2298
 
2298
- respond_peers_introducer_json: Dict[str, Any] = {
2299
+ respond_peers_introducer_json: dict[str, Any] = {
2299
2300
  "peer_list": [{"host": "127.0.0.1", "port": 49878, "timestamp": 15079028934557257795}]
2300
2301
  }
2301
2302
 
2302
- authentication_payload_json: Dict[str, Any] = {
2303
+ authentication_payload_json: dict[str, Any] = {
2303
2304
  "method_name": "method",
2304
2305
  "launcher_id": "0x0251e3b3a1aacc689091b6b085be7a8d319bd9d1a015faae969cb76d8a45607c",
2305
2306
  "target_puzzle_hash": "0x9de241b508b5e9e2073b7645291cfaa9458d33935340399a861acf2ee1770440",
2306
2307
  "authentication_token": 4676522834655707230,
2307
2308
  }
2308
2309
 
2309
- get_pool_info_response_json: Dict[str, Any] = {
2310
+ get_pool_info_response_json: dict[str, Any] = {
2310
2311
  "name": "pool_name",
2311
2312
  "logo_url": "pool_name",
2312
2313
  "minimum_difficulty": 7020711482626732214,
@@ -2318,7 +2319,7 @@ get_pool_info_response_json: Dict[str, Any] = {
2318
2319
  "authentication_token_timeout": 76,
2319
2320
  }
2320
2321
 
2321
- post_partial_payload_json: Dict[str, Any] = {
2322
+ post_partial_payload_json: dict[str, Any] = {
2322
2323
  "launcher_id": "0xdada61e179e67e5e8bc7aaab16e192facf0f15871f0c479d2a96ac5f85721a1a",
2323
2324
  "authentication_token": 2491521039628830788,
2324
2325
  "proof_of_space": {
@@ -2334,7 +2335,7 @@ post_partial_payload_json: Dict[str, Any] = {
2334
2335
  "harvester_id": "0xf98dff6bdcc3926b33cb8ab22e11bd15c13d6a9b6832ac948b3273f5ccd8e7ec",
2335
2336
  }
2336
2337
 
2337
- post_partial_request_json: Dict[str, Any] = {
2338
+ post_partial_request_json: dict[str, Any] = {
2338
2339
  "payload": {
2339
2340
  "launcher_id": "0xdada61e179e67e5e8bc7aaab16e192facf0f15871f0c479d2a96ac5f85721a1a",
2340
2341
  "authentication_token": 2491521039628830788,
@@ -2353,16 +2354,16 @@ post_partial_request_json: Dict[str, Any] = {
2353
2354
  "aggregate_signature": "0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
2354
2355
  }
2355
2356
 
2356
- post_partial_response_json: Dict[str, Any] = {"new_difficulty": 5956480724816802941}
2357
+ post_partial_response_json: dict[str, Any] = {"new_difficulty": 5956480724816802941}
2357
2358
 
2358
- get_farmer_response_json: Dict[str, Any] = {
2359
+ get_farmer_response_json: dict[str, Any] = {
2359
2360
  "authentication_public_key": "0xa04c6b5ac7dfb935f6feecfdd72348ccf1d4be4fe7e26acf271ea3b7d308da61e0a308f7a62495328a81f5147b66634c",
2360
2361
  "payout_instructions": "instructions",
2361
2362
  "current_difficulty": 8362834206591090467,
2362
2363
  "current_points": 14310455844127802841,
2363
2364
  }
2364
2365
 
2365
- post_farmer_payload_json: Dict[str, Any] = {
2366
+ post_farmer_payload_json: dict[str, Any] = {
2366
2367
  "launcher_id": "0xd3785b251b4e066f87784d06afc8e6ac8dac5a4922d994902c1bad60b5fa7ad3",
2367
2368
  "authentication_token": 5820795488800541986,
2368
2369
  "authentication_public_key": "0xa04c6b5ac7dfb935f6feecfdd72348ccf1d4be4fe7e26acf271ea3b7d308da61e0a308f7a62495328a81f5147b66634c",
@@ -2370,7 +2371,7 @@ post_farmer_payload_json: Dict[str, Any] = {
2370
2371
  "suggested_difficulty": 1996244065095983466,
2371
2372
  }
2372
2373
 
2373
- post_farmer_request_json: Dict[str, Any] = {
2374
+ post_farmer_request_json: dict[str, Any] = {
2374
2375
  "payload": {
2375
2376
  "launcher_id": "0xd3785b251b4e066f87784d06afc8e6ac8dac5a4922d994902c1bad60b5fa7ad3",
2376
2377
  "authentication_token": 5820795488800541986,
@@ -2381,9 +2382,9 @@ post_farmer_request_json: Dict[str, Any] = {
2381
2382
  "signature": "0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
2382
2383
  }
2383
2384
 
2384
- post_farmer_response_json: Dict[str, Any] = {"welcome_message": "welcome"}
2385
+ post_farmer_response_json: dict[str, Any] = {"welcome_message": "welcome"}
2385
2386
 
2386
- put_farmer_payload_json: Dict[str, Any] = {
2387
+ put_farmer_payload_json: dict[str, Any] = {
2387
2388
  "launcher_id": "0x78aec4d523b0bea49829a1322d5de92a86a553ce8774690b8c8ad5fc1f7540a8",
2388
2389
  "authentication_token": 15049374353843709257,
2389
2390
  "authentication_public_key": "0xa04c6b5ac7dfb935f6feecfdd72348ccf1d4be4fe7e26acf271ea3b7d308da61e0a308f7a62495328a81f5147b66634c",
@@ -2391,7 +2392,7 @@ put_farmer_payload_json: Dict[str, Any] = {
2391
2392
  "suggested_difficulty": 201241879360854600,
2392
2393
  }
2393
2394
 
2394
- put_farmer_request_json: Dict[str, Any] = {
2395
+ put_farmer_request_json: dict[str, Any] = {
2395
2396
  "payload": {
2396
2397
  "launcher_id": "0x78aec4d523b0bea49829a1322d5de92a86a553ce8774690b8c8ad5fc1f7540a8",
2397
2398
  "authentication_token": 15049374353843709257,
@@ -2402,15 +2403,15 @@ put_farmer_request_json: Dict[str, Any] = {
2402
2403
  "signature": "0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
2403
2404
  }
2404
2405
 
2405
- put_farmer_response_json: Dict[str, Any] = {
2406
+ put_farmer_response_json: dict[str, Any] = {
2406
2407
  "authentication_public_key": False,
2407
2408
  "payout_instructions": False,
2408
2409
  "suggested_difficulty": True,
2409
2410
  }
2410
2411
 
2411
- error_response_json: Dict[str, Any] = {"error_code": 47018, "error_message": "err"}
2412
+ error_response_json: dict[str, Any] = {"error_code": 47018, "error_message": "err"}
2412
2413
 
2413
- new_peak_timelord_json: Dict[str, Any] = {
2414
+ new_peak_timelord_json: dict[str, Any] = {
2414
2415
  "reward_chain_block": {
2415
2416
  "weight": 187084448821891925757676377381787790114,
2416
2417
  "height": 301889038,
@@ -2481,7 +2482,7 @@ new_peak_timelord_json: Dict[str, Any] = {
2481
2482
  "passes_ses_height_but_not_yet_included": True,
2482
2483
  }
2483
2484
 
2484
- new_unfinished_block_timelord_json: Dict[str, Any] = {
2485
+ new_unfinished_block_timelord_json: dict[str, Any] = {
2485
2486
  "reward_chain_block": {
2486
2487
  "total_iters": 147405131564197136044258885592706844266,
2487
2488
  "signage_point_index": 9,
@@ -2540,7 +2541,7 @@ new_unfinished_block_timelord_json: Dict[str, Any] = {
2540
2541
  "rc_prev": "0x0f90296b605904a794e4e98852e3b22e0d9bee2fa07abb12df6cecbdb778e1e5",
2541
2542
  }
2542
2543
 
2543
- new_infusion_point_vdf_json: Dict[str, Any] = {
2544
+ new_infusion_point_vdf_json: dict[str, Any] = {
2544
2545
  "unfinished_reward_hash": "0x3d3b977d3a3dab50f0cd72b74b2f08f5018fb5ef826a8773161b7a499dafa60f",
2545
2546
  "challenge_chain_ip_vdf": {
2546
2547
  "challenge": "0x7cbd5905838c1dc2becd00298a5b3a6e42b6a306d574c8897cd721f84d429972",
@@ -2580,7 +2581,7 @@ new_infusion_point_vdf_json: Dict[str, Any] = {
2580
2581
  },
2581
2582
  }
2582
2583
 
2583
- new_signage_point_vdf_json: Dict[str, Any] = {
2584
+ new_signage_point_vdf_json: dict[str, Any] = {
2584
2585
  "index_from_challenge": 182,
2585
2586
  "challenge_chain_sp_vdf": {
2586
2587
  "challenge": "0x7cbd5905838c1dc2becd00298a5b3a6e42b6a306d574c8897cd721f84d429972",
@@ -2608,7 +2609,7 @@ new_signage_point_vdf_json: Dict[str, Any] = {
2608
2609
  },
2609
2610
  }
2610
2611
 
2611
- new_end_of_sub_slot_bundle_json: Dict[str, Any] = {
2612
+ new_end_of_sub_slot_bundle_json: dict[str, Any] = {
2612
2613
  "end_of_sub_slot_bundle": {
2613
2614
  "challenge_chain": {
2614
2615
  "challenge_chain_end_of_slot_vdf": {
@@ -2664,7 +2665,7 @@ new_end_of_sub_slot_bundle_json: Dict[str, Any] = {
2664
2665
  }
2665
2666
  }
2666
2667
 
2667
- request_compact_proof_of_time_json: Dict[str, Any] = {
2668
+ request_compact_proof_of_time_json: dict[str, Any] = {
2668
2669
  "new_proof_of_time": {
2669
2670
  "challenge": "0x7cbd5905838c1dc2becd00298a5b3a6e42b6a306d574c8897cd721f84d429972",
2670
2671
  "number_of_iterations": 14708638287767651172,
@@ -2677,7 +2678,7 @@ request_compact_proof_of_time_json: Dict[str, Any] = {
2677
2678
  "field_vdf": 237,
2678
2679
  }
2679
2680
 
2680
- respond_compact_proof_of_time_json: Dict[str, Any] = {
2681
+ respond_compact_proof_of_time_json: dict[str, Any] = {
2681
2682
  "vdf_info": {
2682
2683
  "challenge": "0x7cbd5905838c1dc2becd00298a5b3a6e42b6a306d574c8897cd721f84d429972",
2683
2684
  "number_of_iterations": 14708638287767651172,
@@ -2695,6 +2696,6 @@ respond_compact_proof_of_time_json: Dict[str, Any] = {
2695
2696
  "field_vdf": 224,
2696
2697
  }
2697
2698
 
2698
- error_without_data_json: Dict[str, Any] = {"code": 1, "message": "Unknown", "data": None}
2699
+ error_without_data_json: dict[str, Any] = {"code": 1, "message": "Unknown", "data": None}
2699
2700
 
2700
- error_with_data_json: Dict[str, Any] = {"code": 1, "message": "Unknown", "data": "0x65787472612064617461"}
2701
+ error_with_data_json: dict[str, Any] = {"code": 1, "message": "Unknown", "data": "0x65787472612064617461"}