chia-agent 9.2.0 → 10.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.
@@ -5,6 +5,8 @@ import { TRPCAgent } from "../../../rpc/index";
5
5
  import { PoolState } from "../../chia/farmer/farmer";
6
6
  import { Receiver } from "../../chia/plot-sync/receiver";
7
7
  import { Plot } from "../../chia/protocols/harvester_protocol";
8
+ import { GetMessageType, ResType } from "../../types";
9
+ import { TDaemon } from "../../../daemon/index";
8
10
  export declare const chia_farmer_service = "chia_farmer";
9
11
  export declare type chia_farmer_service = typeof chia_farmer_service;
10
12
  export declare const get_signage_point_command = "get_signage_point";
@@ -23,14 +25,16 @@ export declare type TGetSignagePointResponse = {
23
25
  };
24
26
  proofs: [string, ProofOfSpace];
25
27
  };
26
- export declare function get_signage_point(agent: TRPCAgent, params: TGetSignagePointRequest): Promise<TGetSignagePointResponse | import("../../../rpc/index").ErrorResponse>;
28
+ export declare type WsGetSignagePointMessage = GetMessageType<chia_farmer_service, get_signage_point_command, TGetSignagePointResponse>;
29
+ export declare function get_signage_point<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSignagePointRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetSignagePointResponse, WsGetSignagePointMessage>>;
27
30
  export declare const get_signage_points_command = "get_signage_points";
28
31
  export declare type get_signage_points_command = typeof get_signage_points_command;
29
32
  export declare type TGetSignagePointsRequest = {};
30
33
  export declare type TGetSignagePointsResponse = {
31
34
  signage_points: TGetSignagePointResponse[];
32
35
  };
33
- export declare function get_signage_points(agent: TRPCAgent): Promise<TGetSignagePointsResponse | import("../../../rpc/index").ErrorResponse>;
36
+ export declare type WsGetSignagePointsMessage = GetMessageType<chia_farmer_service, get_signage_points_command, TGetSignagePointsResponse>;
37
+ export declare function get_signage_points<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetSignagePointsResponse, WsGetSignagePointsMessage>>;
34
38
  export declare const get_reward_targets_command = "get_reward_targets";
35
39
  export declare type get_reward_targets_command = typeof get_reward_targets_command;
