chia-agent 4.0.0 → 7.0.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 (37) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/README.md +9 -9
  3. package/api/chia/consensus/cost_calculator.d.ts +2 -2
  4. package/api/chia/farmer/farmer.d.ts +1 -0
  5. package/api/chia/harvester/harvester.d.ts +2 -3
  6. package/api/chia/plot-sync/receiver.d.ts +22 -0
  7. package/api/chia/{types/condition_with_args.js → plot-sync/receiver.js} +0 -0
  8. package/api/chia/protocols/harvester_protocol.d.ts +0 -5
  9. package/api/chia/types/spend_bundle_condition.d.ts +18 -0
  10. package/api/chia/types/{name_puzzle_condition.js → spend_bundle_condition.js} +0 -0
  11. package/api/chia/wallet/nft_wallet/nft_info.d.ts +23 -0
  12. package/api/chia/wallet/nft_wallet/nft_info.js +2 -0
  13. package/api/chia/wallet/puzzle_drivers.d.ts +6 -0
  14. package/api/chia/wallet/puzzle_drivers.js +2 -0
  15. package/api/chia/wallet/trade_record.d.ts +3 -0
  16. package/api/chia/wallet/util/wallet_types.d.ts +2 -1
  17. package/api/chia/wallet/util/wallet_types.js +2 -1
  18. package/api/rpc/farmer/index.d.ts +83 -10
  19. package/api/rpc/farmer/index.js +36 -1
  20. package/api/rpc/full_node/index.d.ts +21 -8
  21. package/api/rpc/full_node/index.js +14 -1
  22. package/api/rpc/index.d.ts +9 -9
  23. package/api/rpc/index.js +31 -3
  24. package/api/rpc/wallet/index.d.ts +308 -30
  25. package/api/rpc/wallet/index.js +137 -9
  26. package/api/ws/farmer/index.d.ts +32 -9
  27. package/api/ws/farmer/index.js +44 -5
  28. package/api/ws/harvester/index.d.ts +13 -2
  29. package/api/ws/harvester/index.js +14 -1
  30. package/api/ws/index.d.ts +6 -6
  31. package/api/ws/index.js +7 -3
  32. package/index.d.ts +2 -0
  33. package/package.json +1 -1
  34. package/api/chia/types/condition_opcodes.d.ts +0 -20
  35. package/api/chia/types/condition_opcodes.js +0 -31
  36. package/api/chia/types/condition_with_args.d.ts +0 -6
  37. package/api/chia/types/name_puzzle_condition.d.ts +0 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,159 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.0.0]
