chia-agent 12.1.0 → 13.0.1

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,5 +1,92 @@
1
1
  # Changelog
2
2
 
3
+ ## [13.0.1]
4
+ ### Changed
5
+ - [Daemon WebSocket API](./src/api/ws/daemon)
6
+ - [`start_plotting`](./src/api/ws/daemon/README.md#start_plottingdaemon-params)
7
+ - `no_direct_downloads` has been removed from `TBladeBitCudaParams`
8
+
9
+ ## [13.0.0]
10
+ ### Breaking change
11
+ - The format of [`PoolState`](./src/api/chia/farmer/farmer.ts)) has been changed.
12
+ - `points_found_24h` and `points_acknowledged_24h` are now `Array<[uint32, uint64]>` (they were `Array<[float, uint64]>`)
13
+ - `pool_errors_24h` is now `Array<[uint32, ErrorResponse]>` (it was `ErrorResponse[]`)
14
+ - The following request properties of `send_transaction` and `cat_spend` Wallet RPC API were renamed
15
+ - `exclude_coin_amounts` -> `excluded_coin_amounts`
16
+ - `exclude_coins` -> `excluded_coins`
17
+ - The previous property names(`exclude_coin_amounts`, `exclude_coins`) are preserved for backward compatibility
18
+ - The following request properties of `create_signed_transaction` Wallet RPC API were renamed
19
+ - `exclude_coin_amounts` -> `excluded_coin_amounts`
20
+ - `exclude_coins` -> `excluded_coins`
21
+ - The previous property name (`exclude_coins`) is preserved for backward compatibility
22
+ - Unlike `send_transaction` and `cat_spend`, `exclude_coin_amounts` is removed by accident and not backward compatible.
23
+ ### Changed
24
+ - [Daemon WebSocket API](./src/api/ws/daemon)
25
+ - [`start_plotting`](./src/api/ws/daemon/README.md#start_plottingdaemon-params)
26
+ - The `t2` option for chiapos plotter is now optional
27
+ - Added `compress` option for bladebit plotter
28
+ - Added `cudaplot` plot type for bladebit plotter
29
+ - [`get_plotters`](./src/api/ws/daemon/README.md#get_plottersdaemon)
30
+ - Added `cuda_support` property to bladebit install info
31
+ - [DataLayer RPC API](./src/api/rpc/data_layer)
32
+ - Renamed the type `WsTakeOfferMessageDL` to `WsTakeOfferMessage`
33
+ - Renamed the type `WsCancelOfferMessageDL` to `WsCancelOfferMessage`
34
+ - [Farmer RPC API](./src/api/rpc/farmer)
35
+ - [`get_pool_state`](./src/api/rpc/farmer/README.md#get_pool_stateagent)
36
+ - Added new properties
37
+ - `valid_partials_since_start`
38
+ - `valid_partials_24h`
39
+ - `invalid_partials_since_start`
40
+ - `invalid_partials_24h`
41
+ - `stale_partials_since_start`
42
+ - `stale_partials_24h`
43
+ - `missing_partials_since_start`
44
+ - `missing_partials_24h`
45
+ - [`get_harvesters`](./src/api/rpc/farmer/README.md#get_harvestersagent)
46
+ - Added `total_effective_plot_size` and `harvesting_mode` to `harvesters` in response
47
+ - [`get_harvesters_summary`](./src/api/rpc/farmer/README.md#get_harvesters_summaryagent)
48
+ - Added `total_effective_plot_size` and `harvesting_mode` to `harvesters` in response
49
+ - [Farmer WebSocket API](./src/api/ws/farmer)
50
+ - [`on_new_farming_info`](./src/api/ws/farmer/README.md#on_new_farming_info)
51
+ - Added `node_id` and `lookup_time` to `farming_info` Broadcast data
52
+ - [`on_new_signage_point`](./src/api/ws/farmer/README.md#on_new_signage_point)
53
+ - Added `missing_signage_points` to Broadcast data
54
+ - [`on_submitted_partial`](./src/api/ws/farmer/README.md#on_submitted_partial)
55
+ - Added `"wallet_ui""` to `destination` in Broadcast data
56
+ - [`on_harvester_update`](./src/api/ws/farmer/README.md#on_harvester_update)
57
+ - Added `total_effective_plot_size` and `harvesting_mode` to broadcast data
58
+ - [Harvester RPC API](./src/api/rpc/harvester)
59
+ - [`get_plots`](./src/api/rpc/harvester/README.md#get_plotsagent)
60
+ - Added `compression_level` to response
61
+ - [FullNode RPC API](./src/api/rpc/full_node)
62
+ - [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent)
63
+ - Added `average_block_time` to response
64
+ - [Wallet RPC API](./src/api/rpc/wallet)
65
+ - [`get_farmed_amount`](./src/api/rpc/full_node/README.md#get_farmed_amountagent)
66
+ - Added `last_time_farmed` to response
67
+ - Added `blocks_won` to response
68
+ ### Added
69
+ - [Daemon WebSocket API](./src/api/ws/daemon)
70
+ - [`get_routes`](./src/api/ws/daemon/README.md#get_routesdaemon)
71
+ - [`get_wallet_addresses`](./src/api/ws/daemon/README.md#get_wallet_addressesdaemon)
72
+ - [`get_keys_for_plotting`](./src/api/ws/daemon/README.md#get_keys_for_plottingdaemon)
73
+ - [Farmer WebSocket API](./src/api/ws/farmer)
74
+ - [`on_failed_partial`](./src/api/ws/farmer/README.md#on_failed_partial)
75
+ - [DataLayer RPC API](./src/api/rpc/data_layer)
76
+ - [`clear_pending_roots`](./src/api/rpc/data_layer/README.md#clear_pending_rootsagent-params)
77
+ - [Harvester RPC API](./src/api/rpc/harvester)
78
+ - [`get_harvester_config`](./src/api/rpc/harvester/README.md#get_harvester_configagent)
79
+ - [`update_harvester_config`](./src/api/rpc/harvester/README.md#update_harvester_configagent)
80
+ ### Fixed
81
+ - Fixed documentation for plotter params.
82
+ - `bladebit_params` => `bladebit_ramplot_params`
83
+ - `bladebit2_params` => `bladebit_diskplot_params`
84
+ - Fixed an issue where ts files related to the data layer RPC API had a circular dependency.
85
+ - Fixed an issue where the following request parameters for the `did_find_lost_did` Wallet RPC API were missing.
86
+ - `recovery_list_hash`
87
+ - `num_verification`
88
+ - `metadata`
89
+
3
90
  ## [12.1.0]
4
91
  ### Changed
5
92
  - [Wallet RPC API](./src/api/rpc/wallet)
@@ -1046,6 +1133,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
1046
1133
  Initial release.
1047
1134
 
1048
1135
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
1136
+ [13.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v13.0.0...v13.0.1
1137
+ [13.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v12.1.0...v13.0.0
1049
1138
  [12.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v12.0.1...v12.1.0
1050
1139
  [12.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v12.0.0...v12.0.1
1051
1140
  [12.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v11.1.1...v12.0.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.8.2`.
5
+ Supports all RPC/Websocket API available at `chia 2.0.1`.
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,8 +22,8 @@ yarn add chia-agent
22
22
 
23
23
  ## Compatibility
24
24
  This code is compatible with:
25
- - [`f0764f27defa865fd4ccc28756195e535adc6bd9`](https://github.com/Chia-Network/chia-blockchain/tree/f0764f27defa865fd4ccc28756195e535adc6bd9) of [chia-blockchain 1.8.2](https://github.com/Chia-Network/chia-blockchain)
26
- - [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/f0764f27defa865fd4ccc28756195e535adc6bd9...main)
25
+ - [`e66f3a9876e9a1c4f3da30dd889d80a8627b6782`](https://github.com/Chia-Network/chia-blockchain/tree/e66f3a9876e9a1c4f3da30dd889d80a8627b6782) of [chia-blockchain 2.0.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/e66f3a9876e9a1c4f3da30dd889d80a8627b6782...main)
27
27
  - [`6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5`](https://github.com/Chia-Network/pool-reference/tree/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5) of [pool-reference](https://github.com/Chia-Network/pool-reference)
28
28
  - [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5...main)
29
29
 
@@ -1,4 +1,4 @@
1
- import { int, str } from "../types/_python_types_";
1
+ import { int, Optional, str } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
3
  export declare type KeyValueMarshalled = {
4
4
  key: str;
@@ -41,3 +41,9 @@ export declare type PluginStatusMarshalled = {
41
41
  downloaders: Record<str, Record<str, any>>;
42
42
  };
43
43
  };
44
+ export declare type RootMarshalled = {
45
+ tree_id: str;
46
+ node_hash: Optional<str>;
47
+ generation: int;
48
+ status: int;
49
+ };
@@ -1,16 +1,24 @@
1
- import { float, int, str, uint64, uint8 } from "../types/_python_types_";
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
4
  export declare type PoolState = {
5
5
  points_found_since_start: int;
6
- points_found_24h: Array<[float, uint64]>;
6
+ points_found_24h: Array<[uint32, uint64]>;
7
7
  points_acknowledged_since_start: int;
8
- points_acknowledged_24h: Array<[float, uint64]>;
8
+ points_acknowledged_24h: Array<[uint32, uint64]>;
9
+ valid_partials_since_start: int;
10
+ valid_partials_24h: Array<[uint32, uint64]>;
11
+ invalid_partials_since_start: int;
12
+ invalid_partials_24h: Array<[uint32, uint64]>;
13
+ stale_partials_since_start: int;
14
+ stale_partials_24h: Array<[uint32, uint64]>;
15
+ missing_partials_since_start: int;
16
+ missing_partials_24h: Array<[uint32, uint64]>;
9
17
  next_farmer_update: float;
10
18
  next_pool_info_update: float;
11
19
  current_points: uint64;
12
20
  current_difficulty: uint64;
13
- pool_errors_24h: ErrorResponse[];
21
+ pool_errors_24h: Array<[uint32, ErrorResponse]>;
14
22
  authentication_token_timeout: uint8;
15
23
  pool_config: PoolWalletConfig;
16
24
  p2_singleton_puzzle_hash: str;
@@ -9,4 +9,5 @@ export declare type Plot = {
9
9
  plot_public_key: G1Element;
10
10
  file_size: int;
11
11
  time_modified: int;
12
+ compression_level: int;
12
13
  };
@@ -1,6 +1,7 @@
1
1
  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
+ import { HarvestingMode } from "../plotting/util";
4
5
  export declare type MayBeSummary<S, O> = S extends true ? int : O;
5
6
  export declare type Receiver<SUMMARY extends boolean = false> = {
6
7
  connection: {
@@ -13,10 +14,12 @@ export declare type Receiver<SUMMARY extends boolean = false> = {
13
14
  no_key_filenames: MayBeSummary<SUMMARY, str[]>;
14
15
  duplicates: MayBeSummary<SUMMARY, str[]>;
15
16
  total_plot_size: int;
17
+ total_effective_plot_size: int;
16
18
  syncing: {
17
19
  initial: bool;
18
20
  plot_files_processed: uint32;
19
21
  plot_files_total: uint32;
20
22
  } | None;
21
23
  last_sync_time: Optional<float>;
24
+ harvesting_mode: Optional<HarvestingMode>;
22
25
  };
@@ -6,4 +6,5 @@ export declare type bladebit_install_info = {
6
6
  installed: bool;
7
7
  can_install?: bool;
8
8
  bladebit_memory_warning?: str;
9
+ cuda_support: bool;
9
10
  };
@@ -0,0 +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;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -34,6 +34,7 @@ export declare type FarmingInfo = {
34
34
  passed: uint32;
35
35
  proofs: uint32;
36
36
  total_plots: uint32;
37
+ lookup_time: uint64;
37
38
  };
38
39
  export declare type SignedValues = {
39
40
  quality_string: bytes32;
@@ -2,8 +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, PluginStatusMarshalled, SyncStatus } from "../../chia/data_layer/data_layer_util";
6
- import { TCancelOfferResponseDL, TTakeOfferResponseDL } from "../index";
5
+ import { OfferMarshalled, OfferStoreMarshalled, PluginStatusMarshalled, RootMarshalled, SyncStatus } from "../../chia/data_layer/data_layer_util";
7
6
  import { GetMessageType, ResType } from "../../types";
8
7
  import { TDaemon } from "../../../daemon/index";
9
8
  export declare const chia_data_layer_service = "chia_data_layer";
@@ -290,8 +289,8 @@ export declare type TTakeOfferResponse = {
290
289
  success: bool;
291
290
  trade_id: str;
292
291
  };
293
- export declare type WsTakeOfferMessageDL = GetMessageType<chia_data_layer_service, take_offer_command, TTakeOfferResponse>;
294
- export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TTakeOfferRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TTakeOfferResponseDL, WsTakeOfferMessageDL>>;
292
+ export declare type WsTakeOfferMessage = GetMessageType<chia_data_layer_service, take_offer_command, TTakeOfferResponse>;
293
+ export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TTakeOfferRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TTakeOfferResponse, WsTakeOfferMessage>>;
295
294
  export declare const verify_offer_command = "verify_offer";
296
295
  export declare type verify_offer_command = typeof verify_offer_command;
297
296
  export declare type TVerifyOfferRequest = {
@@ -316,8 +315,8 @@ export declare type TCancelOfferRequest = {
316
315
  export declare type TCancelOfferResponse = {
317
316
  success: bool;
318
317
  };
319
- export declare type WsCancelOfferMessageDL = GetMessageType<chia_data_layer_service, cancel_offer_command, TCancelOfferResponse>;
320
- export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TCancelOfferRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TCancelOfferResponseDL, WsCancelOfferMessageDL>>;
318
+ export declare type WsCancelOfferMessage = GetMessageType<chia_data_layer_service, cancel_offer_command, TCancelOfferResponse>;
319
+ export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TCancelOfferRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TCancelOfferResponse, WsCancelOfferMessage>>;
321
320
  export declare const get_sync_status_command = "get_sync_status";
322
321
  export declare type get_sync_status_command = typeof get_sync_status_command;
323
322
  export declare type TGetSyncStatusRequest = {
@@ -333,5 +332,16 @@ export declare type check_plugins_command = typeof check_plugins_command;
333
332
  export declare type TCheckPluginsResponse = PluginStatusMarshalled;
334
333
  export declare type WsCheckPluginsMessage = GetMessageType<chia_data_layer_service, check_plugins_command, TCheckPluginsResponse>;
335
334
  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;
335
+ export declare const clear_pending_roots_command = "clear_pending_roots";
336
+ export declare type clear_pending_roots_command = typeof clear_pending_roots_command;
337
+ export declare type TClearPendingRootsRequest = {
338
+ store_id: str;
339
+ };
340
+ export declare type TClearPendingRootsResponse = {
341
+ success: bool;
342
+ root: Optional<RootMarshalled>;
343
+ };
344
+ export declare type WsClearPendingRootsMessage = GetMessageType<chia_data_layer_service, clear_pending_roots_command, TClearPendingRootsResponse>;
345
+ export declare function clear_pending_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TClearPendingRootsRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TClearPendingRootsResponse, WsClearPendingRootsMessage>>;
346
+ 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 | TTakeOfferResponse | TVerifyOfferResponse | TCancelOfferResponse | TGetSyncStatusResponse | TCheckPluginsResponse | TClearPendingRootsResponse;
347
+ 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 | WsTakeOfferMessage | WsVerifyOfferMessage | WsCancelOfferMessage | WsGetSyncStatusMessage | WsCheckPluginsMessage | WsClearPendingRootsMessage;
@@ -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.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;
13
+ exports.clear_pending_roots = exports.clear_pending_roots_command = 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) {
@@ -208,3 +208,10 @@ function check_plugins(agent) {
208
208
  });
209
209
  }
210
210
  exports.check_plugins = check_plugins;
211
+ exports.clear_pending_roots_command = "clear_pending_roots";
212
+ function clear_pending_roots(agent, params) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ return agent.sendMessage(exports.chia_data_layer_service, exports.clear_pending_roots_command, params);
215
+ });
216
+ }
217
+ exports.clear_pending_roots = clear_pending_roots;
@@ -31,6 +31,7 @@ export declare type TGetBlockchainStateResponse = {
31
31
  difficulty: uint64;
32
32
  sub_slot_iters: uint64;
33
33
  space: uint128;
34
+ average_block_time: Optional<uint32>;
34
35
  mempool_size: int;
35
36
  mempool_cost: CLVMCost;
36
37
  mempool_fees: int;
@@ -1,4 +1,4 @@
1
- import { str } from "../../chia/types/_python_types_";
1
+ import { bool, int, str, True, uint32 } from "../../chia/types/_python_types_";
2
2
  import { TRPCAgent } from "../../../rpc";
3
3
  import { Plot } from "../../chia/harvester/harvester";
4
4
  import { GetMessageType, ResType } from "../../types";
@@ -53,5 +53,35 @@ export declare type TRemovePlotDirectoryRequest = {
53
53
  export declare type TRemovePlotDirectoryResponse = {};
54
54
  export declare type WsRemovePlotDirectoryMessage = GetMessageType<chia_harvester_service, remove_plot_directory_command, TRemovePlotDirectoryResponse>;
55
55
  export declare function remove_plot_directory<T extends TRPCAgent | TDaemon>(agent: T, data: TRemovePlotDirectoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRemovePlotDirectoryResponse, WsRemovePlotDirectoryMessage>>;
56
- export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
57
- export declare type RpcHarvesterMessageOnWs = WsAddPlotDirectoryMessage | WsDeletePlotMessage | WsGetPlotDirectoriesMessage | WsGetPlotsMessage | WsRefreshPlotsMessage | WsRemovePlotDirectoryMessage;
56
+ export declare const get_harvester_config_command = "get_harvester_config";
57
+ export declare type get_harvester_config_command = typeof get_harvester_config_command;
58
+ export declare type TGetHarvesterConfigResponse = {
59
+ success: True;
60
+ use_gpu_harvesting: bool;
61
+ gpu_index: int;
62
+ enforce_gpu_index: bool;
63
+ disable_cpu_affinity: bool;
64
+ parallel_decompressor_count: int;
65
+ decompressor_thread_count: int;
66
+ recursive_plot_scan: bool;
67
+ refresh_parameter_interval_seconds: int;
68
+ };
69
+ export declare type WsGetHarvesterConfigMessage = GetMessageType<chia_harvester_service, get_harvester_config_command, TGetHarvesterConfigResponse>;
70
+ export declare function get_harvester_config<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetHarvesterConfigResponse, WsGetHarvesterConfigMessage>>;
71
+ export declare const update_harvester_config_command = "update_harvester_config";
72
+ export declare type update_harvester_config_command = typeof update_harvester_config_command;
73
+ export declare type TUpdateHarvesterConfigRequest = {
74
+ use_gpu_harvesting?: bool;
75
+ gpu_index?: int;
76
+ enforce_gpu_index?: bool;
77
+ disable_cpu_affinity?: bool;
78
+ parallel_decompressor_count?: int;
79
+ decompressor_thread_count?: int;
80
+ recursive_plot_scan?: bool;
81
+ refresh_parameter_interval_seconds?: uint32;
82
+ };
83
+ export declare type TUpdateHarvesterConfigResponse = {};
84
+ export declare type WsUpdateHarvesterConfigMessage = GetMessageType<chia_harvester_service, update_harvester_config_command, TUpdateHarvesterConfigResponse>;
85
+ export declare function update_harvester_config<T extends TRPCAgent | TDaemon>(agent: T, data: TUpdateHarvesterConfigRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TUpdateHarvesterConfigResponse, WsUpdateHarvesterConfigMessage>>;
86
+ export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse | TGetHarvesterConfigResponse | TUpdateHarvesterConfigResponse;
87
+ export declare type RpcHarvesterMessageOnWs = WsAddPlotDirectoryMessage | WsDeletePlotMessage | WsGetPlotDirectoriesMessage | WsGetPlotsMessage | WsRefreshPlotsMessage | WsRemovePlotDirectoryMessage | WsGetHarvesterConfigMessage | WsUpdateHarvesterConfigMessage;
@@ -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.remove_plot_directory = exports.remove_plot_directory_command = exports.get_plot_directories = exports.get_plot_directories_command = exports.add_plot_directory = exports.add_plot_directory_command = exports.delete_plot = exports.delete_plot_command = exports.refresh_plots = exports.refresh_plots_command = exports.get_plots = exports.get_plots_command = exports.chia_harvester_service = void 0;
12
+ exports.update_harvester_config = exports.update_harvester_config_command = exports.get_harvester_config = exports.get_harvester_config_command = exports.remove_plot_directory = exports.remove_plot_directory_command = exports.get_plot_directories = exports.get_plot_directories_command = exports.add_plot_directory = exports.add_plot_directory_command = exports.delete_plot = exports.delete_plot_command = exports.refresh_plots = exports.refresh_plots_command = exports.get_plots = exports.get_plots_command = exports.chia_harvester_service = void 0;
13
13
  exports.chia_harvester_service = "chia_harvester";
14
14
  exports.get_plots_command = "get_plots";
15
15
  function get_plots(agent) {
@@ -53,3 +53,17 @@ function remove_plot_directory(agent, data) {
53
53
  });
54
54
  }
55
55
  exports.remove_plot_directory = remove_plot_directory;
56
+ exports.get_harvester_config_command = "get_harvester_config";
57
+ function get_harvester_config(agent) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ return agent.sendMessage(exports.chia_harvester_service, exports.get_harvester_config_command);
60
+ });
61
+ }
62
+ exports.get_harvester_config = get_harvester_config;
63
+ exports.update_harvester_config_command = "update_harvester_config";
64
+ function update_harvester_config(agent, data) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return agent.sendMessage(exports.chia_harvester_service, exports.update_harvester_config_command, data);
67
+ });
68
+ }
69
+ exports.update_harvester_config = update_harvester_config;
@@ -3,11 +3,11 @@ export { chia_farmer_service, RpcFarmerMessage, TGetRewardTargetRequest, TGetRew
3
3
  import type { RpcFullNodeMessage } from "./full_node/index";
4
4
  export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, TGetAllBlocksResponse, get_all_blocks, TFarmBlockRequest as TFarmBlockFullNodeRequest, TFarmBlockResponse as TFarmBlockFullNodeResponse, farm_block as farm_block_fullnode, TSetAutoFarmingRequest, TSetAutoFarmingResponse, set_auto_farming, TGetAutoFarmingResponse, get_auto_farming, TGetFarmingPhResponse, get_farming_ph, TGetAllCoinsRequest, TGetAllCoinsResponse, get_all_coins, TGetAllPuzzleHashesResponse, get_all_puzzle_hashes, TRevertBlocksRequest, TRevertBlocksResponse, revert_blocks, TReorgBlocksRequest, TReorgBlocksResponse, reorg_blocks } from "./full_node/index";
5
5
  import type { RpcHarvesterMessage } from "./harvester/index";
6
- export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
6
+ export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, TGetHarvesterConfigResponse, get_harvester_config, TUpdateHarvesterConfigRequest, TUpdateHarvesterConfigResponse, update_harvester_config, } from "./harvester/index";
7
7
  import type { RpcWalletMessage } from "./wallet/index";
8
8
  export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TVerifySignatureRequest, TVerifySignatureResponse, verify_signature, TGetTransactionMemoRequest, TGetTransactionMemoResponse, get_transaction_memo, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TSetWalletResyncOnStartupRequest, TSetWalletResyncOnStartupResponse, set_wallet_resync_on_startup, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftCountNftsRequest, TNftCountNftsResponse, nft_count_nfts, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TSetAutoClaimRequest, TSetAutoClaimResponse, set_auto_claim, TGetAutoClaimResponse, get_auto_claim, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletBalancesRequest, TGetWalletBalancesResponse, get_wallet_balances, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TSpendClawbackCoinsRequest, TSpendClawbackCoinsResponse, spend_clawback_coins, TGetCoinRecordsRequest, TGetCoinRecordsResponse, get_coin_records, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, TVcMintRequest, TVcMintResponse, vc_mint, TVcGetRequest, TVcGetResponse, vc_get, TVcGetListRequest, TVcGetListResponse, vc_get_list, TVcSpendRequest, TVcSpendResponse, vc_spend, TVcAddProofsRequest, TVcAddProofsResponse, vc_add_proofs, TVcGetProofsForRootRequest, TVcGetProofsForRootResponse, vc_get_proofs_for_root, TVcRevokeRequest, TVcRevokeResponse, vc_revoke, } from "./wallet/index";
9
9
  import type { RpcDataLayerMessage } from "./data_layer/index";
10
- export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, TCheckPluginsResponse, check_plugins, } from "./data_layer/index";
10
+ export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, TCheckPluginsResponse, check_plugins, TClearPendingRootsRequest, TClearPendingRootsResponse, clear_pending_roots, } from "./data_layer/index";
11
11
  import type { RpcCrawlerMessage } from "./crawler/index";
12
12
  export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimestampResponse, TGetPeerCountsResponse, get_ips_after_timestamp, get_peer_counts, } from "./crawler/index";
13
13
  import type { RpcCommonMessage } from "./common/index";
package/api/rpc/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block_fullnode = exports.get_all_blocks = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
4
- exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = void 0;
5
- exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balances = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_auto_claim = exports.set_auto_claim = exports.get_timestamp_for_height = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_count_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = void 0;
6
- exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = exports.vc_revoke = exports.vc_get_proofs_for_root = exports.vc_add_proofs = exports.vc_spend = exports.vc_get_list = exports.vc_get = exports.vc_mint = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.get_coin_records = exports.spend_clawback_coins = exports.send_transaction_multi = exports.send_transaction = void 0;
7
- exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = void 0;
4
+ exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.update_harvester_config = exports.get_harvester_config = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = void 0;
5
+ exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balances = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_auto_claim = exports.set_auto_claim = exports.get_timestamp_for_height = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_count_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = void 0;
6
+ exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = exports.vc_revoke = exports.vc_get_proofs_for_root = exports.vc_add_proofs = exports.vc_spend = exports.vc_get_list = exports.vc_get = exports.vc_mint = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.get_coin_records = exports.spend_clawback_coins = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = void 0;
7
+ exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = void 0;
8
8
  var index_1 = require("./farmer/index");
9
9
  Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
10
10
  Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
@@ -65,6 +65,8 @@ Object.defineProperty(exports, "get_plot_directories", { enumerable: true, get:
65
65
  Object.defineProperty(exports, "get_plots", { enumerable: true, get: function () { return index_3.get_plots; } });
66
66
  Object.defineProperty(exports, "refresh_plots", { enumerable: true, get: function () { return index_3.refresh_plots; } });
67
67
  Object.defineProperty(exports, "remove_plot_directory", { enumerable: true, get: function () { return index_3.remove_plot_directory; } });
68
+ Object.defineProperty(exports, "get_harvester_config", { enumerable: true, get: function () { return index_3.get_harvester_config; } });
69
+ Object.defineProperty(exports, "update_harvester_config", { enumerable: true, get: function () { return index_3.update_harvester_config; } });
68
70
  var index_4 = require("./wallet/index");
69
71
  Object.defineProperty(exports, "chia_wallet_service", { enumerable: true, get: function () { return index_4.chia_wallet_service; } });
70
72
  Object.defineProperty(exports, "add_key", { enumerable: true, get: function () { return index_4.add_key; } });
@@ -213,6 +215,7 @@ Object.defineProperty(exports, "verify_offer", { enumerable: true, get: function
213
215
  Object.defineProperty(exports, "cancel_offer_dl", { enumerable: true, get: function () { return index_5.cancel_offer; } });
214
216
  Object.defineProperty(exports, "get_sync_status_dl", { enumerable: true, get: function () { return index_5.get_sync_status; } });
215
217
  Object.defineProperty(exports, "check_plugins", { enumerable: true, get: function () { return index_5.check_plugins; } });
218
+ Object.defineProperty(exports, "clear_pending_roots", { enumerable: true, get: function () { return index_5.clear_pending_roots; } });
216
219
  var index_6 = require("./crawler/index");
217
220
  Object.defineProperty(exports, "chia_crawler_service", { enumerable: true, get: function () { return index_6.chia_crawler_service; } });
218
221
  Object.defineProperty(exports, "get_ips_after_timestamp", { enumerable: true, get: function () { return index_6.get_ips_after_timestamp; } });
@@ -423,8 +423,8 @@ export declare type TSendTransactionRequest = {
423
423
  memos?: str[];
424
424
  min_coin_amount?: uint64;
425
425
  max_coin_amount?: uint64;
426
- exclude_coin_amounts?: uint64[];
427
- exclude_coin_ids?: str[];
426
+ excluded_coin_amounts?: uint64[];
427
+ excluded_coin_ids?: str[];
428
428
  puzzle_decorator?: Array<{
429
429
  decorator: str;
430
430
  clawback_timelock?: uint64;
@@ -512,6 +512,8 @@ export declare type TGetFarmedAmountResponse = {
512
512
  farmer_reward_amount: int;
513
513
  fee_amount: int;
514
514
  last_height_farmed: int;
515
+ last_time_farmed: uint32;
516
+ blocks_won: uint32;
515
517
  };
516
518
  export declare type WsGetFarmedAmountMessage = GetMessageType<chia_wallet_service, get_farmed_amount_command, TGetFarmedAmountResponse>;
517
519
  export declare function get_farmed_amount<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFarmedAmountResponse, WsGetFarmedAmountMessage>>;
@@ -538,9 +540,9 @@ export declare type TCreateSignedTransactionRequest = {
538
540
  fee?: uint64;
539
541
  min_coin_amount?: uint64;
540
542
  max_coin_amount?: uint64;
541
- exclude_coin_amounts?: uint64[];
543
+ excluded_coin_amounts?: uint64[];
542
544
  coins?: Coin[];
543
- exclude_coins?: Coin[];
545
+ excluded_coins?: Coin[];
544
546
  coin_announcements?: TCoinAnnouncement[];
545
547
  puzzle_announcements?: TPuzzleAnnouncement[];
546
548
  };
@@ -787,8 +789,8 @@ export declare type TCatSpendRequest = {
787
789
  coins?: Coin[];
788
790
  min_coin_amount?: uint64;
789
791
  max_coin_amount?: uint64;
790
- exclude_coin_amounts?: uint64[];
791
- exclude_coin_ids?: str[];
792
+ excluded_coin_amounts?: uint64[];
793
+ excluded_coin_ids?: str[];
792
794
  reuse_puzhash?: bool;
793
795
  extra_delta?: int;
794
796
  tail_reveal?: str;
@@ -1171,6 +1173,9 @@ export declare const did_find_lost_did_command = "did_find_lost_did";
1171
1173
  export declare type did_find_lost_did_command = typeof did_find_lost_did_command;
1172
1174
  export declare type TDidFindLostDidRequest = {
1173
1175
  coin_id: str;
1176
+ recovery_list_hash?: str;
1177
+ num_verification?: int;
1178
+ metadata?: Record<str, any>;
1174
1179
  };
1175
1180
  export declare type TDidFindLostDidResponse = {
1176
1181
  success: False;
@@ -49,7 +49,7 @@ export declare type TCommonPlottingParams = {
49
49
  };
50
50
  export declare type TChiaPosParams = {
51
51
  plotter: "chiapos";
52
- t2: str;
52
+ t2?: str;
53
53
  b: int;
54
54
  u: int;
55
55
  a?: int;
@@ -62,6 +62,7 @@ export declare type TBladeBitRamParams = {
62
62
  w?: bool;
63
63
  m?: bool;
64
64
  no_cpu_affinity?: bool;
65
+ compress?: int;
65
66
  };
66
67
  export declare type TBladeBitDiskParams = {
67
68
  plotter: "bladebit";
@@ -69,6 +70,7 @@ export declare type TBladeBitDiskParams = {
69
70
  w?: bool;
70
71
  m?: bool;
71
72
  no_cpu_affinity?: bool;
73
+ compress?: int;
72
74
  t1: str;
73
75
  t2?: str;
74
76
  u?: int;
@@ -82,6 +84,17 @@ export declare type TBladeBitDiskParams = {
82
84
  no_t1_direct?: bool;
83
85
  no_t2_direct?: bool;
84
86
  };
87
+ export declare type TBladeBitCudaParams = {
88
+ plotter: "bladebit";
89
+ plot_type: "cudaplot";
90
+ w?: bool;
91
+ m?: bool;
92
+ no_cpu_affinity?: bool;
93
+ compress?: int;
94
+ device?: int;
95
+ t?: str;
96
+ t2?: str;
97
+ };
85
98
  export declare type TMadMaxParams = {
86
99
  plotter: "madmax";
87
100
  t2: str;
@@ -91,7 +104,7 @@ export declare type TMadMaxParams = {
91
104
  K?: int;
92
105
  G?: bool;
93
106
  };
94
- export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitRamParams | TBladeBitDiskParams | TMadMaxParams);
107
+ export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitRamParams | TBladeBitDiskParams | TBladeBitCudaParams | TMadMaxParams);
95
108
  export declare type TStartPlottingResponse = {
96
109
  success: bool;
97
110
  ids: str[];
@@ -489,6 +502,51 @@ export declare type TGetPlottersResponse = {
489
502
  };
490
503
  export declare type WsGetPlottersMessage = GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse>;
491
504
  export declare function get_plotters(daemon: TDaemon): Promise<WsGetPlottersMessage>;
505
+ export declare const get_routes_command = "get_routes";
506
+ export declare type get_routes_command = typeof get_routes_command;
507
+ export declare type TGetRoutesResponse = {
508
+ success: True;
509
+ routes: str[];
510
+ };
511
+ export declare type WsGetRoutesMessage = GetMessageType<daemon_service, get_routes_command, TGetRoutesResponse>;
512
+ export declare function get_routes(daemon: TDaemon): Promise<WsGetRoutesMessage>;
513
+ export declare const get_wallet_addresses_command = "get_wallet_addresses";
514
+ export declare type get_wallet_addresses_command = typeof get_wallet_addresses_command;
515
+ export declare type TGetWalletAddressesRequest = {
516
+ fingerprints?: uint32[];
517
+ index?: int;
518
+ count?: int;
519
+ non_observer_derivation?: bool;
520
+ };
521
+ export declare type TGetWalletAddressesResponse = {
522
+ success: False;
523
+ error: str;
524
+ } | {
525
+ success: True;
526
+ wallet_addresses: Record<str, Array<{
527
+ address: str;
528
+ hd_path: str;
529
+ }>>;
530
+ };
531
+ export declare type WsGetWalletAddressesMessage = GetMessageType<daemon_service, get_wallet_addresses_command, TGetWalletAddressesResponse>;
532
+ export declare function get_wallet_addresses(daemon: TDaemon, data: TGetWalletAddressesRequest): Promise<WsGetWalletAddressesMessage>;
533
+ export declare const get_keys_for_plotting_command = "get_keys_for_plotting";
534
+ export declare type get_keys_for_plotting_command = typeof get_keys_for_plotting_command;
535
+ export declare type TGetKeysForPlottingRequest = {
536
+ fingerprints?: uint32[];
537
+ };
538
+ export declare type TGetKeysForPlottingResponse = {
539
+ success: False;
540
+ error: str;
541
+ } | {
542
+ success: True;
543
+ keys: Record<str, {
544
+ farmer_public_key: str;
545
+ pool_public_key: str;
546
+ }>;
547
+ };
548
+ export declare type WsGetKeysForPlottingMessage = GetMessageType<daemon_service, get_keys_for_plotting_command, TGetKeysForPlottingResponse>;
549
+ export declare function get_keys_for_plotting(daemon: TDaemon, data: TGetKeysForPlottingRequest): Promise<WsGetKeysForPlottingMessage>;
492
550
  export declare const keyring_status_changed_command = "keyring_status_changed";
493
551
  export declare type keyring_status_changed_command = typeof keyring_status_changed_command;
494
552
  export declare type TKeyringStatusChangedBroadCast = {
@@ -496,4 +554,4 @@ export declare type TKeyringStatusChangedBroadCast = {
496
554
  };
497
555
  export declare type WsKeyringStatusChangedMessage = GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
498
556
  export declare function on_keyring_status_changed(daemon: TDaemon, callback: (e: WsKeyringStatusChangedMessage) => unknown): Promise<() => void>;
499
- export declare type WsDaemonMessage = WsExitMessage | WsGetStatusMessage | WsGetVersionMessage | WsGetPlottersMessage | WsRunningServicesMessage | WsIsRunningMessage | WsPingMessage | WsRegisterServiceMessage | WsStartPlottingMessage | WsStartServiceMessage | WsStopPlottingMessage | WsStopServiceMessage | WsAddPrivateKeyMessage | WsCheckKeysMessage | WsDeleteAllKeysMessage | WsDeleteKeyByFingerprintMessage | WsGetAllPrivateKeysMessage | WsGetFirstPrivateKeyMessage | WsGetKeyForFingerprintMessage | WsGetKeyMessage | WsGetKeysMessage | WsSetLabelMessage | WsDeleteLabelMessage | WsIsKeyringLockedMessage | WsKeyringStateMessage | WsUnlockKeyringMessage | WsValidateKeyringPassphraseMessage | WsMigrateKeyringMessage | WsSetKeyringPassphraseMessage | WsRemoveKeyringPassphraseMessage | WsNotifyKeyringMigrationCompletedMessage | WsKeyringStatusChangedMessage;
557
+ export declare type WsDaemonMessage = WsExitMessage | WsGetStatusMessage | WsGetVersionMessage | WsGetPlottersMessage | WsRunningServicesMessage | WsIsRunningMessage | WsPingMessage | WsRegisterServiceMessage | WsStartPlottingMessage | WsStartServiceMessage | WsStopPlottingMessage | WsStopServiceMessage | WsAddPrivateKeyMessage | WsCheckKeysMessage | WsDeleteAllKeysMessage | WsDeleteKeyByFingerprintMessage | WsGetAllPrivateKeysMessage | WsGetFirstPrivateKeyMessage | WsGetKeyForFingerprintMessage | WsGetKeyMessage | WsGetKeysMessage | WsSetLabelMessage | WsDeleteLabelMessage | WsIsKeyringLockedMessage | WsKeyringStateMessage | WsUnlockKeyringMessage | WsValidateKeyringPassphraseMessage | WsMigrateKeyringMessage | WsSetKeyringPassphraseMessage | WsRemoveKeyringPassphraseMessage | WsNotifyKeyringMigrationCompletedMessage | WsGetRoutesMessage | WsGetWalletAddressesMessage | WsGetKeysForPlottingMessage | WsKeyringStatusChangedMessage;
@@ -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.remove_keyring_passphrase_command = exports.set_keyring_passphrase = exports.set_keyring_passphrase_command = exports.migrate_keyring = exports.migrate_keyring_command = exports.validate_keyring_passphrase = exports.validate_keyring_passphrase_command = exports.unlock_keyring = exports.unlock_keyring_command = exports.keyring_status = exports.keyring_status_command = exports.is_keyring_locked = exports.is_keyring_locked_command = exports.delete_label = exports.delete_label_command = exports.set_label = exports.set_label_command = exports.get_keys = exports.get_keys_command = exports.get_key = exports.get_key_command = exports.get_key_for_fingerprint = exports.get_key_for_fingerprint_command = exports.get_first_private_key = exports.get_first_private_key_command = exports.get_all_private_keys = exports.get_all_private_keys_command = exports.delete_key_by_fingerprint = exports.delete_key_by_fingerprint_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_keys = exports.check_keys_command = exports.add_private_key = exports.add_private_key_command = exports.is_running = exports.is_running_command = exports.running_services = exports.running_services_command = exports.stop_service = exports.stop_service_command = exports.stop_plotting = exports.stop_plotting_command = exports.start_plotting = exports.start_plotting_command = exports.start_service = exports.start_service_command = exports.ping = exports.ping_command = exports.daemon_service = void 0;
13
- exports.on_keyring_status_changed = exports.keyring_status_changed_command = exports.get_plotters = exports.get_plotters_command = exports.get_version = exports.get_version_command = exports.get_status = exports.get_status_command = exports.register_service = exports.register_service_command = exports.exit = exports.exit_command = exports.notify_keyring_migration_completed = exports.notify_keyring_migration_completed_command = exports.remove_keyring_passphrase = void 0;
13
+ exports.on_keyring_status_changed = exports.keyring_status_changed_command = exports.get_keys_for_plotting = exports.get_keys_for_plotting_command = exports.get_wallet_addresses = exports.get_wallet_addresses_command = exports.get_routes = exports.get_routes_command = exports.get_plotters = exports.get_plotters_command = exports.get_version = exports.get_version_command = exports.get_status = exports.get_status_command = exports.register_service = exports.register_service_command = exports.exit = exports.exit_command = exports.notify_keyring_migration_completed = exports.notify_keyring_migration_completed_command = exports.remove_keyring_passphrase = void 0;
14
14
  // The daemon service currently does not provide state_change event as of v1.1.5.
15
15
  const types_1 = require("../../types");
16
16
  exports.daemon_service = "daemon";
@@ -231,6 +231,27 @@ function get_plotters(daemon) {
231
231
  });
232
232
  }
233
233
  exports.get_plotters = get_plotters;
234
+ exports.get_routes_command = "get_routes";
235
+ function get_routes(daemon) {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ return daemon.sendMessage(exports.daemon_service, exports.get_routes_command);
238
+ });
239
+ }
240
+ exports.get_routes = get_routes;
241
+ exports.get_wallet_addresses_command = "get_wallet_addresses";
242
+ function get_wallet_addresses(daemon, data) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ return daemon.sendMessage(exports.daemon_service, exports.get_wallet_addresses_command, data);
245
+ });
246
+ }
247
+ exports.get_wallet_addresses = get_wallet_addresses;
248
+ exports.get_keys_for_plotting_command = "get_keys_for_plotting";
249
+ function get_keys_for_plotting(daemon, data) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ return daemon.sendMessage(exports.daemon_service, exports.get_keys_for_plotting_command, data);
252
+ });
253
+ }
254
+ exports.get_keys_for_plotting = get_keys_for_plotting;
234
255
  //// From here subscribe/listen style APIs ////
235
256
  exports.keyring_status_changed_command = "keyring_status_changed";
236
257
  function on_keyring_status_changed(daemon, callback) {
@@ -1,7 +1,7 @@
1
1
  import { ProofOfSpace } from "../../chia/types/blockchain_format/proof_of_space";
2
2
  import { DeclareProofOfSpace, NewSignagePoint } from "../../chia/protocols/farmer_protocol";
3
3
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
4
- import { bool, float, str, uint32, uint64 } from "../../chia/types/_python_types_";
4
+ import { bool, float, Optional, str, uint32, uint64 } from "../../chia/types/_python_types_";
5
5
  import { TDaemon } from "../../../daemon/index";
6
6
  import { GetMessageType, TConnectionGeneral } from "../../types";
7
7
  import { Receiver } from "../../chia/plot-sync/receiver";
@@ -24,6 +24,8 @@ export declare type TNewFarmingInfoBroadCast = {
24
24
  proofs: uint32;
25
25
  total_plots: uint32;
26
26
  timestamp: uint64;
27
+ node_id: bytes32;
28
+ lookup_time: uint64;
27
29
  };
28
30
  };
29
31
  export declare type WsNewFarmingInfoMessage = GetMessageType<chia_farmer_service, new_farming_info_command, TNewFarmingInfoBroadCast>;
@@ -33,6 +35,7 @@ export declare type new_signage_point_command = typeof new_signage_point_command
33
35
  export declare type TNewSignagePointBroadCast = {
34
36
  proofs: ProofOfSpace[];
35
37
  signage_point: NewSignagePoint;
38
+ missing_signage_points: Optional<[uint64, uint32]>;
36
39
  };
37
40
  export declare type WsNewSignagePointMessage = GetMessageType<chia_farmer_service, new_signage_point_command, TNewSignagePointBroadCast>;
38
41
  export declare function on_new_signage_point(daemon: TDaemon, callback: (e: WsNewSignagePointMessage) => unknown): Promise<() => void>;
@@ -67,6 +70,13 @@ export declare type TSubmittedPartialBroadCast = {
67
70
  };
68
71
  export declare type WsSubmittedPartialMessage = GetMessageType<chia_farmer_service, submitted_partial_command, TSubmittedPartialBroadCast>;
69
72
  export declare function on_submitted_partial(daemon: TDaemon, callback: (e: WsSubmittedPartialMessage) => unknown): Promise<() => void>;
73
+ export declare const failed_partial_command = "failed_partial";
74
+ export declare type failed_partial_command = typeof failed_partial_command;
75
+ export declare type TFailedPartialBroadCast = {
76
+ p2_singleton_puzzle_hash: str;
77
+ };
78
+ export declare type WsFailedPartialMessage = GetMessageType<chia_farmer_service, failed_partial_command, TFailedPartialBroadCast>;
79
+ export declare function on_failed_partial(daemon: TDaemon, callback: (e: WsFailedPartialMessage) => unknown): Promise<() => void>;
70
80
  export declare const add_connection_command = "add_connection";
71
81
  export declare type add_connection_command = typeof add_connection_command;
72
82
  export declare type TAddConnectionBroadCast = {};
@@ -77,7 +87,7 @@ export declare type close_connection_command = typeof close_connection_command;
77
87
  export declare type TCloseConnectionBroadCast = {};
78
88
  export declare type WsCloseConnectionMessage = GetMessageType<chia_farmer_service, close_connection_command, TCloseConnectionBroadCast>;
79
89
  export declare function on_close_connection(daemon: TDaemon, callback: (e: WsCloseConnectionMessage) => unknown): Promise<() => void>;
80
- export declare type WsFarmerMessage = WsGetConnectionFarmerMessage | WsNewFarmingInfoMessage | WsNewSignagePointMessage | WsHarvesterUpdateMessage | WsHarvesterRemovedMessage | WsProofMessage | WsSubmittedPartialMessage | WsAddConnectionMessage | WsCloseConnectionMessage;
90
+ export declare type WsFarmerMessage = WsGetConnectionFarmerMessage | WsNewFarmingInfoMessage | WsNewSignagePointMessage | WsHarvesterUpdateMessage | WsHarvesterRemovedMessage | WsProofMessage | WsSubmittedPartialMessage | WsFailedPartialMessage | WsAddConnectionMessage | WsCloseConnectionMessage;
81
91
  export declare type chia_farmer_commands = get_connections_command | new_farming_info_command | new_signage_point_command | harvester_update_command | harvester_removed_command | proof_command | submitted_partial_command | add_connection_command | close_connection_command;
82
92
  export declare type TChiaFarmerBroadcast = TGetConnectionsBroadCast | TNewFarmingInfoBroadCast | TNewSignagePointBroadCast | THarvesterUpdateBroadCast | THarvesterRemovedBroadCast | TProofBroadCast | TSubmittedPartialBroadCast | TAddConnectionBroadCast | TCloseConnectionBroadCast;
83
93
  export declare function on_message_from_farmer(daemon: TDaemon, callback: (e: WsFarmerMessage) => unknown): Promise<() => void>;
@@ -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.on_message_from_farmer = exports.on_close_connection = exports.close_connection_command = exports.on_add_connection = exports.add_connection_command = exports.on_submitted_partial = exports.submitted_partial_command = exports.on_proof = exports.proof_command = exports.on_harvester_removed = exports.harvester_removed_command = exports.on_harvester_update = exports.harvester_update_command = exports.on_new_signage_point = exports.new_signage_point_command = exports.on_new_farming_info = exports.new_farming_info_command = exports.on_get_connections = exports.get_connections_command = exports.chia_farmer_service = void 0;
12
+ exports.on_message_from_farmer = exports.on_close_connection = exports.close_connection_command = exports.on_add_connection = exports.add_connection_command = exports.on_failed_partial = exports.failed_partial_command = exports.on_submitted_partial = exports.submitted_partial_command = exports.on_proof = exports.proof_command = exports.on_harvester_removed = exports.harvester_removed_command = exports.on_harvester_update = exports.harvester_update_command = exports.on_new_signage_point = exports.new_signage_point_command = exports.on_new_farming_info = exports.new_farming_info_command = exports.on_get_connections = exports.get_connections_command = exports.chia_farmer_service = void 0;
13
13
  const types_1 = require("../../types");
14
14
  exports.chia_farmer_service = "chia_farmer";
15
15
  exports.get_connections_command = "get_connections";
@@ -103,6 +103,19 @@ function on_submitted_partial(daemon, callback) {
103
103
  });
104
104
  }
105
105
  exports.on_submitted_partial = on_submitted_partial;
106
+ exports.failed_partial_command = "failed_partial";
107
+ function on_failed_partial(daemon, callback) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ yield daemon.subscribe(types_1.metrics_service);
110
+ const messageListener = (e) => {
111
+ if (e.origin === exports.chia_farmer_service && e.command === exports.failed_partial_command) {
112
+ callback(e);
113
+ }
114
+ };
115
+ return daemon.addMessageListener(exports.chia_farmer_service, messageListener);
116
+ });
117
+ }
118
+ exports.on_failed_partial = on_failed_partial;
106
119
  exports.add_connection_command = "add_connection";
107
120
  function on_add_connection(daemon, callback) {
108
121
  return __awaiter(this, void 0, void 0, function* () {
package/api/ws/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { WsFarmerMessage } from "./farmer/index";
2
- export { chia_farmer_service, TChiaFarmerBroadcast, TGetConnectionsBroadCast as TGetConnectionsFarmerBroadCast, TNewSignagePointBroadCast, TNewFarmingInfoBroadCast, THarvesterUpdateBroadCast, THarvesterRemovedBroadCast, TProofBroadCast, TSubmittedPartialBroadCast, TAddConnectionBroadCast, TCloseConnectionBroadCast, on_message_from_farmer, on_get_connections as on_get_connections_farmer, on_new_farming_info, on_new_signage_point, on_harvester_update, on_harvester_removed, on_proof, on_submitted_partial, on_add_connection, on_close_connection, } from "./farmer/index";
2
+ export { chia_farmer_service, TChiaFarmerBroadcast, TGetConnectionsBroadCast as TGetConnectionsFarmerBroadCast, TNewSignagePointBroadCast, TNewFarmingInfoBroadCast, THarvesterUpdateBroadCast, THarvesterRemovedBroadCast, TProofBroadCast, TSubmittedPartialBroadCast, TFailedPartialBroadCast, TAddConnectionBroadCast, TCloseConnectionBroadCast, on_message_from_farmer, on_get_connections as on_get_connections_farmer, on_new_farming_info, on_new_signage_point, on_harvester_update, on_harvester_removed, on_proof, on_submitted_partial, on_failed_partial, on_add_connection, on_close_connection, } from "./farmer/index";
3
3
  import type { WsFullNodeMessage } from "./full_node/index";
4
4
  export { chia_full_node_service, TChiaFullNodeBroadcast, TGetConnectionsBroadCast as TGetConnectionsFullNodeBroadCast, TGetBlockchainStateBroadCast, TBlockBroadCast, TSignagePointBroadCast, on_message_from_full_node, on_get_connections as on_get_connections_full_node, on_get_blockchain_state, on_block, on_signage_point, } from "./full_node/index";
5
5
  import type { WsHarvesterMessage } from "./harvester/index";
@@ -13,5 +13,5 @@ export { chia_crawler_service, TLoadedInitialPeersBroadCast, TCrawlBatchComplete
13
13
  import type { WsTimelordMessage } from "./timelord/index";
14
14
  export { chia_timelord_service, TFinishedPotBroadCast, TNewCompactProofBroadCast, TSkippingPeakBroadCast, TNewPeakBroadCast, on_finished_pot, on_new_compact_proof, on_skipping_peak, on_new_peak, } from "./timelord/index";
15
15
  import type { WsDaemonMessage } from "./daemon/index";
16
- export { daemon_service, register_service, TRegisterServiceRequest, TRegisterServiceResponse, start_service, TStartServiceRequest, TStartServiceResponse, start_plotting, TStartPlottingResponse, TStartPlottingRequest, stop_service, TStopServiceResponse, TStopServiceRequest, stop_plotting, TStopPlottingRequest, TStopPlottingResponse, exit, TExitRequest, TExitResponse, get_status, TGetStatusRequest, TGetStatusResponse, get_version, TGetVersionRequest, TGetVersionResponse, get_plotters, TGetPlottersRequest, TGetPlottersResponse, running_services, TRunningServicesResponse, is_running, TIsRunningRequest, TIsRunningResponse, add_private_key, TAddPrivateKeyRequest, TAddPrivateKeyResponse, check_keys, TCheckKeysRequest, TCheckKeysResponse, delete_all_keys, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_key_by_fingerprint, TDeleteKeyByFingerprintRequest, TDeleteKeyByFingerprintResponse, get_all_private_keys, TGetAllPrivateKeysRequest, TGetAllPrivateKeysResponse, get_first_private_key, TGetFirstPrivateKeyRequest, TGetFirstPrivateKeyResponse, get_key_for_fingerprint, TGetKeyForFingerprintRequest, TGetKeyForFingerprintResponse, get_key, TGetKeyRequest, TGetKeyResponse, get_keys, TGetKeysRequest, TGetKeysResponse, set_label, TSetLabelRequest, TSetLabelResponse, delete_label, TDeleteLabelRequest, TDeleteLabelResponse, is_keyring_locked, TIsKeyringLockedResponse, on_keyring_status_changed, TKeyringStatusChangedBroadCast, keyring_status, TKeyringStatusResponse, unlock_keyring, TUnlockKeyringRequest, TUnlockKeyringResponse, migrate_keyring, TMigrateKeyringRequest, TMigrateKeyringResponse, set_keyring_passphrase, TSetKeyringPassphraseRequest, TSetKeyringPassphraseResponse, remove_keyring_passphrase, TRemoveKeyringPassphraseRequest, TRemoveKeyringPassphraseResponse, notify_keyring_migration_completed, TNotifyKeyringMigrationCompletedRequest, TNotifyKeyringMigrationCompletedResponse, ping, TPingRequest, TPingResponse, validate_keyring_passphrase, TValidateKeyringPassphraseRequest, TValidateKeyringPassphraseResponse, TPlotQueue, } from "./daemon/index";
16
+ export { daemon_service, register_service, TRegisterServiceRequest, TRegisterServiceResponse, start_service, TStartServiceRequest, TStartServiceResponse, start_plotting, TStartPlottingResponse, TStartPlottingRequest, stop_service, TStopServiceResponse, TStopServiceRequest, stop_plotting, TStopPlottingRequest, TStopPlottingResponse, exit, TExitRequest, TExitResponse, get_status, TGetStatusRequest, TGetStatusResponse, get_version, TGetVersionRequest, TGetVersionResponse, get_plotters, TGetPlottersRequest, TGetPlottersResponse, running_services, TRunningServicesResponse, is_running, TIsRunningRequest, TIsRunningResponse, add_private_key, TAddPrivateKeyRequest, TAddPrivateKeyResponse, check_keys, TCheckKeysRequest, TCheckKeysResponse, delete_all_keys, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_key_by_fingerprint, TDeleteKeyByFingerprintRequest, TDeleteKeyByFingerprintResponse, get_all_private_keys, TGetAllPrivateKeysRequest, TGetAllPrivateKeysResponse, get_first_private_key, TGetFirstPrivateKeyRequest, TGetFirstPrivateKeyResponse, get_key_for_fingerprint, TGetKeyForFingerprintRequest, TGetKeyForFingerprintResponse, get_key, TGetKeyRequest, TGetKeyResponse, get_keys, TGetKeysRequest, TGetKeysResponse, set_label, TSetLabelRequest, TSetLabelResponse, delete_label, TDeleteLabelRequest, TDeleteLabelResponse, is_keyring_locked, TIsKeyringLockedResponse, on_keyring_status_changed, TKeyringStatusChangedBroadCast, keyring_status, TKeyringStatusResponse, unlock_keyring, TUnlockKeyringRequest, TUnlockKeyringResponse, migrate_keyring, TMigrateKeyringRequest, TMigrateKeyringResponse, set_keyring_passphrase, TSetKeyringPassphraseRequest, TSetKeyringPassphraseResponse, remove_keyring_passphrase, TRemoveKeyringPassphraseRequest, TRemoveKeyringPassphraseResponse, notify_keyring_migration_completed, TNotifyKeyringMigrationCompletedRequest, TNotifyKeyringMigrationCompletedResponse, ping, TPingRequest, TPingResponse, validate_keyring_passphrase, TValidateKeyringPassphraseRequest, TValidateKeyringPassphraseResponse, TPlotQueue, get_routes, TGetRoutesResponse, get_wallet_addresses, TGetWalletAddressesRequest, TGetWalletAddressesResponse, get_keys_for_plotting, TGetKeysForPlottingRequest, TGetKeysForPlottingResponse, } from "./daemon/index";
17
17
  export declare type WsMessage = WsFarmerMessage | WsFullNodeMessage | WsHarvesterMessage | WsWalletMessage | WsPlotsMessage | WsCrawlerMessage | WsTimelordMessage | WsDaemonMessage;
package/api/ws/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exit = exports.stop_plotting = exports.stop_service = exports.start_plotting = exports.start_service = exports.register_service = exports.daemon_service = exports.on_new_peak = exports.on_skipping_peak = exports.on_new_compact_proof = exports.on_finished_pot = exports.chia_timelord_service = exports.on_crawl_batch_completed = exports.on_loaded_initial_peers = exports.chia_crawler_service = exports.on_state_changed_of_plots = exports.state_changed_command_of_plots = exports.chia_plotter_service = exports.on_message_from_wallet = exports.on_close_connection_wallet = exports.on_add_connection_wallet = exports.on_coin_added = exports.on_state_changed_of_wallet = exports.on_sync_changed = exports.on_get_connections_wallet = exports.chia_wallet_service = exports.on_close_connection_harvester = exports.on_add_connection_harvester = exports.on_farming_info = exports.on_get_plots = exports.on_get_connections_harvester = exports.on_message_from_harvester = exports.chia_harvester_service = exports.on_signage_point = exports.on_block = exports.on_get_blockchain_state = exports.on_get_connections_full_node = exports.on_message_from_full_node = exports.chia_full_node_service = exports.on_close_connection = exports.on_add_connection = exports.on_submitted_partial = exports.on_proof = exports.on_harvester_removed = exports.on_harvester_update = exports.on_new_signage_point = exports.on_new_farming_info = exports.on_get_connections_farmer = exports.on_message_from_farmer = exports.chia_farmer_service = void 0;
4
- exports.validate_keyring_passphrase = exports.ping = exports.notify_keyring_migration_completed = exports.remove_keyring_passphrase = exports.set_keyring_passphrase = exports.migrate_keyring = exports.unlock_keyring = exports.keyring_status = exports.on_keyring_status_changed = exports.is_keyring_locked = exports.delete_label = exports.set_label = exports.get_keys = exports.get_key = exports.get_key_for_fingerprint = exports.get_first_private_key = exports.get_all_private_keys = exports.delete_key_by_fingerprint = exports.delete_all_keys = exports.check_keys = exports.add_private_key = exports.is_running = exports.running_services = exports.get_plotters = exports.get_version = exports.get_status = void 0;
3
+ exports.stop_plotting = exports.stop_service = exports.start_plotting = exports.start_service = exports.register_service = exports.daemon_service = exports.on_new_peak = exports.on_skipping_peak = exports.on_new_compact_proof = exports.on_finished_pot = exports.chia_timelord_service = exports.on_crawl_batch_completed = exports.on_loaded_initial_peers = exports.chia_crawler_service = exports.on_state_changed_of_plots = exports.state_changed_command_of_plots = exports.chia_plotter_service = exports.on_message_from_wallet = exports.on_close_connection_wallet = exports.on_add_connection_wallet = exports.on_coin_added = exports.on_state_changed_of_wallet = exports.on_sync_changed = exports.on_get_connections_wallet = exports.chia_wallet_service = exports.on_close_connection_harvester = exports.on_add_connection_harvester = exports.on_farming_info = exports.on_get_plots = exports.on_get_connections_harvester = exports.on_message_from_harvester = exports.chia_harvester_service = exports.on_signage_point = exports.on_block = exports.on_get_blockchain_state = exports.on_get_connections_full_node = exports.on_message_from_full_node = exports.chia_full_node_service = exports.on_close_connection = exports.on_add_connection = exports.on_failed_partial = exports.on_submitted_partial = exports.on_proof = exports.on_harvester_removed = exports.on_harvester_update = exports.on_new_signage_point = exports.on_new_farming_info = exports.on_get_connections_farmer = exports.on_message_from_farmer = exports.chia_farmer_service = void 0;
4
+ exports.get_keys_for_plotting = exports.get_wallet_addresses = exports.get_routes = exports.validate_keyring_passphrase = exports.ping = exports.notify_keyring_migration_completed = exports.remove_keyring_passphrase = exports.set_keyring_passphrase = exports.migrate_keyring = exports.unlock_keyring = exports.keyring_status = exports.on_keyring_status_changed = exports.is_keyring_locked = exports.delete_label = exports.set_label = exports.get_keys = exports.get_key = exports.get_key_for_fingerprint = exports.get_first_private_key = exports.get_all_private_keys = exports.delete_key_by_fingerprint = exports.delete_all_keys = exports.check_keys = exports.add_private_key = exports.is_running = exports.running_services = exports.get_plotters = exports.get_version = exports.get_status = exports.exit = void 0;
5
5
  var index_1 = require("./farmer/index");
6
6
  Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
7
7
  Object.defineProperty(exports, "on_message_from_farmer", { enumerable: true, get: function () { return index_1.on_message_from_farmer; } });
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "on_harvester_update", { enumerable: true, get: f
12
12
  Object.defineProperty(exports, "on_harvester_removed", { enumerable: true, get: function () { return index_1.on_harvester_removed; } });
13
13
  Object.defineProperty(exports, "on_proof", { enumerable: true, get: function () { return index_1.on_proof; } });
14
14
  Object.defineProperty(exports, "on_submitted_partial", { enumerable: true, get: function () { return index_1.on_submitted_partial; } });
15
+ Object.defineProperty(exports, "on_failed_partial", { enumerable: true, get: function () { return index_1.on_failed_partial; } });
15
16
  Object.defineProperty(exports, "on_add_connection", { enumerable: true, get: function () { return index_1.on_add_connection; } });
16
17
  Object.defineProperty(exports, "on_close_connection", { enumerable: true, get: function () { return index_1.on_close_connection; } });
17
18
  var index_2 = require("./full_node/index");
@@ -86,3 +87,6 @@ Object.defineProperty(exports, "remove_keyring_passphrase", { enumerable: true,
86
87
  Object.defineProperty(exports, "notify_keyring_migration_completed", { enumerable: true, get: function () { return index_8.notify_keyring_migration_completed; } });
87
88
  Object.defineProperty(exports, "ping", { enumerable: true, get: function () { return index_8.ping; } });
88
89
  Object.defineProperty(exports, "validate_keyring_passphrase", { enumerable: true, get: function () { return index_8.validate_keyring_passphrase; } });
90
+ Object.defineProperty(exports, "get_routes", { enumerable: true, get: function () { return index_8.get_routes; } });
91
+ Object.defineProperty(exports, "get_wallet_addresses", { enumerable: true, get: function () { return index_8.get_wallet_addresses; } });
92
+ Object.defineProperty(exports, "get_keys_for_plotting", { enumerable: true, get: function () { return index_8.get_keys_for_plotting; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chia-agent",
3
- "version": "12.1.0",
3
+ "version": "13.0.1",
4
4
  "author": "ChiaMineJP <admin@chiamine.jp>",
5
5
  "description": "chia rpc/websocket client library",
6
6
  "license": "MIT",