chia-agent 14.0.0 → 14.2.0

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 (154) hide show
  1. package/CHANGELOG.md +252 -3
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/agent/index.d.ts +1 -1
  5. package/api/chia/consensus/block_record.d.ts +1 -32
  6. package/api/chia/consensus/blockchain.d.ts +2 -1
  7. package/api/chia/consensus/cost_calculator.d.ts +1 -1
  8. package/api/chia/data_layer/data_layer_util.d.ts +16 -16
  9. package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
  10. package/api/chia/farmer/farmer.d.ts +1 -1
  11. package/api/chia/full_node/signage_point.d.ts +1 -1
  12. package/api/chia/harvester/harvester.d.ts +1 -1
  13. package/api/chia/plot-sync/receiver.d.ts +2 -2
  14. package/api/chia/plotters/bladebit.d.ts +1 -1
  15. package/api/chia/plotters/chiapos.d.ts +1 -1
  16. package/api/chia/plotters/maxmax.d.ts +1 -1
  17. package/api/chia/plotting/util.d.ts +3 -3
  18. package/api/chia/pools/pool_config.d.ts +1 -1
  19. package/api/chia/pools/pool_wallet_info.d.ts +2 -4
  20. package/api/chia/protocols/farmer_protocol.d.ts +8 -8
  21. package/api/chia/protocols/harvester_protocol.d.ts +1 -1
  22. package/api/chia/protocols/pool_protocol.d.ts +13 -13
  23. package/api/chia/rpc/util.d.ts +14 -0
  24. package/api/chia/rpc/wallet_request_types.d.ts +46 -3
  25. package/api/chia/server/outbound_message.d.ts +1 -1
  26. package/api/chia/timelord/types.d.ts +1 -1
  27. package/api/chia/types/_python_types_.d.ts +22 -22
  28. package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
  29. package/api/chia/types/blockchain_format/coin.d.ts +1 -11
  30. package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
  31. package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
  32. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  33. package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
  34. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
  35. package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
  36. package/api/chia/types/blockchain_format/slots.d.ts +1 -24
  37. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
  38. package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
  39. package/api/chia/types/clvm_cost.d.ts +1 -1
  40. package/api/chia/types/coin_record.d.ts +2 -2
  41. package/api/chia/types/coin_spend.d.ts +3 -8
  42. package/api/chia/types/condition_opcode.d.ts +1 -1
  43. package/api/chia/types/condition_with_args.d.ts +1 -1
  44. package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
  45. package/api/chia/types/full_block.d.ts +1 -20
  46. package/api/chia/types/mempool_item.d.ts +3 -3
  47. package/api/chia/types/mojos.d.ts +1 -1
  48. package/api/chia/types/signing_mode.d.ts +6 -6
  49. package/api/chia/types/spend_bundle.d.ts +1 -1
  50. package/api/chia/types/spend_bundle_condition.d.ts +1 -26
  51. package/api/chia/types/unfinished_block.d.ts +1 -0
  52. package/api/chia/types/unfinished_header_block.d.ts +1 -1
  53. package/api/chia/util/keychain.d.ts +2 -2
  54. package/api/chia/util/misc.d.ts +1 -1
  55. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
  56. package/api/chia/wallet/conditions.d.ts +2 -2
  57. package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
  58. package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
  59. package/api/chia/wallet/lineage_proof.d.ts +1 -1
  60. package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
  61. package/api/chia/wallet/notification_store.d.ts +1 -1
  62. package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
  63. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
  64. package/api/chia/wallet/signer_protocol.d.ts +54 -0
  65. package/api/chia/wallet/signer_protocol.js +2 -0
  66. package/api/chia/wallet/trade_record.d.ts +3 -3
  67. package/api/chia/wallet/transaction_record.d.ts +4 -4
  68. package/api/chia/wallet/util/quality_filter.d.ts +5 -5
  69. package/api/chia/wallet/util/tx_config.d.ts +4 -11
  70. package/api/chia/wallet/util/wallet_types.d.ts +1 -1
  71. package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
  72. package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
  73. package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
  74. package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
  75. package/api/chia/wallet/wallet_info.d.ts +2 -2
  76. package/api/chia/wallet/wallet_node.d.ts +1 -1
  77. package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
  78. package/api/chia_rs/chia-bls/public_key.js +2 -0
  79. package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
  80. package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
  81. package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
  82. package/api/chia_rs/chia-protocol/block_record.js +2 -0
  83. package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
  84. package/api/chia_rs/chia-protocol/classgroup.js +2 -0
  85. package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
  86. package/api/chia_rs/chia-protocol/coin.js +2 -0
  87. package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
  88. package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
  89. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
  90. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
  91. package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
  92. package/api/chia_rs/chia-protocol/foliage.js +2 -0
  93. package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
  94. package/api/chia_rs/chia-protocol/fullblock.js +2 -0
  95. package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
  96. package/api/chia_rs/chia-protocol/pool_target.js +2 -0
  97. package/api/chia_rs/chia-protocol/program.d.ts +2 -0
  98. package/api/chia_rs/chia-protocol/program.js +2 -0
  99. package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
  100. package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
  101. package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
  102. package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
  103. package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
  104. package/api/chia_rs/chia-protocol/slots.js +2 -0
  105. package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
  106. package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
  107. package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
  108. package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
  109. package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
  110. package/api/chia_rs/chia-protocol/vdf.js +2 -0
  111. package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
  112. package/api/pool-reference/pool/record.js +2 -0
  113. package/api/rpc/common/index.d.ts +34 -24
  114. package/api/rpc/common/index.js +8 -1
  115. package/api/rpc/crawler/index.d.ts +10 -10
  116. package/api/rpc/data_layer/index.d.ts +208 -134
  117. package/api/rpc/data_layer/index.js +23 -2
  118. package/api/rpc/farmer/index.d.ts +52 -55
  119. package/api/rpc/full_node/index.d.ts +140 -154
  120. package/api/rpc/full_node/index.js +2 -9
  121. package/api/rpc/harvester/index.d.ts +31 -34
  122. package/api/rpc/index.d.ts +7 -7
  123. package/api/rpc/index.js +13 -9
  124. package/api/rpc/pool/index.d.ts +13 -13
  125. package/api/rpc/wallet/index.d.ts +747 -641
  126. package/api/rpc/wallet/index.js +27 -20
  127. package/api/types.d.ts +4 -3
  128. package/api/types.js +2 -1
  129. package/api/ws/chia_plots_create/index.d.ts +7 -7
  130. package/api/ws/crawler/index.d.ts +9 -9
  131. package/api/ws/daemon/index.d.ts +198 -166
  132. package/api/ws/daemon/index.js +17 -3
  133. package/api/ws/farmer/index.d.ts +34 -34
  134. package/api/ws/full_node/index.d.ts +28 -17
  135. package/api/ws/full_node/index.js +14 -1
  136. package/api/ws/harvester/index.d.ts +19 -19
  137. package/api/ws/index.d.ts +3 -3
  138. package/api/ws/index.js +5 -2
  139. package/api/ws/timelord/index.d.ts +14 -14
  140. package/api/ws/wallet/index.d.ts +22 -22
  141. package/bin/cli.js +3 -3
  142. package/config/index.d.ts +1 -1
  143. package/config/index.js +3 -3
  144. package/daemon/connection.js +9 -10
  145. package/daemon/index.d.ts +6 -6
  146. package/daemon/index.js +21 -21
  147. package/index.js +5 -1
  148. package/logger.d.ts +3 -3
  149. package/package.json +3 -3
  150. package/rpc/index.d.ts +6 -4
  151. package/rpc/index.js +29 -29
  152. package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
  153. /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
  154. /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,13 +1,261 @@