4
+ ### Breaking Change
5
+ - [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
6
+ - Renamed `filename` to `backup_data`.
7
+ - [`did_get_recovery_list`](./src/api/rpc/wallet/README.md#did_get_recovery_listagent-params)
8
+ - Renamed `recover_list` to `recovery_list`.
9
+ - [`did_recovery_spend`](./src/api/rpc/wallet/README.md#did_recovery_spendagent-params)
10
+ - Renamed `attest_filenames` to `attest_data`.
11
+ - Changed the type of `success` response property to `bool` from `SpendBundle`.
12
+ - Added `spend_bundle` to response.
13
+ - [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
14
+ - Removed `filename` from request.
15
+ - Added `attest_data` to response.
16
+ - [`did_create_backup_file`](./src/api/rpc/wallet/README.md#did_create_backup_fileagent-params)
17
+ - Removed `filename` from request.
18
+ - Added `backup_data` to response.
19
+ ### Added
20
+ - [New Farmer WebSocket API](./src/api/ws/farmer)
21
+ - [`on_proof`](./src/api/ws/farmer/README.md#on_proof)
22
+ - [`on_submitted_partial`](./src/api/ws/farmer/README.md#on_submitted_partial)
23
+ - [New Harvester WebSocket API](./src/api/ws/harvester)
24
+ - [`on_farming_info`](./src/api/ws/harvester/README.md#on_farming_info)
25
+ - [New Wallet RPC API](./src/api/rpc/wallet)
26
+ - [`did_set_wallet_name`](./src/api/rpc/wallet/README.md#did_set_wallet_nameagent-params)
27
+ - [`did_get_wallet_name`](./src/api/rpc/wallet/README.md#did_get_wallet_nameagent-params)
28
+ - [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
29
+ - [`did_get_metadata`](./src/api/rpc/wallet/README.md#did_get_metadataagent-params)
30
+ - [`did_get_current_coin_info`](./src/api/rpc/wallet/README.md#did_get_current_coin_infoagent-params)
31
+ - [`did_transfer_did`](./src/api/rpc/wallet/README.md#did_transfer_didagent-params)
32
+ - [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
33
+ - [`nft_get_nfts`](./src/api/rpc/wallet/README.md#nft_get_nftsagent-params)
34
+ - [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
35
+ - [`nft_get_by_did`](./src/api/rpc/wallet/README.md#nft_get_by_didagent-params)
36
+ - [`nft_get_wallet_did`](./src/api/rpc/wallet/README.md#nft_get_wallet_didagent-params)
37
+ - [`nft_get_wallets_with_dids`](./src/api/rpc/wallet/README.md#nft_get_wallets_with_didsagent)
38
+ - [`nft_set_nft_status`](./src/api/rpc/wallet/README.md#nft_set_nft_statusagent-params)
39
+ - [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
40
+ - [`nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
41
+ - [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
42
+ ### Changed
43
+ - [`get_reward_targets`](./src/api/rpc/farmer/README.md#get_reward_targetsagent-params)
44
+ - Added `max_ph_to_search` to request parameter
45
+ - [`check_delete_key`](./src/api/rpc/wallet/README.md#check_delete_keyagent-params)
46
+ - Added `max_ph_to_search` to request parameter
47
+ - [`get_wallets`](./src/api/rpc/wallet/README.md#get_walletsagent-params)
48
+ - Added `include_data` to request parameter
49
+ - [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
50
+ - Added `metadata` and `wallet_name` to request parameter for DID wallet
51
+ - Changed parameter name from `filename` and `backup_data` for request parameter for DID wallet recovery
52
+ - Added NFT Wallet type
53
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
54
+ - Added `driver_dict` to request parameter
55
+ - [`get_offer_summary`](./src/api/rpc/wallet/README.md#get_offer_summaryagent-params)
56
+ - Added `infos` to response parameter
57
+ - [`did_update_recovery_ids`](./src/api/rpc/wallet/README.md#did_update_recovery_idsagent-params)
58
+ - Changed the type of `wallet_id` to `uint32` from `int`.
59
+ - [`did_get_did`](./src/api/rpc/wallet/README.md#did_get_didagent-params)
60
+ - Changed the type of `wallet_id` to `uint32` from `int`.
61
+ - [`did_get_recovery_list`](./src/api/rpc/wallet/README.md#did_get_recovery_listagent-params)
62
+ - Changed the type of `wallet_id` to `uint32` from `int`.
63
+ - Renamed `recover_list` to `recovery_list`.
64
+ - [`did_recovery_spend`](./src/api/rpc/wallet/README.md#did_recovery_spendagent-params)
65
+ - Changed the type of `wallet_id` to `uint32` from `int`.
66
+ - Renamed `attest_filenames` to `attest_data`.
67
+ - Changed response dict format
68
+ - [`did_get_pubkey`](./src/api/rpc/wallet/README.md#did_get_pubkeyagent-params)
69
+ - Changed the type of `wallet_id` to `uint32` from `int`.
70
+ - [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
71
+ - Changed the type of `wallet_id` to `uint32` from `int`.
72
+ - Removed `filename` from request.
73
+ - Added `attest_data` to response.
74
+ - [`did_get_information_needed_for_recovery`](./src/api/rpc/wallet/README.md#did_get_information_needed_for_recoveryagent-params)
75
+ - Changed the type of `wallet_id` to `uint32` from `int`.
76
+ - [`did_create_backup_file`](./src/api/rpc/wallet/README.md#did_create_backup_fileagent-params)
77
+ - Changed the type of `wallet_id` to `uint32` from `int`.
78
+ - Removed `filename` from request.
79
+ - Added `backup_data` to response.
80
+ - `TradeRecordConvenience` type at `chia/wallet/trade_record.py` was changed.
81
+ (Added `infos` property to `summary` dict)
82
+ As a result, the following APIs are affected:
83
+ - `create_offer_for_ids` of Wallet RPC API
84
+ - `take_offer` of Wallet RPC API
85
+ - `get_offer` of Wallet RPC API
86
+ - `get_all_offers` of Wallet RPC API
87
+ - Renamed `DISTRIBUTED_ID` to `DECENTRALIZED_ID` of `WalletType` in `src/api/chia/wallet/util/wallet_type.ts`.
88
+ - Added `NFT` to `WalletType` in `src/api/chia/wallet/util/wallet_type.ts`.
89
+ ### Fixed
90
+ - Fixed an issue where README description for `did_get_pubkey` was wrong.
91
+ - Fixed an issue where the type of `pubkey` response property for `did_get_pubkey` was wrong.
92
+
93
+ ## [6.0.0]
94
+ ### Minor Breaking Change
95
+ - At chia-blockchain@1.3.5, a farmer websocket API `new_plots` was replaced by
96
+ `harvester_update` and `harvester_removed`.
97
+ This change is not critical because in application's point of view it may just miss new plot info but
98
+ farming will continue without problem.
99
+ ### Removed
100
+ - [Farmer WebSocket API](./src/api/ws/farmer)
101
+ - `on_new_plots`
102
+ ### Added
103
+ - [New Farmer WebSocket API](./src/api/ws/farmer)
104
+ - [`harvester_updated`](./src/api/ws/farmer/README.md#on_harvester_update)
105
+ - [`harvester_removed`](./src/api/ws/farmer/README.md#on_harvester_removed)
106
+ - [New Farmer RPC API](./src/api/rpc/farmer)
107
+ - [`get_harvesters_summary`](./src/api/rpc/farmer/README.md#get_harvesters_summaryagent)
108
+ - [`get_harvester_plots_valid`](./src/api/rpc/farmer/README.md#get_harvester_plots_validagent-params)
109
+ - [`get_harvester_plots_invalid`](./src/api/rpc/farmer/README.md#get_harvester_plots_invalidagent-params)
110
+ - [`get_harvester_plots_keys_missing`](./src/api/rpc/farmer/README.md#get_harvester_plots_keys_missingagent-params)
111
+ - [`get_harvester_plots_duplicates`](./src/api/rpc/farmer/README.md#get_harvester_plots_duplicatesagent-params)
112
+ ### Changed
113
+ - `Plot` type at `chia/harvester/harvester.py` was changed.
114
+ (Removed deprecated `plot-seed` and change the type of `time_modified` to `int` from `float`)
115
+ As a result, the following APIs are affected:
116
+ - `get_plots` of Harvester RPC API
117
+ - `on_get_plots` of Harvester WebSocket API
118
+ - [`get_pool_state`](./src/api/rpc/farmer/README.md#get_pool_stateagent)
119
+ - `plot_count` property is added
120
+ ### Fixed
121
+ - Fixed an issue where README description of `get_harvesters`(Farmer RPC API) did not reflect actual API format
122
+ - Added missing `get_pool_login_link` of Farmer RPC API to `./src/api/rpc/index.ts`
123
+
124
+ ## [5.0.0]
125
+ ### Breaking Change
126
+ - At chia-blockchain@1.3.4, in `chia/consensus/cost_calculator.py`,
127
+ `NPCResult.npc_list` was removed and `NPCResult.conds` was added.
128
+ As a result, the RPC APIs below might be incompatible between `1.3.3` and `1.3.4`.
129
+ - `get_all_mempool_items` Of FullNode RPC API
130
+ - `get_mempool_item_by_tx_id` Of FullNode RPC API
131
+ ### Added
132
+ - [New FullNode RPC API](./src/api/rpc/full_node)
133
+ - [`get_coin_records_by_hint`](./src/api/rpc/full_node/README.md#get_coin_records_by_hintagent-params)
134
+ - [New Wallet RPC API](./src/api/rpc/wallet)
135
+ - [`select_coins`](./src/api/rpc/wallet/README.md#select_coinsagent-params)
136
+ - [`get_stray_cats`](./src/api/rpc/wallet/README.md#get_stray_catsagent)
137
+ ### Changed
138
+ - [FullNode RPC API](./src/api/rpc/full_node)
139
+ - Updated [`get_additions_and_removals`](./src/api/rpc/full_node/README.md#get_additions_and_removalsagent-params)
140
+ - [Wallet RPC API](./src/api/rpc/wallet)
141
+ - Updated [`get_wallets`](./src/api/rpc/wallet/README.md#get_walletsagent-params)
142
+ - Updated [`pw_absorb_rewards`](./src/api/rpc/wallet/README.md#pw_absorb_rewardsagent-params)
143
+ - The following APIs changed because a new property was added to `TradeRecord` class at `chia/wallet/trade_record.py`
144
+ This is not a breaking change because just adding a property is backward compatible.
145
+ - [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
146
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
147
+ - [`get_offer`](./src/api/rpc/wallet/README.md#get_offeragent-params)
148
+ - [`get_all_offers`](./src/api/rpc/wallet/README.md#get_all_offersagent-params)
149
+ ### Fixed
150
+ - Fixed issues where the following full_node RPC APIs were not exported from `api/rpc/index.ts`.
151
+ - `get_coin_record_by_names`
152
+ - `get_coin_records_by_parent_ids`
153
+ - Fixed issues where the following wallet RPC APIs were not exported from `api/rpc/index.ts`.
154
+ - `delete_unconfirmed_transactions`
155
+ - Fixed an issue where README description of `get_blockchain_state` of FullNode RPC API was missing some properties.
156
+
3
157
  ## [4.0.0]
4
158
  ### Breaking Change
5
159
  - At chia-blockchain@1.3.0, in `chia/consensus/cost_calculator.py`,
@@ -320,6 +474,9 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
320
474
  Initial release.
321
475
 
322
476
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
477
+ [7.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v6.0.0...v7.0.0
478
+ [6.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v5.0.0...v6.0.0
479
+ [5.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v4.0.0...v5.0.0
323
480
  [4.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.1...v4.0.0
324
481
  [3.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.0...v3.0.1
325
482
  [3.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v2.0.6...v3.0.0
package/README.md CHANGED
@@ -2,11 +2,11 @@
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.3.0`.
5
+ Supports all RPC/Websocket API available at `chia 1.4.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:
9
- - retrieve latest data from RPC servers like `farmer`, `harvester`, `full_node`, `wallet`, `pool`.
9
+ - retrieve latest data from RPC servers like `farmer`, `harvester`, `full_node`, `wallet`, `pool`, `crawler`.
10
10
  - send email when proof is found.
11
11
  - trigger scripts when target event is observed.
12
12
  - start/stop services.
@@ -22,17 +22,17 @@ yarn add chia-agent
22
22
 
23
23
  ## Compatibility
24
24
  This code is compatible with:
25
- - [`0e7cc5a88393ef02b4057dd4bf894be2e73bc00b`](https://github.com/Chia-Network/chia-blockchain/tree/0e7cc5a88393ef02b4057dd4bf894be2e73bc00b) of [chia-blockchain@1.3.0](https://github.com/Chia-Network/chia-blockchain)
26
- - [Diff to the latest chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/0e7cc5a88393ef02b4057dd4bf894be2e73bc00b...main)
27
- - [`374e7e6dc2d6d7941bb650f0e4ac5c01db104569`](https://github.com/Chia-Network/pool-reference/tree/374e7e6dc2d6d7941bb650f0e4ac5c01db104569) of [pool-reference](https://github.com/Chia-Network/pool-reference)
28
- - [Diff to the latest pool-reference](https://github.com/Chia-Network/pool-reference/compare/374e7e6dc2d6d7941bb650f0e4ac5c01db104569...main)
25
+ - [`bd35cb183bd9cd752dc9df5ffba3efd437011c90`](https://github.com/Chia-Network/chia-blockchain/tree/bd35cb183bd9cd752dc9df5ffba3efd437011c90) of [chia-blockchain 1.4.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/bd35cb183bd9cd752dc9df5ffba3efd437011c90...main)
27
+ - [`495f71e3acc93b18f10cfa9aac6a5b68cc7064c2`](https://github.com/Chia-Network/pool-reference/tree/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2) 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/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2...main)
29
29
 
30
30
  ## API
31
31
  There are 2 kinds of APIs in chia.
32
32
  `RPC API` and `Websocket API`.
33
33
 
34
34
  ### RPC API
35
- RPC API is used to send message directly to chia services like `farmer`, `harvester`, `full_node`, `wallet`.
35
+ RPC API is used to send message directly to chia services like `farmer`, `harvester`, `full_node`, `wallet`, `crawler`.
36
36
 
37
37
  RPC API is just an async function in a traditional request/response style.
38
38
 
@@ -53,12 +53,12 @@ console.log(res.plots[0]);
53
53
  {
54
54
  file_size: 108875876912,
55
55
  filename: 'M:\\plot-k32-yyyy-mm-dd-xx-xx-xxxxxxxxxxxxxxxxxxxxxxxxx.plot',
56
- 'plot-seed': '0x3098da093...',
56
+ plot_id: '...',
57
57
  plot_public_key: '0x934a93489...',
58
58
  pool_contract_puzzle_hash: null,
59
59
  pool_public_key: '0xb0aa9485c0d...',
60
60
  size: 32,
61
- time_modified: 1619540745.1640463
61
+ time_modified: 1619540745
62
62
  }
63
63
  */
64
64
  ```
@@ -1,7 +1,7 @@
1
- import { NPC } from "../types/name_puzzle_condition";
1
+ import { SpendBundleConditions } from "../types/spend_bundle_condition";
2
2
  import { Optional, uint16, uint64 } from "../types/_python_types_";
3
3
  export declare type NPCResult = {
4
4
  error: Optional<uint16>;
5
- npc_list: NPC[];
5
+ conds: Optional<SpendBundleConditions>;
6
6
  cost: uint64;
7
7
  };
@@ -14,4 +14,5 @@ export declare type PoolState = {
14
14
  authentication_token_timeout: uint8;
15
15
  pool_config: PoolWalletConfig;
16
16
  p2_singleton_puzzle_hash: str;
17
+ plot_count: int;
17
18
  };
@@ -1,13 +1,12 @@
1
- import { bytes, float, G1Element, int, Optional, str } from "../types/_python_types_";
1
+ import { bytes, G1Element, int, Optional, str } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
3
  export declare type Plot = {
4
4
  filename: str;
5
5
  size: int;
6
- "plot-seed": bytes;
7
6
  plot_id: bytes;
8
7
  pool_public_key: Optional<G1Element>;
9
8
  pool_contract_puzzle_hash: Optional<bytes32>;
10
9
  plot_public_key: G1Element;
11
10
  file_size: int;
12
- time_modified: float;
11
+ time_modified: int;
13
12
  };
@@ -0,0 +1,22 @@
1
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
2
+ import { bool, float, int, None, Optional, str, uint32 } from "../types/_python_types_";
3
+ import { Plot } from "../protocols/harvester_protocol";
4
+ export declare type MayBeSummary<S, O> = S extends true ? int : O;
5
+ export declare type Receiver<SUMMARY extends boolean = false> = {
6
+ connection: {
7
+ node_id: bytes32;
8
+ host: str;
9
+ port: int;
10
+ };
11
+ plots: MayBeSummary<SUMMARY, Plot[]>;
12
+ failed_to_open_filenames: MayBeSummary<SUMMARY, str[]>;
13
+ no_key_filenames: MayBeSummary<SUMMARY, str[]>;
14
+ duplicates: MayBeSummary<SUMMARY, str[]>;
15
+ total_plot_size: int;
16
+ syncing: {
17
+ initial: bool;
18
+ plot_files_processed: uint32;
19
+ plot_files_total: uint32;
20
+ } | None;
21
+ last_sync_time: Optional<float>;
22
+ };
@@ -10,8 +10,3 @@ export declare type Plot = {
10
10
  file_size: uint64;
11
11
  time_modified: uint64;
12
12
  };
13
- export declare type RespondPlots = {
14
- plots: Plot[];
15
- failed_to_open_filenames: str[];
16
- no_key_filenames: str[];
17
- };
@@ -0,0 +1,18 @@
1
+ import { bytes32, bytes48 } from "./blockchain_format/sized_bytes";
2
+ import { bytes, Optional, uint32, uint64 } from "./_python_types_";
3
+ export declare type Spend = {
4
+ coin_id: bytes32;
5
+ puzzle_hash: bytes32;
6
+ height_relative: Optional<uint32>;
7
+ seconds_relative: uint64;
8
+ create_coin: Array<[bytes32, uint64, bytes]>;
9
+ agg_sig_me: Array<[bytes48, bytes]>;
10
+ };
11
+ export declare type SpendBundleConditions = {
12
+ spends: Spend[];
13
+ reserve_fee: uint64;
14
+ height_absolute: uint32;
15
+ seconds_absolute: uint64;
16
+ agg_sig_unsafe: Array<[bytes48, bytes]>;
17
+ cost: uint64;
18
+ };
@@ -0,0 +1,23 @@
1
+ import { bool, bytes, Optional, str, uint16, uint32, uint64 } from "../../types/_python_types_";
2
+ import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
+ export declare type NFTInfo = {
4
+ launcher_id: bytes32;
5
+ nft_coin_id: bytes32;
6
+ owner_did: Optional<bytes32>;
7
+ royalty_percentage: Optional<uint16>;
8
+ royalty_puzzle_hash: Optional<bytes32>;
9
+ data_uris: str[];
10
+ data_hash: bytes;
11
+ metadata_uris: str[];
12
+ metadata_hash: bytes;
13
+ license_uris: str[];
14
+ license_hash: bytes;
15
+ series_total: uint64;
16
+ series_number: uint64;
17
+ updater_puzhash: bytes32;
18
+ chain_info: str;
19
+ mint_height: uint32;
20
+ supports_did: bool;
21
+ pending_transaction: bool;
22
+ launcher_puzhash: bytes32;
23
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { str } from "../types/_python_types_";
2
+ export declare type TDriverDictValue = {
3
+ type: str;
4
+ also?: TDriverDict;
5
+ } & Record<str, any>;
6
+ export declare type TDriverDict = Record<str, TDriverDictValue>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import { bool, bytes, int, Optional, str, uint32, uint64, uint8 } from "../types/_python_types_";
2
2
  import { Coin } from "../types/blockchain_format/coin";
3
3
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
4
+ import { TDriverDict } from "./puzzle_drivers";
4
5
  export declare type TradeRecord = {
5
6
  confirmed_at_index: uint32;
6
7
  accepted_at_time: Optional<uint64>;
@@ -18,6 +19,8 @@ export declare type TradeRecordConvenience = {
18
19
  summary: {
19
20
  offered: Record<str, int>;
20
21
  requested: Record<str, int>;
22
+ infos: TDriverDict;
23
+ fees: int;
21
24
  };
22
25
  pending: Record<str, int>;
23
26
  } & Omit<TradeRecord, "offer">;
@@ -7,6 +7,7 @@ export declare const WalletType: {
7
7
  CUSTODY: number;
8
8
  CAT: number;
9
9
  RECOVERABLE: number;
10
- DISTRIBUTED_ID: number;
10
+ DECENTRALIZED_ID: number;
11
11
  POOLING_WALLET: number;
12
+ NFT: number;
12
13
  };
@@ -11,6 +11,7 @@ exports.WalletType = {
11
11
  CUSTODY: 5,
12
12
  CAT: 6,
13
13
  RECOVERABLE: 7,
14
- DISTRIBUTED_ID: 8,
14
+ DECENTRALIZED_ID: 8,
15
15
  POOLING_WALLET: 9,
16
+ NFT: 10,
16
17
  };
@@ -1,9 +1,10 @@
1
1
  import { ProofOfSpace } from "../../chia/types/blockchain_format/proof_of_space";
2
- import { bool, int, str, uint64, uint8 } from "../../chia/types/_python_types_";
2
+ import { bool, int, Optional, str, uint64, uint8 } from "../../chia/types/_python_types_";
3
3
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
4
4
  import { TRPCAgent } from "../../../rpc/index";
5
- import { RespondPlots } from "../../chia/protocols/harvester_protocol";
6
5
  import { PoolState } from "../../chia/farmer/farmer";
6
+ import { Receiver } from "../../chia/plot-sync/receiver";
7
+ import { Plot } from "../../chia/protocols/harvester_protocol";
7
8
  export declare const chia_farmer_service = "chia_farmer";
8
9
  export declare type chia_farmer_service = typeof chia_farmer_service;
9
10
  export declare const get_signage_point_command = "get_signage_point";
@@ -34,6 +35,7 @@ export declare const get_reward_targets_command = "get_reward_targets";
34
35
  export declare type get_reward_targets_command = typeof get_reward_targets_command;
35
36
  export declare type TGetRewardTargetRequest = {
36
37
  search_for_private_key: bool;
38
+ max_ph_to_search?: int;
37
39
  };
38
40
  export declare type TGetRewardTargetResponse = {
39
41
  farmer_target: str;
@@ -68,20 +70,91 @@ export declare type TSetPayoutInstructionsRequest = {
68
70
  };
69
71
  export declare type TSetPayoutInstructionsResponse = {};
70
72
  export declare function set_pool_payout_instructions(agent: TRPCAgent, params: TSetPayoutInstructionsRequest): Promise<TSetPayoutInstructionsResponse>;
71
- export declare type HarvesterObject = RespondPlots & {
72
- connection: {
73
- node_id: str;
74
- host: str;
75
- port: int;
76
- };
77
- };
78
73
  export declare const get_harvesters_command = "get_harvesters";
79
74
  export declare type get_harvesters_command = typeof get_harvesters_command;
80
75
  export declare type TGetHarvestersRequest = {};
81
76
  export declare type TGetHarvestersResponse = {
82
- harvesters: HarvesterObject[];
77
+ harvesters: Receiver[];
83
78
  };
84
79
  export declare function get_harvesters(agent: TRPCAgent): Promise<TGetHarvestersResponse>;
80
+ export declare const get_harvesters_summary_command = "get_harvesters_summary";
81
+ export declare type get_harvesters_summary_command = typeof get_harvesters_summary_command;
82
+ export declare type TGetHarvestersSummaryResponse = {
83
+ harvesters: Receiver<true>[];
84
+ };
85
+ export declare function get_harvesters_summary(agent: TRPCAgent): Promise<TGetHarvestersSummaryResponse>;
86
+ export declare const get_harvester_plots_valid_command = "get_harvester_plots_valid";
87
+ export declare type get_harvester_plots_valid_command = typeof get_harvester_plots_valid_command;
88
+ export declare type TGetHarvesterPlotsValidRequest = {
89
+ node_id: bytes32;
90
+ page: int;
91
+ page_size: int;
92
+ filter: Array<{
93
+ key: str;
94
+ value: Optional<str>;
95
+ }>;
96
+ sort_key: str;
97
+ reverse: bool;
98
+ };
99
+ export declare type TGetHarvesterPlotsValidResponse = {
100
+ node_id: str;
101
+ page: int;
102
+ page_count: int;
103
+ total_count: int;
104
+ plots: Plot[];
105
+ };
106
+ export declare function get_harvester_plots_valid(agent: TRPCAgent, param: TGetHarvesterPlotsValidRequest): Promise<TGetHarvesterPlotsValidResponse>;
107
+ export declare const get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
108
+ export declare type get_harvester_plots_invalid_command = typeof get_harvester_plots_invalid_command;
109
+ export declare type TGetHarvesterPlotsInvalidRequest = {
110
+ node_id: bytes32;
111
+ page: int;
112
+ page_size: int;
113
+ filter: str[];
114
+ reverse: bool;
115
+ };
116
+ export declare type TGetHarvesterPlotsInvalidResponse = {
117
+ node_id: str;
118
+ page: int;
119
+ page_count: int;
120
+ total_count: int;
121
+ plots: str[];
122
+ };
123
+ export declare function get_harvester_plots_invalid(agent: TRPCAgent, param: TGetHarvesterPlotsInvalidRequest): Promise<TGetHarvesterPlotsInvalidResponse>;
124
+ export declare const get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
125
+ export declare type get_harvester_plots_keys_missing_command = typeof get_harvester_plots_keys_missing_command;
126
+ export declare type TGetHarvesterPlotsKeysMissingRequest = {
127
+ node_id: bytes32;
128
+ page: int;
129
+ page_size: int;
130
+ filter: str[];
131
+ reverse: bool;
132
+ };
133
+ export declare type TGetHarvesterPlotsKeysMissingResponse = {
134
+ node_id: str;
135
+ page: int;
136
+ page_count: int;
137
+ total_count: int;
138
+ plots: str[];
139
+ };
140
+ export declare function get_harvester_plots_keys_missing(agent: TRPCAgent, param: TGetHarvesterPlotsKeysMissingRequest): Promise<TGetHarvesterPlotsKeysMissingResponse>;
141
+ export declare const get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
142
+ export declare type get_harvester_plots_duplicates_command = typeof get_harvester_plots_duplicates_command;
143
+ export declare type TGetHarvesterPlotsDuplicatesRequest = {
144
+ node_id: bytes32;
145
+ page: int;
146
+ page_size: int;
147
+ filter: str[];
148
+ reverse: bool;
149
+ };
150
+ export declare type TGetHarvesterPlotsDuplicatesResponse = {
151
+ node_id: str;
152
+ page: int;
153
+ page_count: int;
154
+ total_count: int;
155
+ plots: str[];
156
+ };
157
+ export declare function get_harvester_plots_duplicates(agent: TRPCAgent, param: TGetHarvesterPlotsDuplicatesRequest): Promise<TGetHarvesterPlotsDuplicatesResponse>;
85
158
  export declare const get_pool_login_link_command = "get_pool_login_link";
86
159
  export declare type get_pool_login_link_command = typeof get_pool_login_link_command;
87
160
  export declare type TGetPoolLinkRequest = {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.get_pool_login_link = exports.get_pool_login_link_command = exports.get_harvesters = exports.get_harvesters_command = exports.set_pool_payout_instructions = exports.set_payout_instructions_command = exports.get_pool_state = exports.get_pool_state_command = exports.set_reward_targets = exports.set_reward_targets_command = exports.get_reward_targets = exports.get_reward_targets_command = exports.get_signage_points = exports.get_signage_points_command = exports.get_signage_point = exports.get_signage_point_command = exports.chia_farmer_service = void 0;
12
+ exports.get_pool_login_link = exports.get_pool_login_link_command = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_duplicates_command = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_keys_missing_command = exports.get_harvester_plots_invalid = exports.get_harvester_plots_invalid_command = exports.get_harvester_plots_valid = exports.get_harvester_plots_valid_command = exports.get_harvesters_summary = exports.get_harvesters_summary_command = exports.get_harvesters = exports.get_harvesters_command = exports.set_pool_payout_instructions = exports.set_payout_instructions_command = exports.get_pool_state = exports.get_pool_state_command = exports.set_reward_targets = exports.set_reward_targets_command = exports.get_reward_targets = exports.get_reward_targets_command = exports.get_signage_points = exports.get_signage_points_command = exports.get_signage_point = exports.get_signage_point_command = exports.chia_farmer_service = void 0;
13
13
  exports.chia_farmer_service = "chia_farmer";
14
14
  exports.get_signage_point_command = "get_signage_point";
15
15
  function get_signage_point(agent, params) {
@@ -60,6 +60,41 @@ function get_harvesters(agent) {
60
60
  });
61
61
  }
62
62
  exports.get_harvesters = get_harvesters;
63
+ exports.get_harvesters_summary_command = "get_harvesters_summary";
64
+ function get_harvesters_summary(agent) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return agent.sendMessage(exports.chia_farmer_service, exports.get_harvesters_summary_command);
67
+ });
68
+ }
69
+ exports.get_harvesters_summary = get_harvesters_summary;
70
+ exports.get_harvester_plots_valid_command = "get_harvester_plots_valid";
71
+ function get_harvester_plots_valid(agent, param) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_valid_command, param);
74
+ });
75
+ }
76
+ exports.get_harvester_plots_valid = get_harvester_plots_valid;
77
+ exports.get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
78
+ function get_harvester_plots_invalid(agent, param) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_invalid_command, param);
81
+ });
82
+ }
83
+ exports.get_harvester_plots_invalid = get_harvester_plots_invalid;
84
+ exports.get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
85
+ function get_harvester_plots_keys_missing(agent, param) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_keys_missing_command, param);
88
+ });
89
+ }
90
+ exports.get_harvester_plots_keys_missing = get_harvester_plots_keys_missing;
91
+ exports.get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
92
+ function get_harvester_plots_duplicates(agent, param) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_duplicates_command, param);
95
+ });
96
+ }
97
+ exports.get_harvester_plots_duplicates = get_harvester_plots_duplicates;
63
98
  exports.get_pool_login_link_command = "get_pool_login_link";
64
99
  function get_pool_login_link(agent, params) {
65
100
  return __awaiter(this, void 0, void 0, function* () {
@@ -2,7 +2,7 @@ import { FullBlock } from "../../chia/types/full_block";
2
2
  import { BlockRecord } from "../../chia/consensus/block_record";
3
3
  import { bool, float, int, Optional, str, uint128, uint32, uint64 } from "../../chia/types/_python_types_";
4
4
  import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
5
- import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
5
+ import { CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
6
6
  import { SpendBundle } from "../../chia/types/spend_bundle";
7
7
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
8
8
  import { MempoolItem } from "../../chia/types/mempool_item";
@@ -30,12 +30,12 @@ export declare type TGetBlockchainStateResponse = {
30
30
  space: uint128;
31
31
  mempool_size: int;
32
32
  mempool_cost: int;
33
- "mempool_min_fees": {
34
- "cost_5000000": float;
33
+ mempool_min_fees: {
34
+ cost_5000000: float;
35
35
  };
36
- "mempool_max_total_cost": int;
37
- "block_max_cost": int;
38
- "node_id": str;
36
+ mempool_max_total_cost: int;
37
+ block_max_cost: int;
38
+ node_id: str;
39
39
  };
40
40
  };
41
41
  export declare function get_blockchain_state(agent: TRPCAgent): Promise<TGetBlockchainStateResponse>;
@@ -123,8 +123,8 @@ export declare type TGetAdditionsAndRemovalsRequest = {
123
123
  header_hash: str;
124
124
  };
125
125
  export declare type TGetAdditionsAndRemovalsResponse = {
126
- additions: CoinRecord[];
127
- removals: CoinRecord[];
126
+ additions: CoinRecordBackwardCompatible[];
127
+ removals: CoinRecordBackwardCompatible[];
128
128
  };
129
129
  export declare function get_additions_and_removals(agent: TRPCAgent, data: TGetAdditionsAndRemovalsRequest): Promise<TGetAdditionsAndRemovalsResponse>;
130
130
  export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
@@ -215,6 +215,19 @@ export declare type TGetCoinRecordsByParentIdsRequest = {
215
215
  export declare type TGetCoinRecordsByParentIdsResponse = {
216
216
  coin_records: CoinRecordBackwardCompatible[];
217
217
  };
218
+ export declare function get_coin_records_by_parent_ids(agent: TRPCAgent, data: TGetCoinRecordsByParentIdsRequest): Promise<TGetCoinRecordsByParentIdsResponse>;
219
+ export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
220
+ export declare type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
221
+ export declare type TGetCoinRecordsByHintRequest = {
222
+ hint: str;
223
+ start_height?: uint32;
224
+ end_height?: uint32;
225
+ include_spent_coins?: bool;
226
+ };
227
+ export declare type TGetCoinRecordsByHintResponse = {
228
+ coin_records: CoinRecordBackwardCompatible[];
229
+ };
230
+ export declare function get_coin_records_by_hint(agent: TRPCAgent, data: TGetCoinRecordsByHintRequest): Promise<TGetCoinRecordsByHintResponse>;
218
231
  export declare const push_tx_command = "push_tx";
219
232
  export declare type push_tx_command = typeof push_tx_command;
220
233
  export declare type TPushTxRequest = {