chia-agent 10.1.0 → 11.1.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.
package/CHANGELOG.md CHANGED
@@ -1,25 +1,143 @@
1
1
  # Changelog
2
2
 
3
+ ## [11.1.0]
4
+ ### Changed
5
+ - [Wallet RPC API](./src/api/rpc/wallet)
6
+ - [`get_wallet_balance`](./src/api/rpc/wallet/README.md#get_wallet_balanceagent-params)
7
+ - Part of response properties are replaced by `Balance` type.
8
+ (* No new properties were added and no properties were removed to the response. Just part of props were managed separately)
9
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
10
+ - Added `extra_delta`, `tail_reveal` and `tail_solution` to request parameter.
11
+ - In `chia/wallet/nft_wallet/nft_info.py`, `nft_coin_confirmation_height` was added to `NFTInfo`.
12
+ As a result of this change, the responses from following RPC API is affected.
13
+ - ['nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
14
+ - Updated `yaml` to `2.2.2`
15
+ ### Added
16
+ - [New DataLayer RPC API](./src/api/ws/wallet)
17
+ - [`check_plugins`](./src/api/rpc/data_layer/README.md#check_pluginsagent)
18
+ ### Fixed
19
+ - Added missing `get_sync_status` to `README.md` for RPC APIs
20
+ - Added missing property `launcher_id` to `dl_history` in DataLayer RPC API
21
+
22
+ ## [11.0.0]
23
+ ### Breaking change
24
+ JSONified `MempoolItem` replaced original `MempoolItem` in `chia/types/mempool_items.py`
25
+ for 2 RPC API responses listed below.
26
+ As a result of this change, `removals` was added and `height_added_to_mempool`/`assert_height` were removed
27
+ from those RPC API responses.
28
+ - [FullNode RPC API](./src/api/rpc/full_node)
29
+ - [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#get_all_mempool_itemsagent)
30
+ - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#get_mempool_item_by_tx_idagent-params)
31
+ ### Changed
32
+ - [FullNode RPC API](./src/api/rpc/full_node)
33
+ - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent)
34
+ - The type of `mempool_fees` was changed to `int` from `Mojos`(`uint64`)
35
+ - [`get_fee_estimate`](./src/api/rpc/full_node/README.md#get_fee_estimateagent-params)
36
+ - The type of `mempool_fees` was changed to `int` from `Mojos`(`uint64`)
37
+ - [Wallet RPC API](./src/api/rpc/wallet)
38
+ - [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
39
+ - Added `reuse_puzhash` to request parameter
40
+ - [`sign_message_by_address`](./src/api/rpc/wallet/README.md#sign_message_by_addressagent-params)
41
+ - Added `is_hex` to request parameter
42
+ - [`sign_message_by_id`](./src/api/rpc/wallet/README.md#sign_message_by_idagent-params)
43
+ - Added `is_hex` to request parameter
44
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
45
+ - Added `reuse_puzhash` to request parameter
46
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
47
+ - Added `reuse_puzhash` to request parameter
48
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
49
+ - Added `reuse_puzhash` to request parameter
50
+ - [`did_update_recovery_ids`](./src/api/rpc/wallet/README.md#did_update_recovery_idsagent-params)
51
+ - Added `reuse_puzhash` to request parameter
52
+ - [`did_get_info`](./src/api/rpc/wallet/README.md#did_get_infoagent-params)
53
+ - Added `solution` to response
54
+ - [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
55
+ - Added `reuse_puzhash` to request parameter
56
+ - [`did_transfer_did`](./src/api/rpc/wallet/README.md#did_transfer_didagent-params)
57
+ - Added `reuse_puzhash` to request parameter
58
+ - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
59
+ - Added `reuse_puzhash` to request parameter
60
+ - [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
61
+ - Added `reuse_puzhash` to request parameter
62
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
63
+ - Added `reuse_puzhash` to request parameter
64
+ - [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nft_transfer_bulkagent-params)
65
+ - Added `reuse_puzhash` to request parameter
66
+ - [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
67
+ - Added `reuse_puzhash` to request parameter
68
+ - [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
69
+ - Added `reuse_puzhash` to request parameter
70
+ - [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
71
+ - Added `reuse_puzhash` to request parameter
72
+ - [Wallet WebSocket API](./src/api/ws/wallet)
73
+ - [`on_state_changed_of_wallet`](./src/api/ws/wallet/README.md#on_state_changed_of_wallet)
74
+ - Added `wallet_removed` to state list
75
+ - Added `error` and `status` property to `tx_update` state changed event
76
+
77
+ In `chia/wallet/nft_wallet/nft_info.py`, `nft_id` was added to `NftInfo`.
78
+ As a result of this change, the responses from following RPC APIs are affected.
79
+ - [Wallet RPC API](./src/api/rpc/full_node)
80
+ - [`nft_get_nfts`](./src/api/rpc/wallet/README.md#nft_get_nftsagent-params)
81
+ - [`nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
82
+ ### Added
83
+ - [New FullNode(Simulator) RPC API](./src/api/rpc/full_node)
84
+ Big thanks to [Dishwasha](https://github.com/Dishwasha) for a PR for new Simulator API!
85
+ - [`get_all_blocks`](./src/api/rpc/full_node/README.md#get_all_blocksagent-params)
86
+ - [`farm_block`](./src/api/rpc/full_node/README.md#farm_blockagent-params)
87
+ - [`set_auto_farming`](./src/api/rpc/full_node/README.md#set_auto_farmingagent-params)
88
+ - [`get_auto_farming`](./src/api/rpc/full_node/README.md#get_auto_farmingagent-params)
89
+ - [`get_farming_ph`](./src/api/rpc/full_node/README.md#get_farming_phagent-params)
90
+ - [`get_all_coins`](./src/api/rpc/full_node/README.md#get_all_coinsagent-params)
91
+ - [`get_all_puzzle_hashes`](./src/api/rpc/full_node/README.md#get_all_puzzle_hashesagent-params)
92
+ - [`revert_blocks`](./src/api/rpc/full_node/README.md#revert_blocksagent-params)
93
+ - [`reorg_blocks`](./src/api/rpc/full_node/README.md#reorg_blocksagent-params)
94
+ - [New Farmer WebSocket API](./src/api/ws/farmer)
95
+ - [`on_add_connection`](./src/api/ws/farmer/README.md#on_add_connection)
96
+ - [`on_close_connection`](./src/api/ws/farmer/README.md#on_close_connection)
97
+ - [New Harvester WebSocket API](./src/api/ws/harvester)
98
+ - [`on_add_connection`](./src/api/ws/harvester/README.md#on_add_connection)
99
+ - [`on_close_connection`](./src/api/ws/harvester/README.md#on_close_connection)
100
+ - [New Wallet RPC API](./src/api/rpc/wallet)
101
+ - [`set_wallet_resync_on_startup`](./src/api/rpc/wallet/README.md#set_wallet_resync_on_startupagent-params)
102
+ - [`get_transaction_memo`](./src/api/rpc/wallet/README.md#get_transaction_memoagent-params)
103
+ - [`nft_count_nfts`](./src/api/rpc/wallet/README.md#nft_count_nftsagent-params)
104
+ - [New Wallet WebSocket API](./src/api/ws/wallet)
105
+ - [`on_add_connection`](./src/api/ws/wallet/README.md#on_add_connection)
106
+ - [`on_close_connection`](./src/api/ws/wallet/README.md#on_close_connection)
107
+ ### Fixed
108
+ - [Farmer WebSocket API](./src/api/ws/farmer)
109
+ - [`on_submitted_partial`](./src/api/ws/farmer/README.md#on_submitted_partial)
110
+ - Fixed an issue where `on_submitted_partial` was not working
111
+ - [Wallet RPC API](./src/api/rpc/wallet)
112
+ - [`verify_signature`](./src/api/rpc/wallet/README.md#verify_signatureagent-params)
113
+ - Fixed an issue where `verify_signature` was not exposed via `require("chia-agent/api/rpc")`
114
+ - [Wallet WebSocket API](./src/api/ws/wallet)
115
+ - [`on_sync_changed`](./src/api/ws/wallet/README.md#on_sync_changed)
116
+ - Fixed an issue where `on_sync_changed` was defined as `on_sync_changed_of_wallet`
117
+ - [`on_coin_added`](./src/api/ws/wallet/README.md#on_coin_added)
118
+ - Fixed a typo. (WsCoindAddedMessage -> WsCoinAddedMessage)
119
+ - Fixed an issue where `on_coin_added` was defined as `on_coin_added_of_wallet`
120
+
3
121
  ## [10.1.0]
4
122
  ### Indirect Change
5
123
  In `chia/types/mempool_items.py`, `assert_height` was added to `MempoolItem`.
6
124
  As a result of this change, the responses from following RPC APIs are affected.
7
125
  - [FullNode RPC API](./src/api/rpc/full_node)
8
- - [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#getallmempoolitemsagent)
9
- - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#getmempoolitembytxidagent-params)
126
+ - [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#get_all_mempool_itemsagent)
127
+ - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#get_mempool_item_by_tx_idagent-params)
10
128
  ### Added
11
129
  - [New Wallet RPC API](./src/api/rpc/wallet)
12
- - [`get_timestamp_for_height`](./src/api/rpc/wallet/README.md#gettimestampforheightagent)
13
- - [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nfttransferbulkagent-params)
130
+ - [`get_timestamp_for_height`](./src/api/rpc/wallet/README.md#get_timestamp_for_heightagent)
131
+ - [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nft_transfer_bulkagent-params)
14
132
  ### Changed
15
133
  - [Common RPC API](./src/api/rpc/common)
16
- - [`open_connection`](./src/api/rpc/common/README.md#openconnectionagent-params)
134
+ - [`open_connection`](./src/api/rpc/common/README.md#open_connectionagent-params)
17
135
  - Added `success` to response
18
136
  - Added `error` to response when `success` is `False`
19
137
  - [FullNode RPC API](./src/api/rpc/full_node)
20
- - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#getblockchainstateagent)
138
+ - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent)
21
139
  - Added `mempool_fees` to response
22
- - [`get_fee_estimate`](./src/api/rpc/full_node/README.md#getfeeestimateagent-params)
140
+ - [`get_fee_estimate`](./src/api/rpc/full_node/README.md#get_fee_estimateagent-params)
23
141
  - Added `spend_type` to request parameter
24
142
  - Added `spend_count` to request parameter
25
143
  - Added `mempool_fees` to response
@@ -29,37 +147,37 @@ As a result of this change, the responses from following RPC APIs are affected.
29
147
  - Added `fee_rate_last_block` to response
30
148
  - Added `last_tx_block_height` to response
31
149
  - [Wallet RPC API](./src/api/rpc/wallet)
32
- - [`get_notifications`](./src/api/rpc/wallet/README.md#getnotificationsagent-params)
150
+ - [`get_notifications`](./src/api/rpc/wallet/README.md#get_notificationsagent-params)
33
151
  - Added `height` to response
34
- - [`verify_signature`](./src/api/rpc/wallet/README.md#verifysignatureagent-params)
152
+ - [`verify_signature`](./src/api/rpc/wallet/README.md#verify_signatureagent-params)
35
153
  - Added `signing_mode` to request parameter
36
- - [`sign_message_by_address`](./src/api/rpc/wallet/README.md#signmessagebyaddressagent-params)
154
+ - [`sign_message_by_address`](./src/api/rpc/wallet/README.md#sign_message_by_addressagent-params)
37
155
  - Added `signing_mode` to response
38
- - [`sign_message_by_id`](./src/api/rpc/wallet/README.md#signmessagebyidagent-params)
156
+ - [`sign_message_by_id`](./src/api/rpc/wallet/README.md#sign_message_by_idagent-params)
39
157
  - Added `None` type to `latest_coin_id` in response
40
158
  - Added `signing_mode` to response
41
- - [`cat_spend`](./src/api/rpc/wallet/README.md#catspendagent-params)
159
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
42
160
  - Added `coins` to response
43
- - [`get_offer_summary`](./src/api/rpc/wallet/README.md#getoffersummaryagent-params)
161
+ - [`get_offer_summary`](./src/api/rpc/wallet/README.md#get_offer_summaryagent-params)
44
162
  - Added `id` to response
45
- - [`check_offer_validity`](./src/api/rpc/wallet/README.md#checkoffervalidityagent-params)
163
+ - [`check_offer_validity`](./src/api/rpc/wallet/README.md#check_offer_validityagent-params)
46
164
  - Added `id` to response
47
- - [`did_message_spend`](./src/api/rpc/wallet/README.md#didmessagespendagent-params)
165
+ - [`did_message_spend`](./src/api/rpc/wallet/README.md#did_message_spendagent-params)
48
166
  - Removed error response
49
- - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nftsetdidbulkagent-params)
167
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
50
168
  - Added `tx_num to response
51
- - [`nft_get_wallet_did`](./src/api/rpc/wallet/README.md#nftgetwalletdidagent-params)
169
+ - [`nft_get_wallet_did`](./src/api/rpc/wallet/README.md#nft_get_wallet_didagent-params)
52
170
  - Removed error response
53
- - [`nft_set_nft_status`](./src/api/rpc/wallet/README.md#nftsetnftstatusagent-params)
171
+ - [`nft_set_nft_status`](./src/api/rpc/wallet/README.md#nft_set_nft_statusagent-params)
54
172
  - Removed error response
55
173
  ### Fixed
56
174
  - [FullNode RPC API](./src/api/rpc/full_node)
57
- - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#getblockchainstateagent)
175
+ - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent)
58
176
  - Changed the type of `mempool_size` in response from `int` to `CLVMCost`(actually `uint64`)
59
177
  - [Wallet RPC API](./src/api/rpc/wallet)
60
- - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nftsetdidbulkagent-params)
178
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
61
179
  - Fixed missing export and entry in [README](./src/api/README.md)
62
- - [`verify_signature`](./src/api/rpc/wallet/README.md#verifysignatureagent-params)
180
+ - [`verify_signature`](./src/api/rpc/wallet/README.md#verify_signatureagent-params)
63
181
  - Added missing `message` to request parameter
64
182
 
65
183
  ## [10.0.0]
@@ -67,8 +185,8 @@ As a result of this change, the responses from following RPC APIs are affected.
67
185
  In `chia/types/mempool_items.py`, `removals` of `MempoolItem` is now flagged as `@property`.
68
186
  As a result of this, `removals` of `MempoolItem` is removed from 2 RPC API responses listed below.
69
187
  - [FullNode RPC API](./src/api/rpc/full_node)
70
- - [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#getallmempoolitemsagent)
71
- - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#getmempoolitembytxidagent-params)
188
+ - [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#get_all_mempool_itemsagent)
189
+ - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#get_mempool_item_by_tx_idagent-params)
72
190
  ### Minor breaking change
73
191
  - Response params of`keyring_status` daemon WebSocket API below are deprecated
74
192
  - `needs_migration`
@@ -80,51 +198,51 @@ As a result of this, `removals` of `MempoolItem` is removed from 2 RPC API respo
80
198
  - Removed `notify_keyring_migration_completed`
81
199
  ### Added
82
200
  - [New DataLayer RPC API](./src/api/rpc/data_layer)
83
- - [`get_sync_status`](./src/api/rpc/data_layer/README.md#getsyncstatusagent-params)
201
+ - [`get_sync_status`](./src/api/rpc/data_layer/README.md#get_sync_statusagent-params)
84
202
  - [New Wallet RPC API](./src/api/rpc/wallet)
85
- - [`get_spendable_coins`](./src/api/rpc/wallet/README.md#getspendablecoinsagent-params)
86
- - [`get_coin_records_by_names`](./src/api/rpc/wallet/README.md#getcoinrecordsbynamesagent-params)
87
- - [`verify_signature`](./src/api/rpc/wallet/README.md#verifysignatureagent-params)
88
- - [`did_message_spend`](./src/api/rpc/wallet/README.md#didmessagespendagent-params)
89
- - [`did_get_info`](./src/api/rpc/wallet/README.md#didgetinfoagent-params)
90
- - [`did_find_lost_did`](./src/api/rpc/wallet/README.md#didfindlostdidagent-params)
91
- - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nftsetdidbulkagent-params)
203
+ - [`get_spendable_coins`](./src/api/rpc/wallet/README.md#get_spendable_coinsagent-params)
204
+ - [`get_coin_records_by_names`](./src/api/rpc/wallet/README.md#get_coin_records_by_namesagent-params)
205
+ - [`verify_signature`](./src/api/rpc/wallet/README.md#verify_signatureagent-params)
206
+ - [`did_message_spend`](./src/api/rpc/wallet/README.md#did_message_spendagent-params)
207
+ - [`did_get_info`](./src/api/rpc/wallet/README.md#did_get_infoagent-params)
208
+ - [`did_find_lost_did`](./src/api/rpc/wallet/README.md#did_find_lost_didagent-params)
209
+ - [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
92
210
  ### Changed
93
211
  - [Daemon WebSocket API](./src/api/ws/daemon)
94
- - [`keyring_status`](./src/api/ws/daemon/README.md#keyringstatusdaemon)
212
+ - [`keyring_status`](./src/api/ws/daemon/README.md#keyring_statusdaemon)
95
213
  - Removed `needs_migration` from response
96
214
  - Removed `can_remove_legacy_keys` from response
97
215
  - [FullNode RPC API](./src/api/rpc/full_node)
98
- - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#getmempoolitembytxidagent-params)
216
+ - [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#get_mempool_item_by_tx_idagent-params)
99
217
  - Added `include_pending` to request parameter
100
218
  - [Wallet RPC API](./src/api/rpc/wallet)
101
- - [`send_transaction`](./src/api/rpc/wallet/README.md#sendtransactionagent-params)
219
+ - [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
102
220
  - Added `max_coin_amount` to request parameter
103
221
  - Added `exclude_coin_amounts` to request parameter
104
222
  - Added `exclude_coin_ids` to request parameter
105
- - [`send_transaction_multi`](./src/api/rpc/wallet/README.md#sendtransactionmultiagent-params)
223
+ - [`send_transaction_multi`](./src/api/rpc/wallet/README.md#send_transaction_multiagent-params)
106
224
  - Added `max_coin_amount` to request parameter
107
225
  - Added `exclude_coin_amounts` to request parameter
108
226
  - Added parameters for cat spends.
109
- - [`select_coins`](./src/api/rpc/wallet/README.md#selectcoinsagent-params)
227
+ - [`select_coins`](./src/api/rpc/wallet/README.md#select_coinsagent-params)
110
228
  - Added `max_coin_amount` to request parameter
111
229
  - Added `exclude_coin_amounts` to request parameter
112
- - [`cat_spend`](./src/api/rpc/wallet/README.md#catspendagent-params)
230
+ - [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
113
231
  - Added `additions` to request parameter
114
232
  - Added `max_coin_amount` to request parameter
115
233
  - Added `exclude_coin_amounts` to request parameter
116
234
  - Added `exclude_coin_ids` to request parameter
117
- - [`sign_message_by_id`](./src/api/rpc/wallet/README.md#signmessagebyidagent-params)
235
+ - [`sign_message_by_id`](./src/api/rpc/wallet/README.md#sign_message_by_idagent-params)
118
236
  - Added `latest_coin_id` to request parameter
119
- - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#createofferforidsagent-params)
237
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idssagent-params)
120
238
  - Added `max_coin_amount` to request parameter
121
- - [`take_offer`](./src/api/rpc/wallet/README.md#takeofferagent-params)
239
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
122
240
  - Added `max_coin_amount` to request parameter
123
- - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nftmintnftagent-params)
241
+ - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
124
242
  - Added `nft_id` to return parameter
125
- - [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nftmintbulkagent-params)
243
+ - [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
126
244
  - Added `nft_id_list` to return parameter
127
- - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#createsignedtransactionagent-params)
245
+ - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
128
246
  - Added `max_coin_amount` to return parameter
129
247
  - Added `exclude_coin_amounts` to return parameter
130
248
  - [Wallet WebSocket API](./src/api/ws/wallet)
@@ -163,15 +281,15 @@ res = await daemon.sendMessage("chia_farmer", "get_harvesters_summary");
163
281
  while it is the daemon which chooses the services it connects to if you use Daemon WebSocket channel.
164
282
  ### Fixed
165
283
  - [FullNode RPC API](./src/api/rpc/full_node)
166
- - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#getblockchainstateagent)
284
+ - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent)
167
285
  - Made `sync_tip_height` as `uint32`(previously `Optional<uint32>`) because `None` value would never be set
168
286
  - [Wallet RPC API](./src/api/rpc/wallet)
169
- - [`send_transaction_multi`](./src/api/rpc/wallet/README.md#sendtransactionmultiagent-params)
287
+ - [`send_transaction_multi`](./src/api/rpc/wallet/README.md#send_transaction_multiagent-params)
170
288
  - Added missing `min_coin_amount` to request parameter
171
289
  - Added missing `exclude_coins` to request parameter
172
- - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#createofferforidsagent-params)
290
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
173
291
  - Added missing `solver` to request parameter
174
- - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#createsignedtransactionagent-params)
292
+ - [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
175
293
  - Added missing `wallet_id` to return parameter in README
176
294
  - Added missing `exclude_coins` to return parameter in README
177
295
 
@@ -882,6 +1000,8 @@ Initial release.
882
1000
 
883
1001
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
884
1002
 
1003
+ [11.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v11.0.0...v11.1.0
1004
+ [11.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v10.1.0...v11.0.0
885
1005
  [10.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v10.0.0...v10.1.0
886
1006
  [10.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.2.0...v10.0.0
887
1007
  [9.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.1.0...v9.2.0
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 1.7.0`.
5
+ Supports all RPC/Websocket API available at `chia 1.8.0`.
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,10 @@ yarn add chia-agent
22
22
 
23
23
  ## Compatibility
24
24
  This code is compatible with:
25
- - [`a8bcb8516e695e69e271b78241c0b4b9f41093c4`](https://github.com/Chia-Network/chia-blockchain/tree/a8bcb8516e695e69e271b78241c0b4b9f41093c4) of [chia-blockchain 1.7.0](https://github.com/Chia-Network/chia-blockchain)
26
- - [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/a8bcb8516e695e69e271b78241c0b4b9f41093c4...main)
27
- - [`f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0`](https://github.com/Chia-Network/pool-reference/tree/f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0) 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/f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0...main)
25
+ - [`d6f62d121b4e04c055ce4fa9e76e61ebdd6c5a50`](https://github.com/Chia-Network/chia-blockchain/tree/d6f62d121b4e04c055ce4fa9e76e61ebdd6c5a50) of [chia-blockchain 1.8.0](https://github.com/Chia-Network/chia-blockchain)
26
+ - [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/d6f62d121b4e04c055ce4fa9e76e61ebdd6c5a50...main)
27
+ - [`6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5`](https://github.com/Chia-Network/pool-reference/tree/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5) 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/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5...main)
29
29
 
30
30
  ## API
31
31
  There are 2 kinds of APIs in chia.
@@ -35,3 +35,9 @@ export declare type SyncStatus = {
35
35
  target_root_hash: bytes32;
36
36
  target_generation: int;
37
37
  };
38
+ export declare type PluginStatusMarshalled = {
39
+ plugin_status: {
40
+ uploaders: Record<str, Record<str, any>>;
41
+ downloaders: Record<str, Record<str, any>>;
42
+ };
43
+ };
@@ -1,3 +1 @@
1
- import { str } from "../_python_types_";
2
- export declare type SerializedProgram = str;
3
1
  export declare type Program = unknown;
@@ -0,0 +1,2 @@
1
+ import { str } from "../_python_types_";
2
+ export declare type SerializedProgram = str;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { Coin } from "./blockchain_format/coin";
2
- import { SerializedProgram } from "./blockchain_format/program";
2
+ import { SerializedProgram } from "./blockchain_format/serialized_program";
3
3
  export declare type CoinSpend = {
4
4
  coin: Coin;
5
5
  puzzle_reveal: SerializedProgram;
@@ -2,8 +2,8 @@ import { EndOfSubSlotBundle } from "./end_of_slot_bundle";
2
2
  import { RewardChainBlock } from "./blockchain_format/reward_chain_block";
3
3
  import { VDFProof } from "./blockchain_format/vdf";
4
4
  import { Foliage, FoliageTransactionBlock, TransactionsInfo } from "./blockchain_format/foliage";
5
- import { SerializedProgram } from "./blockchain_format/program";
6
5
  import { Optional, uint32 } from "./_python_types_";
6
+ import { SerializedProgram } from "./blockchain_format/serialized_program";
7
7
  export declare type FullBlock = {
8
8
  finished_sub_slots: EndOfSubSlotBundle[];
9
9
  reward_chain_block: RewardChainBlock;
@@ -7,9 +7,18 @@ export declare type MempoolItem = {
7
7
  spend_bundle: SpendBundle;
8
8
  fee: uint64;
9
9
  npc_result: NPCResult;
10
- cost: uint64;
11
10
  spend_bundle_name: bytes32;
12
- additions: Coin[];
13
11
  height_added_to_mempool: uint32;
14
12
  assert_height: Optional<uint32>;
13
+ assert_before_height: Optional<uint32>;
14
+ assert_before_seconds: Optional<uint64>;
15
+ };
16
+ export declare type MempoolItemInJsonDict = {
17
+ spend_bundle: SpendBundle;
18
+ fee: uint64;
19
+ npc_result: NPCResult;
20
+ cost: uint64;
21
+ spend_bundle_name: bytes32;
22
+ additions: Coin[];
23
+ removals: Coin[];
15
24
  };
@@ -1,8 +1,10 @@
1
1
  import { bool, bytes, Optional, str, uint16, uint32, uint64 } from "../../types/_python_types_";
2
2
  import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
3
  export declare type NFTInfo = {
4
+ nft_id: str;
4
5
  launcher_id: bytes32;
5
6
  nft_coin_id: bytes32;
7
+ nft_coin_confirmation_height: uint32;
6
8
  owner_did: Optional<bytes32>;
7
9
  royalty_percentage: Optional<uint16>;
8
10
  royalty_puzzle_hash: Optional<bytes32>;
@@ -0,0 +1,10 @@
1
+ import { uint128, uint32, uint64 } from "../types/_python_types_";
2
+ export declare type Balance = {
3
+ confirmed_wallet_balance: uint128;
4
+ unconfirmed_wallet_balance: uint128;
5
+ spendable_balance: uint128;
6
+ pending_change: uint64;
7
+ max_send_amount: uint128;
8
+ unspent_coin_count: uint32;
9
+ pending_coin_removal_count: uint32;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@ import { TRPCAgent } from "../../../rpc/index";
2
2
  import { bool, None, Optional, str, uint64 } from "../../chia/types/_python_types_";
3
3
  import { TransactionRecord } from "../../chia/wallet/transaction_record";
4
4
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
5
- import { OfferMarshalled, OfferStoreMarshalled, SyncStatus } from "../../chia/data_layer/data_layer_util";
5
+ import { OfferMarshalled, OfferStoreMarshalled, PluginStatusMarshalled, SyncStatus } from "../../chia/data_layer/data_layer_util";
6
6
  import { TCancelOfferResponseDL, TTakeOfferResponseDL } from "../index";
7
7
  import { GetMessageType, ResType } from "../../types";
8
8
  import { TDaemon } from "../../../daemon/index";
@@ -328,5 +328,10 @@ export declare type TGetSyncStatusResponse = {
328
328
  };
329
329
  export declare type WsGetSyncStatusMessage = GetMessageType<chia_data_layer_service, get_sync_status_command, TGetSyncStatusResponse>;
330
330
  export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSyncStatusRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetSyncStatusResponse, WsGetSyncStatusMessage>>;
331
- export declare type RpcDataLayerMessage = TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponse | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponseDL | TVerifyOfferResponse | TCancelOfferResponseDL | TGetSyncStatusResponse;
332
- export declare type RpcDataLayerMessageOnWs = WsCreateDataStoreMessage | WsGetOwnedStoresMessage | WsBatchUpdateMessage | WsGetValueMessage | WsGetKeysMessage | WsGetKeysValuesMessage | WsGetAncestorsMessage | WsGetRootMessage | WsGetLocalRootMessage | WsGetRootsMessage | WsDeleteKeyMessage | WsInsertMessage | WsSubscribeMessage | WsUnsubscribeMessage | WsAddMirrorMessage | WsDeleteMirrorMessage | WsGetMirrorsMessage | WsRemoveSubscriptionsMessage | WsSubscriptionsMessage | WsGetKvDiffMessage | WsGetRootHistoryMessage | WsAddMissingFilesMessage | WsMakeOfferMessage | WsTakeOfferMessageDL | WsVerifyOfferMessage | WsCancelOfferMessageDL | WsGetSyncStatusMessage;
331
+ export declare const check_plugins_command = "check_plugins";
332
+ export declare type check_plugins_command = typeof check_plugins_command;
333
+ export declare type TCheckPluginsResponse = PluginStatusMarshalled;
334
+ export declare type WsCheckPluginsMessage = GetMessageType<chia_data_layer_service, check_plugins_command, TCheckPluginsResponse>;
335
+ export declare function check_plugins<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, PluginStatusMarshalled, WsCheckPluginsMessage>>;
336
+ export declare type RpcDataLayerMessage = TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponse | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponseDL | TVerifyOfferResponse | TCancelOfferResponseDL | TGetSyncStatusResponse | TCheckPluginsResponse;
337
+ export declare type RpcDataLayerMessageOnWs = WsCreateDataStoreMessage | WsGetOwnedStoresMessage | WsBatchUpdateMessage | WsGetValueMessage | WsGetKeysMessage | WsGetKeysValuesMessage | WsGetAncestorsMessage | WsGetRootMessage | WsGetLocalRootMessage | WsGetRootsMessage | WsDeleteKeyMessage | WsInsertMessage | WsSubscribeMessage | WsUnsubscribeMessage | WsAddMirrorMessage | WsDeleteMirrorMessage | WsGetMirrorsMessage | WsRemoveSubscriptionsMessage | WsSubscriptionsMessage | WsGetKvDiffMessage | WsGetRootHistoryMessage | WsAddMissingFilesMessage | WsMakeOfferMessage | WsTakeOfferMessageDL | WsVerifyOfferMessage | WsCancelOfferMessageDL | WsGetSyncStatusMessage | WsCheckPluginsMessage;
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.verify_offer_command = exports.take_offer = exports.take_offer_command = exports.make_offer = exports.make_offer_command = exports.add_missing_files = exports.add_missing_files_command = exports.get_root_history = exports.get_root_history_command = exports.get_kv_diff = exports.get_kv_diff_command = exports.subscriptions = exports.subscriptions_command = exports.remove_subscriptions = exports.remove_subscriptions_command = exports.get_mirrors = exports.get_mirrors_command = exports.delete_mirror = exports.delete_mirror_command = exports.add_mirror = exports.add_mirror_command = exports.unsubscribe = exports.unsubscribe_command = exports.subscribe = exports.subscribe_command = exports.insert = exports.insert_command = exports.delete_key = exports.delete_key_command = exports.get_roots = exports.get_roots_command = exports.get_local_root = exports.get_local_root_command = exports.get_root = exports.get_root_command = exports.get_ancestors = exports.get_ancestors_command = exports.get_keys_values = exports.get_keys_values_command = exports.get_keys = exports.get_keys_command = exports.get_value = exports.get_value_command = exports.batch_update = exports.batch_update_command = exports.get_owned_stores = exports.get_owned_stores_command = exports.create_data_store = exports.create_data_store_command = exports.chia_data_layer_service = void 0;
13
- exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = void 0;
13
+ exports.check_plugins = exports.check_plugins_command = exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = void 0;
14
14
  exports.chia_data_layer_service = "chia_data_layer";
15
15
  exports.create_data_store_command = "create_data_store";
16
16
  function create_data_store(agent, params) {
@@ -201,3 +201,10 @@ function get_sync_status(agent, params) {
201
201
  });
202
202
  }
203
203
  exports.get_sync_status = get_sync_status;
204
+ exports.check_plugins_command = "check_plugins";
205
+ function check_plugins(agent) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ return agent.sendMessage(exports.chia_data_layer_service, exports.check_plugins_command);
208
+ });
209
+ }
210
+ exports.check_plugins = check_plugins;