1
1
  # Changelog
2
2
 
3
+ ## [14.2.0]
4
+ ### Note
5
+ - [`add_private_key`](./src/api/ws/daemon/README.md#add_private_keydaemon-params)
6
+ - The request parameters `kc_user` and `kc_service` is temporarily not working with `2.4.0` and `2.4.1` of
7
+ `chia-blockchain`.
8
+ This is a bug and not spec change so `chia-agent` stays to be able to set those params for now.
9
+ ### Changed
10
+ - Reorganized directory structure under `src/api/` in order to make it clear the dependencies from `chia_rs`/`pool_reference`
11
+ - [Daemon WebSocket API](./src/api/ws/daemon)
12
+ - [`get_key_for_fingerprint`](./src/api/ws/daemon/README.md#get_key_for_fingerprintdaemon-params)
13
+ - Added a `private` request parameter
14
+ - [Common RPC API](./src/api/rpc/common)
15
+ - [`get_network_info`](./src/api/rpc/common/README.md#get_network_infoagent)
16
+ - Added a `genesis_challenge` response parameter
17
+ - [`Mirror`](./src/api/chia/data_layer/data_layer_wallet.ts) now has new `confirmed_at_height` property.
18
+ As a result of this addition, [`dl_get_mirrors`](./src/api/rpc/wallet/README.md#dl_get_mirrorsagent-params) is affected.
19
+ - [`PoolWalletInfo`](./src/api/chia/pools/pool_wallet_info.ts)'s `current_inner` property was removed.
20
+ As a result of this removal, the following [Wallet RPC API](./src/api/rpc/wallet)s are affected.
21
+ - [`pw_absorb_rewards`](./src/api/rpc/wallet/README.md#pw_absorb_rewardsagent-params)
22
+ - [`pw_status`](./src/api/rpc/wallet/README.md#pw_statusagent-params)
23
+ - `CHIP-0029` and `sign` request params were added to [`TXEndpointRequest`](./src/api/chia/rpc/util.ts).
24
+ Plus, `unsigned_transactions` and `signing_responses` were added to responses of TxEndpoint APIs.
25
+ As a result of these additions, the following [Wallet RPC API](./src/api/rpc/wallet)s are affected.
26
+ - [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
27
+ - [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
28
+ - [`spend_clawback_coins`](./src/api/rpc/wallet/README.md#spend_clawback_coinsagent-params)
29
+ - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
30
+ - [`send_notification`](./src/api/rpc/wallet/README.md#send_notificationagent-params)
31
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
32
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
33
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
34
+ - [`cancel_offer`](./src/api/rpc/wallet/README.md#cancel_offeragent-params)
35
+ - [`cancel_offers`](./src/api/rpc/wallet/README.md#cancel_offersagent-params)
36
+ - [`did_update_recovery_ids`](./src/api/rpc/wallet/README.md#did_update_recovery_idsagent-params)
37
+ - [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
38
+ - [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
39
+ - [`did_message_spend`](./src/api/rpc/wallet/README.md#did_message_spendagent-params)
40
+ - [`did_transfer_did`](./src/api/rpc/wallet/README.md#did_transfer_didagent-params)
41
+ - [`dao_add_funds_to_treasury`](./src/api/rpc/wallet/README.md#dao_add_funds_to_treasuryagent-params)
42
+ - [`dao_send_to_lockup`](./src/api/rpc/wallet/README.md#dao_send_to_lockupagent-params)
43
+ - [`dao_exit_lockup`](./src/api/rpc/wallet/README.md#dao_exit_lockupagent-params)
44
+ - [`dao_create_proposal`](./src/api/rpc/wallet/README.md#dao_create_proposalagent-params)
45
+ - [`dao_vote_on_proposal`](./src/api/rpc/wallet/README.md#dao_vote_on_proposalagent-params)
46
+ - [`dao_close_proposal`](./src/api/rpc/wallet/README.md#dao_close_proposalagent-params)
47
+ - [`dao_free_coins_from_finished_proposals`](./src/api/rpc/wallet/README.md#dao_free_coins_from_finished_proposalsagent-params)
48
+ - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
49
+ - [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
50
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
51
+ - [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nft_transfer_bulkagent-params)
52
+ - [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
53
+ - [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
54
+ - [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
55
+ - [`pw_join_pool`](./src/api/rpc/wallet/README.md#pw_join_poolagent-params)
56
+ - [`pw_self_pool`](./src/api/rpc/wallet/README.md#pw_self_poolagent-params)
57
+ - [`pw_absorb_rewards`](./src/api/rpc/wallet/README.md#pw_absorb_rewardsagent-params)
58
+ - [`create_new_dl`](./src/api/rpc/wallet/README.md#create_new_dlagent-params)
59
+ - [`dl_update_root`](./src/api/rpc/wallet/README.md#dl_update_rootagent-params)
60
+ - [`dl_update_multiple`](./src/api/rpc/wallet/README.md#dl_update_multipleagent-params)
61
+ - [`dl_new_mirror`](./src/api/rpc/wallet/README.md#dl_new_mirroragent-params)
62
+ - [`dl_delete_mirror`](./src/api/rpc/wallet/README.md#dl_delete_mirroragent-params)
63
+ - [`vc_mint`](./src/api/rpc/wallet/README.md#vc_mintagent-params)
64
+ - [`vc_spend`](./src/api/rpc/wallet/README.md#vc_spendagent-params)
65
+ - [`vc_revoke`](./src/api/rpc/wallet/README.md#vc_revokeagent-params)
66
+ - [`crcat_approve_pending`](./src/api/rpc/wallet/README.md#crcat_approve_pendingagent-params)
67
+ - [FullNode RPC API](./src/api/rpc/full_node)
68
+ - `TFarmBlockFullNodeRequest`, `TFarmBlockFullNodeResponse` and `farm_block_fullnode` are now
69
+ `TFarmBlockRequest`, `TFarmBlockResponse` and `farm_block`
70
+ - [Wallet RPC API](./src/api/rpc/wallet)
71
+ - [`push_transactions`](./src/api/rpc/wallet/README.md#push_transactionsagent-params)
72
+ - Added `sign` request parameter
73
+ - [`dl_update_multiple`](./src/api/rpc/wallet/README.md#dl_update_multipleagent-params)
74
+ - Added `fee` optional request parameter
75
+ - Removed `tx_records` from response
76
+ ### Added
77
+ - [New Daemon WebSocket API](./src/api/ws/daemon)
78
+ - [`add_key`](./src/api/ws/daemon/README.md#add_keydaemon-params)
79
+ - [New DataLayer RPC API](./src/api/rpc/data_layer)
80
+ - [`multistore_batch_update`](./src/api/rpc/data_layer/README.md#multistore_batch_updateagent-params)
81
+ - [`submit_all_pending_roots`](./src/api/rpc/data_layer/README.md#submit_all_pending_rootsagent-params)
82
+ - [New FullNode WebSocket API](./src/api/ws/full_node)
83
+ - [`unfinished_block`](./src/api/ws/full_node/README.md#on_unfinished_block)
84
+ - [New Wallet RPC API](./src/api/rpc/wallet)
85
+ - [`gather_signing_info`](./src/api/rpc/wallet/README.md#gather_signing_infoagent-params)
86
+ - [`apply_signatures`](./src/api/rpc/wallet/README.md#apply_signaturesagent-params)
87
+ - [`submit_transactions`](./src/api/rpc/wallet/README.md#submit_transactionsagent-params)
88
+ ### Removed
89
+ - [Wallet RPC API](./src/api/rpc/wallet)
90
+ - `farm_block`
91
+ ### Fixed
92
+ - [Daemon WebSocket API](./src/api/ws/daemon)
93
+ - [`add_private_key`](./src/api/ws/daemon/README.md#add_private_keydaemon-params)
94
+ - Added missing `fingerprint` response property
95
+ - [`add_private_key`](./src/api/ws/daemon/README.md#add_private_keydaemon-params)
96
+ - [`check_keys`](./src/api/ws/daemon/README.md#check_keysdaemon-params)
97
+ - [`delete_all_keys`](./src/api/ws/daemon/README.md#delete_all_keysdaemon-params)
98
+ - [`delete_key_by_fingerprint`](./src/api/ws/daemon/README.md#delete_key_by_fingerprintdaemon-params)
99
+ - [`get_all_private_keys`](./src/api/ws/daemon/README.md#get_all_private_keysdaemon-params)
100
+ - [`get_first_private_key`](./src/api/ws/daemon/README.md#get_first_private_keydaemon-params)
101
+ - [`get_key_for_fingerprint`](./src/api/ws/daemon/README.md#get_key_for_fingerprintdaemon-params)
102
+ - [`get_key`](./src/api/ws/daemon/README.md#get_keydaemon-params)
103
+ - [`get_keys`](./src/api/ws/daemon/README.md#get_keysdaemon-params)
104
+ - [`get_public_key`](./src/api/ws/daemon/README.md#get_public_keydaemon-params)
105
+ - [`get_public_keys`](./src/api/ws/daemon/README.md#get_public_keysdaemon-params)
106
+ - [`set_label`](./src/api/ws/daemon/README.md#set_labeldaemon-params)
107
+ - [`delete_label`](./src/api/ws/daemon/README.md#delete_labeldaemon-params)
108
+ - Added a missing `kc_service` request parameter
109
+ - Removed `kc_test` request parameter
110
+ - [`get_key_for_fingerprint`](./src/api/ws/daemon/README.md#get_key_for_fingerprintdaemon-params)
111
+ - Made `error` response parameter non-optional when `success == False`
112
+ - [Common RPC API](./src/api/rpc/common)
113
+ - [`get_network_info`](./src/api/rpc/common/README.md#get_network_infoagent)
114
+ - Added a missing `success` response parameter
115
+ - [Wallet RPC API](./src/api/rpc/wallet)
116
+ - [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
117
+ - Fixed CAT request/response documentation incorrectness
118
+ - [`dao_close_proposal`](./src/api/rpc/wallet/README.md#dao_close_proposalagent-params)
119
+ - Fixed response documentation incorrectness
120
+ - Fixed an issue where `Spend` and `SpendBundleCondition` were too old and missed several properties in the types.
121
+
122
+ ## [14.1.0]
123
+ ### Changed
124
+ -`get_network_info` RPC API is now commonized and available in addition to `full_node` and `wallet`.
125
+ - [DataLayer RPC API](./src/api/rpc/data_layer)
126
+ - [`get_keys`](./src/api/rpc/data_layer/README.md#get_keysagent-params)
127
+ - Added `page` to request parameter
128
+ - Added `max_page_size` to request parameter
129
+ - Added `total_pages`, `total_bytes` and `root_hash` to response
130
+ - [`get_keys_values`](./src/api/rpc/data_layer/README.md#get_keys_valuesagent-params)
131
+ - Added `page` to request parameter
132
+ - Added `max_page_size` to request parameter
133
+ - Added `total_pages`, `total_bytes` and `root_hash` to response
134
+ - [`batch_update`](./src/api/rpc/data_layer/README.md#batch_updateagent-params)
135
+ - Added `submit_on_chain` to request parameter
136
+ - Made `tx_id` in response optional
137
+ - [`get_kv_diff`](./src/api/rpc/data_layer/README.md#get_kv_diffagent-params)
138
+ - Added `page` to request parameter
139
+ - Added `max_page_size` to request parameter
140
+ - Added `total_pages` and `total_bytes` to response
141
+ - [Wallet RPC API](./src/api/rpc/wallet)
142
+ - [`push_transactions`](./src/api/rpc/wallet/README.md#push_transactionsagent-params)
143
+ - A request parameter `transactions` is allowed to be `TransactionRecordConvenience[]`
144
+ - [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
145
+ - `transactions` is added to response for `cat_wallet` if `mode` in request is `new`
146
+ - `transactions` is added to response for `dao_wallet`
147
+ - `transactions` is added to response for `pool_wallet` if `mode` in request is `new`
148
+ - [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
149
+ - Changed the type of `fee` to `uint64` and made it optional
150
+ - Added `transactions` to response
151
+ - [`send_transaction_multi`](./src/api/rpc/wallet/README.md#send_transaction_multiagent-params)
152
+ - Simplified `TSendTransactionMultiRequest`
153
+ - Added `transactions` to response
154
+ - [`spend_clawback_coins`](./src/api/rpc/wallet/README.md#spend_clawback_coinsagent-params)
155
+ - Added `transactions` to response
156
+ - [`send_notification`](./src/api/rpc/wallet/README.md#send_notificationagent-params)
157
+ - Added `transactions` to response
158
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
159
+ - Added `transactions` to response
160
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
161
+ - Added `transactions` to response
162
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
163
+ - Added `transactions` to response
164
+ - [`cancel_offer`](./src/api/rpc/wallet/README.md#cancel_offeragent-params)
165
+ - Added `transactions` to response
166
+ - [`cancel_offers`](./src/api/rpc/wallet/README.md#cancel_offersagent-params)
167
+ - Added `transactions` to response
168
+ - [`did_update_recovery_ids`](./src/api/rpc/wallet/README.md#did_update_recovery_idsagent-params)
169
+ - Added `transactions` to response
170
+ - [`did_message_spend`](./src/api/rpc/wallet/README.md#did_message_spendagent-params)
171
+ - Added `transactions` to response
172
+ - [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
173
+ - Added `transactions` to response
174
+ - [`did_recovery_spend`](./src/api/rpc/wallet/README.md#did_recovery_spendagent-params)
175
+ - Added `transactions` to response
176
+ - [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
177
+ - Added `transactions` to response
178
+ - [`did_transfer_did`](./src/api/rpc/wallet/README.md#did_transfer_didagent-params)
179
+ - Added `transactions` to response
180
+ - [`dao_add_funds_to_treasury`](./src/api/rpc/wallet/README.md#dao_add_funds_to_treasuryagent-params)
181
+ - Added `transactions` to response
182
+ - [`dao_send_to_lockup`](./src/api/rpc/wallet/README.md#dao_send_to_lockupagent-params)
183
+ - Added `transactions` to response
184
+ - [`dao_exit_lockup`](./src/api/rpc/wallet/README.md#dao_exit_lockupagent-params)
185
+ - Added `transactions` to response
186
+ - [`dao_create_proposal`](./src/api/rpc/wallet/README.md#dao_create_proposalagent-params)
187
+ - Added `transactions` to response
188
+ - [`dao_vote_on_proposal`](./src/api/rpc/wallet/README.md#dao_vote_on_proposalagent-params)
189
+ - Added `transactions` to response
190
+ - [`dao_close_proposal`](./src/api/rpc/wallet/README.md#dao_close_proposalagent-params)
191
+ - Added `transactions` to response
192
+ - [`dao_free_coins_from_finished_proposals`](./src/api/rpc/wallet/README.md#dao_free_coins_from_finished_proposalsagent-params)
193
+ - Added `transactions` to response
194
+ - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
195
+ - Added `transactions` to response
196
+ - [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
197
+ - Added `transactions` to response
198
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
199
+ - Added `transactions` to response
200
+ - [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nft_transfer_bulkagent-params)
201
+ - Added `transactions` to response
202
+ - [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
203
+ - Added `transactions` to response
204
+ - [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
205
+ - Added `transactions` to response
206
+ - [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
207
+ - Added `transactions` to response
208
+ - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
209
+ - Added `morph_bytes` to request parameter
210
+ - Added `transactions` to response
211
+ - [`pw_join_pool`](./src/api/rpc/wallet/README.md#pw_join_poolagent-params)
212
+ - Added `transactions` to response
213
+ - [`pw_self_pool`](./src/api/rpc/wallet/README.md#pw_self_poolagent-params)
214
+ - Added `transactions` to response
215
+ - [`pw_absorb_rewards`](./src/api/rpc/wallet/README.md#pw_absorb_rewardsagent-params)
216
+ - Added `transactions` to response
217
+ - [`dl_update_root`](./src/api/rpc/wallet/README.md#dl_update_rootagent-params)
218
+ - Added `transactions` to response
219
+ - [`dl_update_multiple`](./src/api/rpc/wallet/README.md#dl_update_multipleagent-params)
220
+ - Added `transactions` to response
221
+ - Moved `TxEndpoint` to [src/chia/rpc/util.ts](./src/api/chia/rpc/util.ts) (Previously `src/chia/wallet/util/tx_config.ts`)
222
+ - Renamed `TxEndPoint` to `TXEndpointRequest`
223
+ - Renamed `TxEndpointForCompat` to `TXEndpointForCompat`
224
+ - Renamed `TxConfigLoader` to `TXConfigLoader`
225
+ - Changed the types of `passed` and `closed` in ProposalInfo` to `bool` (Previously they were `Optional<bool>`)
226
+ As a result, the RPC APIs below are affected
227
+ - `dao_get_proposals` of Wallet RPC API
228
+ - `dao_adjust_filter_level` of Wallet RPC API
229
+ - Upgraded dependencies and replaced `yarn.lock` with `pnpm-lock.yaml`
230
+ - Moved `FarmerRecord` to [src/chia/pool/record.ts](src/api/pool-reference/pool/record.ts) (
231
+ Previously `src/chia/pool/store.ts`)
232
+ ### Added
233
+ - [Daemon WebSocket API](./src/api/ws/daemon)
234
+ - [`get_network_info`](./src/api/ws/daemon/README.md#get_network_infodaemon)
235
+ - [Common RPC API](./src/api/rpc/common)
236
+ - [`get_network_info`](./src/api/rpc/common/README.md#get_network_infoagent)
237
+ - [DataLayer RPC API](./src/api/rpc/data_layer)
238
+ - [`submit_pending_root`](./src/api/rpc/data_layer/README.md#submit_pending_rootagent-params)
239
+ ### Fixed
240
+ - Renamed `ReceiveBlockResult` to `AddBlockResult` (type `ReceiveBlockResult` is still available to avoid breaking change)
241
+ - Fixed an invalid `TCreate_New_DAO_WalletRequest` README location.
242
+ - Fixed an issue where `pubkey` and `pubhash` in request of Wallet RPC API `did_recovery_spend` was not optional in the API doc.
243
+ - Fixed lint errors
244
+ ### Removed
245
+ - [FullNode RPC API](./src/api/rpc/data_layer)
246
+ - `get_network_info_of_full_node`
247
+ - [Wallet RPC API](./src/api/rpc/wallet)
248
+ - `get_network_info_of_wallet`
249
+ - Removed empty request parameter types like `{}`
250
+
3
251
  ## [14.0.0]
4
252
  ### Breaking change
5
253
  - When RPC API responds with `success: false`, its `Promise` now does `reject`. (Previously it does `resolve`)
6
254
  - At chia-blockchain@2.2.1, in `chia/consensus/cost_calculator.py`,
7
255
  `NPCResult.cost` was removed.
8
256
  As a result, the RPC APIs below might be incompatible between `2.1.4` and `2.2.1`.
9
- - `get_all_mempool_items` Of FullNode RPC API
10
- - `get_mempool_item_by_tx_id` Of FullNode RPC API
257
+ - `get_all_mempool_items` of FullNode RPC API
258
+ - `get_mempool_item_by_tx_id` of FullNode RPC API
11
259
  ### Changed
12
260
  - Loosened a type of `agent` to call RPC APIs. RPC APIs can be invoked with `agent` which just implements
13
261
  `sendMessage` method depicted as below.
@@ -1385,7 +1633,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
1385
1633
  Initial release.
1386
1634
 
1387
1635
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
1388
-
1636
+ [14.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.1.0...v14.2.0
1637
+ [14.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.0.0...v14.1.0
1389
1638
  [14.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.2.0...v14.0.0
1390
1639
  [13.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.1.0...v13.2.0
1391
1640
  [13.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.0.1...v13.1.0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2019 Admin ChiaMineJP <admin@chiamine.jp>
3
+ Copyright (c) 2024 Izumi Hoshino <admin@chiamine.jp>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![npm version](https://badge.fury.io/js/chia-agent.svg)](https://badge.fury.io/js/chia-agent) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
3
 
4
4
  chia rpc/websocket client library for NodeJS.
5
- Supports all RPC/Websocket API available at `chia 2.2.1`.
5
+ Supports all RPC/Websocket API available at `2.4.0` and `2.4.1` of [`chia-blockchain`](https://github.com/Chia-Network/chia-blockchain/).
6
6
  \(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
7
7
 
8
8
  you can develop your own nodejs script with `chia-agent` to:
@@ -22,10 +22,12 @@ yarn add chia-agent
22
22
 
23
23
  ## Compatibility
24
24
  This code is compatible with:
25
- - [`b98219687331fc6c8121d0c0243a49d2427ccd60`](https://github.com/Chia-Network/chia-blockchain/tree/b98219687331fc6c8121d0c0243a49d2427ccd60) of [chia-blockchain 2.2.1](https://github.com/Chia-Network/chia-blockchain)
26
- - [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/b98219687331fc6c8121d0c0243a49d2427ccd60...main)
27
- - [`fc641b915d95ca00f33c268f820cee196c61ca65`](https://github.com/Chia-Network/pool-reference/tree/fc641b915d95ca00f33c268f820cee196c61ca65) of [pool-reference](https://github.com/Chia-Network/pool-reference)
28
- - [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/fc641b915d95ca00f33c268f820cee196c61ca65...main)
25
+ - [`4572390f40fce50ba186f13ae30b171887e3a104`](https://github.com/Chia-Network/chia-blockchain/tree/4572390f40fce50ba186f13ae30b171887e3a104) of [chia-blockchain 2.4.1](https://github.com/Chia-Network/chia-blockchain)
26
+ - [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/4572390f40fce50ba186f13ae30b171887e3a104...main)
27
+ - [`284dfdffe0397413bfec2376da0c2f038b7ebe4d`](https://github.com/Chia-Network/pool-reference/tree/284dfdffe0397413bfec2376da0c2f038b7ebe4d) of [pool-reference](https://github.com/Chia-Network/pool-reference)
28
+ - [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/284dfdffe0397413bfec2376da0c2f038b7ebe4d...main)
29
+ - [`3f8a42b9d81e513dfc6c151d952a1c3f17030a8d`](https://github.com/Chia-Network/chia_rs/tree/3f8a42b9d81e513dfc6c151d952a1c3f17030a8d) of [chia_rs](https://github.com/Chia-Network/chia_rs)
30
+ - [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/3f8a42b9d81e513dfc6c151d952a1c3f17030a8d...main)
29
31
 
30
32
  ## API
31
33
  There are 2 kinds of APIs in chia.
package/agent/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export interface APIAgent {
2
- sendMessage<M extends unknown>(destination: string, command: string, data?: Record<string, unknown>): Promise<M>;
2
+ sendMessage<M>(destination: string, command: string, data?: Record<string, unknown>): Promise<M>;
3
3
  }
@@ -1,32 +1 @@
1
- import { bytes32 } from "../types/blockchain_format/sized_bytes";
2
- import { ClassgroupElement } from "../types/blockchain_format/classgroup";
3
- import { Coin } from "../types/blockchain_format/coin";
4
- import { SubEpochSummary } from "../types/blockchain_format/sub_epoch_summary";
5
- import { bool, Optional, uint128, uint32, uint64, uint8 } from "../types/_python_types_";
6
- export declare type BlockRecord = {
7
- header_hash: bytes32;
8
- prev_hash: bytes32;
9
- height: uint32;
10
- weight: uint128;
11
- total_iters: uint128;
12
- signage_point_index: uint8;
13
- challenge_vdf_output: ClassgroupElement;
14
- infused_challenge_vdf_output: Optional<ClassgroupElement>;
15
- reward_infusion_new_challenge: bytes32;
16
- challenge_block_info_hash: bytes32;
17
- sub_slot_iters: uint64;
18
- pool_puzzle_hash: bytes32;
19
- farmer_puzzle_hash: bytes32;
20
- required_iters: uint64;
21
- deficit: uint8;
22
- overflow: bool;
23
- prev_transaction_block_height: uint32;
24
- timestamp: Optional<uint64>;
25
- prev_transaction_block_hash: Optional<bytes32>;
26
- fees: Optional<uint64>;
27
- reward_claims_incorporated: Optional<Coin[]>;
28
- finished_challenge_slot_hashes: Optional<bytes32[]>;
29
- finished_infused_challenge_slot_hashes: Optional<bytes32[]>;
30
- finished_reward_slot_hashes: Optional<bytes32[]>;
31
- sub_epoch_summary_included: Optional<SubEpochSummary>;
32
- };
1
+ export type { BlockRecord } from "../../chia_rs/chia-protocol/block_record";
@@ -1 +1,2 @@
1
- export declare type ReceiveBlockResult = 1 | 2 | 3 | 4 | 5;
1
+ export type AddBlockResult = 1 | 2 | 3 | 4 | 5;
2
+ export type ReceiveBlockResult = AddBlockResult;
@@ -1,6 +1,6 @@
1
1
  import { SpendBundleConditions } from "../types/spend_bundle_condition";
2
2
  import { Optional, uint16 } from "../types/_python_types_";
3
- export declare type NPCResult = {
3
+ export type NPCResult = {
4
4
  error: Optional<uint16>;
5
5
  conds: Optional<SpendBundleConditions>;
6
6
  };
@@ -1,81 +1,81 @@
1
1
  import { bool, int, Optional, str, uint8 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type KeyValueMarshalled = {
3
+ export type KeyValueMarshalled = {
4
4
  key: str;
5
5
  value: str;
6
6
  };
7
- export declare type OfferStoreMarshalled = {
7
+ export type OfferStoreMarshalled = {
8
8
  store_id: str;
9
9
  inclusions: KeyValueMarshalled[];
10
10
  };
11
- export declare type StoreProofsMarshalled = {
11
+ export type StoreProofsMarshalled = {
12
12
  store_id: str;
13
13
  proofs: ProofMarshalled[];
14
14
  };
15
- export declare type ProofMarshalled = {
15
+ export type ProofMarshalled = {
16
16
  key: str;
17
17
  value: str;
18
18
  node_hash: str;
19
19
  layers: LayerMarshalled[];
20
20
  };
21
- export declare type LayerMarshalled = {
21
+ export type LayerMarshalled = {
22
22
  other_hash_side: "left" | "right";
23
23
  other_hash: str;
24
24
  combined_hash: str;
25
25
  };
26
- export declare type OfferMarshalled = {
26
+ export type OfferMarshalled = {
27
27
  trade_id: str;
28
28
  offer: str;
29
29
  taker: OfferStoreMarshalled[];
30
30
  maker: StoreProofsMarshalled[];
31
31
  };
32
- export declare type SyncStatus = {
32
+ export type SyncStatus = {
33
33
  root_hash: bytes32;
34
34
  generation: int;
35
35
  target_root_hash: bytes32;
36
36
  target_generation: int;
37
37
  };
38
- export declare type PluginStatusMarshalled = {
38
+ export type PluginStatusMarshalled = {
39
39
  plugin_status: {
40
40
  uploaders: Record<str, Record<str, any>>;
41
41
  downloaders: Record<str, Record<str, any>>;
42
42
  };
43
43
  };
44
- export declare type RootMarshalled = {
44
+ export type RootMarshalled = {
45
45
  tree_id: str;
46
46
  node_hash: Optional<str>;
47
47
  generation: int;
48
48
  status: int;
49
49
  };
50
- export declare type ProofLayer = {
50
+ export type ProofLayer = {
51
51
  other_hash_side: uint8;
52
52
  other_hash: bytes32;
53
53
  combined_hash: bytes32;
54
54
  };
55
- export declare type HashOnlyProof = {
55
+ export type HashOnlyProof = {
56
56
  key_clvm_hash: bytes32;
57
57
  value_clvm_hash: bytes32;
58
58
  node_hash: bytes32;
59
59
  layers: ProofLayer[];
60
60
  };
61
- export declare type KeyValueHashes = {
61
+ export type KeyValueHashes = {
62
62
  key_clvm_hash: bytes32;
63
63
  value_clvm_hash: bytes32;
64
64
  };
65
- export declare type ProofResultInclusions = {
65
+ export type ProofResultInclusions = {
66
66
  store_id: bytes32;
67
67
  inclusions: KeyValueHashes[];
68
68
  };
69
- export declare type StoreProofsHashes = {
69
+ export type StoreProofsHashes = {
70
70
  store_id: bytes32;
71
71
  proofs: HashOnlyProof[];
72
72
  };
73
- export declare type DLProof = {
73
+ export type DLProof = {
74
74
  store_proofs: StoreProofsHashes;
75
75
  coin_id: bytes32;
76
76
  inner_puzzle_hash: bytes32;
77
77
  };
78
- export declare type VerifyProofResponse = {
78
+ export type VerifyProofResponse = {
79
79
  verified_clvm_hashes: ProofResultInclusions;
80
80
  current_root: bool;
81
81
  success: bool;
@@ -1,7 +1,7 @@
1
1
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
2
- import { bool, str, uint32, uint64 } from "../types/_python_types_";
2
+ import { bool, Optional, str, uint32, uint64 } from "../types/_python_types_";
3
3
  import { LineageProof } from "../wallet/lineage_proof";
4
- export declare type SingletonRecord = {
4
+ export type SingletonRecord = {
5
5
  coin_id: bytes32;
6
6
  launcher_id: bytes32;
7
7
  root: bytes32;
@@ -12,10 +12,11 @@ export declare type SingletonRecord = {
12
12
  generation: uint32;
13
13
  timestamp: uint64;
14
14
  };
15
- export declare type Mirror = {
15
+ export type Mirror = {
16
16
  coin_id: str;
17
17
  launcher_id: str;
18
18
  amount: uint64;
19
19
  urls: str[];
20
20
  ours: bool;
21
+ confirmed_at_height: Optional<uint32>;
21
22
  };
@@ -1,7 +1,7 @@
1
1
  import { float, int, str, uint32, uint64, uint8 } from "../types/_python_types_";
2
2
  import { PoolWalletConfig } from "../pools/pool_config";
3
3
  import { ErrorResponse } from "../protocols/pool_protocol";
4
- export declare type PoolState = {
4
+ export type PoolState = {
5
5
  points_found_since_start: int;
6
6
  points_found_24h: Array<[uint32, uint64]>;
7
7
  points_acknowledged_since_start: int;
@@ -1,6 +1,6 @@
1
1
  import { VDFInfo, VDFProof } from "../types/blockchain_format/vdf";
2
2
  import { Optional } from "../types/_python_types_";
3
- export declare type SignagePoint = {
3
+ export type SignagePoint = {
4
4
  cc_vdf: Optional<VDFInfo>;
5
5
  cc_proof: Optional<VDFProof>;
6
6
  rc_vdf: Optional<VDFInfo>;
@@ -1,6 +1,6 @@
1
1
  import { bytes, G1Element, int, Optional, str } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type Plot = {
3
+ export type Plot = {
4
4
  filename: str;
5
5
  size: int;
6
6
  plot_id: bytes;
@@ -2,8 +2,8 @@ import { bytes32 } from "../types/blockchain_format/sized_bytes";
2
2
  import { bool, float, int, None, Optional, str, uint32 } from "../types/_python_types_";
3
3
  import { Plot } from "../protocols/harvester_protocol";
4
4
  import { HarvestingMode } from "../plotting/util";
5
- export declare type MayBeSummary<S, O> = S extends true ? int : O;
6
- export declare type Receiver<SUMMARY extends boolean = false> = {
5
+ export type MayBeSummary<S, O> = S extends true ? int : O;
6
+ export type Receiver<SUMMARY extends boolean = false> = {
7
7
  connection: {
8
8
  node_id: bytes32;
9
9
  host: str;
@@ -1,6 +1,6 @@
1
1
  import { bool, str } from "../types/_python_types_";
2
2
  export declare const display_name = "BladeBit Plotter";
3
- export declare type bladebit_install_info = {
3
+ export type bladebit_install_info = {
4
4
  display_name: typeof display_name;
5
5
  version?: str;
6
6
  installed: bool;
@@ -1,6 +1,6 @@
1
1
  import { bool, str } from "../types/_python_types_";
2
2
  export declare const display_name = "Chia Proof of Space";
3
- export declare type chiapos_install_info = {
3
+ export type chiapos_install_info = {
4
4
  display_name: typeof display_name;
5
5
  version: str;
6
6
  installed: bool;
@@ -1,6 +1,6 @@
1
1
  import { bool, str } from "../types/_python_types_";
2
2
  export declare const display_name = "madMAx Plotter";
3
- export declare type madmax_install_info = {
3
+ export type madmax_install_info = {
4
4
  display_name: typeof display_name;
5
5
  version?: str;
6
6
  installed: bool;
@@ -1,3 +1,3 @@
1
- export declare type CPU_HARVESTING = 1;
2
- export declare type GPU_HARVESTING = 2;
3
- export declare type HarvestingMode = CPU_HARVESTING | GPU_HARVESTING;
1
+ export type CPU_HARVESTING = 1;
2
+ export type GPU_HARVESTING = 2;
3
+ export type HarvestingMode = CPU_HARVESTING | GPU_HARVESTING;
@@ -1,6 +1,6 @@
1
1
  import { G1Element, str } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type PoolWalletConfig = {
3
+ export type PoolWalletConfig = {
4
4
  launcher_id: bytes32;
5
5
  pool_url: str;
6
6
  payout_instructions: str;
@@ -1,8 +1,7 @@
1
1
  import { G1Element, Optional, str, uint32, uint8 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
3
  import { Coin } from "../types/blockchain_format/coin";
4
- import { Program } from "../types/blockchain_format/program";
5
- export declare type PoolState = {
4
+ export type PoolState = {
6
5
  version: uint8;
7
6
  state: uint8;
8
7
  target_puzzle_hash: bytes32;
@@ -10,13 +9,12 @@ export declare type PoolState = {
10
9
  pool_url: Optional<str>;
11
10
  relative_lock_height: uint32;
12
11
  };
13
- export declare type PoolWalletInfo = {
12
+ export type PoolWalletInfo = {
14
13
  current: PoolState;
15
14
  target: Optional<PoolState>;
16
15
  launcher_coin: Coin;
17
16
  launcher_id: bytes32;
18
17
  p2_singleton_puzzle_hash: bytes32;
19
- current_inner: Program;
20
18
  tip_singleton_coin_id: bytes32;
21
19
  singleton_block_height: uint32;
22
20
  };