chia-agent 9.2.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,10 +9,11 @@ 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_transaction_count_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.farm_block = exports.farm_block_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
13
- exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = void 0;
14
- exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_create_backup_file = exports.did_create_backup_file_command = exports.did_get_current_coin_info = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery = exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = void 0;
15
- exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = void 0;
12
+ exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.farm_block = exports.farm_block_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
13
+ exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.send_transaction_multi = void 0;
14
+ exports.nft_mint_nft_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = exports.did_find_lost_did_command = exports.did_get_info = exports.did_get_info_command = exports.did_message_spend = exports.did_message_spend_command = exports.did_create_backup_file = exports.did_create_backup_file_command = exports.did_get_current_coin_info = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery = exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = void 0;
15
+ exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_transfer_bulk = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk = exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_mint_nft = void 0;
16
+ exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = void 0;
16
17
  exports.chia_wallet_service = "chia_wallet";
17
18
  // # Key management
18
19
  exports.log_in_command = "log_in";
@@ -114,6 +115,13 @@ function farm_block(agent, data) {
114
115
  });
115
116
  }
116
117
  exports.farm_block = farm_block;
118
+ exports.get_timestamp_for_height_command = "get_timestamp_for_height";
119
+ function get_timestamp_for_height(agent) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command);
122
+ });
123
+ }
124
+ exports.get_timestamp_for_height = get_timestamp_for_height;
117
125
  exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
118
126
  function get_initial_freeze_period_of_wallet(agent) {
119
127
  return __awaiter(this, void 0, void 0, function* () {
@@ -221,6 +229,20 @@ function select_coins(agent, data) {
221
229
  });
222
230
  }
223
231
  exports.select_coins = select_coins;
232
+ exports.get_spendable_coins_command = "get_spendable_coins";
233
+ function get_spendable_coins(agent, data) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ return agent.sendMessage(exports.chia_wallet_service, exports.get_spendable_coins_command, data);
236
+ });
237
+ }
238
+ exports.get_spendable_coins = get_spendable_coins;
239
+ exports.get_coin_records_by_names_command = "get_coin_records_by_names";
240
+ function get_coin_records_by_names(agent, data) {
241
+ return __awaiter(this, void 0, void 0, function* () {
242
+ return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_by_names_command, data);
243
+ });
244
+ }
245
+ exports.get_coin_records_by_names = get_coin_records_by_names;
224
246
  exports.get_current_derivation_index_command = "get_current_derivation_index";
225
247
  function get_current_derivation_index(agent) {
226
248
  return __awaiter(this, void 0, void 0, function* () {
@@ -256,6 +278,13 @@ function send_notification(agent, data) {
256
278
  });
257
279
  }
258
280
  exports.send_notification = send_notification;
281
+ exports.verify_signature_command = "verify_signature";
282
+ function verify_signature(agent, data) {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ return agent.sendMessage(exports.chia_wallet_service, exports.verify_signature_command, data);
285
+ });
286
+ }
287
+ exports.verify_signature = verify_signature;
259
288
  exports.sign_message_by_address_command = "sign_message_by_address";
260
289
  function sign_message_by_address(agent, data) {
261
290
  return __awaiter(this, void 0, void 0, function* () {
@@ -483,6 +512,27 @@ function did_create_backup_file(agent, data) {
483
512
  });
484
513
  }
485
514
  exports.did_create_backup_file = did_create_backup_file;
515
+ exports.did_message_spend_command = "did_message_spend";
516
+ function did_message_spend(agent, data) {
517
+ return __awaiter(this, void 0, void 0, function* () {
518
+ return agent.sendMessage(exports.chia_wallet_service, exports.did_message_spend_command, data);
519
+ });
520
+ }
521
+ exports.did_message_spend = did_message_spend;
522
+ exports.did_get_info_command = "did_get_info";
523
+ function did_get_info(agent, data) {
524
+ return __awaiter(this, void 0, void 0, function* () {
525
+ return agent.sendMessage(exports.chia_wallet_service, exports.did_get_info_command, data);
526
+ });
527
+ }
528
+ exports.did_get_info = did_get_info;
529
+ exports.did_find_lost_did_command = "did_find_lost_did";
530
+ function did_find_lost_did(agent, data) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ return agent.sendMessage(exports.chia_wallet_service, exports.did_find_lost_did_command, data);
533
+ });
534
+ }
535
+ exports.did_find_lost_did = did_find_lost_did;
486
536
  exports.did_transfer_did_command = "did_transfer_did";
487
537
  function did_transfer_did(agent, data) {
488
538
  return __awaiter(this, void 0, void 0, function* () {
@@ -512,6 +562,20 @@ function nft_set_nft_did(agent, data) {
512
562
  });
513
563
  }
514
564
  exports.nft_set_nft_did = nft_set_nft_did;
565
+ exports.nft_set_did_bulk_command = "nft_set_did_bulk";
566
+ function nft_set_did_bulk(agent, data) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_did_bulk_command, data);
569
+ });
570
+ }
571
+ exports.nft_set_did_bulk = nft_set_did_bulk;
572
+ exports.nft_transfer_bulk_command = "nft_transfer_bulk";
573
+ function nft_transfer_bulk(agent, data) {
574
+ return __awaiter(this, void 0, void 0, function* () {
575
+ return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_bulk_command, data);
576
+ });
577
+ }
578
+ exports.nft_transfer_bulk = nft_transfer_bulk;
515
579
  exports.nft_get_by_did_command = "nft_get_by_did";
