chia-agent 3.0.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/README.md +5 -9
  3. package/api/chia/consensus/blockchain.d.ts +1 -0
  4. package/api/chia/{wallet/util/backup_utils.js → consensus/blockchain.js} +0 -0
  5. package/api/chia/consensus/cost_calculator.d.ts +1 -1
  6. package/api/chia/pools/pool_config.d.ts +0 -1
  7. package/api/chia/server/outbound_message.d.ts +1 -0
  8. package/api/chia/{wallet/util/trade_utils.js → server/outbound_message.js} +0 -0
  9. package/api/chia/timelord/types.d.ts +1 -0
  10. package/api/chia/timelord/types.js +2 -0
  11. package/api/chia/types/coin_record.d.ts +3 -1
  12. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +6 -0
  13. package/api/chia/wallet/cat_wallet/cat_constants.js +2 -0
  14. package/api/chia/wallet/trade_record.d.ts +23 -0
  15. package/api/chia/wallet/trade_record.js +1 -0
  16. package/api/chia/wallet/transaction_record.d.ts +7 -2
  17. package/api/chia/wallet/util/wallet_types.d.ts +1 -1
  18. package/api/chia/wallet/util/wallet_types.js +1 -1
  19. package/api/rpc/common/index.d.ts +40 -0
  20. package/api/rpc/common/index.js +48 -0
  21. package/api/rpc/crawler/index.d.ts +29 -0
  22. package/api/rpc/crawler/index.js +27 -0
  23. package/api/rpc/full_node/index.d.ts +24 -6
  24. package/api/rpc/full_node/index.js +8 -1
  25. package/api/rpc/index.d.ts +13 -7
  26. package/api/rpc/index.js +30 -12
  27. package/api/rpc/wallet/index.d.ts +172 -112
  28. package/api/rpc/wallet/index.js +82 -47
  29. package/api/types.d.ts +16 -0
  30. package/api/types.js +2 -1
  31. package/api/ws/crawler/index.d.ts +25 -0
  32. package/api/ws/crawler/index.js +40 -0
  33. package/api/ws/daemon/index.d.ts +8 -0
  34. package/api/ws/daemon/index.js +9 -2
  35. package/api/ws/farmer/index.d.ts +9 -3
  36. package/api/ws/farmer/index.js +15 -2
  37. package/api/ws/full_node/index.d.ts +50 -4
  38. package/api/ws/full_node/index.js +40 -1
  39. package/api/ws/harvester/index.d.ts +9 -3
  40. package/api/ws/harvester/index.js +14 -1
  41. package/api/ws/index.d.ts +22 -16
  42. package/api/ws/index.js +52 -32
  43. package/api/ws/timelord/index.d.ts +38 -0
  44. package/api/ws/timelord/index.js +66 -0
  45. package/api/ws/wallet/index.d.ts +32 -6
  46. package/api/ws/wallet/index.js +42 -3
  47. package/daemon/connection.d.ts +2 -2
  48. package/daemon/index.d.ts +6 -6
  49. package/index.d.ts +0 -2
  50. package/package.json +2 -2
  51. package/api/chia/wallet/util/backup_utils.d.ts +0 -25
  52. package/api/chia/wallet/util/trade_utils.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,115 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.0.0]