36
40
  export declare type TGetRewardTargetRequest = {
@@ -46,7 +50,8 @@ export declare type TGetRewardTargetResponse = {
46
50
  farmer_target: str;
47
51
  pool_target: str;
48
52
  };
49
- export declare function get_reward_targets(agent: TRPCAgent, params: TGetRewardTargetRequest): Promise<TGetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
53
+ export declare type WsGetRewardTargetsMessage = GetMessageType<chia_farmer_service, get_reward_targets_command, TGetRewardTargetResponse>;
54
+ export declare function get_reward_targets<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRewardTargetRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetRewardTargetResponse, WsGetRewardTargetsMessage>>;
50
55
  export declare const set_reward_targets_command = "set_reward_targets";
51
56
  export declare type set_reward_targets_command = typeof set_reward_targets_command;
52
57
  export declare type TSetRewardTargetRequest = {
@@ -54,14 +59,16 @@ export declare type TSetRewardTargetRequest = {
54
59
  pool_target?: str;
55
60
  };
56
61
  export declare type TSetRewardTargetResponse = {};
57
- export declare function set_reward_targets(agent: TRPCAgent, params: TSetRewardTargetRequest): Promise<TSetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
62
+ export declare type WsSetRewardTargetsMessage = GetMessageType<chia_farmer_service, set_reward_targets_command, TSetRewardTargetResponse>;
63
+ export declare function set_reward_targets<T extends TRPCAgent | TDaemon>(agent: T, params: TSetRewardTargetRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TSetRewardTargetResponse, WsSetRewardTargetsMessage>>;
58
64
  export declare const get_pool_state_command = "get_pool_state";
59
65
  export declare type get_pool_state_command = typeof get_pool_state_command;
60
66
  export declare type TGetPoolStateRequest = {};
61
67
  export declare type TGetPoolStateResponse = {
62
68
  pool_state: PoolState[];
63
69
  };
64
- export declare function get_pool_state(agent: TRPCAgent): Promise<TSetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
70
+ export declare type WsGetPoolStateMessage = GetMessageType<chia_farmer_service, get_pool_state_command, TGetPoolStateResponse>;
71
+ export declare function get_pool_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetPoolStateResponse, WsGetPoolStateMessage>>;
65
72
  export declare const set_payout_instructions_command = "set_payout_instructions";
66
73
  export declare type set_payout_instructions_command = typeof set_payout_instructions_command;
67
74
  export declare type TSetPayoutInstructionsRequest = {
@@ -69,20 +76,23 @@ export declare type TSetPayoutInstructionsRequest = {
69
76
  payout_instructions: str;
70
77
  };
71
78
  export declare type TSetPayoutInstructionsResponse = {};
72
- export declare function set_pool_payout_instructions(agent: TRPCAgent, params: TSetPayoutInstructionsRequest): Promise<TSetPayoutInstructionsResponse | import("../../../rpc/index").ErrorResponse>;
79
+ export declare type WsSetPayoutInstructionsMessage = GetMessageType<chia_farmer_service, set_payout_instructions_command, TSetPayoutInstructionsResponse>;
80
+ export declare function set_pool_payout_instructions<T extends TRPCAgent | TDaemon>(agent: T, params: TSetPayoutInstructionsRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TSetPayoutInstructionsResponse, WsSetPayoutInstructionsMessage>>;
73
81
  export declare const get_harvesters_command = "get_harvesters";
74
82
  export declare type get_harvesters_command = typeof get_harvesters_command;
75
83
  export declare type TGetHarvestersRequest = {};
76
84
  export declare type TGetHarvestersResponse = {
77
85
  harvesters: Receiver[];
78
86
  };
79
- export declare function get_harvesters(agent: TRPCAgent): Promise<TGetHarvestersResponse | import("../../../rpc/index").ErrorResponse>;
87
+ export declare type WsGetHarvestersMessage = GetMessageType<chia_farmer_service, get_harvesters_command, TGetHarvestersResponse>;
88
+ export declare function get_harvesters<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvestersResponse, WsGetHarvestersMessage>>;
80
89
  export declare const get_harvesters_summary_command = "get_harvesters_summary";
81
90
  export declare type get_harvesters_summary_command = typeof get_harvesters_summary_command;
82
91
  export declare type TGetHarvestersSummaryResponse = {
83
92
  harvesters: Receiver<true>[];
84
93
  };
85
- export declare function get_harvesters_summary(agent: TRPCAgent): Promise<TGetHarvestersSummaryResponse | import("../../../rpc/index").ErrorResponse>;
94
+ export declare type WsGetHarvestersSummaryMessage = GetMessageType<chia_farmer_service, get_harvesters_summary_command, TGetHarvestersSummaryResponse>;
95
+ export declare function get_harvesters_summary<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvestersSummaryResponse, WsGetHarvestersSummaryMessage>>;
86
96
  export declare const get_harvester_plots_valid_command = "get_harvester_plots_valid";
87
97
  export declare type get_harvester_plots_valid_command = typeof get_harvester_plots_valid_command;
88
98
  export declare type TGetHarvesterPlotsValidRequest = {
@@ -103,7 +113,8 @@ export declare type TGetHarvesterPlotsValidResponse = {
103
113
  total_count: int;
104
114
  plots: Plot[];
105
115
  };
106
- export declare function get_harvester_plots_valid(agent: TRPCAgent, param: TGetHarvesterPlotsValidRequest): Promise<TGetHarvesterPlotsValidResponse | import("../../../rpc/index").ErrorResponse>;
116
+ export declare type WsGetHarvesterPlotsValidMessage = GetMessageType<chia_farmer_service, get_harvester_plots_valid_command, TGetHarvesterPlotsValidResponse>;
117
+ export declare function get_harvester_plots_valid<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsValidRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvesterPlotsValidResponse, WsGetHarvesterPlotsValidMessage>>;
107
118
  export declare const get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
108
119
  export declare type get_harvester_plots_invalid_command = typeof get_harvester_plots_invalid_command;
109
120
  export declare type TGetHarvesterPlotsInvalidRequest = {
@@ -120,7 +131,8 @@ export declare type TGetHarvesterPlotsInvalidResponse = {
120
131
  total_count: int;
121
132
  plots: str[];
122
133
  };
123
- export declare function get_harvester_plots_invalid(agent: TRPCAgent, param: TGetHarvesterPlotsInvalidRequest): Promise<TGetHarvesterPlotsInvalidResponse | import("../../../rpc/index").ErrorResponse>;
134
+ export declare type WsGetHarvesterPlotsInvalidMessage = GetMessageType<chia_farmer_service, get_harvester_plots_invalid_command, TGetHarvesterPlotsInvalidResponse>;
135
+ export declare function get_harvester_plots_invalid<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsInvalidRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvesterPlotsInvalidResponse, WsGetHarvesterPlotsInvalidMessage>>;
124
136
  export declare const get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
125
137
  export declare type get_harvester_plots_keys_missing_command = typeof get_harvester_plots_keys_missing_command;
126
138
  export declare type TGetHarvesterPlotsKeysMissingRequest = {
@@ -137,7 +149,8 @@ export declare type TGetHarvesterPlotsKeysMissingResponse = {
137
149
  total_count: int;
138
150
  plots: str[];
139
151
  };
140
- export declare function get_harvester_plots_keys_missing(agent: TRPCAgent, param: TGetHarvesterPlotsKeysMissingRequest): Promise<TGetHarvesterPlotsKeysMissingResponse | import("../../../rpc/index").ErrorResponse>;
152
+ export declare type WsGetHarvesterPlotsKeysMissingMessage = GetMessageType<chia_farmer_service, get_harvester_plots_keys_missing_command, TGetHarvesterPlotsKeysMissingResponse>;
153
+ export declare function get_harvester_plots_keys_missing<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsKeysMissingRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvesterPlotsKeysMissingResponse, WsGetHarvesterPlotsKeysMissingMessage>>;
141
154
  export declare const get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
142
155
  export declare type get_harvester_plots_duplicates_command = typeof get_harvester_plots_duplicates_command;
143
156
  export declare type TGetHarvesterPlotsDuplicatesRequest = {
@@ -154,7 +167,8 @@ export declare type TGetHarvesterPlotsDuplicatesResponse = {
154
167
  total_count: int;
155
168
  plots: str[];
156
169
  };
157
- export declare function get_harvester_plots_duplicates(agent: TRPCAgent, param: TGetHarvesterPlotsDuplicatesRequest): Promise<TGetHarvesterPlotsDuplicatesResponse | import("../../../rpc/index").ErrorResponse>;
170
+ export declare type WsGetHarvesterPlotsDuplicatesMessage = GetMessageType<chia_farmer_service, get_harvester_plots_duplicates_command, TGetHarvesterPlotsDuplicatesResponse>;
171
+ export declare function get_harvester_plots_duplicates<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsDuplicatesRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetHarvesterPlotsDuplicatesResponse, WsGetHarvesterPlotsDuplicatesMessage>>;
158
172
  export declare const get_pool_login_link_command = "get_pool_login_link";
159
173
  export declare type get_pool_login_link_command = typeof get_pool_login_link_command;
160
174
  export declare type TGetPoolLinkRequest = {
@@ -163,4 +177,7 @@ export declare type TGetPoolLinkRequest = {
163
177
  export declare type TGetPoolLinkResponse = {
164
178
  login_link: str;
165
179
  };
166
- export declare function get_pool_login_link(agent: TRPCAgent, params: TGetPoolLinkRequest): Promise<TGetPoolLinkResponse | import("../../../rpc/index").ErrorResponse>;
180
+ export declare type WsGetPoolLinkMessage = GetMessageType<chia_farmer_service, get_pool_login_link_command, TGetPoolLinkResponse>;
181
+ export declare function get_pool_login_link<T extends TRPCAgent | TDaemon>(agent: T, params: TGetPoolLinkRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TGetPoolLinkResponse, WsGetPoolLinkMessage>>;
182
+ export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
183
+ export declare type RpcFarmerMessageOnWs = WsGetRewardTargetsMessage | WsGetSignagePointMessage | WsGetSignagePointsMessage | WsSetRewardTargetsMessage | WsGetHarvestersMessage | WsGetHarvestersSummaryMessage | WsGetHarvesterPlotsValidMessage | WsGetHarvesterPlotsInvalidMessage | WsGetHarvesterPlotsKeysMissingMessage | WsGetHarvesterPlotsDuplicatesMessage | WsSetPayoutInstructionsMessage | WsGetPoolStateMessage | WsGetPoolLinkMessage;
@@ -11,6 +11,8 @@ import { EndOfSubSlotBundle } from "../../chia/types/end_of_slot_bundle";
11
11
  import { SignagePoint } from "../../chia/full_node/signage_point";
12
12
  import { CoinSpend } from "../../chia/types/coin_spend";
13
13
  import { CLVMCost } from "../../chia/types/clvm_cost";
14
+ import { GetMessageType, ResType } from "../../types";
15
+ import { TDaemon } from "../../../daemon/index";
14
16
  export declare const chia_full_node_service = "chia_full_node";
15
17
  export declare type chia_full_node_service = typeof chia_full_node_service;
16
18
  export declare const get_blockchain_state_command = "get_blockchain_state";
@@ -39,7 +41,8 @@ export declare type TGetBlockchainStateResponse = {
39
41
  node_id: str;
40
42
  };
41
43
  };
42
- export declare function get_blockchain_state(agent: TRPCAgent): Promise<TGetBlockchainStateResponse | import("../../../rpc").ErrorResponse>;
44
+ export declare type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
45
+ export declare function get_blockchain_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockchainStateResponse, WsGetBlockchainStateMessage>>;
43
46
  export declare const get_block_command = "get_block";
44
47
  export declare type get_block_command = typeof get_block_command;
45
48
  export declare type TGetBlockRequest = {
@@ -48,7 +51,8 @@ export declare type TGetBlockRequest = {
48
51
  export declare type TGetBlockResponse = {
49
52
  block: FullBlock;
50
53
  };
51
- export declare function get_block(agent: TRPCAgent, data: TGetBlockRequest): Promise<TGetBlockResponse | import("../../../rpc").ErrorResponse>;
54
+ export declare type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
55
+ export declare function get_block<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockResponse, WsGetBlockMessage>>;
52
56
  export declare const get_blocks_command = "get_blocks";
53
57
  export declare type get_blocks_command = typeof get_blocks_command;
54
58
  export declare type TGetBlocksRequest = {
@@ -62,7 +66,8 @@ export declare type TGetBlocksResponse = {
62
66
  header_hash: str;
63
67
  }>;
64
68
  };
65
- export declare function get_blocks(agent: TRPCAgent, data: TGetBlocksRequest): Promise<TGetBlocksResponse | import("../../../rpc").ErrorResponse>;
69
+ export declare type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
70
+ export declare function get_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlocksRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlocksResponse, WsGetBlocksMessage>>;
66
71
  export declare const get_block_count_metrics_command = "get_block_count_metrics";
67
72
  export declare type get_block_count_metrics_command = typeof get_block_count_metrics_command;
68
73
  export declare type TGetBlockCountMetricsResponse = {
@@ -72,7 +77,8 @@ export declare type TGetBlockCountMetricsResponse = {
72
77
  "hint_count": int;
73
78
  };
74
79
  };
75
- export declare function get_block_count_metrics(agent: TRPCAgent): Promise<TGetBlockCountMetricsResponse | import("../../../rpc").ErrorResponse>;
80
+ export declare type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
81
+ export declare function get_block_count_metrics<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockCountMetricsResponse, WsGetBlockCountMetricsMessage>>;
76
82
  export declare const get_block_record_by_height_command = "get_block_record_by_height";
77
83
  export declare type get_block_record_by_height_command = typeof get_block_record_by_height_command;
78
84
  export declare type TGetBlockRecordByHeightRequest = {
@@ -81,7 +87,8 @@ export declare type TGetBlockRecordByHeightRequest = {
81
87
  export declare type TGetBlockRecordByHeightResponse = {
82
88
  block_record: Optional<BlockRecord>;
83
89
  };
84
- export declare function get_block_record_by_height(agent: TRPCAgent, data: TGetBlockRecordByHeightRequest): Promise<TGetBlockRecordByHeightResponse | import("../../../rpc").ErrorResponse>;
90
+ export declare type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
91
+ export declare function get_block_record_by_height<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordByHeightRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordByHeightResponse, WsGetBlockRecordByHeightMessage>>;
85
92
  export declare const get_block_record_command = "get_block_record";
86
93
  export declare type get_block_record_command = typeof get_block_record_command;
87
94
  export declare type TGetBlockRecordRequest = {
@@ -90,7 +97,8 @@ export declare type TGetBlockRecordRequest = {
90
97
  export declare type TGetBlockRecordResponse = {
91
98
  block_record: BlockRecord;
92
99
  };
93
- export declare function get_block_record(agent: TRPCAgent, data: TGetBlockRecordRequest): Promise<TGetBlockRecordResponse | import("../../../rpc").ErrorResponse>;
100
+ export declare type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
101
+ export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
94
102
  export declare const get_block_records_command = "get_block_records";
95
103
  export declare type get_block_records_command = typeof get_block_records_command;
96
104
  export declare type TGetBlockRecordsRequest = {
@@ -100,7 +108,8 @@ export declare type TGetBlockRecordsRequest = {
100
108
  export declare type TGetBlockRecordsResponse = {
101
109
  block_records: BlockRecord[];
102
110
  };
103
- export declare function get_block_records(agent: TRPCAgent, data: TGetBlockRecordsRequest): Promise<TGetBlockRecordsResponse | import("../../../rpc").ErrorResponse>;
111
+ export declare type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
112
+ export declare function get_block_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordsResponse, WsGetBlockRecordsMessage>>;
104
113
  export declare const get_block_spends_command = "get_block_spends";
105
114
  export declare type get_block_spends_command = typeof get_block_spends_command;
106
115
  export declare type TGetBlockSpendsRequest = {
@@ -109,14 +118,16 @@ export declare type TGetBlockSpendsRequest = {
109
118
  export declare type TGetBlockSpendsResponse = {
110
119
  block_spends: CoinSpend[];
111
120
  };
112
- export declare function get_block_spends(agent: TRPCAgent, data: TGetBlockSpendsRequest): Promise<TGetBlockSpendsResponse | import("../../../rpc").ErrorResponse>;
121
+ export declare type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
122
+ export declare function get_block_spends<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockSpendsResponse, WsGetBlockSpendsMessage>>;
113
123
  export declare const get_unfinished_block_headers_command = "get_unfinished_block_headers";
114
124
  export declare type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
115
125
  export declare type TGetUnfinishedBlockHeadersRequest = {};
116
126
  export declare type TGetUnfinishedBlockHeadersResponse = {
117
127
  headers: UnfinishedHeaderBlock[];
118
128
  };
119
- export declare function get_unfinished_block_headers(agent: TRPCAgent): Promise<TGetUnfinishedBlockHeadersResponse | import("../../../rpc").ErrorResponse>;
129
+ export declare type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
130
+ export declare function get_unfinished_block_headers<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetUnfinishedBlockHeadersResponse, WsGetUnfinishedBlockHeadersMessage>>;
120
131
  export declare const get_network_space_command = "get_network_space";
121
132
  export declare type get_network_space_command = typeof get_network_space_command;
122
133
  export declare type TGetNetworkSpaceRequest = {
@@ -126,7 +137,8 @@ export declare type TGetNetworkSpaceRequest = {
126
137
  export declare type TGetNetworkSpaceResponse = {
127
138
  space: uint128;
128
139
  };
129
- export declare function get_network_space(agent: TRPCAgent, data: TGetNetworkSpaceRequest): Promise<TGetNetworkSpaceResponse | import("../../../rpc").ErrorResponse>;
140
+ export declare type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
141
+ export declare function get_network_space<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNetworkSpaceRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNetworkSpaceResponse, WsGetNetworkSpaceMessage>>;
130
142
  export declare const get_additions_and_removals_command = "get_additions_and_removals";
131
143
  export declare type get_additions_and_removals_command = typeof get_additions_and_removals_command;
132
144
  export declare type TGetAdditionsAndRemovalsRequest = {
@@ -136,14 +148,16 @@ export declare type TGetAdditionsAndRemovalsResponse = {
136
148
  additions: CoinRecordBackwardCompatible[];
137
149
  removals: CoinRecordBackwardCompatible[];
138
150
  };
139
- export declare function get_additions_and_removals(agent: TRPCAgent, data: TGetAdditionsAndRemovalsRequest): Promise<TGetAdditionsAndRemovalsResponse | import("../../../rpc").ErrorResponse>;
151
+ export declare type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
152
+ export declare function get_additions_and_removals<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAdditionsAndRemovalsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAdditionsAndRemovalsResponse, WsGetAdditionsAndRemovalsMessage>>;
140
153
  export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
141
154
  export declare type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
142
155
  export declare type TGetInitialFreezePeriodRequestOfFullNode = {};
143
156
  export declare type TGetInitialFreezePeriodResponseOfFullNode = {
144
157
  INITIAL_FREEZE_END_TIMESTAMP: uint64;
145
158
  };
146
- export declare function get_initial_freeze_period_of_full_node(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfFullNode | import("../../../rpc").ErrorResponse>;
159
+ export declare type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
160
+ export declare function get_initial_freeze_period_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetInitialFreezePeriodResponseOfFullNode, WsGetInitialFreezePeriodMessageOfFullNode>>;
147
161
  export declare const get_network_info_command_of_full_node = "get_network_info";
148
162
  export declare type get_network_info_command_of_full_node = typeof get_network_info_command_of_full_node;
149
163
  export declare type TGetNetworkInfoRequestOfFullNode = {};
@@ -151,7 +165,8 @@ export declare type TGetNetworkInfoResponseOfFullNode = {
151
165
  network_name: str;
152
166
  network_prefix: str;
153
167
  };
154
- export declare function get_network_info_of_full_node(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfFullNode | import("../../../rpc").ErrorResponse>;
168
+ export declare type WsGetNetworkInfoMessageOfFullNode = GetMessageType<chia_full_node_service, get_network_info_command_of_full_node, TGetNetworkInfoResponseOfFullNode>;
169
+ export declare function get_network_info_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNetworkInfoResponseOfFullNode, WsGetNetworkInfoMessageOfFullNode>>;
155
170
  export declare const get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
156
171
  export declare type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
157
172
  export declare type TGetRecentSignagePointOrEOSCommandRequest = {
@@ -168,7 +183,8 @@ export declare type TGetRecentSignagePointOrEOSCommandResponse = {
168
183
  time_received: float;
169
184
  reverted: bool;
170
185
  };
171
- export declare function get_recent_signage_point_or_eos(agent: TRPCAgent, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<TGetRecentSignagePointOrEOSCommandResponse | import("../../../rpc").ErrorResponse>;
186
+ export declare type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
187
+ export declare function get_recent_signage_point_or_eos<T extends TRPCAgent | TDaemon>(agent: T, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetRecentSignagePointOrEOSCommandResponse, WsGetRecentSignagePointOrEOSCommandMessage>>;
172
188
  export declare const get_coin_records_by_puzzle_hash_command = "get_coin_records_by_puzzle_hash";
173
189
  export declare type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
174
190
  export declare type TGetCoinRecordsByPuzzleHashRequest = {
@@ -180,7 +196,8 @@ export declare type TGetCoinRecordsByPuzzleHashRequest = {
180
196
  export declare type TGetCoinRecordsByPuzzleHashResponse = {
181
197
  coin_records: CoinRecordBackwardCompatible[];
182
198
  };
183
- export declare function get_coin_records_by_puzzle_hash(agent: TRPCAgent, data: TGetCoinRecordsByPuzzleHashRequest): Promise<TGetCoinRecordsByPuzzleHashResponse | import("../../../rpc").ErrorResponse>;
199
+ export declare type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
200
+ export declare function get_coin_records_by_puzzle_hash<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByPuzzleHashResponse, WsGetCoinRecordsByPuzzleHashMessage>>;
184
201
  export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
185
202
  export declare type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
186
203
  export declare type TGetCoinRecordsByPuzzleHashesRequest = {
@@ -192,7 +209,8 @@ export declare type TGetCoinRecordsByPuzzleHashesRequest = {
192
209
  export declare type TGetCoinRecordsByPuzzleHashesResponse = {
193
210
  coin_records: CoinRecordBackwardCompatible[];
194
211
  };
195
- export declare function get_coin_records_by_puzzle_hashes(agent: TRPCAgent, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<TGetCoinRecordsByPuzzleHashesResponse | import("../../../rpc").ErrorResponse>;
212
+ export declare type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
213
+ export declare function get_coin_records_by_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByPuzzleHashesResponse, WsGetCoinRecordsByPuzzleHashesMessage>>;
196
214
  export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
197
215
  export declare type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
198
216
  export declare type TGetCoinRecordByNameRequest = {
@@ -201,7 +219,8 @@ export declare type TGetCoinRecordByNameRequest = {
201
219
  export declare type TGetCoinRecordByNameResponse = {
202
220
  coin_record: CoinRecordBackwardCompatible;
203
221
  };
204
- export declare function get_coin_record_by_name(agent: TRPCAgent, data: TGetCoinRecordByNameRequest): Promise<TGetCoinRecordByNameResponse | import("../../../rpc").ErrorResponse>;
222
+ export declare type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
223
+ export declare function get_coin_record_by_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordByNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordByNameResponse, WsGetCoinRecordByNameMessage>>;
205
224
  export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
206
225
  export declare type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
207
226
  export declare type TGetCoinRecordsByNamesRequest = {
@@ -213,7 +232,8 @@ export declare type TGetCoinRecordsByNamesRequest = {
213
232
  export declare type TGetCoinRecordsByNamesResponse = {
214
233
  coin_records: CoinRecordBackwardCompatible[];
215
234
  };
216
- export declare function get_coin_records_by_names(agent: TRPCAgent, data: TGetCoinRecordsByNamesRequest): Promise<TGetCoinRecordsByNamesResponse | import("../../../rpc").ErrorResponse>;
235
+ export declare type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
236
+ export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
217
237
  export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
218
238
  export declare type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
219
239
  export declare type TGetCoinRecordsByParentIdsRequest = {
@@ -225,7 +245,8 @@ export declare type TGetCoinRecordsByParentIdsRequest = {
225
245
  export declare type TGetCoinRecordsByParentIdsResponse = {
226
246
  coin_records: CoinRecordBackwardCompatible[];
227
247
  };
228
- export declare function get_coin_records_by_parent_ids(agent: TRPCAgent, data: TGetCoinRecordsByParentIdsRequest): Promise<TGetCoinRecordsByParentIdsResponse | import("../../../rpc").ErrorResponse>;
248
+ export declare type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
249
+ export declare function get_coin_records_by_parent_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByParentIdsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByParentIdsResponse, WsGetCoinRecordsByParentIdsMessage>>;
229
250
  export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
230
251
  export declare type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
231
252
  export declare type TGetCoinRecordsByHintRequest = {
@@ -237,7 +258,8 @@ export declare type TGetCoinRecordsByHintRequest = {
237
258
  export declare type TGetCoinRecordsByHintResponse = {
238
259
  coin_records: CoinRecordBackwardCompatible[];
239
260
  };
240
- export declare function get_coin_records_by_hint(agent: TRPCAgent, data: TGetCoinRecordsByHintRequest): Promise<TGetCoinRecordsByHintResponse | import("../../../rpc").ErrorResponse>;
261
+ export declare type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
262
+ export declare function get_coin_records_by_hint<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByHintRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByHintResponse, WsGetCoinRecordsByHintMessage>>;
241
263
  export declare const push_tx_command = "push_tx";
242
264
  export declare type push_tx_command = typeof push_tx_command;
243
265
  export declare type TPushTxRequest = {
@@ -246,7 +268,8 @@ export declare type TPushTxRequest = {
246
268
  export declare type TPushTxResponse = {
247
269
  status: str;
248
270
  };
249
- export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse | import("../../../rpc").ErrorResponse>;
271
+ export declare type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
272
+ export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPushTxResponse, WsPushTxMessage>>;
250
273
  export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
251
274
  export declare type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
252
275
  export declare type TGetPuzzleAndSolutionRequest = {
@@ -256,30 +279,35 @@ export declare type TGetPuzzleAndSolutionRequest = {
256
279
  export declare type TGetPuzzleAndSolutionResponse = {
257
280
  coin_solution: CoinSpend;
258
281
  };
259
- export declare function get_puzzle_and_solution(agent: TRPCAgent, data: TGetPuzzleAndSolutionRequest): Promise<TGetPuzzleAndSolutionResponse | import("../../../rpc").ErrorResponse>;
282
+ export declare type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
283
+ export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
260
284
  export declare const get_all_mempool_tx_ids_command = "get_all_mempool_tx_ids";
261
285
  export declare type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
262
286
  export declare type TGetAllMempoolTxIdsRequest = {};
263
287
  export declare type TGetAllMempoolTxIdsResponse = {
264
288
  tx_ids: bytes32[];
265
289
  };
266
- export declare function get_all_mempool_tx_ids(agent: TRPCAgent): Promise<TGetAllMempoolTxIdsResponse | import("../../../rpc").ErrorResponse>;
290
+ export declare type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
291
+ export declare function get_all_mempool_tx_ids<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllMempoolTxIdsResponse, WsGetAllMempoolTxIdsMessage>>;
267
292
  export declare const get_all_mempool_items_command = "get_all_mempool_items";
268
293
  export declare type get_all_mempool_items_command = typeof get_all_mempool_items_command;
269
294
  export declare type TGetAllMempoolItemsRequest = {};
270
295
  export declare type TGetAllMempoolItemsResponse = {
271
296
  mempool_items: Record<string, MempoolItem>;
272
297
  };
273
- export declare function get_all_mempool_items(agent: TRPCAgent): Promise<TGetAllMempoolItemsResponse | import("../../../rpc").ErrorResponse>;
298
+ export declare type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
299
+ export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
274
300
  export declare const get_mempool_item_by_tx_id_command = "get_mempool_item_by_tx_id";
275
301
  export declare type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
276
302
  export declare type TGetMempoolItemByTxIdRequest = {
277
303
  tx_id: str;
304
+ include_pending?: bool;
278
305
  };
279
306
  export declare type TGetMempoolItemByTxIdResponse = {
280
307
  mempool_item: MempoolItem;
281
308
  };
282
- export declare function get_mempool_item_by_tx_id(agent: TRPCAgent, data: TGetMempoolItemByTxIdRequest): Promise<TGetMempoolItemByTxIdResponse | import("../../../rpc").ErrorResponse>;
309
+ export declare type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
310
+ export declare function get_mempool_item_by_tx_id<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemByTxIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetMempoolItemByTxIdResponse, WsGetMempoolItemByTxIdMessage>>;
283
311
  export declare const get_fee_estimate_command = "get_fee_estimate";
284
312
  export declare type get_fee_estimate_command = typeof get_fee_estimate_command;
285
313
  export declare type TGetFeeEstimateRequest = {
@@ -298,4 +326,7 @@ export declare type TGetFeeEstimateResponse = {
298
326
  last_peak_timestamp: uint64;
299
327
  node_time_utc: int;
300
328
  };
301
- export declare function get_fee_estimate(agent: TRPCAgent, data: TGetFeeEstimateRequest): Promise<TGetFeeEstimateResponse | import("../../../rpc").ErrorResponse>;
329
+ export declare type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
330
+ export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
331
+ export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse;
332
+ export declare type RpcFullNodeMessageOnWs = WsGetAdditionsAndRemovalsMessage | WsGetAllMempoolItemsMessage | WsGetAllMempoolTxIdsMessage | WsGetBlockMessage | WsGetBlockRecordByHeightMessage | WsGetBlockRecordMessage | WsGetBlockRecordsMessage | WsGetBlockSpendsMessage | WsGetBlockchainStateMessage | WsGetBlocksMessage | WsGetBlockCountMetricsMessage | WsGetRecentSignagePointOrEOSCommandMessage | WsGetCoinRecordByNameMessage | WsGetCoinRecordsByNamesMessage | WsGetCoinRecordsByPuzzleHashMessage | WsGetCoinRecordsByPuzzleHashesMessage | WsGetCoinRecordsByParentIdsMessage | WsGetCoinRecordsByHintMessage | WsGetInitialFreezePeriodMessageOfFullNode | WsGetMempoolItemByTxIdMessage | WsGetNetworkInfoMessageOfFullNode | WsGetNetworkSpaceMessage | WsGetUnfinishedBlockHeadersMessage | WsPushTxMessage | WsGetPuzzleAndSolutionMessage | WsGetFeeEstimateMessage;
@@ -1,6 +1,8 @@
1
1
  import { str } from "../../chia/types/_python_types_";
2
2
  import { TRPCAgent } from "../../../rpc";
3
3
  import { Plot } from "../../chia/harvester/harvester";
4
+ import { GetMessageType, ResType } from "../../types";
5
+ import { TDaemon } from "../../../daemon/index";
4
6
  export declare const chia_harvester_service = "chia_harvester";
5
7
  export declare type chia_harvester_service = typeof chia_harvester_service;
6
8
  export declare const get_plots_command = "get_plots";
@@ -11,37 +13,45 @@ export declare type TGetPlotsResponse = {
11
13
  failed_to_open_filenames: str[];
12
14
  not_found_filenames: str[];
13
15
  };
14
- export declare function get_plots(agent: TRPCAgent): Promise<TGetPlotsResponse | import("../../../rpc").ErrorResponse>;
16
+ export declare type WsGetPlotsMessage = GetMessageType<chia_harvester_service, get_plots_command, TGetPlotsResponse>;
17
+ export declare function get_plots<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPlotsResponse, WsGetPlotsMessage>>;
15
18
  export declare const refresh_plots_command = "refresh_plots";
16
19
  export declare type refresh_plots_command = typeof refresh_plots_command;
17
20
  export declare type TRefreshPlotsRequest = {};
18
21
  export declare type TRefreshPlotsResponse = {};
19
- export declare function refresh_plots(agent: TRPCAgent): Promise<TRefreshPlotsResponse | import("../../../rpc").ErrorResponse>;
22
+ export declare type WsRefreshPlotsMessage = GetMessageType<chia_harvester_service, refresh_plots_command, TRefreshPlotsResponse>;
23
+ export declare function refresh_plots<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRefreshPlotsResponse, WsRefreshPlotsMessage>>;
20
24
  export declare const delete_plot_command = "delete_plot";
21
25
  export declare type delete_plot_command = typeof delete_plot_command;
22
26
  export declare type TDeletePlotRequest = {
23
27
  filename: str;
24
28
  };
25
29
  export declare type TDeletePlotResponse = {};
26
- export declare function delete_plot(agent: TRPCAgent, data: TDeletePlotRequest): Promise<TDeletePlotResponse | import("../../../rpc").ErrorResponse>;
30
+ export declare type WsDeletePlotMessage = GetMessageType<chia_harvester_service, delete_plot_command, TDeletePlotResponse>;
31
+ export declare function delete_plot<T extends TRPCAgent | TDaemon>(agent: T, data: TDeletePlotRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeletePlotResponse, WsDeletePlotMessage>>;
27
32
  export declare const add_plot_directory_command = "add_plot_directory";
28
33
  export declare type add_plot_directory_command = typeof add_plot_directory_command;
29
34
  export declare type TAddPlotDirectoryRequest = {
30
35
  dirname: str;
31
36
  };
32
37
  export declare type TAddPlotDirectoryResponse = {};
33
- export declare function add_plot_directory(agent: TRPCAgent, data: TAddPlotDirectoryRequest): Promise<TAddPlotDirectoryResponse | import("../../../rpc").ErrorResponse>;
38
+ export declare type WsAddPlotDirectoryMessage = GetMessageType<chia_harvester_service, add_plot_directory_command, TAddPlotDirectoryResponse>;
39
+ export declare function add_plot_directory<T extends TRPCAgent | TDaemon>(agent: T, data: TAddPlotDirectoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TAddPlotDirectoryResponse, WsAddPlotDirectoryMessage>>;
34
40
  export declare const get_plot_directories_command = "get_plot_directories";
35
41
  export declare type get_plot_directories_command = typeof get_plot_directories_command;
36
42
  export declare type TGetPlotDirectoriesRequest = {};
37
43
  export declare type TGetPlotDirectoriesResponse = {
38
44
  directories: str[];
39
45
  };
40
- export declare function get_plot_directories(agent: TRPCAgent): Promise<TGetPlotDirectoriesResponse | import("../../../rpc").ErrorResponse>;
46
+ export declare type WsGetPlotDirectoriesMessage = GetMessageType<chia_harvester_service, get_plot_directories_command, TGetPlotDirectoriesResponse>;
47
+ export declare function get_plot_directories<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPlotDirectoriesResponse, WsGetPlotDirectoriesMessage>>;
41
48
  export declare const remove_plot_directory_command = "remove_plot_directory";
42
49
  export declare type remove_plot_directory_command = typeof remove_plot_directory_command;
43
50
  export declare type TRemovePlotDirectoryRequest = {
44
51
  dirname: str;
45
52
  };
46
53
  export declare type TRemovePlotDirectoryResponse = {};
47
- export declare function remove_plot_directory(agent: TRPCAgent, data: TRemovePlotDirectoryRequest): Promise<TRemovePlotDirectoryResponse | import("../../../rpc").ErrorResponse>;
54
+ export declare type WsRemovePlotDirectoryMessage = GetMessageType<chia_harvester_service, remove_plot_directory_command, TRemovePlotDirectoryResponse>;
55
+ export declare function remove_plot_directory<T extends TRPCAgent | TDaemon>(agent: T, data: TRemovePlotDirectoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRemovePlotDirectoryResponse, WsRemovePlotDirectoryMessage>>;
56
+ export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
57
+ export declare type RpcHarvesterMessageOnWs = WsAddPlotDirectoryMessage | WsDeletePlotMessage | WsGetPlotDirectoriesMessage | WsGetPlotsMessage | WsRefreshPlotsMessage | WsRemovePlotDirectoryMessage;
@@ -1,22 +1,15 @@
1
- import type { TGetRewardTargetResponse, TGetSignagePointResponse, TGetSignagePointsResponse, TSetRewardTargetResponse, TGetHarvestersResponse, TGetHarvestersSummaryResponse, TGetHarvesterPlotsValidResponse, TGetHarvesterPlotsInvalidResponse, TGetHarvesterPlotsKeysMissingResponse, TGetHarvesterPlotsDuplicatesResponse, TSetPayoutInstructionsResponse, TGetPoolStateResponse, TGetPoolLinkResponse } from "./farmer/index";
2
- export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateRequest, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
3
- import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockSpendsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByNamesResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetCoinRecordsByParentIdsResponse, TGetCoinRecordsByHintResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse, TGetPuzzleAndSolutionResponse, TGetFeeEstimateResponse } from "./full_node/index";
1
+ import type { RpcFarmerMessage } from "./farmer/index";
2
+ export { chia_farmer_service, RpcFarmerMessage, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateRequest, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
3
+ import type { RpcFullNodeMessage } from "./full_node/index";
4
4
  export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, } from "./full_node/index";
5
- import type { TAddPlotDirectoryResponse, TDeletePlotResponse, TGetPlotDirectoriesResponse, TGetPlotsResponse, TRefreshPlotsResponse, TRemovePlotDirectoryResponse } from "./harvester/index";
5
+ import type { RpcHarvesterMessage } from "./harvester/index";
6
6
  export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
7
- import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, TCancelOffersResponse, TCatGetAssetIdResponse, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameResponse, TCatSetNameResponse, TCatSpendResponse, TCheckOfferValidityResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsResponse, TGetCurrentDerivationIndexResponse, TExtendDerivationIndexResponse, TGetNotificationsResponse, TDeleteNotificationsResponse, TSendNotificationResponse, TSignMessageByAddressResponse, TSignMessageByIdResponse, TNftCalculateRoyaltiesResponse, TNftMintBulkResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidSetWalletNameResponse, TDidGetWalletNameResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidTransferDidResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidGetCurrentCoinInfoResponse, TDidGetMetadataResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, TDidUpdateMetadataResponse, TNftMintNftResponse, TNftGetNftsResponse, TNftSetNftDidResponse, TNftGetByDidResponse, TNftGetWalletDidResponse, TNftGetWalletsWithDidsResponse, TNftSetNftStatusResponse, TNftTransferNftResponse, TNftGetInfoResponse, TNftAddUriResponse, 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, TPushTransactionsResponse, TPwAbsorbRewardsResponse, TPwStatusResponse, TRlSetUserInfoResponse, TSendClawbackTransactionResponse, TSendTransactionResponse, TSendTransactionMultiResponse, TTakeOfferResponse, TPwJoinPoolResponse, TPwSelfPoolResponse, TCreateNewDlResponse, TDlTrackNewResponse, TDlStopTrackingResponse, TDlLatestSingletonResponse, TDlSingletonsByRootResponse, TDlUpdateRootResponse, TDlUpdateMultipleResponse, TDlHistoryResponse, TDlOwnedSingletonsResponse, TDlGetMirrorsResponse, TDlNewMirrorResponse, TDlDeleteMirrorResponse } from "./wallet/index";
7
+ import type { RpcWalletMessage } from "./wallet/index";
8
8
  export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
9
- import { TCreateDataStoreResponse, TGetOwnedStoresResponse, TBatchUpdateResponse, TGetValueResponse, TGetKeysResponse, TGetKeysValuesResponse, TGetAncestorsResponse, TGetRootResponse, TGetLocalRootResponse, TGetRootsResponse, TDeleteKeyResponse as TDeleteKeyResponseDL, TInsertResponse, TSubscribeResponse, TUnsubscribeResponse, TAddMirrorResponse, TDeleteMirrorResponse, TGetMirrorsResponse, TRemoveSubscriptionsResponse, TSubscriptionsResponse, TGetKvDiffResponse, TGetRootHistoryResponse, TAddMissingFilesResponse, TMakeOfferResponse, TTakeOfferResponse as TTakeOfferResponseDL, TVerifyOfferResponse, TCancelOfferResponse as TCancelOfferResponseDL } from "./data_layer/index";
10
- export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, } from "./data_layer/index";
11
- import type { TGetIpsAfterTimestampResponse, TGetPeerCountsResponse } from "./crawler/index";
9
+ import type { RpcDataLayerMessage } from "./data_layer/index";
10
+ export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, } from "./data_layer/index";
11
+ import type { RpcCrawlerMessage } from "./crawler/index";
12
12
  export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimestampResponse, TGetPeerCountsResponse, get_ips_after_timestamp, get_peer_counts, } from "./crawler/index";
13
- import type { TGetConnectionsResponse, TOpenConnectionResponse, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, THealthzResponse } from "./common/index";
13
+ import type { RpcCommonMessage } from "./common/index";
14
14
  export { chia_common_service, TGetConnectionsRequest, TGetConnectionsResponse, TOpenConnectionRequest, TOpenConnectionResponse, TCloseConnectionRequest, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, THealthzResponse, get_connections, open_connection, close_connection, stop_node, get_routes, healthz, } from "./common/index";
15
- export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
16
- export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse;
17
- export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
18
- export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
19
- export declare type RpcDataLayerMessage = TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponseDL | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponseDL | TVerifyOfferResponse | TCancelOfferResponseDL;
20
- export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
21
- export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse | THealthzResponse;
22
15
  export declare type RpcMessage = RpcFarmerMessage | RpcFullNodeMessage | RpcHarvesterMessage | RpcWalletMessage | RpcDataLayerMessage | RpcCrawlerMessage | RpcCommonMessage;
package/api/rpc/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
4
4
  exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.delete_all_keys = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = void 0;
5
5
  exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.farm_block = exports.nft_add_uri = void 0;
6
- exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = void 0;
6
+ exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = void 0;
7
7
  var index_1 = require("./farmer/index");
8
8
  Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
9
9
  Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
@@ -182,6 +182,7 @@ Object.defineProperty(exports, "make_offer", { enumerable: true, get: function (
182
182
  Object.defineProperty(exports, "take_offer_dl", { enumerable: true, get: function () { return index_5.take_offer; } });
183
183
  Object.defineProperty(exports, "verify_offer", { enumerable: true, get: function () { return index_5.verify_offer; } });
184
184
  Object.defineProperty(exports, "cancel_offer_dl", { enumerable: true, get: function () { return index_5.cancel_offer; } });
185
+ Object.defineProperty(exports, "get_sync_status_dl", { enumerable: true, get: function () { return index_5.get_sync_status; } });
185
186
  var index_6 = require("./crawler/index");
186
187
  Object.defineProperty(exports, "chia_crawler_service", { enumerable: true, get: function () { return index_6.chia_crawler_service; } });
187
188
  Object.defineProperty(exports, "get_ips_after_timestamp", { enumerable: true, get: function () { return index_6.get_ips_after_timestamp; } });