516
580
  function nft_get_by_did(agent, data) {
517
581
  return __awaiter(this, void 0, void 0, function* () {
package/api/types.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { NodeType } from "./chia/server/outbound_message";
2
2
  import { float, int, str, uint16 } from "./chia/types/_python_types_";
3
3
  import { bytes32 } from "./chia/types/blockchain_format/sized_bytes";
4
+ import { TRPCAgent } from "../rpc/index";
5
+ import { TDaemon } from "../daemon/index";
4
6
  export declare type GetMessageType<O extends string, C extends string, D> = {
5
7
  origin: O;
6
8
  command: C;
@@ -9,6 +11,7 @@ export declare type GetMessageType<O extends string, C extends string, D> = {
9
11
  request_id: string;
10
12
  destination: string;
11
13
  };
14
+ export declare type ResType<T extends TRPCAgent | TDaemon, A, D> = T extends TRPCAgent ? A : D;
12
15
  export declare const wallet_ui_service = "wallet_ui";
13
16
  export declare const metrics_service = "metrics";
14
17
  export declare type TConnectionGeneral = {
@@ -9,7 +9,9 @@ export declare type TStateChangedBroadCastOfPlots = {
9
9
  state: "log_changed" | "state_changed";
10
10
  queue: TPlotQueue[];
11
11
  };
12
- export declare function on_state_changed_of_plots(daemon: TDaemon, callback: (e: GetMessageType<chia_plotter_service, state_changed_command_of_plots, TStateChangedBroadCastOfPlots>) => unknown): Promise<() => void>;
12
+ export declare type WsStateChangedPlotsMessage = GetMessageType<chia_plotter_service, state_changed_command_of_plots, TStateChangedBroadCastOfPlots>;
13
+ export declare function on_state_changed_of_plots(daemon: TDaemon, callback: (e: WsStateChangedPlotsMessage) => unknown): Promise<() => void>;
14
+ export declare type WsPlotsMessage = WsStateChangedPlotsMessage;
13
15
  export declare type chia_plots_create_commands = state_changed_command_of_plots;
14
16
  export declare type TChiaPlotsCreateBroadcast = TStateChangedBroadCastOfPlots;
15
- export declare function on_message_from_chia_plots_create(daemon: TDaemon, callback: (e: GetMessageType<chia_plotter_service, chia_plots_create_commands, TChiaPlotsCreateBroadcast>) => unknown): Promise<() => void>;
17
+ export declare function on_message_from_chia_plots_create(daemon: TDaemon, callback: (e: WsPlotsMessage) => unknown): Promise<() => void>;
@@ -16,10 +16,13 @@ export declare type loaded_initial_peers_command = typeof loaded_initial_peers_c
16
16
  export declare type TLoadedInitialPeersBroadCast = {
17
17
  peer_counts: TPeerCounts;
18
18
  };
19
- export declare function on_loaded_initial_peers(daemon: TDaemon, callback: (e: GetMessageType<chia_crawler_service, loaded_initial_peers_command, TLoadedInitialPeersBroadCast>) => unknown): Promise<() => void>;
19
+ export declare type WsLoadedInitialPeersMessage = GetMessageType<chia_crawler_service, loaded_initial_peers_command, TLoadedInitialPeersBroadCast>;
20
+ export declare function on_loaded_initial_peers(daemon: TDaemon, callback: (e: WsLoadedInitialPeersMessage) => unknown): Promise<() => void>;
20
21
  export declare const crawl_batch_completed_command = "crawl_batch_completed";
21
22
  export declare type crawl_batch_completed_command = typeof crawl_batch_completed_command;
22
23
  export declare type TCrawlBatchCompletedBroadCast = {
23
24
  peer_counts: TPeerCounts;
24
25
  };
25
- export declare function on_crawl_batch_completed(daemon: TDaemon, callback: (e: GetMessageType<chia_crawler_service, crawl_batch_completed_command, TCrawlBatchCompletedBroadCast>) => unknown): Promise<() => void>;
26
+ export declare type WsCrawlBatchCompletedMessage = GetMessageType<chia_crawler_service, crawl_batch_completed_command, TCrawlBatchCompletedBroadCast>;
27
+ export declare function on_crawl_batch_completed(daemon: TDaemon, callback: (e: WsCrawlBatchCompletedMessage) => unknown): Promise<() => void>;
28
+ export declare type WsCrawlerMessage = WsLoadedInitialPeersMessage | WsCrawlBatchCompletedMessage;
@@ -14,7 +14,8 @@ export declare type TPingResponse = {
14
14
  success: True;
15
15
  value: str;
16
16
  };
17
- export declare function ping(daemon: TDaemon): Promise<GetMessageType<"daemon", "ping", TPingResponse>>;
17
+ export declare type WsPingMessage = GetMessageType<daemon_service, ping_command, TPingResponse>;
18
+ export declare function ping(daemon: TDaemon): Promise<WsPingMessage>;
18
19
  export declare type TService = "chia" | "chia_wallet" | "chia_full_node" | "chia_harvester" | "chia_farmer" | "chia_introducer" | "chia_timelord" | "chia_timelord_launcher" | "chia_full_node_simulator";
19
20
  export declare const start_service_command = "start_service";
20
21
  export declare type start_service_command = typeof start_service_command;
@@ -27,7 +28,8 @@ export declare type TStartServiceResponse = {
27
28
  service: TService;
28
29
  error: Optional<str>;
29
30
  };
30
- export declare function start_service(daemon: TDaemon, data: TStartServiceRequest): Promise<GetMessageType<"daemon", "start_service", TStartServiceResponse>>;
31
+ export declare type WsStartServiceMessage = GetMessageType<daemon_service, start_service_command, TStartServiceResponse>;
32
+ export declare function start_service(daemon: TDaemon, data: TStartServiceRequest): Promise<WsStartServiceMessage>;
31
33
  export declare const start_plotting_command = "start_plotting";
32
34
  export declare type start_plotting_command = typeof start_plotting_command;
33
35
  export declare type TCommonPlottingParams = {
@@ -54,14 +56,16 @@ export declare type TChiaPosParams = {
54
56
  e: bool;
55
57
  overrideK: bool;
56
58
  };
57
- export declare type TBladeBitParams = {
59
+ export declare type TBladeBitRamParams = {
58
60
  plotter: "bladebit";
61
+ plot_type: "ramplot";
59
62
  w?: bool;
60
63
  m?: bool;
61
64
  no_cpu_affinity?: bool;
62
65
  };
63
- export declare type TBladeBit2Params = {
64
- plotter: "bladebit2";
66
+ export declare type TBladeBitDiskParams = {
67
+ plotter: "bladebit";
68
+ plot_type: "diskplot";
65
69
  w?: bool;
66
70
  m?: bool;
67
71
  no_cpu_affinity?: bool;
@@ -87,13 +91,14 @@ export declare type TMadMaxParams = {
87
91
  K?: int;
88
92
  G?: bool;
89
93
  };
90
- export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitParams | TBladeBit2Params | TMadMaxParams);
94
+ export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitRamParams | TBladeBitDiskParams | TMadMaxParams);
91
95
  export declare type TStartPlottingResponse = {
92
96
  success: bool;
93
97
  ids: str[];
94
98
  service_name: str;
95
99
  };
96
- export declare function start_plotting(daemon: TDaemon, data: TStartPlottingRequest): Promise<GetMessageType<"daemon", "start_plotting", TStartPlottingResponse>>;
100
+ export declare type WsStartPlottingMessage = GetMessageType<daemon_service, start_plotting_command, TStartPlottingResponse>;
101
+ export declare function start_plotting(daemon: TDaemon, data: TStartPlottingRequest): Promise<WsStartPlottingMessage>;
97
102
  export declare const stop_plotting_command = "stop_plotting";
98
103
  export declare type stop_plotting_command = typeof stop_plotting_command;
99
104
  export declare type TStopPlottingRequest = {
@@ -102,7 +107,8 @@ export declare type TStopPlottingRequest = {
102
107
  export declare type TStopPlottingResponse = {
103
108
  success: bool;
104
109
  };
105
- export declare function stop_plotting(daemon: TDaemon, data: TStopPlottingRequest): Promise<GetMessageType<"daemon", "stop_plotting", TStopPlottingResponse>>;
110
+ export declare type WsStopPlottingMessage = GetMessageType<daemon_service, stop_plotting_command, TStopPlottingResponse>;
111
+ export declare function stop_plotting(daemon: TDaemon, data: TStopPlottingRequest): Promise<WsStopPlottingMessage>;
106
112
  export declare const stop_service_command = "stop_service";
107
113
  export declare type stop_service_command = typeof stop_service_command;
108
114
  export declare type TStopServiceRequest = {
@@ -112,14 +118,16 @@ export declare type TStopServiceResponse = {
112
118
  success: bool;
113
119
  service_name: str;
114
120
  };
115
- export declare function stop_service(daemon: TDaemon, data: TStopServiceRequest): Promise<GetMessageType<"daemon", "stop_service", TStopServiceResponse>>;
121
+ export declare type WsStopServiceMessage = GetMessageType<daemon_service, stop_service_command, TStopServiceResponse>;
122
+ export declare function stop_service(daemon: TDaemon, data: TStopServiceRequest): Promise<WsStopServiceMessage>;
116
123
  export declare const running_services_command = "running_services";
117
124
  export declare type running_services_command = typeof running_services_command;
118
125
  export declare type TRunningServicesResponse = {
119
126
  success: bool;
120
127
  running_services: str[];
121
128
  };
122
- export declare function running_services(daemon: TDaemon): Promise<GetMessageType<"daemon", "running_services", TRunningServicesResponse>>;
129
+ export declare type WsRunningServicesMessage = GetMessageType<daemon_service, running_services_command, TRunningServicesResponse>;
130
+ export declare function running_services(daemon: TDaemon): Promise<WsRunningServicesMessage>;
123
131
  export declare const is_running_command = "is_running";
124
132
  export declare type is_running_command = typeof is_running_command;
125
133
  export declare type TIsRunningRequest = {
@@ -130,7 +138,8 @@ export declare type TIsRunningResponse = {
130
138
  service_name: str;
131
139
  is_running: bool;
132
140
  };
133
- export declare function is_running(daemon: TDaemon, data: TIsRunningRequest): Promise<GetMessageType<"daemon", "is_running", TIsRunningResponse>>;
141
+ export declare type WsIsRunningMessage = GetMessageType<daemon_service, is_running_command, TIsRunningResponse>;
142
+ export declare function is_running(daemon: TDaemon, data: TIsRunningRequest): Promise<WsIsRunningMessage>;
134
143
  export declare const add_private_key_command = "add_private_key";
135
144
  export declare type add_private_key_command = typeof add_private_key_command;
136
145
  export declare type TAddPrivateKeyRequest = {
@@ -146,7 +155,8 @@ export declare type TAddPrivateKeyResponse = {
146
155
  message: str;
147
156
  };
148
157
  };
149
- export declare function add_private_key(daemon: TDaemon, data: TAddPrivateKeyRequest): Promise<GetMessageType<"daemon", "add_private_key", TAddPrivateKeyResponse>>;
158
+ export declare type WsAddPrivateKeyMessage = GetMessageType<daemon_service, add_private_key_command, TAddPrivateKeyResponse>;
159
+ export declare function add_private_key(daemon: TDaemon, data: TAddPrivateKeyRequest): Promise<WsAddPrivateKeyMessage>;
150
160
  export declare const check_keys_command = "check_keys";
151
161
  export declare type check_keys_command = typeof check_keys_command;
152
162
  export declare type TCheckKeysRequest = {
@@ -161,7 +171,8 @@ export declare type TCheckKeysResponse = {
161
171
  message: str;
162
172
  };
163
173
  };
164
- export declare function check_keys(daemon: TDaemon, data: TCheckKeysRequest): Promise<GetMessageType<"daemon", "check_keys", TCheckKeysResponse>>;
174
+ export declare type WsCheckKeysMessage = GetMessageType<daemon_service, check_keys_command, TCheckKeysResponse>;
175
+ export declare function check_keys(daemon: TDaemon, data: TCheckKeysRequest): Promise<WsCheckKeysMessage>;
165
176
  export declare const delete_all_keys_command = "delete_all_keys";
166
177
  export declare type delete_all_keys_command = typeof delete_all_keys_command;
167
178
  export declare type TDeleteAllKeysRequest = {
@@ -175,7 +186,8 @@ export declare type TDeleteAllKeysResponse = {
175
186
  message: str;
176
187
  };
177
188
  };
178
- export declare function delete_all_keys(daemon: TDaemon, data: TDeleteAllKeysRequest): Promise<GetMessageType<"daemon", "delete_all_keys", TDeleteAllKeysResponse>>;
189
+ export declare type WsDeleteAllKeysMessage = GetMessageType<daemon_service, delete_all_keys_command, TDeleteAllKeysResponse>;
190
+ export declare function delete_all_keys(daemon: TDaemon, data: TDeleteAllKeysRequest): Promise<WsDeleteAllKeysMessage>;
179
191
  export declare const delete_key_by_fingerprint_command = "delete_key_by_fingerprint";
180
192
  export declare type delete_key_by_fingerprint_command = typeof delete_key_by_fingerprint_command;
181
193
  export declare type TDeleteKeyByFingerprintRequest = {
@@ -190,7 +202,8 @@ export declare type TDeleteKeyByFingerprintResponse = {
190
202
  message: str;
191
203
  };
192
204
  };
193
- export declare function delete_key_by_fingerprint(daemon: TDaemon, data: TDeleteKeyByFingerprintRequest): Promise<GetMessageType<"daemon", "delete_key_by_fingerprint", TDeleteKeyByFingerprintResponse>>;
205
+ export declare type WsDeleteKeyByFingerprintMessage = GetMessageType<daemon_service, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse>;
206
+ export declare function delete_key_by_fingerprint(daemon: TDaemon, data: TDeleteKeyByFingerprintRequest): Promise<WsDeleteKeyByFingerprintMessage>;
194
207
  export declare const get_all_private_keys_command = "get_all_private_keys";
195
208
  export declare type get_all_private_keys_command = typeof get_all_private_keys_command;
196
209
  export declare type TGetAllPrivateKeysRequest = {
@@ -205,7 +218,8 @@ export declare type TGetAllPrivateKeysResponse = {
205
218
  entropy: str;
206
219
  }>;
207
220
  };
208
- export declare function get_all_private_keys(daemon: TDaemon, data: TGetAllPrivateKeysRequest): Promise<GetMessageType<"daemon", "get_all_private_keys", TGetAllPrivateKeysResponse>>;
221
+ export declare type WsGetAllPrivateKeysMessage = GetMessageType<daemon_service, get_all_private_keys_command, TGetAllPrivateKeysResponse>;
222
+ export declare function get_all_private_keys(daemon: TDaemon, data: TGetAllPrivateKeysRequest): Promise<WsGetAllPrivateKeysMessage>;
209
223
  export declare const get_first_private_key_command = "get_first_private_key";
210
224
  export declare type get_first_private_key_command = typeof get_first_private_key_command;
211
225
  export declare type TGetFirstPrivateKeyRequest = {
@@ -220,7 +234,8 @@ export declare type TGetFirstPrivateKeyResponse = {
220
234
  entropy: str;
221
235
  };
222
236
  };
223
- export declare function get_first_private_key(daemon: TDaemon, data: TGetFirstPrivateKeyRequest): Promise<GetMessageType<"daemon", "get_first_private_key", TGetFirstPrivateKeyResponse>>;
237
+ export declare type WsGetFirstPrivateKeyMessage = GetMessageType<daemon_service, get_first_private_key_command, TGetFirstPrivateKeyResponse>;
238
+ export declare function get_first_private_key(daemon: TDaemon, data: TGetFirstPrivateKeyRequest): Promise<WsGetFirstPrivateKeyMessage>;
224
239
  export declare const get_key_for_fingerprint_command = "get_key_for_fingerprint";
225
240
  export declare type get_key_for_fingerprint_command = typeof get_key_for_fingerprint_command;
226
241
  export declare type TGetKeyForFingerprintRequest = {
@@ -234,7 +249,8 @@ export declare type TGetKeyForFingerprintResponse = {
234
249
  pk: str;
235
250
  entropy: str;
236
251
  };
237
- export declare function get_key_for_fingerprint(daemon: TDaemon, data: TGetKeyForFingerprintRequest): Promise<GetMessageType<"daemon", "get_key_for_fingerprint", TGetKeyForFingerprintResponse>>;
252
+ export declare type WsGetKeyForFingerprintMessage = GetMessageType<daemon_service, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse>;
253
+ export declare function get_key_for_fingerprint(daemon: TDaemon, data: TGetKeyForFingerprintRequest): Promise<WsGetKeyForFingerprintMessage>;
238
254
  export declare const get_key_command = "get_key";
239
255
  export declare type get_key_command = typeof get_key_command;
240
256
  export declare type TGetKeyRequest = {
@@ -253,7 +269,8 @@ export declare type TGetKeyResponse = {
253
269
  fingerprint: int;
254
270
  };
255
271
  };
256
- export declare function get_key(daemon: TDaemon, data: TGetKeyRequest): Promise<GetMessageType<"daemon", "get_key", TGetKeyResponse>>;
272
+ export declare type WsGetKeyMessage = GetMessageType<daemon_service, get_key_command, TGetKeyResponse>;
273
+ export declare function get_key(daemon: TDaemon, data: TGetKeyRequest): Promise<WsGetKeyMessage>;
257
274
  export declare const get_keys_command = "get_keys";
258
275
  export declare type get_keys_command = typeof get_keys_command;
259
276
  export declare type TGetKeysRequest = {
@@ -271,7 +288,8 @@ export declare type TGetKeysResponse = {
271
288
  fingerprint: int;
272
289
  };
273
290
  };
274
- export declare function get_keys(daemon: TDaemon, data: TGetKeysRequest): Promise<GetMessageType<"daemon", "get_keys", TGetKeysResponse>>;
291
+ export declare type WsGetKeysMessage = GetMessageType<daemon_service, get_keys_command, TGetKeysResponse>;
292
+ export declare function get_keys(daemon: TDaemon, data: TGetKeysRequest): Promise<WsGetKeysMessage>;
275
293
  export declare const set_label_command = "set_label";
276
294
  export declare type set_label_command = typeof set_label_command;
277
295
  export declare type TSetLabelRequest = {
@@ -289,7 +307,8 @@ export declare type TSetLabelResponse = {
289
307
  fingerprint: int;
290
308
  };
291
309
  };
292
- export declare function set_label(daemon: TDaemon, data: TSetLabelRequest): Promise<GetMessageType<"daemon", "set_label", TSetLabelResponse>>;
310
+ export declare type WsSetLabelMessage = GetMessageType<daemon_service, set_label_command, TSetLabelResponse>;
311
+ export declare function set_label(daemon: TDaemon, data: TSetLabelRequest): Promise<WsSetLabelMessage>;
293
312
  export declare const delete_label_command = "delete_label";
294
313
  export declare type delete_label_command = typeof delete_label_command;
295
314
  export declare type TDeleteLabelRequest = {
@@ -306,14 +325,16 @@ export declare type TDeleteLabelResponse = {
306
325
  fingerprint: int;
307
326
  };
308
327
  };
309
- export declare function delete_label(daemon: TDaemon, data: TDeleteLabelRequest): Promise<GetMessageType<"daemon", "delete_label", TDeleteLabelResponse>>;
328
+ export declare type WsDeleteLabelMessage = GetMessageType<daemon_service, delete_label_command, TDeleteLabelResponse>;
329
+ export declare function delete_label(daemon: TDaemon, data: TDeleteLabelRequest): Promise<WsDeleteLabelMessage>;
310
330
  export declare const is_keyring_locked_command = "is_keyring_locked";
311
331
  export declare type is_keyring_locked_command = typeof is_keyring_locked_command;
312
332
  export declare type TIsKeyringLockedResponse = {
313
333
  success: bool;
314
334
  is_keyring_locked: bool;
315
335
  };
316
- export declare function is_keyring_locked(daemon: TDaemon): Promise<GetMessageType<"daemon", "is_keyring_locked", TIsKeyringLockedResponse>>;
336
+ export declare type WsIsKeyringLockedMessage = GetMessageType<daemon_service, is_keyring_locked_command, TIsKeyringLockedResponse>;
337
+ export declare function is_keyring_locked(daemon: TDaemon): Promise<WsIsKeyringLockedMessage>;
317
338
  export declare const keyring_status_command = "keyring_status";
318
339
  export declare type keyring_status_command = typeof keyring_status_command;
319
340
  export declare type TKeyringStatusResponse = {
@@ -322,8 +343,6 @@ export declare type TKeyringStatusResponse = {
322
343
  passphrase_support_enabled: bool;
323
344
  can_save_passphrase: bool;
324
345
  user_passphrase_is_set: bool;
325
- needs_migration: bool;
326
- can_remove_legacy_keys: bool;
327
346
  can_set_passphrase_hint: bool;
328
347
  passphrase_hint: str;
329
348
  passphrase_requirements: {} | {
@@ -331,7 +350,8 @@ export declare type TKeyringStatusResponse = {
331
350
  min_length: int;
332
351
  };
333
352
  };
334
- export declare function keyring_status(daemon: TDaemon): Promise<GetMessageType<"daemon", "keyring_status", TKeyringStatusResponse>>;
353
+ export declare type WsKeyringStateMessage = GetMessageType<daemon_service, keyring_status_command, TKeyringStatusResponse>;
354
+ export declare function keyring_status(daemon: TDaemon): Promise<WsKeyringStateMessage>;
335
355
  export declare const unlock_keyring_command = "unlock_keyring";
336
356
  export declare type unlock_keyring_command = typeof unlock_keyring_command;
337
357
  export declare type TUnlockKeyringRequest = {
@@ -341,7 +361,8 @@ export declare type TUnlockKeyringResponse = {
341
361
  success: bool;
342
362
  error: str | None;
343
363
  };
344
- export declare function unlock_keyring(daemon: TDaemon, data: TUnlockKeyringRequest): Promise<GetMessageType<"daemon", "unlock_keyring", TUnlockKeyringResponse>>;
364
+ export declare type WsUnlockKeyringMessage = GetMessageType<daemon_service, unlock_keyring_command, TUnlockKeyringResponse>;
365
+ export declare function unlock_keyring(daemon: TDaemon, data: TUnlockKeyringRequest): Promise<WsUnlockKeyringMessage>;
345
366
  export declare const validate_keyring_passphrase_command = "validate_keyring_passphrase";
346
367
  export declare type validate_keyring_passphrase_command = typeof validate_keyring_passphrase_command;
347
368
  export declare type TValidateKeyringPassphraseRequest = {
@@ -351,7 +372,8 @@ export declare type TValidateKeyringPassphraseResponse = {
351
372
  success: bool;
352
373
  error: str | None;
353
374
  };
354
- export declare function validate_keyring_passphrase(daemon: TDaemon, data: TValidateKeyringPassphraseRequest): Promise<GetMessageType<"daemon", "validate_keyring_passphrase", TValidateKeyringPassphraseResponse>>;
375
+ export declare type WsValidateKeyringPassphraseMessage = GetMessageType<daemon_service, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse>;
376
+ export declare function validate_keyring_passphrase(daemon: TDaemon, data: TValidateKeyringPassphraseRequest): Promise<WsValidateKeyringPassphraseMessage>;
355
377
  export declare const migrate_keyring_command = "migrate_keyring";
356
378
  export declare type migrate_keyring_command = typeof migrate_keyring_command;
357
379
  export declare type TMigrateKeyringRequest = {
@@ -364,7 +386,8 @@ export declare type TMigrateKeyringResponse = {
364
386
  success: bool;
365
387
  error: str | None;
366
388
  };
367
- export declare function migrate_keyring(daemon: TDaemon, data: TMigrateKeyringRequest): Promise<GetMessageType<"daemon", "migrate_keyring", TMigrateKeyringResponse>>;
389
+ export declare type WsMigrateKeyringMessage = GetMessageType<daemon_service, migrate_keyring_command, TMigrateKeyringResponse>;
390
+ export declare function migrate_keyring(daemon: TDaemon, data: TMigrateKeyringRequest): Promise<WsMigrateKeyringMessage>;
368
391
  export declare const set_keyring_passphrase_command = "set_keyring_passphrase";
369
392
  export declare type set_keyring_passphrase_command = typeof set_keyring_passphrase_command;
370
393
  export declare type TSetKeyringPassphraseRequest = {
@@ -377,7 +400,8 @@ export declare type TSetKeyringPassphraseResponse = {
377
400
  success: bool;
378
401
  error: str;
379
402
  };
380
- export declare function set_keyring_passphrase(daemon: TDaemon, data: TSetKeyringPassphraseRequest): Promise<GetMessageType<"daemon", "set_keyring_passphrase", TSetKeyringPassphraseResponse>>;
403
+ export declare type WsSetKeyringPassphraseMessage = GetMessageType<daemon_service, set_keyring_passphrase_command, TSetKeyringPassphraseResponse>;
404
+ export declare function set_keyring_passphrase(daemon: TDaemon, data: TSetKeyringPassphraseRequest): Promise<WsSetKeyringPassphraseMessage>;
381
405
  export declare const remove_keyring_passphrase_command = "remove_keyring_passphrase";
382
406
  export declare type remove_keyring_passphrase_command = typeof remove_keyring_passphrase_command;
383
407
  export declare type TRemoveKeyringPassphraseRequest = {
@@ -387,7 +411,8 @@ export declare type TRemoveKeyringPassphraseResponse = {
387
411
  success: bool;
388
412
  error: str;
389
413
  };
390
- export declare function remove_keyring_passphrase(daemon: TDaemon, data: TRemoveKeyringPassphraseRequest): Promise<GetMessageType<"daemon", "remove_keyring_passphrase", TRemoveKeyringPassphraseResponse>>;
414
+ export declare type WsRemoveKeyringPassphraseMessage = GetMessageType<daemon_service, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse>;
415
+ export declare function remove_keyring_passphrase(daemon: TDaemon, data: TRemoveKeyringPassphraseRequest): Promise<WsRemoveKeyringPassphraseMessage>;
391
416
  export declare const notify_keyring_migration_completed_command = "notify_keyring_migration_completed";
392
417
  export declare type notify_keyring_migration_completed_command = typeof notify_keyring_migration_completed_command;
393
418
  export declare type TNotifyKeyringMigrationCompletedRequest = {
@@ -397,14 +422,16 @@ export declare type TNotifyKeyringMigrationCompletedResponse = {
397
422
  success: bool;
398
423
  error: str;
399
424
  };
400
- export declare function notify_keyring_migration_completed(daemon: TDaemon, data: TNotifyKeyringMigrationCompletedRequest): Promise<GetMessageType<"daemon", "notify_keyring_migration_completed", TNotifyKeyringMigrationCompletedResponse>>;
425
+ export declare type WsNotifyKeyringMigrationCompletedMessage = GetMessageType<daemon_service, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse>;
426
+ export declare function notify_keyring_migration_completed(daemon: TDaemon, data: TNotifyKeyringMigrationCompletedRequest): Promise<WsNotifyKeyringMigrationCompletedMessage>;
401
427
  export declare const exit_command = "exit";
402
428
  export declare type exit_command = typeof exit_command;
403
429
  export declare type TExitRequest = {};
404
430
  export declare type TExitResponse = {
405
431
  success: bool;
406
432
  };
407
- export declare function exit(daemon: TDaemon): Promise<GetMessageType<"daemon", "exit", TExitResponse>>;
433
+ export declare type WsExitMessage = GetMessageType<daemon_service, exit_command, TExitResponse>;
434
+ export declare function exit(daemon: TDaemon): Promise<WsExitMessage>;
408
435
  export declare type TPlotQueue = {
409
436
  id: str;
410
437
  queue: str;
@@ -429,7 +456,8 @@ export declare type TRegisterServiceResponse = {
429
456
  service: str;
430
457
  queue: TPlotQueue[];
431
458
  };
432
- export declare function register_service(daemon: TDaemon, data: TRegisterServiceRequest): Promise<GetMessageType<"daemon", "register_service", TRegisterServiceResponse>>;
459
+ export declare type WsRegisterServiceMessage = GetMessageType<daemon_service, register_service_command, TRegisterServiceResponse>;
460
+ export declare function register_service(daemon: TDaemon, data: TRegisterServiceRequest): Promise<WsRegisterServiceMessage>;
433
461
  export declare const get_status_command = "get_status";
434
462
  export declare type get_status_command = typeof get_status_command;
435
463
  export declare type TGetStatusRequest = {};
@@ -437,7 +465,8 @@ export declare type TGetStatusResponse = {
437
465
  success: True;
438
466
  genesis_initialized: True;
439
467
  };
440
- export declare function get_status(daemon: TDaemon): Promise<GetMessageType<"daemon", "get_status", TGetStatusResponse>>;
468
+ export declare type WsGetStatusMessage = GetMessageType<daemon_service, get_status_command, TGetStatusResponse>;
469
+ export declare function get_status(daemon: TDaemon): Promise<WsGetStatusMessage>;
441
470
  export declare const get_version_command = "get_version";
442
471
  export declare type get_version_command = typeof get_version_command;
443
472
  export declare type TGetVersionRequest = {};
@@ -445,7 +474,8 @@ export declare type TGetVersionResponse = {
445
474
  success: bool;
446
475
  version: string;
447
476
  };
448
- export declare function get_version(daemon: TDaemon): Promise<GetMessageType<"daemon", "get_version", TGetVersionResponse>>;
477
+ export declare type WsGetVersionMessage = GetMessageType<daemon_service, get_version_command, TGetVersionResponse>;
478
+ export declare function get_version(daemon: TDaemon): Promise<WsGetVersionMessage>;
449
479
  export declare const get_plotters_command = "get_plotters";
450
480
  export declare type get_plotters_command = typeof get_plotters_command;
451
481
  export declare type TGetPlottersRequest = {};
@@ -457,10 +487,13 @@ export declare type TGetPlottersResponse = {
457
487
  madmax?: madmax_install_info;
458
488
  };
459
489
  };
460
- export declare function get_plotters(daemon: TDaemon): Promise<GetMessageType<"daemon", "get_plotters", TGetPlottersResponse>>;
490
+ export declare type WsGetPlottersMessage = GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse>;
491
+ export declare function get_plotters(daemon: TDaemon): Promise<WsGetPlottersMessage>;
461
492
  export declare const keyring_status_changed_command = "keyring_status_changed";
462
493
  export declare type keyring_status_changed_command = typeof keyring_status_changed_command;
463
494
  export declare type TKeyringStatusChangedBroadCast = {
464
495
  keyring_status_changed: TKeyringStatusResponse;
465
496
  };
466
- export declare function on_keyring_status_changed(daemon: TDaemon, callback: (e: GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>) => unknown): Promise<() => void>;
497
+ export declare type WsKeyringStatusChangedMessage = GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
498
+ 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;
@@ -12,7 +12,8 @@ export declare type get_connections_command = typeof get_connections_command;
12
12
  export declare type TGetConnectionsBroadCast = {
13
13
  connections: TConnectionGeneral[];
14
14
  };
15
- export declare function on_get_connections(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, get_connections_command, TGetConnectionsBroadCast>) => unknown): Promise<() => void>;
15
+ export declare type WsGetConnectionFarmerMessage = GetMessageType<chia_farmer_service, get_connections_command, TGetConnectionsBroadCast>;
16
+ export declare function on_get_connections(daemon: TDaemon, callback: (e: WsGetConnectionFarmerMessage) => unknown): Promise<() => void>;
16
17
  export declare const new_farming_info_command = "new_farming_info";
17
18
  export declare type new_farming_info_command = typeof new_farming_info_command;
18
19
  export declare type TNewFarmingInfoBroadCast = {
@@ -25,31 +26,36 @@ export declare type TNewFarmingInfoBroadCast = {
25
26
  timestamp: uint64;
26
27
  };
27
28
  };
28
- export declare function on_new_farming_info(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, new_farming_info_command, TNewFarmingInfoBroadCast>) => unknown): Promise<() => void>;
29
+ export declare type WsNewFarmingInfoMessage = GetMessageType<chia_farmer_service, new_farming_info_command, TNewFarmingInfoBroadCast>;
30
+ export declare function on_new_farming_info(daemon: TDaemon, callback: (e: WsNewFarmingInfoMessage) => unknown): Promise<() => void>;
29
31
  export declare const new_signage_point_command = "new_signage_point";
30
32
  export declare type new_signage_point_command = typeof new_signage_point_command;
31
33
  export declare type TNewSignagePointBroadCast = {
32
34
  proofs: ProofOfSpace[];
33
35
  signage_point: NewSignagePoint;
34
36
  };
35
- export declare function on_new_signage_point(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, new_signage_point_command, TNewSignagePointBroadCast>) => unknown): Promise<() => void>;
37
+ export declare type WsNewSignagePointMessage = GetMessageType<chia_farmer_service, new_signage_point_command, TNewSignagePointBroadCast>;
38
+ export declare function on_new_signage_point(daemon: TDaemon, callback: (e: WsNewSignagePointMessage) => unknown): Promise<() => void>;
36
39
  export declare const harvester_update_command = "harvester_update";
37
40
  export declare type harvester_update_command = typeof harvester_update_command;
38
41
  export declare type THarvesterUpdateBroadCast = Receiver<true>;
39
- export declare function on_harvester_update(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, harvester_update_command, THarvesterUpdateBroadCast>) => unknown): Promise<() => void>;
42
+ export declare type WsHarvesterUpdateMessage = GetMessageType<chia_farmer_service, harvester_update_command, THarvesterUpdateBroadCast>;
43
+ export declare function on_harvester_update(daemon: TDaemon, callback: (e: WsHarvesterUpdateMessage) => unknown): Promise<() => void>;
40
44
  export declare const harvester_removed_command = "harvester_removed";
41
45
  export declare type harvester_removed_command = typeof harvester_removed_command;
42
46
  export declare type THarvesterRemovedBroadCast = {
43
47
  node_id: bytes32;
44
48
  };
45
- export declare function on_harvester_removed(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, harvester_removed_command, THarvesterRemovedBroadCast>) => unknown): Promise<() => void>;
49
+ export declare type WsHarvesterRemovedMessage = GetMessageType<chia_farmer_service, harvester_removed_command, THarvesterRemovedBroadCast>;
50
+ export declare function on_harvester_removed(daemon: TDaemon, callback: (e: WsHarvesterRemovedMessage) => unknown): Promise<() => void>;
46
51
  export declare const proof_command = "proof";
47
52
  export declare type proof_command = typeof proof_command;
48
53
  export declare type TProofBroadCast = {
49
54
  proof: DeclareProofOfSpace;
50
55
  passed_filter: bool;
51
56
  };
52
- export declare function on_proof(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, proof_command, TProofBroadCast>) => unknown): Promise<() => void>;
57
+ export declare type WsProofMessage = GetMessageType<chia_farmer_service, proof_command, TProofBroadCast>;
58
+ export declare function on_proof(daemon: TDaemon, callback: (e: WsProofMessage) => unknown): Promise<() => void>;
53
59
  export declare const submitted_partial_command = "submitted_partial";
54
60
  export declare type submitted_partial_command = typeof submitted_partial_command;
55
61
  export declare type TSubmittedPartialBroadCast = {
@@ -59,7 +65,9 @@ export declare type TSubmittedPartialBroadCast = {
59
65
  points_acknowledged_since_start: uint64;
60
66
  points_acknowledged_24h: Array<[float, uint64]>;
61
67
  };
62
- export declare function on_submitted_partial(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, submitted_partial_command, TSubmittedPartialBroadCast>) => unknown): Promise<() => void>;
68
+ export declare type WsSubmittedPartialMessage = GetMessageType<chia_farmer_service, submitted_partial_command, TSubmittedPartialBroadCast>;
69
+ export declare function on_submitted_partial(daemon: TDaemon, callback: (e: WsSubmittedPartialMessage) => unknown): Promise<() => void>;
70
+ export declare type WsFarmerMessage = WsGetConnectionFarmerMessage | WsNewFarmingInfoMessage | WsNewSignagePointMessage | WsHarvesterUpdateMessage | WsHarvesterRemovedMessage | WsProofMessage | WsSubmittedPartialMessage;
63
71
  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;
64
72
  export declare type TChiaFarmerBroadcast = TGetConnectionsBroadCast | TNewFarmingInfoBroadCast | TNewSignagePointBroadCast | THarvesterUpdateBroadCast | THarvesterRemovedBroadCast | TProofBroadCast | TSubmittedPartialBroadCast;
65
- export declare function on_message_from_farmer(daemon: TDaemon, callback: (e: GetMessageType<chia_farmer_service, chia_farmer_commands, TChiaFarmerBroadcast>) => unknown): Promise<() => void>;
73
+ export declare function on_message_from_farmer(daemon: TDaemon, callback: (e: WsFarmerMessage) => unknown): Promise<() => void>;