4
+ ### Breaking Change
5
+ - At chia-blockchain@1.3.0, in `chia/consensus/cost_calculator.py`,
6
+ `NPCResult.clvm_cost` was renamed to `NPCResult.cost`.
7
+ As a result, the RPC APIs below might be incompatible between `1.2.11` and `1.3.0`.
8
+ - `get_all_mempool_items` Of FullNode RPC API
9
+ - `get_mempool_item_by_tx_id` Of FullNode RPC API
10
+ - In `chia/pools/pool_config.py`,
11
+ `authentication_public_key` was removed from `PoolWalletConfig`.
12
+ As a result, the RPC APIs below might be incompatible between `1.2.11` and `1.3.0`.
13
+ - `get_pool_state` of Farmer RPC API
14
+ - In `chia/types/coin_record.py`, `CoinRecord.spent` was removed and turned into a getter method.
15
+ As a result, the RPC APIs below might be incompatible between `1.2.11` and `1.3.0`.
16
+ - `get_additions_and_removals` of FullNode RPC API
17
+ - Wallet RPC API `create_backup` was removed
18
+ - Wallet RPC API `get_discrepancies_for_offer` was removed
19
+ - Wallet RPC API `respond_to_offer` was removed
20
+ - Wallet RPC API `get_trade` was removed
21
+ - Wallet RPC API `get_all_trades` was removed
22
+ - Wallet RPC API `cancel_trade` was removed
23
+ - Wallet RPC API `cc_set_name` was renamed to `cat_set_name`
24
+ - Wallet RPC API `cc_get_name` was renamed to `cat_get_name`
25
+ - Wallet RPC API `cc_spend` was renamed to `cat_spend`
26
+ - Wallet RPC API `cc_get_colour` was renamed to `cat_get_asset_id`
27
+ - The request parameter of Wallet RPC API `create_offer_for_ids` was changed and incompatible with older API.
28
+ - The request parameter of Wallet RPC API `create_new_wallet` was changed and incompatible with older API.
29
+ ### Removed
30
+ - Removed `create_backup` of Wallet RPC API
31
+ - Removed `get_discrepancies_for_offer` of Wallet RPC API
32
+ - Removed `respond_to_offer` of Wallet RPC API
33
+ - Removed `get_trade` of Wallet RPC API
34
+ - Removed `get_all_trades` of Wallet RPC API
35
+ - Removed `cancel_trade` of Wallet RPC API
36
+ - Removed `TradeRecordInJson` at `src/api/chia/wallet/util/trade_utils.ts`
37
+ ### Added
38
+ - Added `metrics` service
39
+ - [Common RPC API](./src/api/rpc/common)
40
+ - [`get_connections`](./src/api/rpc/common/README.md#get_connectionsagent-params)
41
+ - [`open_connection`](./src/api/rpc/common/README.md#open_connectionagent-params)
42
+ - [`close_connection`](./src/api/rpc/common/README.md#close_connectionagent-params)
43
+ - [`stop_node`](./src/api/rpc/common/README.md#stop_nodeagent)
44
+ - [`get_routes`](./src/api/rpc/common/README.md#get_routesagent)
45
+ - [Timelord WebSocket API](./src/api/ws/timelord/README.md#usage)
46
+ - [`finished_pot`](./src/api/ws/timelord/README.md#on_finished_pot)
47
+ - [`new_compact_proof`](./src/api/ws/timelord/README.md#on_new_compact_proof)
48
+ - [`skipping_peak`](./src/api/ws/timelord/README.md#on_skipping_peak)
49
+ - [`new_peak`](./src/api/ws/timelord/README.md#on_new_peak)
50
+ - [Crawler RPC API](./src/api/rpc/crawler)
51
+ - [`get_peer_counts`](./src/api/rpc/crawler/README.md#get_peer_countsagent)
52
+ - [`get_ips_after_timestamp`](./src/api/rpc/crawler/README.md#get_ips_after_timestampagent-params)
53
+ - [Crawler WebSocket API](./src/api/ws/crawler)
54
+ - [`on_message_from_crawler`](./src/api/ws/crawler/README.md#on_message_from_crawler)
55
+ - [`on_loaded_initial_peers`](./src/api/ws/crawler/README.md#on_loaded_initial_peers)
56
+ - [`on_crawl_batch_completed`](./src/api/ws/crawler/README.md#on_crawl_batch_completed)
57
+ - [New farmer WebSocket API](./src/api/ws/farmer)
58
+ - [`get_connections`](./src/api/ws/farmer/README.md#on_get_connections)
59
+ - [New FullNode RPC API](./src/api/rpc/full_node)
60
+ - [`get_block_count_metrics`](./src/api/rpc/full_node/README.md#get_block_count_metricsagent)
61
+ - [New FullNode WebSocket API](./src/api/ws/full_node)
62
+ - [`get_connections`](./src/api/ws/full_node/README.md#on_get_connections)
63
+ - [`block`](./src/api/ws/full_node/README.md#on_block)
64
+ - [`signage_point`](./src/api/ws/full_node/README.md#on_signage_point)
65
+ - [New harvester WebSocket API](./src/api/ws/harvester)
66
+ - [`get_connections`](./src/api/ws/harvester/README.md#on_get_connections)
67
+ - [New wallet RPC API](./src/api/rpc/wallet)
68
+ - [`get_logged_in_fingerprint`](./src/api/rpc/wallet/README.md#get_logged_in_fingerprintagent)
69
+ - [`push_tx`](./src/api/rpc/wallet/README.md#push_txagent-params)
70
+ - [`cat_asset_id_to_name`](./src/api/rpc/wallet/README.md#cat_asset_id_to_nameagent-params)
71
+ - [`get_offer_summary`](./src/api/rpc/wallet/README.md#get_offer_summaryagent-params)
72
+ - [`check_offer_validity`](./src/api/rpc/wallet/README.md#check_offer_validityagent-params)
73
+ - [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
74
+ - [`get_offer`](./src/api/rpc/wallet/README.md#get_offeragent-params)
75
+ - [`get_all_offers`](./src/api/rpc/wallet/README.md#get_all_offersagent-params)
76
+ - [`get_offers_count`](./src/api/rpc/wallet/README.md#get_offers_countagent)
77
+ - [`cancel_offer`](./src/api/rpc/wallet/README.md#cancel_offeragent-params)
78
+ - [`get_cat_list`](./src/api/rpc/wallet/README.md#get_cat_listagent)
79
+ - [New wallet WebSocket API](./src/api/ws/wallet)
80
+ - [`get_connections`](./src/api/ws/wallet/README.md#on_get_connections)
81
+ - [`sync_changed`](./src/api/ws/wallet/README.md#on_sync_changed_of_wallet)
82
+ - [`coin_added`](./src/api/ws/wallet/README.md#on_coin_added)
83
+ - [New daemon API](./src/api/ws/daemon)
84
+ - [`get_version`](./src/api/ws/daemon/README.md#get_versiondaemon)
85
+ ### Changed
86
+ - Renamed `NPCResult.clvm_cost` to `NPCResult.cost`
87
+ - Removed `authentication_public_key` from `PoolWalletConfig`
88
+ - Set actual value to `destination` property on websocket APIs. (i.e. `wallet_ui`, `metrics`)
89
+ - Updated [`get_blockchain_state`](./src/api/rpc/full_node/README.md#get_blockchain_stateagent) of FullNode RPC API
90
+ - Updated [`get_blocks`](./src/api/rpc/full_node/README.md#get_blocksagent-params) of FullNode RPC API
91
+ - Renamed `cc_set_name` of Wallet RPC API to [`cat_set_name`](./src/api/rpc/wallet/README.md#cat_set_nameagent-params)
92
+ - Renamed `cc_get_name` of Wallet RPC API to [`cat_get_name`](./src/api/rpc/wallet/README.md#cat_get_nameagent-params)
93
+ - Renamed `cc_spend` of Wallet RPC API to [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
94
+ - Renamed `cc_get_colour` of Wallet RPC API to [`cat_get_asset_id`](./src/api/rpc/wallet/README.md#cat_get_asset_idagent-params)
95
+ - Updated [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params) of Wallet RPC API
96
+ - Updated [`log_in`](./src/api/rpc/wallet/README.md#log_inagent-params) of Wallet RPC API
97
+ - Updated [`add_key`](./src/api/rpc/wallet/README.md#add_keyagent-params) of Wallet RPC API
98
+ - Updated [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params) of Wallet RPC API
99
+ - Updated [`get_wallet_balance`](./src/api/rpc/wallet/README.md#get_wallet_balanceagent-params) of Wallet RPC API
100
+ - Updated [`get_transaction`](./src/api/rpc/wallet/README.md#get_transactionagent-params) of Wallet RPC API
101
+ - Updated [`get_transactions`](./src/api/rpc/wallet/README.md#get_transactionsagent-params) of Wallet RPC API
102
+ - Updated [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params) of Wallet RPC API
103
+ - Updated [`send_transaction_multi`](./src/api/rpc/wallet/README.md#send_transaction_multiagent-params) of Wallet RPC API
104
+ - Updated [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params) of Wallet RPC API
105
+ - Updated [`pw_join_pool`](./src/api/rpc/wallet/README.md#pw_join_poolagent-params) of Wallet RPC API
106
+ - Updated [`pw_self_pool`](./src/api/rpc/wallet/README.md#pw_self_poolagent-params) of Wallet RPC API
107
+ - Updated [`pw_absorb_rewards`](./src/api/rpc/wallet/README.md#pw_absorb_rewardsagent-params) of Wallet RPC API
108
+ - Added `memos` to `TransactionRecord` in `src/api/chia/wallet/transaction_record.ts`.
109
+ - Renamed `COLOURED_COIN` to `CAT` of `WalletType` in `src/api/chia/wallet/util/wallet_type.ts`.
110
+ ### Fixed
111
+ - Replaced `unknown` type with actual type for `on_state_changed_of_wallet` in wallet WebSocket API
112
+
3
113
  ## [3.0.1]
4
114
  ### Added
5
115
  - Added `skip_hostname_verification` option for `RPCAgent`
@@ -210,6 +320,7 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
210
320
  Initial release.
211
321
 
212
322
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
323
+ [4.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.1...v4.0.0
213
324
  [3.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.0...v3.0.1
214
325
  [3.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v2.0.6...v3.0.0
215
326
  [2.0.6]: https://github.com/Chia-Mine/chia-agent/compare/v2.0.5...v2.0.6
package/README.md CHANGED
@@ -1,12 +1,8 @@
1
- **Now supports New Pool API! :tada::tada:**
2
-
3
- ---
4
-
5
1
  # chia-agent
6
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)
7
3
 
8
4
  chia rpc/websocket client library for NodeJS.
9
- Supports all RPC/Websocket API available at `chia 1.2.11`.
5
+ Supports all RPC/Websocket API available at `chia 1.3.0`.
10
6
  \(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
11
7
 
12
8
  you can develop your own nodejs script with `chia-agent` to:
@@ -26,10 +22,10 @@ yarn add chia-agent
26
22
 
27
23
  ## Compatibility
28
24
  This code is compatible with:
29
- - [`b74a3f3849cadeece2fac3efa3cb55d7d3a0647f`](https://github.com/Chia-Network/chia-blockchain/tree/b74a3f3849cadeece2fac3efa3cb55d7d3a0647f) of [chia-blockchain@1.2.11](https://github.com/Chia-Network/chia-blockchain)
30
- - [Diff to the latest chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/b74a3f3849cadeece2fac3efa3cb55d7d3a0647f...main)
31
- - [`d6d1d0ea41b81e1c6b23688206c6ab3ba6418a95`](https://github.com/Chia-Network/pool-reference/tree/d6d1d0ea41b81e1c6b23688206c6ab3ba6418a95) of [pool-reference](https://github.com/Chia-Network/pool-reference)
32
- - [Diff to the latest pool-reference](https://github.com/Chia-Network/pool-reference/compare/d6d1d0ea41b81e1c6b23688206c6ab3ba6418a95...main)
25
+ - [`0e7cc5a88393ef02b4057dd4bf894be2e73bc00b`](https://github.com/Chia-Network/chia-blockchain/tree/0e7cc5a88393ef02b4057dd4bf894be2e73bc00b) of [chia-blockchain@1.3.0](https://github.com/Chia-Network/chia-blockchain)
26
+ - [Diff to the latest chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/0e7cc5a88393ef02b4057dd4bf894be2e73bc00b...main)
27
+ - [`374e7e6dc2d6d7941bb650f0e4ac5c01db104569`](https://github.com/Chia-Network/pool-reference/tree/374e7e6dc2d6d7941bb650f0e4ac5c01db104569) of [pool-reference](https://github.com/Chia-Network/pool-reference)
28
+ - [Diff to the latest pool-reference](https://github.com/Chia-Network/pool-reference/compare/374e7e6dc2d6d7941bb650f0e4ac5c01db104569...main)
33
29
 
34
30
  ## API
35
31
  There are 2 kinds of APIs in chia.
@@ -0,0 +1 @@
1
+ export declare type ReceiveBlockResult = 1 | 2 | 3 | 4 | 5;
@@ -3,5 +3,5 @@ import { Optional, uint16, uint64 } from "../types/_python_types_";
3
3
  export declare type NPCResult = {
4
4
  error: Optional<uint16>;
5
5
  npc_list: NPC[];
6
- clvm_cost: uint64;
6
+ cost: uint64;
7
7
  };
@@ -7,5 +7,4 @@ export declare type PoolWalletConfig = {
7
7
  target_puzzle_hash: bytes32;
8
8
  p2_singleton_puzzle_hash: bytes32;
9
9
  owner_public_key: G1Element;
10
- authentication_public_key: G1Element;
11
10
  };
@@ -0,0 +1 @@
1
+ export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6;
@@ -0,0 +1 @@
1
+ export declare type Chain = 1 | 2 | 3 | 4;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,9 @@ export declare type CoinRecord = {
4
4
  coin: Coin;
5
5
  confirmed_block_index: uint32;
6
6
  spent_block_index: uint32;
7
- spent: bool;
8
7
  coinbase: bool;
9
8
  timestamp: uint64;
10
9
  };
10
+ export declare type CoinRecordBackwardCompatible = CoinRecord & {
11
+ spent: bool;
12
+ };
@@ -0,0 +1,6 @@
1
+ import { str } from "../../types/_python_types_";
2
+ export declare type CAT = {
3
+ asset_id: str;
4
+ name: str;
5
+ symbol: str;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { bool, bytes, int, Optional, str, uint32, uint64, uint8 } from "../types/_python_types_";
2
+ import { Coin } from "../types/blockchain_format/coin";
3
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
4
+ export declare type TradeRecord = {
5
+ confirmed_at_index: uint32;
6
+ accepted_at_time: Optional<uint64>;
7
+ created_at_time: uint64;
8
+ is_my_offer: bool;
9
+ sent: uint32;
10
+ offer: bytes;
11
+ taken_offer: Optional<bytes>;
12
+ coins_of_interest: Coin[];
13
+ trade_id: bytes32;
14
+ status: uint32;
15
+ sent_to: Array<[str, uint8, Optional<str>]>;
16
+ };
17
+ export declare type TradeRecordConvenience = {
18
+ summary: {
19
+ offered: Record<str, int>;
20
+ requested: Record<str, int>;
21
+ };
22
+ pending: Record<str, int>;
23
+ } & Omit<TradeRecord, "offer">;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  // dependency: TradeRecord, by: `get_trade` of Wallet RPC API
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { bool, Optional, uint32, uint64, uint8 } from "../types/_python_types_";
1
+ import { bool, bytes, Optional, str, uint32, uint64, uint8 } from "../types/_python_types_";
2
2
  import { SpendBundle } from "../types/spend_bundle";
3
3
  import { Coin } from "../types/blockchain_format/coin";
4
4
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
@@ -12,10 +12,15 @@ export declare type TransactionRecord = {
12
12
  sent: uint32;
13
13
  spend_bundle: Optional<SpendBundle>;
14
14
  additions: Coin[];
15
- removals: Coin;
15
+ removals: Coin[];
16
16
  wallet_id: uint32;
17
17
  sent_to: Array<[string, uint8, string | undefined]>;
18
18
  trade_id: Optional<bytes32>;
19
19
  type: uint32;
20
20
  name: bytes32;
21
+ memos: Array<[bytes32, bytes[]]>;
21
22
  };
23
+ export declare type TransactionRecordConvenience = {
24
+ to_address: str;
25
+ memos: Record<str, str>;
26
+ } & TransactionRecord;
@@ -5,7 +5,7 @@ export declare const WalletType: {
5
5
  AUTHORIZED_PAYEE: number;
6
6
  MULTI_SIG: number;
7
7
  CUSTODY: number;
8
- COLOURED_COIN: number;
8
+ CAT: number;
9
9
  RECOVERABLE: number;
10
10
  DISTRIBUTED_ID: number;
11
11
  POOLING_WALLET: number;
@@ -9,7 +9,7 @@ exports.WalletType = {
9
9
  AUTHORIZED_PAYEE: 3,
10
10
  MULTI_SIG: 4,
11
11
  CUSTODY: 5,
12
- COLOURED_COIN: 6,
12
+ CAT: 6,
13
13
  RECOVERABLE: 7,
14
14
  DISTRIBUTED_ID: 8,
15
15
  POOLING_WALLET: 9,
@@ -0,0 +1,40 @@
1
+ import { str, uint16 } from "../../chia/types/_python_types_";
2
+ import { TRPCAgent } from "../../../rpc/index";
3
+ import { TConnectionGeneral } from "../../types";
4
+ import { TConnectionFullNode } from "../../ws/full_node/index";
5
+ export declare const chia_common_service = "";
6
+ export declare type chia_common_service = typeof chia_common_service;
7
+ export declare const get_connections_command = "get_connections";
8
+ export declare type get_connections_command = typeof get_connections_command;
9
+ export declare type TGetConnectionsRequest = {
10
+ node_type?: str;
11
+ };
12
+ export declare type TGetConnectionsResponse = {
13
+ connections: TConnectionGeneral[] | TConnectionFullNode[];
14
+ };
15
+ export declare function get_connections(agent: TRPCAgent, params: TGetConnectionsRequest): Promise<TGetConnectionsResponse>;
16
+ export declare const open_connection_command = "open_connection";
17
+ export declare type open_connection_command = typeof open_connection_command;
18
+ export declare type TOpenConnectionRequest = {
19
+ host: str;
20
+ port: uint16;
21
+ };
22
+ export declare type TOpenConnectionResponse = {};
23
+ export declare function open_connection(agent: TRPCAgent, params: TOpenConnectionRequest): Promise<TOpenConnectionResponse>;
24
+ export declare const close_connection_command = "close_connection";
25
+ export declare type close_connection_command = typeof close_connection_command;
26
+ export declare type TCloseConnectionRequest = {
27
+ node_id: str;
28
+ };
29
+ export declare type TCloseConnectionResponse = {};
30
+ export declare function close_connection(agent: TRPCAgent, params: TCloseConnectionRequest): Promise<TCloseConnectionResponse>;
31
+ export declare const stop_node_command = "stop_node";
32
+ export declare type stop_node_command = typeof stop_node_command;
33
+ export declare type TStopNodeResponse = {};
34
+ export declare function stop_node(agent: TRPCAgent): Promise<TStopNodeResponse>;
35
+ export declare const get_routes_command = "get_routes";
36
+ export declare type get_routes_command = typeof get_routes_command;
37
+ export declare type TGetRoutesResponse = {
38
+ routes: str[];
39
+ };
40
+ export declare function get_routes(agent: TRPCAgent): Promise<TGetRoutesResponse>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.get_routes = exports.get_routes_command = exports.stop_node = exports.stop_node_command = exports.close_connection = exports.close_connection_command = exports.open_connection = exports.open_connection_command = exports.get_connections = exports.get_connections_command = exports.chia_common_service = void 0;
13
+ exports.chia_common_service = "";
14
+ exports.get_connections_command = "get_connections";
15
+ function get_connections(agent, params) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ return agent.sendMessage(exports.chia_common_service, exports.get_connections_command, params);
18
+ });
19
+ }
20
+ exports.get_connections = get_connections;
21
+ exports.open_connection_command = "open_connection";
22
+ function open_connection(agent, params) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return agent.sendMessage(exports.chia_common_service, exports.open_connection_command, params);
25
+ });
26
+ }
27
+ exports.open_connection = open_connection;
28
+ exports.close_connection_command = "close_connection";
29
+ function close_connection(agent, params) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return agent.sendMessage(exports.chia_common_service, exports.close_connection_command, params);
32
+ });
33
+ }
34
+ exports.close_connection = close_connection;
35
+ exports.stop_node_command = "stop_node";
36
+ function stop_node(agent) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return agent.sendMessage(exports.chia_common_service, exports.stop_node_command);
39
+ });
40
+ }
41
+ exports.stop_node = stop_node;
42
+ exports.get_routes_command = "get_routes";
43
+ function get_routes(agent) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ return agent.sendMessage(exports.chia_common_service, exports.get_routes_command);
46
+ });
47
+ }
48
+ exports.get_routes = get_routes;
@@ -0,0 +1,29 @@
1
+ import { int, str, uint64 } from "../../chia/types/_python_types_";
2
+ import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
3
+ import { TRPCAgent } from "../../../rpc/index";
4
+ export declare const chia_crawler_service = "chia_crawler";
5
+ export declare type chia_crawler_service = typeof chia_crawler_service;
6
+ export declare const get_peer_counts_command = "get_peer_counts";
7
+ export declare type get_peer_counts_command = typeof get_peer_counts_command;
8
+ export declare type TGetPeerCountsResponse = {
9
+ peer_counts: {
10
+ total_last_5_days: int;
11
+ reliable_nodes: int;
12
+ ipv4_last_5_days: bytes32;
13
+ ipv6_last_5_days: uint64;
14
+ versions: Record<str, int>;
15
+ };
16
+ };
17
+ export declare function get_peer_counts(agent: TRPCAgent): Promise<TGetPeerCountsResponse>;
18
+ export declare const get_ips_after_timestamp_command = "get_ips_after_timestamp";
19
+ export declare type get_ips_after_timestamp_command = typeof get_ips_after_timestamp_command;
20
+ export declare type TGetIpsAfterTimestampRequest = {
21
+ after: int;
22
+ offset?: int;
23
+ limit?: int;
24
+ };
25
+ export declare type TGetIpsAfterTimestampResponse = {
26
+ ips: str[];
27
+ total: int;
28
+ };
29
+ export declare function get_ips_after_timestamp(agent: TRPCAgent, params: TGetIpsAfterTimestampRequest): Promise<TGetIpsAfterTimestampResponse>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.get_ips_after_timestamp = exports.get_ips_after_timestamp_command = exports.get_peer_counts = exports.get_peer_counts_command = exports.chia_crawler_service = void 0;
13
+ exports.chia_crawler_service = "chia_crawler";
14
+ exports.get_peer_counts_command = "get_peer_counts";
15
+ function get_peer_counts(agent) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ return agent.sendMessage(exports.chia_crawler_service, exports.get_peer_counts_command);
18
+ });
19
+ }
20
+ exports.get_peer_counts = get_peer_counts;
21
+ exports.get_ips_after_timestamp_command = "get_ips_after_timestamp";
22
+ function get_ips_after_timestamp(agent, params) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return agent.sendMessage(exports.chia_crawler_service, exports.get_ips_after_timestamp_command, params);
25
+ });
26
+ }
27
+ exports.get_ips_after_timestamp = get_ips_after_timestamp;
@@ -2,7 +2,7 @@ import { FullBlock } from "../../chia/types/full_block";
2
2
  import { BlockRecord } from "../../chia/consensus/block_record";
3
3
  import { bool, float, int, Optional, str, uint128, uint32, uint64 } from "../../chia/types/_python_types_";
4
4
  import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
5
- import { CoinRecord } from "../../chia/types/coin_record";
5
+ import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
6
6
  import { SpendBundle } from "../../chia/types/spend_bundle";
7
7
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
8
8
  import { MempoolItem } from "../../chia/types/mempool_item";
@@ -29,6 +29,13 @@ export declare type TGetBlockchainStateResponse = {
29
29
  sub_slot_iters: uint64;
30
30
  space: uint128;
31
31
  mempool_size: int;
32
+ mempool_cost: int;
33
+ "mempool_min_fees": {
34
+ "cost_5000000": float;
35
+ };
36
+ "mempool_max_total_cost": int;
37
+ "block_max_cost": int;
38
+ "node_id": str;
32
39
  };
33
40
  };
34
41
  export declare function get_blockchain_state(agent: TRPCAgent): Promise<TGetBlockchainStateResponse>;
@@ -47,6 +54,7 @@ export declare type TGetBlocksRequest = {
47
54
  start: int;
48
55
  end: int;
49
56
  exclude_header_hash?: bool;
57
+ exclude_reorged?: bool;
50
58
  };
51
59
  export declare type TGetBlocksResponse = {
52
60
  blocks: FullBlock[] | Array<FullBlock & {
@@ -54,6 +62,16 @@ export declare type TGetBlocksResponse = {
54
62
  }>;
55
63
  };
56
64
  export declare function get_blocks(agent: TRPCAgent, data: TGetBlocksRequest): Promise<TGetBlocksResponse>;
65
+ export declare const get_block_count_metrics_command = "get_block_count_metrics";
66
+ export declare type get_block_count_metrics_command = typeof get_block_count_metrics_command;
67
+ export declare type TGetBlockCountMetricsResponse = {
68
+ metrics: {
69
+ "compact_blocks": int;
70
+ "uncompact_blocks": int;
71
+ "hint_count": int;
72
+ };
73
+ };
74
+ export declare function get_block_count_metrics(agent: TRPCAgent): Promise<TGetBlockCountMetricsResponse>;
57
75
  export declare const get_block_record_by_height_command = "get_block_record_by_height";
58
76
  export declare type get_block_record_by_height_command = typeof get_block_record_by_height_command;
59
77
  export declare type TGetBlockRecordByHeightRequest = {
@@ -150,7 +168,7 @@ export declare type TGetCoinRecordsByPuzzleHashRequest = {
150
168
  include_spent_coins: bool;
151
169
  };
152
170
  export declare type TGetCoinRecordsByPuzzleHashResponse = {
153
- coin_records: CoinRecord[];
171
+ coin_records: CoinRecordBackwardCompatible[];
154
172
  };
155
173
  export declare function get_coin_records_by_puzzle_hash(agent: TRPCAgent, data: TGetCoinRecordsByPuzzleHashRequest): Promise<TGetCoinRecordsByPuzzleHashResponse>;
156
174
  export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
@@ -162,7 +180,7 @@ export declare type TGetCoinRecordsByPuzzleHashesRequest = {
162
180
  include_spent_coins: bool;
163
181
  };
164
182
  export declare type TGetCoinRecordsByPuzzleHashesResponse = {
165
- coin_records: CoinRecord[];
183
+ coin_records: CoinRecordBackwardCompatible[];
166
184
  };
167
185
  export declare function get_coin_records_by_puzzle_hashes(agent: TRPCAgent, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<TGetCoinRecordsByPuzzleHashesResponse>;
168
186
  export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
@@ -171,7 +189,7 @@ export declare type TGetCoinRecordByNameRequest = {
171
189
  name: str;
172
190
  };
173
191
  export declare type TGetCoinRecordByNameResponse = {
174
- coin_record: CoinRecord;
192
+ coin_record: CoinRecordBackwardCompatible;
175
193
  };
176
194
  export declare function get_coin_record_by_name(agent: TRPCAgent, data: TGetCoinRecordByNameRequest): Promise<TGetCoinRecordByNameResponse>;
177
195
  export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
@@ -183,7 +201,7 @@ export declare type TGetCoinRecordsByNamesRequest = {
183
201
  include_spent_coins?: bool;
184
202
  };
185
203
  export declare type TGetCoinRecordsByNamesResponse = {
186
- coin_records: CoinRecord[];
204
+ coin_records: CoinRecordBackwardCompatible[];
187
205
  };
188
206
  export declare function get_coin_records_by_names(agent: TRPCAgent, data: TGetCoinRecordsByNamesRequest): Promise<TGetCoinRecordsByNamesResponse>;
189
207
  export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
@@ -195,7 +213,7 @@ export declare type TGetCoinRecordsByParentIdsRequest = {
195
213
  include_spent_coins?: bool;
196
214
  };
197
215
  export declare type TGetCoinRecordsByParentIdsResponse = {
198
- coin_records: CoinRecord[];
216
+ coin_records: CoinRecordBackwardCompatible[];
199
217
  };
200
218
  export declare const push_tx_command = "push_tx";
201
219
  export declare type push_tx_command = typeof push_tx_command;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.get_mempool_item_by_tx_id = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.get_network_info_of_full_node = exports.get_network_info_command_of_full_node = exports.get_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_additions_and_removals = exports.get_additions_and_removals_command = exports.get_network_space = exports.get_network_space_command = exports.get_unfinished_block_headers = exports.get_unfinished_block_headers_command = exports.get_block_records = exports.get_block_records_command = exports.get_block_record = exports.get_block_record_command = exports.get_block_record_by_height = exports.get_block_record_by_height_command = exports.get_blocks = exports.get_blocks_command = exports.get_block = exports.get_block_command = exports.get_blockchain_state = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
12
+ exports.get_mempool_item_by_tx_id = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.get_network_info_of_full_node = exports.get_network_info_command_of_full_node = exports.get_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_additions_and_removals = exports.get_additions_and_removals_command = exports.get_network_space = exports.get_network_space_command = exports.get_unfinished_block_headers = exports.get_unfinished_block_headers_command = exports.get_block_records = exports.get_block_records_command = exports.get_block_record = exports.get_block_record_command = exports.get_block_record_by_height = exports.get_block_record_by_height_command = exports.get_block_count_metrics = exports.get_block_count_metrics_command = exports.get_blocks = exports.get_blocks_command = exports.get_block = exports.get_block_command = exports.get_blockchain_state = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
13
13
  exports.chia_full_node_service = "chia_full_node";
14
14
  exports.get_blockchain_state_command = "get_blockchain_state";
15
15
  function get_blockchain_state(agent) {
@@ -32,6 +32,13 @@ function get_blocks(agent, data) {
32
32
  });
33
33
  }
34
34
  exports.get_blocks = get_blocks;
35
+ exports.get_block_count_metrics_command = "get_block_count_metrics";
36
+ function get_block_count_metrics(agent) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return agent.sendMessage(exports.chia_full_node_service, exports.get_block_count_metrics_command);
39
+ });
40
+ }
41
+ exports.get_block_count_metrics = get_block_count_metrics;
35
42
  exports.get_block_record_by_height_command = "get_block_record_by_height";
36
43
  function get_block_record_by_height(agent, data) {
37
44
  return __awaiter(this, void 0, void 0, function* () {
@@ -1,13 +1,19 @@
1
1
  import type { TGetRewardTargetResponse, TGetSignagePointResponse, TGetSignagePointsResponse, TSetRewardTargetResponse, TGetHarvestersResponse, TSetPayoutInstructionsResponse, TGetPoolStateResponse } from "./farmer/index";
2
2
  export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, TGetSignagePointRequest, TGetSignagePointResponse, TGetSignagePointsRequest, TGetSignagePointsResponse, TSetRewardTargetRequest, TSetRewardTargetResponse, TGetHarvestersRequest, TGetHarvestersResponse, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, TGetPoolStateRequest, TGetPoolStateResponse, get_reward_targets, get_signage_point, get_signage_points, set_reward_targets, get_harvesters, set_pool_payout_instructions, get_pool_state, } from "./farmer/index";
3
- import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse } from "./full_node/index";
4
- export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, TGetBlockRecordRequest, TGetBlockRecordResponse, TGetBlockRecordsRequest, TGetBlockRecordsResponse, TGetBlockRequest, TGetBlockResponse, TGetBlockchainStateRequest, TGetBlockchainStateResponse, TGetBlocksRequest, TGetBlocksResponse, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, TPushTxRequest, TPushTxResponse, get_additions_and_removals, get_all_mempool_items, get_all_mempool_tx_ids, get_block, get_block_record, get_block_record_by_height, get_block_records, get_blockchain_state, get_blocks, get_recent_signage_point_or_eos, get_coin_record_by_name, get_coin_records_by_puzzle_hash, get_coin_records_by_puzzle_hashes, get_initial_freeze_period_of_full_node, get_mempool_item_by_tx_id, get_network_info_of_full_node, get_network_space, get_unfinished_block_headers, push_tx, } from "./full_node/index";
3
+ import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse } from "./full_node/index";
4
+ export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, TGetBlockRecordRequest, TGetBlockRecordResponse, TGetBlockRecordsRequest, TGetBlockRecordsResponse, TGetBlockRequest, TGetBlockResponse, TGetBlockchainStateRequest, TGetBlockchainStateResponse, TGetBlocksRequest, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, TPushTxRequest, TPushTxResponse, get_additions_and_removals, get_all_mempool_items, get_all_mempool_tx_ids, get_block, get_block_record, get_block_record_by_height, get_block_records, get_blockchain_state, get_blocks, get_block_count_metrics, get_recent_signage_point_or_eos, get_coin_record_by_name, get_coin_records_by_puzzle_hash, get_coin_records_by_puzzle_hashes, get_initial_freeze_period_of_full_node, get_mempool_item_by_tx_id, get_network_info_of_full_node, get_network_space, get_unfinished_block_headers, push_tx, } from "./full_node/index";
5
5
  import type { TAddPlotDirectoryResponse, TDeletePlotResponse, TGetPlotDirectoriesResponse, TGetPlotsResponse, TRefreshPlotsResponse, TRemovePlotDirectoryResponse } from "./harvester/index";
6
6
  export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, TDeletePlotRequest, TDeletePlotResponse, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, TGetPlotsRequest, TGetPlotsResponse, TRefreshPlotsRequest, TRefreshPlotsResponse, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, add_plot_directory, delete_plot, get_plot_directories, get_plots, refresh_plots, remove_plot_directory, } from "./harvester/index";
7
- import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelTradeResponse, TCcGetColourResponse, TCcGetNameResponse, TCcSetNameResponse, TCcSpendResponse, TCreateBackupResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, TFarmBlockResponse, TGenerateMnemonicResponse, TGetAllTradesResponse, TGetDiscrepanciesForOfferResponse, TGetFarmedAmountResponse, TGetHeightInfoResponse, TGetInitialFreezePeriodResponseOfWallet, TGetNetworkInfoResponseOfWallet, TGetNextAddressResponse, TGetPrivateKeyResponse, TGetPublicKeysResponse, TGetSyncStatusResponse, TGetTradeResponse, TGetTransactionCountResponse, TGetTransactionResponse, TGetTransactionsResponse, TGetWalletBalanceResponse, TGetWalletsResponse, TLoginResponse, TPwAbsorbRewardsResponse, TPwStatusResponse, TResponseToOfferResponse, TRlSetUserInfoResponse, TSendClawbackTransactionResponse, TSendTransactionResponse, TSendTransactionMultiResponse, TPwJoinPoolResponse, TPwSelfPoolResponse } from "./wallet/index";
8
- export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, TAdditions, TCancelTradeRequest, TCancelTradeResponse, TCcGetColourRequest, TCcGetColourResponse, TCcGetNameRequest, TCcGetNameResponse, TCcSetNameRequest, TCcSetNameResponse, TCcSpendRequest, TCcSpendResponse, TCreateBackupRequest, TCreateBackupResponse, TCreateNewWalletRequest, TCreateNewWalletResponse, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, TCreate_New_CC_WalletRequest, TCreate_New_CC_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, TDeleteKeyRequest, TDeleteKeyResponse, TDidCreateAttestRequest, TDidCreateAttestResponse, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, TDidGetDidRequest, TDidGetDidResponse, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyRequest, TDidGetPubkeyResponse, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, TDidRecoverySpendRequest, TDidRecoverySpendResponse, TDidSpendRequest, TDidSpendResponse, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, TFarmBlockRequest, TFarmBlockResponse, TGenerateMnemonicRequest, TGenerateMnemonicResponse, TGetAllTradesRequest, TGetAllTradesResponse, TGetDiscrepanciesForOfferRequest, TGetDiscrepanciesForOfferResponse, TGetFarmedAmountRequest, TGetFarmedAmountResponse, TGetHeightInfoRequest, TGetHeightInfoResponse, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, TGetNextAddressRequest, TGetNextAddressResponse, TGetPrivateKeyRequest, TGetPrivateKeyResponse, TGetPublicKeysRequest, TGetPublicKeysResponse, TGetSyncStatusRequest, TGetSyncStatusResponse, TGetTradeRequest, TGetTradeResponse, TGetTransactionCountRequest, TGetTransactionCountResponse, TGetTransactionRequest, TGetTransactionResponse, TGetTransactionsRequest, TGetTransactionsResponse, TGetWalletBalanceRequest, TGetWalletBalanceResponse, TGetWalletsRequest, TGetWalletsResponse, TLoginRequest, TLoginResponse, TPwJoinPoolRequest, TPwJoinPoolResponse, TPwSelfPoolRequest, TPwSelfPoolResponse, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, TPwStatusRequest, TPwStatusResponse, TResponseToOfferRequest, TResponseToOfferResponse, TRlSetUserInfoRequest, TRlSetUserInfoResponse, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, TSendTransactionRequest, TSendTransactionResponse, TSendTransactionMultiRequest, TSendTransactionMultiResponse, add_key, add_rate_limited_funds, cancel_trade, cc_get_colour, cc_get_name, cc_set_name, cc_spend, create_backup, create_new_wallet, create_offer_for_ids, create_signed_transaction, delete_all_keys, delete_key, did_create_attest, did_create_backup_file, did_get_did, did_get_information_needed_for_recovery, did_get_pubkey, did_get_recovery_list, did_recovery_spend, did_spend, did_update_recovery_ids, farm_block, generate_mnemonic, get_all_trades, get_discrepancies_for_offer, get_farmed_amount, get_height_info, get_initial_freeze_period_of_wallet, get_network_info_of_wallet, get_next_address, get_private_key, get_public_keys, get_sync_status, get_trade, get_transaction, get_transaction_count, get_transactions, get_wallet_balance, get_wallets, log_in, pw_join_pool, pw_self_pool, pw_absorb_rewards, pw_status, respond_to_offer, rl_set_user_info, send_clawback_transaction, send_transaction, send_transaction_multi, } from "./wallet/index";
7
+ import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, TCatGetAssetIdResponse, TCatGetNameResponse, TCatAssetIdToNameResponse, TCatSetNameResponse, TCatSpendResponse, TCheckOfferValidityResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, TFarmBlockResponse, TGenerateMnemonicResponse, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountResponse, TGetHeightInfoResponse, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetNetworkInfoResponseOfWallet, TGetNextAddressResponse, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryResponse, TGetPrivateKeyResponse, TGetPublicKeysResponse, TGetSyncStatusResponse, TGetTransactionCountResponse, TGetTransactionResponse, TGetTransactionsResponse, TGetWalletBalanceResponse, TGetWalletsResponse, TLoginResponse, TPushTxResponse as TPushTxResponseOfWallet, TPwAbsorbRewardsResponse, TPwStatusResponse, TRlSetUserInfoResponse, TSendClawbackTransactionResponse, TSendTransactionResponse, TSendTransactionMultiResponse, TTakeOfferResponse, TPwJoinPoolResponse, TPwSelfPoolResponse } from "./wallet/index";
8
+ export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, TAdditions, TCancelOfferRequest, TCancelOfferResponse, TCatGetAssetIdRequest, TCatGetAssetIdResponse, TCatGetNameRequest, TCatGetNameResponse, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, TCatSetNameRequest, TCatSetNameResponse, TCatSpendRequest, TCatSpendResponse, TCheckOfferValidityRequest, TCheckOfferValidityResponse, TCreateNewWalletRequest, TCreateNewWalletResponse, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, 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, TDeleteKeyRequest, TDeleteKeyResponse, TDidCreateAttestRequest, TDidCreateAttestResponse, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, TDidGetDidRequest, TDidGetDidResponse, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyRequest, TDidGetPubkeyResponse, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, TDidRecoverySpendRequest, TDidRecoverySpendResponse, TDidSpendRequest, TDidSpendResponse, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, TFarmBlockRequest, TFarmBlockResponse, TGenerateMnemonicRequest, TGenerateMnemonicResponse, TGetAllOffersRequest, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountRequest, TGetFarmedAmountResponse, TGetHeightInfoRequest, TGetHeightInfoResponse, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetOfferRequest, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryRequest, TGetOfferSummaryResponse, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, TGetNextAddressRequest, TGetNextAddressResponse, TGetPrivateKeyRequest, TGetPrivateKeyResponse, TGetPublicKeysRequest, TGetPublicKeysResponse, TGetSyncStatusRequest, TGetSyncStatusResponse, TGetTransactionCountRequest, TGetTransactionCountResponse, TGetTransactionRequest, TGetTransactionResponse, TGetTransactionsRequest, TGetTransactionsResponse, TGetWalletBalanceRequest, TGetWalletBalanceResponse, TGetWalletsRequest, TGetWalletsResponse, TLoginRequest, TLoginResponse, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, TPwJoinPoolRequest, TPwJoinPoolResponse, TPwSelfPoolRequest, TPwSelfPoolResponse, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, TPwStatusRequest, TPwStatusResponse, TRlSetUserInfoRequest, TRlSetUserInfoResponse, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, TSendTransactionRequest, TSendTransactionResponse, TSendTransactionMultiRequest, TSendTransactionMultiResponse, TTakeOfferRequest, TTakeOfferResponse, add_key, add_rate_limited_funds, cancel_offer, cat_get_asset_id, cat_get_name, cat_asset_id_to_name, cat_set_name, cat_spend, check_offer_validity, create_new_wallet, create_offer_for_ids, create_signed_transaction, delete_all_keys, delete_key, did_create_attest, did_create_backup_file, did_get_did, did_get_information_needed_for_recovery, did_get_pubkey, did_get_recovery_list, did_recovery_spend, did_spend, did_update_recovery_ids, farm_block, generate_mnemonic, get_all_offers, get_cat_list, get_farmed_amount, get_height_info, get_initial_freeze_period_of_wallet, get_logged_in_fingerprint, get_offer, get_offers_count, get_offer_summary, get_network_info_of_wallet, get_next_address, get_private_key, get_public_keys, get_sync_status, get_transaction, get_transaction_count, get_transactions, get_wallet_balance, get_wallets, log_in, push_tx as push_tx_wallet, pw_join_pool, pw_self_pool, pw_absorb_rewards, pw_status, rl_set_user_info, send_clawback_transaction, send_transaction, send_transaction_multi, take_offer, } from "./wallet/index";
9
+ import type { TGetIpsAfterTimestampResponse, TGetPeerCountsResponse } from "./crawler/index";
10
+ export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimestampResponse, TGetPeerCountsResponse, get_ips_after_timestamp, get_peer_counts, } from "./crawler/index";
11
+ import type { TGetConnectionsResponse, TOpenConnectionResponse, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse } from "./common/index";
12
+ export { chia_common_service, TGetConnectionsRequest, TGetConnectionsResponse, TOpenConnectionRequest, TOpenConnectionResponse, TCloseConnectionRequest, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, get_connections, open_connection, close_connection, stop_node, get_routes, } from "./common/index";
9
13
  export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse;
10
- export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse;
14
+ export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse;
11
15
  export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
12
- export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelTradeResponse | TCcGetColourResponse | TCcGetNameResponse | TCcSetNameResponse | TCcSpendResponse | TCreateBackupResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllTradesResponse | TGetDiscrepanciesForOfferResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTradeResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TResponseToOfferResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse;
13
- export declare type RpcMessage = RpcFarmerMessage | RpcFullNodeMessage | RpcHarvesterMessage | RpcWalletMessage;
16
+ export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse;
17
+ export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
18
+ export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse;
19
+ export declare type RpcMessage = RpcFarmerMessage | RpcFullNodeMessage | RpcHarvesterMessage | RpcWalletMessage | RpcCrawlerMessage | RpcCommonMessage;