chia-agent 13.2.0 → 14.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +3 -3
- package/api/rpc/common/index.d.ts +6 -6
- package/api/rpc/crawler/index.d.ts +2 -2
- package/api/rpc/data_layer/index.d.ts +30 -30
- package/api/rpc/farmer/index.d.ts +13 -13
- package/api/rpc/full_node/index.d.ts +37 -37
- package/api/rpc/harvester/index.d.ts +8 -8
- package/api/rpc/wallet/index.d.ts +137 -137
- package/config/index.js +1 -1
- package/daemon/index.js +2 -3
- package/package.json +1 -1
- package/rpc/index.d.ts +21 -5
- package/rpc/index.js +46 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [14.0.0]
|
|
4
|
+
### Breaking change
|
|
5
|
+
- When RPC API responds with `success: false`, its `Promise` now does `reject`. (Previously it does `resolve`)
|
|
6
|
+
### Added
|
|
7
|
+
- Added connectivity options for `RPCAgent`.
|
|
8
|
+
- `keepAlive` (default: `true`)
|
|
9
|
+
- `keepAliveMsecs` (default: `1000`)
|
|
10
|
+
- `maxSockets` (default: `Infinity`)
|
|
11
|
+
- `timeout` (default: `undefined`)
|
|
12
|
+
```typescript
|
|
13
|
+
// Usage
|
|
14
|
+
const {RPCAgent, setLogLevel} = require("chia-agent");
|
|
15
|
+
const {get_plots} = require("chia-agent/api/rpc");
|
|
16
|
+
|
|
17
|
+
const agent = new RPCAgent({
|
|
18
|
+
service: "harvester",
|
|
19
|
+
keepAlive: true,
|
|
20
|
+
keepAliveMsecs: 3000,
|
|
21
|
+
maxSockets: 1, // Avoid to set `1` if your requests may be sent in parallel.
|
|
22
|
+
timeout: 5000,
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
3
26
|
## [13.2.0]
|
|
4
27
|
### Added
|
|
5
28
|
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
@@ -1285,6 +1308,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1285
1308
|
Initial release.
|
|
1286
1309
|
|
|
1287
1310
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1311
|
+
|
|
1312
|
+
[14.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.2.0...v14.0.0
|
|
1288
1313
|
[13.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.1.0...v13.2.0
|
|
1289
1314
|
[13.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.0.1...v13.1.0
|
|
1290
1315
|
[13.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v13.0.0...v13.0.1
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/js/chia-agent) [](https://opensource.org/licenses/MIT)
|
|
3
3
|
|
|
4
4
|
chia rpc/websocket client library for NodeJS.
|
|
5
|
-
Supports all RPC/Websocket API available at `chia 2.1.3`.
|
|
5
|
+
Supports all RPC/Websocket API available at `chia 2.1.2/2.1.3/2.1.4`.
|
|
6
6
|
\(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
|
|
7
7
|
|
|
8
8
|
you can develop your own nodejs script with `chia-agent` to:
|
|
@@ -22,8 +22,8 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/
|
|
25
|
+
- [`b5fe5020ec75b29e91a399b6648ff0a1a683ca04`](https://github.com/Chia-Network/chia-blockchain/tree/b5fe5020ec75b29e91a399b6648ff0a1a683ca04) of [chia-blockchain 2.1.4](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/b5fe5020ec75b29e91a399b6648ff0a1a683ca04...main)
|
|
27
27
|
- [`6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5`](https://github.com/Chia-Network/pool-reference/tree/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
28
|
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5...main)
|
|
29
29
|
|
|
@@ -14,7 +14,7 @@ export declare type TGetConnectionsResponse = {
|
|
|
14
14
|
connections: TConnectionGeneral[] | TConnectionFullNode[];
|
|
15
15
|
};
|
|
16
16
|
export declare type WsGetConnectionsMessage = GetMessageType<chia_common_service, get_connections_command, TGetConnectionsResponse>;
|
|
17
|
-
export declare function get_connections<T extends TRPCAgent | TDaemon>(agent: T, params: TGetConnectionsRequest): Promise<
|
|
17
|
+
export declare function get_connections<T extends TRPCAgent | TDaemon>(agent: T, params: TGetConnectionsRequest): Promise<ResType<T, TGetConnectionsResponse, WsGetConnectionsMessage>>;
|
|
18
18
|
export declare const open_connection_command = "open_connection";
|
|
19
19
|
export declare type open_connection_command = typeof open_connection_command;
|
|
20
20
|
export declare type TOpenConnectionRequest = {
|
|
@@ -28,7 +28,7 @@ export declare type TOpenConnectionResponse = {
|
|
|
28
28
|
success: True;
|
|
29
29
|
};
|
|
30
30
|
export declare type WsOpenConnectionMessage = GetMessageType<chia_common_service, open_connection_command, TOpenConnectionResponse>;
|
|
31
|
-
export declare function open_connection<T extends TRPCAgent | TDaemon>(agent: T, params: TOpenConnectionRequest): Promise<
|
|
31
|
+
export declare function open_connection<T extends TRPCAgent | TDaemon>(agent: T, params: TOpenConnectionRequest): Promise<ResType<T, TOpenConnectionResponse, WsOpenConnectionMessage>>;
|
|
32
32
|
export declare const close_connection_command = "close_connection";
|
|
33
33
|
export declare type close_connection_command = typeof close_connection_command;
|
|
34
34
|
export declare type TCloseConnectionRequest = {
|
|
@@ -36,12 +36,12 @@ export declare type TCloseConnectionRequest = {
|
|
|
36
36
|
};
|
|
37
37
|
export declare type TCloseConnectionResponse = {};
|
|
38
38
|
export declare type WsCloseConnectionMessage = GetMessageType<chia_common_service, close_connection_command, TCloseConnectionResponse>;
|
|
39
|
-
export declare function close_connection<T extends TRPCAgent | TDaemon>(agent: T, params: TCloseConnectionRequest): Promise<
|
|
39
|
+
export declare function close_connection<T extends TRPCAgent | TDaemon>(agent: T, params: TCloseConnectionRequest): Promise<ResType<T, TCloseConnectionResponse, WsCloseConnectionMessage>>;
|
|
40
40
|
export declare const stop_node_command = "stop_node";
|
|
41
41
|
export declare type stop_node_command = typeof stop_node_command;
|
|
42
42
|
export declare type TStopNodeResponse = {};
|
|
43
43
|
export declare type WsStopNodeMessage = GetMessageType<chia_common_service, stop_node_command, TStopNodeResponse>;
|
|
44
|
-
export declare function stop_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
44
|
+
export declare function stop_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TStopNodeResponse, WsStopNodeMessage>>;
|
|
45
45
|
export declare const get_routes_command = "get_routes";
|
|
46
46
|
export declare type get_routes_command = typeof get_routes_command;
|
|
47
47
|
export declare type TGetRoutesResponse = {
|
|
@@ -49,13 +49,13 @@ export declare type TGetRoutesResponse = {
|
|
|
49
49
|
routes: str[];
|
|
50
50
|
};
|
|
51
51
|
export declare type WsGetRoutesMessage = GetMessageType<chia_common_service, get_routes_command, TGetRoutesResponse>;
|
|
52
|
-
export declare function get_routes<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
52
|
+
export declare function get_routes<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetRoutesResponse, WsGetRoutesMessage>>;
|
|
53
53
|
export declare const healthz_command = "healthz";
|
|
54
54
|
export declare type healthz_command = typeof healthz_command;
|
|
55
55
|
export declare type THealthzResponse = {
|
|
56
56
|
success: True;
|
|
57
57
|
};
|
|
58
58
|
export declare type WsHealthzMessage = GetMessageType<chia_common_service, healthz_command, THealthzResponse>;
|
|
59
|
-
export declare function healthz<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
59
|
+
export declare function healthz<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, THealthzResponse, WsHealthzMessage>>;
|
|
60
60
|
export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse | THealthzResponse;
|
|
61
61
|
export declare type RpcCommonMessageOnWs = WsGetConnectionsMessage | WsOpenConnectionMessage | WsCloseConnectionMessage | WsStopNodeMessage | WsGetRoutesMessage | WsHealthzMessage;
|
|
@@ -17,7 +17,7 @@ export declare type TGetPeerCountsResponse = {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
export declare type WsGetPeerCountsMessage = GetMessageType<chia_crawler_service, get_peer_counts_command, TGetPeerCountsResponse>;
|
|
20
|
-
export declare function get_peer_counts<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
20
|
+
export declare function get_peer_counts<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetPeerCountsResponse, WsGetPeerCountsMessage>>;
|
|
21
21
|
export declare const get_ips_after_timestamp_command = "get_ips_after_timestamp";
|
|
22
22
|
export declare type get_ips_after_timestamp_command = typeof get_ips_after_timestamp_command;
|
|
23
23
|
export declare type TGetIpsAfterTimestampRequest = {
|
|
@@ -30,6 +30,6 @@ export declare type TGetIpsAfterTimestampResponse = {
|
|
|
30
30
|
total: int;
|
|
31
31
|
};
|
|
32
32
|
export declare type WsGetIpsAfterTimestampMessage = GetMessageType<chia_crawler_service, get_ips_after_timestamp_command, TGetIpsAfterTimestampResponse>;
|
|
33
|
-
export declare function get_ips_after_timestamp<T extends TRPCAgent | TDaemon>(agent: T, params: TGetIpsAfterTimestampRequest): Promise<
|
|
33
|
+
export declare function get_ips_after_timestamp<T extends TRPCAgent | TDaemon>(agent: T, params: TGetIpsAfterTimestampRequest): Promise<ResType<T, TGetIpsAfterTimestampResponse, WsGetIpsAfterTimestampMessage>>;
|
|
34
34
|
export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
|
|
35
35
|
export declare type RpcCrawlerMessageOnWs = WsGetIpsAfterTimestampMessage | WsGetPeerCountsMessage;
|
|
@@ -14,7 +14,7 @@ export declare type TWalletLogInRequest = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare type TWalletLogInResponse = {};
|
|
16
16
|
export declare type WsWalletLogInMessage = GetMessageType<chia_data_layer_service, wallet_log_in_command, TWalletLogInResponse>;
|
|
17
|
-
export declare function wallet_log_in<T extends TRPCAgent | TDaemon>(agent: T, params: TWalletLogInRequest): Promise<
|
|
17
|
+
export declare function wallet_log_in<T extends TRPCAgent | TDaemon>(agent: T, params: TWalletLogInRequest): Promise<ResType<T, TWalletLogInResponse, WsWalletLogInMessage>>;
|
|
18
18
|
export declare const create_data_store_command = "create_data_store";
|
|
19
19
|
export declare type create_data_store_command = typeof create_data_store_command;
|
|
20
20
|
export declare type TCreateDataStoreRequest = {
|
|
@@ -26,14 +26,14 @@ export declare type TCreateDataStoreResponse = {
|
|
|
26
26
|
id: str;
|
|
27
27
|
};
|
|
28
28
|
export declare type WsCreateDataStoreMessage = GetMessageType<chia_data_layer_service, create_data_store_command, TCreateDataStoreResponse>;
|
|
29
|
-
export declare function create_data_store<T extends TRPCAgent | TDaemon>(agent: T, params: TCreateDataStoreRequest): Promise<
|
|
29
|
+
export declare function create_data_store<T extends TRPCAgent | TDaemon>(agent: T, params: TCreateDataStoreRequest): Promise<ResType<T, TCreateDataStoreResponse, WsCreateDataStoreMessage>>;
|
|
30
30
|
export declare const get_owned_stores_command = "get_owned_stores";
|
|
31
31
|
export declare type get_owned_stores_command = typeof get_owned_stores_command;
|
|
32
32
|
export declare type TGetOwnedStoresResponse = {
|
|
33
33
|
store_ids: str[];
|
|
34
34
|
};
|
|
35
35
|
export declare type WsGetOwnedStoresMessage = GetMessageType<chia_data_layer_service, get_owned_stores_command, TGetOwnedStoresResponse>;
|
|
36
|
-
export declare function get_owned_stores<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
36
|
+
export declare function get_owned_stores<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetOwnedStoresResponse, WsGetOwnedStoresMessage>>;
|
|
37
37
|
export declare const batch_update_command = "batch_update";
|
|
38
38
|
export declare type batch_update_command = typeof batch_update_command;
|
|
39
39
|
export declare type TBatchUpdateRequest = {
|
|
@@ -50,7 +50,7 @@ export declare type TBatchUpdateResponse = {
|
|
|
50
50
|
tx_id: bytes32;
|
|
51
51
|
};
|
|
52
52
|
export declare type WsBatchUpdateMessage = GetMessageType<chia_data_layer_service, batch_update_command, TBatchUpdateResponse>;
|
|
53
|
-
export declare function batch_update<T extends TRPCAgent | TDaemon>(agent: T, params: TBatchUpdateRequest): Promise<
|
|
53
|
+
export declare function batch_update<T extends TRPCAgent | TDaemon>(agent: T, params: TBatchUpdateRequest): Promise<ResType<T, TBatchUpdateResponse, WsBatchUpdateMessage>>;
|
|
54
54
|
export declare const get_value_command = "get_value";
|
|
55
55
|
export declare type get_value_command = typeof get_value_command;
|
|
56
56
|
export declare type TGetValueRequest = {
|
|
@@ -62,7 +62,7 @@ export declare type TGetValueResponse = {
|
|
|
62
62
|
value: str | None;
|
|
63
63
|
};
|
|
64
64
|
export declare type WsGetValueMessage = GetMessageType<chia_data_layer_service, get_value_command, TGetValueResponse>;
|
|
65
|
-
export declare function get_value<T extends TRPCAgent | TDaemon>(agent: T, params: TGetValueRequest): Promise<
|
|
65
|
+
export declare function get_value<T extends TRPCAgent | TDaemon>(agent: T, params: TGetValueRequest): Promise<ResType<T, TGetValueResponse, WsGetValueMessage>>;
|
|
66
66
|
export declare const get_keys_command = "get_keys";
|
|
67
67
|
export declare type get_keys_command = typeof get_keys_command;
|
|
68
68
|
export declare type TGetKeysRequest = {
|
|
@@ -73,7 +73,7 @@ export declare type TGetKeysResponse = {
|
|
|
73
73
|
keys: str[];
|
|
74
74
|
};
|
|
75
75
|
export declare type WsGetKeysMessage = GetMessageType<chia_data_layer_service, get_keys_command, TGetKeysResponse>;
|
|
76
|
-
export declare function get_keys<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysRequest): Promise<
|
|
76
|
+
export declare function get_keys<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysRequest): Promise<ResType<T, TGetKeysResponse, WsGetKeysMessage>>;
|
|
77
77
|
export declare const get_keys_values_command = "get_keys_values";
|
|
78
78
|
export declare type get_keys_values_command = typeof get_keys_values_command;
|
|
79
79
|
export declare type TGetKeysValuesRequest = {
|
|
@@ -88,7 +88,7 @@ export declare type TGetKeysValuesResponse = {
|
|
|
88
88
|
}>;
|
|
89
89
|
};
|
|
90
90
|
export declare type WsGetKeysValuesMessage = GetMessageType<chia_data_layer_service, get_keys_values_command, TGetKeysValuesResponse>;
|
|
91
|
-
export declare function get_keys_values<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysValuesRequest): Promise<
|
|
91
|
+
export declare function get_keys_values<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysValuesRequest): Promise<ResType<T, TGetKeysValuesResponse, WsGetKeysValuesMessage>>;
|
|
92
92
|
export declare const get_ancestors_command = "get_ancestors";
|
|
93
93
|
export declare type get_ancestors_command = typeof get_ancestors_command;
|
|
94
94
|
export declare type TGetAncestorsRequest = {
|
|
@@ -103,7 +103,7 @@ export declare type TGetAncestorsResponse = {
|
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
105
|
export declare type WsGetAncestorsMessage = GetMessageType<chia_data_layer_service, get_ancestors_command, TGetAncestorsResponse>;
|
|
106
|
-
export declare function get_ancestors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetAncestorsRequest): Promise<
|
|
106
|
+
export declare function get_ancestors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetAncestorsRequest): Promise<ResType<T, TGetAncestorsResponse, WsGetAncestorsMessage>>;
|
|
107
107
|
export declare const get_root_command = "get_root";
|
|
108
108
|
export declare type get_root_command = typeof get_root_command;
|
|
109
109
|
export declare type TGetRootRequest = {
|
|
@@ -115,7 +115,7 @@ export declare type TGetRootResponse = {
|
|
|
115
115
|
timestamp: uint64;
|
|
116
116
|
};
|
|
117
117
|
export declare type WsGetRootMessage = GetMessageType<chia_data_layer_service, get_root_command, TGetRootResponse>;
|
|
118
|
-
export declare function get_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootRequest): Promise<
|
|
118
|
+
export declare function get_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootRequest): Promise<ResType<T, TGetRootResponse, WsGetRootMessage>>;
|
|
119
119
|
export declare const get_local_root_command = "get_local_root";
|
|
120
120
|
export declare type get_local_root_command = typeof get_local_root_command;
|
|
121
121
|
export declare type TGetLocalRootRequest = {
|
|
@@ -125,7 +125,7 @@ export declare type TGetLocalRootResponse = {
|
|
|
125
125
|
hash: bytes32 | None;
|
|
126
126
|
};
|
|
127
127
|
export declare type WsGetLocalRootMessage = GetMessageType<chia_data_layer_service, get_local_root_command, TGetLocalRootResponse>;
|
|
128
|
-
export declare function get_local_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetLocalRootRequest): Promise<
|
|
128
|
+
export declare function get_local_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetLocalRootRequest): Promise<ResType<T, TGetLocalRootResponse, WsGetLocalRootMessage>>;
|
|
129
129
|
export declare const get_roots_command = "get_roots";
|
|
130
130
|
export declare type get_roots_command = typeof get_roots_command;
|
|
131
131
|
export declare type TGetRootsRequest = {
|
|
@@ -140,7 +140,7 @@ export declare type TGetRootsResponse = {
|
|
|
140
140
|
}>;
|
|
141
141
|
};
|
|
142
142
|
export declare type WsGetRootsMessage = GetMessageType<chia_data_layer_service, get_roots_command, TGetRootsResponse>;
|
|
143
|
-
export declare function get_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootsRequest): Promise<
|
|
143
|
+
export declare function get_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootsRequest): Promise<ResType<T, TGetRootsResponse, WsGetRootsMessage>>;
|
|
144
144
|
export declare const delete_key_command = "delete_key";
|
|
145
145
|
export declare type delete_key_command = typeof delete_key_command;
|
|
146
146
|
export declare type TDeleteKeyRequest = {
|
|
@@ -152,7 +152,7 @@ export declare type TDeleteKeyResponse = {
|
|
|
152
152
|
tx_id: bytes32;
|
|
153
153
|
};
|
|
154
154
|
export declare type WsDeleteKeyMessage = GetMessageType<chia_data_layer_service, delete_key_command, TDeleteKeyResponse>;
|
|
155
|
-
export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteKeyRequest): Promise<
|
|
155
|
+
export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteKeyRequest): Promise<ResType<T, TDeleteKeyResponse, WsDeleteKeyMessage>>;
|
|
156
156
|
export declare const insert_command = "insert";
|
|
157
157
|
export declare type insert_command = typeof insert_command;
|
|
158
158
|
export declare type TInsertRequest = {
|
|
@@ -165,7 +165,7 @@ export declare type TInsertResponse = {
|
|
|
165
165
|
tx_id: bytes32;
|
|
166
166
|
};
|
|
167
167
|
export declare type WsInsertMessage = GetMessageType<chia_data_layer_service, insert_command, TInsertResponse>;
|
|
168
|
-
export declare function insert<T extends TRPCAgent | TDaemon>(agent: T, params: TInsertRequest): Promise<
|
|
168
|
+
export declare function insert<T extends TRPCAgent | TDaemon>(agent: T, params: TInsertRequest): Promise<ResType<T, TInsertResponse, WsInsertMessage>>;
|
|
169
169
|
export declare const subscribe_command = "subscribe";
|
|
170
170
|
export declare type subscribe_command = typeof subscribe_command;
|
|
171
171
|
export declare type TSubscribeRequest = {
|
|
@@ -174,7 +174,7 @@ export declare type TSubscribeRequest = {
|
|
|
174
174
|
};
|
|
175
175
|
export declare type TSubscribeResponse = {};
|
|
176
176
|
export declare type WsSubscribeMessage = GetMessageType<chia_data_layer_service, subscribe_command, TSubscribeResponse>;
|
|
177
|
-
export declare function subscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TSubscribeRequest): Promise<
|
|
177
|
+
export declare function subscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TSubscribeRequest): Promise<ResType<T, TSubscribeResponse, WsSubscribeMessage>>;
|
|
178
178
|
export declare const unsubscribe_command = "unsubscribe";
|
|
179
179
|
export declare type unsubscribe_command = typeof unsubscribe_command;
|
|
180
180
|
export declare type TUnsubscribeRequest = {
|
|
@@ -183,7 +183,7 @@ export declare type TUnsubscribeRequest = {
|
|
|
183
183
|
};
|
|
184
184
|
export declare type TUnsubscribeResponse = {};
|
|
185
185
|
export declare type WsUnsubscribeMessage = GetMessageType<chia_data_layer_service, unsubscribe_command, TUnsubscribeResponse>;
|
|
186
|
-
export declare function unsubscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TUnsubscribeRequest): Promise<
|
|
186
|
+
export declare function unsubscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TUnsubscribeRequest): Promise<ResType<T, TUnsubscribeResponse, WsUnsubscribeMessage>>;
|
|
187
187
|
export declare const add_mirror_command = "add_mirror";
|
|
188
188
|
export declare type add_mirror_command = typeof add_mirror_command;
|
|
189
189
|
export declare type TAddMirrorRequest = {
|
|
@@ -194,7 +194,7 @@ export declare type TAddMirrorRequest = {
|
|
|
194
194
|
};
|
|
195
195
|
export declare type TAddMirrorResponse = {};
|
|
196
196
|
export declare type WsAddMirrorMessage = GetMessageType<chia_data_layer_service, add_mirror_command, TAddMirrorResponse>;
|
|
197
|
-
export declare function add_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMirrorRequest): Promise<
|
|
197
|
+
export declare function add_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMirrorRequest): Promise<ResType<T, TAddMirrorResponse, WsAddMirrorMessage>>;
|
|
198
198
|
export declare const delete_mirror_command = "delete_mirror";
|
|
199
199
|
export declare type delete_mirror_command = typeof delete_mirror_command;
|
|
200
200
|
export declare type TDeleteMirrorRequest = {
|
|
@@ -203,7 +203,7 @@ export declare type TDeleteMirrorRequest = {
|
|
|
203
203
|
};
|
|
204
204
|
export declare type TDeleteMirrorResponse = {};
|
|
205
205
|
export declare type WsDeleteMirrorMessage = GetMessageType<chia_data_layer_service, delete_mirror_command, TDeleteMirrorResponse>;
|
|
206
|
-
export declare function delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteMirrorRequest): Promise<
|
|
206
|
+
export declare function delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteMirrorRequest): Promise<ResType<T, TDeleteMirrorResponse, WsDeleteMirrorMessage>>;
|
|
207
207
|
export declare const get_mirrors_command = "get_mirrors";
|
|
208
208
|
export declare type get_mirrors_command = typeof get_mirrors_command;
|
|
209
209
|
export declare type TGetMirrorsRequest = {
|
|
@@ -219,7 +219,7 @@ export declare type TGetMirrorsResponse = {
|
|
|
219
219
|
}>;
|
|
220
220
|
};
|
|
221
221
|
export declare type WsGetMirrorsMessage = GetMessageType<chia_data_layer_service, get_mirrors_command, TGetMirrorsResponse>;
|
|
222
|
-
export declare function get_mirrors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetMirrorsRequest): Promise<
|
|
222
|
+
export declare function get_mirrors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetMirrorsRequest): Promise<ResType<T, TGetMirrorsResponse, WsGetMirrorsMessage>>;
|
|
223
223
|
export declare const remove_subscriptions_command = "remove_subscriptions";
|
|
224
224
|
export declare type remove_subscriptions_command = typeof remove_subscriptions_command;
|
|
225
225
|
export declare type TRemoveSubscriptionsRequest = {
|
|
@@ -228,14 +228,14 @@ export declare type TRemoveSubscriptionsRequest = {
|
|
|
228
228
|
};
|
|
229
229
|
export declare type TRemoveSubscriptionsResponse = {};
|
|
230
230
|
export declare type WsRemoveSubscriptionsMessage = GetMessageType<chia_data_layer_service, remove_subscriptions_command, TRemoveSubscriptionsResponse>;
|
|
231
|
-
export declare function remove_subscriptions<T extends TRPCAgent | TDaemon>(agent: T, params: TRemoveSubscriptionsRequest): Promise<
|
|
231
|
+
export declare function remove_subscriptions<T extends TRPCAgent | TDaemon>(agent: T, params: TRemoveSubscriptionsRequest): Promise<ResType<T, TRemoveSubscriptionsResponse, WsRemoveSubscriptionsMessage>>;
|
|
232
232
|
export declare const subscriptions_command = "subscriptions";
|
|
233
233
|
export declare type subscriptions_command = typeof subscriptions_command;
|
|
234
234
|
export declare type TSubscriptionsResponse = {
|
|
235
235
|
store_ids: str[];
|
|
236
236
|
};
|
|
237
237
|
export declare type WsSubscriptionsMessage = GetMessageType<chia_data_layer_service, subscriptions_command, TSubscriptionsResponse>;
|
|
238
|
-
export declare function subscriptions<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
238
|
+
export declare function subscriptions<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TSubscriptionsResponse, WsSubscriptionsMessage>>;
|
|
239
239
|
export declare const get_kv_diff_command = "get_kv_diff";
|
|
240
240
|
export declare type get_kv_diff_command = typeof get_kv_diff_command;
|
|
241
241
|
export declare type TGetKvDiffRequest = {
|
|
@@ -251,7 +251,7 @@ export declare type TGetKvDiffResponse = {
|
|
|
251
251
|
}>;
|
|
252
252
|
};
|
|
253
253
|
export declare type WsGetKvDiffMessage = GetMessageType<chia_data_layer_service, get_kv_diff_command, TGetKvDiffResponse>;
|
|
254
|
-
export declare function get_kv_diff<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKvDiffRequest): Promise<
|
|
254
|
+
export declare function get_kv_diff<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKvDiffRequest): Promise<ResType<T, TGetKvDiffResponse, WsGetKvDiffMessage>>;
|
|
255
255
|
export declare const get_root_history_command = "get_root_history";
|
|
256
256
|
export declare type get_root_history_command = typeof get_root_history_command;
|
|
257
257
|
export declare type TGetRootHistoryRequest = {
|
|
@@ -265,7 +265,7 @@ export declare type TGetRootHistoryResponse = {
|
|
|
265
265
|
}>;
|
|
266
266
|
};
|
|
267
267
|
export declare type WsGetRootHistoryMessage = GetMessageType<chia_data_layer_service, get_root_history_command, TGetRootHistoryResponse>;
|
|
268
|
-
export declare function get_root_history<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootHistoryRequest): Promise<
|
|
268
|
+
export declare function get_root_history<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootHistoryRequest): Promise<ResType<T, TGetRootHistoryResponse, WsGetRootHistoryMessage>>;
|
|
269
269
|
export declare const add_missing_files_command = "add_missing_files";
|
|
270
270
|
export declare type add_missing_files_command = typeof add_missing_files_command;
|
|
271
271
|
export declare type TAddMissingFilesRequest = {
|
|
@@ -275,7 +275,7 @@ export declare type TAddMissingFilesRequest = {
|
|
|
275
275
|
};
|
|
276
276
|
export declare type TAddMissingFilesResponse = {};
|
|
277
277
|
export declare type WsAddMissingFilesMessage = GetMessageType<chia_data_layer_service, add_missing_files_command, TAddMissingFilesResponse>;
|
|
278
|
-
export declare function add_missing_files<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMissingFilesRequest): Promise<
|
|
278
|
+
export declare function add_missing_files<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMissingFilesRequest): Promise<ResType<T, TAddMissingFilesResponse, WsAddMissingFilesMessage>>;
|
|
279
279
|
export declare const make_offer_command = "make_offer";
|
|
280
280
|
export declare type make_offer_command = typeof make_offer_command;
|
|
281
281
|
export declare type TMakeOfferRequest = {
|
|
@@ -288,7 +288,7 @@ export declare type TMakeOfferResponse = {
|
|
|
288
288
|
offer: OfferMarshalled;
|
|
289
289
|
};
|
|
290
290
|
export declare type WsMakeOfferMessage = GetMessageType<chia_data_layer_service, make_offer_command, TMakeOfferResponse>;
|
|
291
|
-
export declare function make_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TMakeOfferRequest): Promise<
|
|
291
|
+
export declare function make_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TMakeOfferRequest): Promise<ResType<T, TMakeOfferResponse, WsMakeOfferMessage>>;
|
|
292
292
|
export declare const take_offer_command = "take_offer";
|
|
293
293
|
export declare type take_offer_command = typeof take_offer_command;
|
|
294
294
|
export declare type TTakeOfferRequest = {
|
|
@@ -300,7 +300,7 @@ export declare type TTakeOfferResponse = {
|
|
|
300
300
|
trade_id: str;
|
|
301
301
|
};
|
|
302
302
|
export declare type WsTakeOfferMessage = GetMessageType<chia_data_layer_service, take_offer_command, TTakeOfferResponse>;
|
|
303
|
-
export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TTakeOfferRequest): Promise<
|
|
303
|
+
export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TTakeOfferRequest): Promise<ResType<T, TTakeOfferResponse, WsTakeOfferMessage>>;
|
|
304
304
|
export declare const verify_offer_command = "verify_offer";
|
|
305
305
|
export declare type verify_offer_command = typeof verify_offer_command;
|
|
306
306
|
export declare type TVerifyOfferRequest = {
|
|
@@ -314,7 +314,7 @@ export declare type TVerifyOfferResponse = {
|
|
|
314
314
|
fee: Optional<uint64>;
|
|
315
315
|
};
|
|
316
316
|
export declare type WsVerifyOfferMessage = GetMessageType<chia_data_layer_service, verify_offer_command, TVerifyOfferResponse>;
|
|
317
|
-
export declare function verify_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TVerifyOfferRequest): Promise<
|
|
317
|
+
export declare function verify_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TVerifyOfferRequest): Promise<ResType<T, TVerifyOfferResponse, WsVerifyOfferMessage>>;
|
|
318
318
|
export declare const cancel_offer_command = "cancel_offer";
|
|
319
319
|
export declare type cancel_offer_command = typeof cancel_offer_command;
|
|
320
320
|
export declare type TCancelOfferRequest = {
|
|
@@ -326,7 +326,7 @@ export declare type TCancelOfferResponse = {
|
|
|
326
326
|
success: bool;
|
|
327
327
|
};
|
|
328
328
|
export declare type WsCancelOfferMessage = GetMessageType<chia_data_layer_service, cancel_offer_command, TCancelOfferResponse>;
|
|
329
|
-
export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TCancelOfferRequest): Promise<
|
|
329
|
+
export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TCancelOfferRequest): Promise<ResType<T, TCancelOfferResponse, WsCancelOfferMessage>>;
|
|
330
330
|
export declare const get_sync_status_command = "get_sync_status";
|
|
331
331
|
export declare type get_sync_status_command = typeof get_sync_status_command;
|
|
332
332
|
export declare type TGetSyncStatusRequest = {
|
|
@@ -336,12 +336,12 @@ export declare type TGetSyncStatusResponse = {
|
|
|
336
336
|
sync_status: SyncStatus;
|
|
337
337
|
};
|
|
338
338
|
export declare type WsGetSyncStatusMessage = GetMessageType<chia_data_layer_service, get_sync_status_command, TGetSyncStatusResponse>;
|
|
339
|
-
export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSyncStatusRequest): Promise<
|
|
339
|
+
export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSyncStatusRequest): Promise<ResType<T, TGetSyncStatusResponse, WsGetSyncStatusMessage>>;
|
|
340
340
|
export declare const check_plugins_command = "check_plugins";
|
|
341
341
|
export declare type check_plugins_command = typeof check_plugins_command;
|
|
342
342
|
export declare type TCheckPluginsResponse = PluginStatusMarshalled;
|
|
343
343
|
export declare type WsCheckPluginsMessage = GetMessageType<chia_data_layer_service, check_plugins_command, TCheckPluginsResponse>;
|
|
344
|
-
export declare function check_plugins<T extends TRPCAgent | TDaemon>(agent: T): Promise<
|
|
344
|
+
export declare function check_plugins<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, PluginStatusMarshalled, WsCheckPluginsMessage>>;
|
|
345
345
|
export declare const clear_pending_roots_command = "clear_pending_roots";
|
|
346
346
|
export declare type clear_pending_roots_command = typeof clear_pending_roots_command;
|
|
347
347
|
export declare type TClearPendingRootsRequest = {
|
|
@@ -352,6 +352,6 @@ export declare type TClearPendingRootsResponse = {
|
|
|
352
352
|
root: Optional<RootMarshalled>;
|
|
353
353
|
};
|
|
354
354
|
export declare type WsClearPendingRootsMessage = GetMessageType<chia_data_layer_service, clear_pending_roots_command, TClearPendingRootsResponse>;
|
|
355
|
-
export declare function clear_pending_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TClearPendingRootsRequest): Promise<
|
|
355
|
+
export declare function clear_pending_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TClearPendingRootsRequest): Promise<ResType<T, TClearPendingRootsResponse, WsClearPendingRootsMessage>>;
|
|
356
356
|
export declare type RpcDataLayerMessage = TWalletLogInResponse | TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponse | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponse | TVerifyOfferResponse | TCancelOfferResponse | TGetSyncStatusResponse | TCheckPluginsResponse | TClearPendingRootsResponse;
|
|
357
357
|
export declare type RpcDataLayerMessageOnWs = WsWalletLogInMessage | WsCreateDataStoreMessage | WsGetOwnedStoresMessage | WsBatchUpdateMessage | WsGetValueMessage | WsGetKeysMessage | WsGetKeysValuesMessage | WsGetAncestorsMessage | WsGetRootMessage | WsGetLocalRootMessage | WsGetRootsMessage | WsDeleteKeyMessage | WsInsertMessage | WsSubscribeMessage | WsUnsubscribeMessage | WsAddMirrorMessage | WsDeleteMirrorMessage | WsGetMirrorsMessage | WsRemoveSubscriptionsMessage | WsSubscriptionsMessage | WsGetKvDiffMessage | WsGetRootHistoryMessage | WsAddMissingFilesMessage | WsMakeOfferMessage | WsTakeOfferMessage | WsVerifyOfferMessage | WsCancelOfferMessage | WsGetSyncStatusMessage | WsCheckPluginsMessage | WsClearPendingRootsMessage;
|
|
@@ -26,7 +26,7 @@ export declare type TGetSignagePointResponse = {
|
|
|
26
26
|
proofs: [string, ProofOfSpace];
|
|
27
27
|
};
|
|
28
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<
|
|
29
|
+
export declare function get_signage_point<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSignagePointRequest): Promise<ResType<T, TGetSignagePointResponse, WsGetSignagePointMessage>>;
|
|
30
30
|
export declare const get_signage_points_command = "get_signage_points";
|
|
31
31
|
export declare type get_signage_points_command = typeof get_signage_points_command;
|
|
32
32
|
export declare type TGetSignagePointsRequest = {};
|
|
@@ -34,7 +34,7 @@ export declare type TGetSignagePointsResponse = {
|
|
|
34
34
|
signage_points: TGetSignagePointResponse[];
|
|
35
35
|
};
|
|
36
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<
|
|
37
|
+
export declare function get_signage_points<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetSignagePointsResponse, WsGetSignagePointsMessage>>;
|
|
38
38
|
export declare const get_reward_targets_command = "get_reward_targets";
|
|
39
39
|
export declare type get_reward_targets_command = typeof get_reward_targets_command;
|
|
40
40
|
export declare type TGetRewardTargetRequest = {
|
|
@@ -51,7 +51,7 @@ export declare type TGetRewardTargetResponse = {
|
|
|
51
51
|
pool_target: str;
|
|
52
52
|
};
|
|
53
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<
|
|
54
|
+
export declare function get_reward_targets<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRewardTargetRequest): Promise<ResType<T, TGetRewardTargetResponse, WsGetRewardTargetsMessage>>;
|
|
55
55
|
export declare const set_reward_targets_command = "set_reward_targets";
|
|
56
56
|
export declare type set_reward_targets_command = typeof set_reward_targets_command;
|
|
57
57
|
export declare type TSetRewardTargetRequest = {
|
|
@@ -60,7 +60,7 @@ export declare type TSetRewardTargetRequest = {
|
|
|
60
60
|
};
|
|
61
61
|
export declare type TSetRewardTargetResponse = {};
|
|
62
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<
|
|
63
|
+
export declare function set_reward_targets<T extends TRPCAgent | TDaemon>(agent: T, params: TSetRewardTargetRequest): Promise<ResType<T, TSetRewardTargetResponse, WsSetRewardTargetsMessage>>;
|
|
64
64
|
export declare const get_pool_state_command = "get_pool_state";
|
|
65
65
|
export declare type get_pool_state_command = typeof get_pool_state_command;
|
|
66
66
|
export declare type TGetPoolStateRequest = {};
|
|
@@ -68,7 +68,7 @@ export declare type TGetPoolStateResponse = {
|
|
|
68
68
|
pool_state: PoolState[];
|
|
69
69
|
};
|
|
70
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<
|
|
71
|
+
export declare function get_pool_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetPoolStateResponse, WsGetPoolStateMessage>>;
|
|
72
72
|
export declare const set_payout_instructions_command = "set_payout_instructions";
|
|
73
73
|
export declare type set_payout_instructions_command = typeof set_payout_instructions_command;
|
|
74
74
|
export declare type TSetPayoutInstructionsRequest = {
|
|
@@ -77,7 +77,7 @@ export declare type TSetPayoutInstructionsRequest = {
|
|
|
77
77
|
};
|
|
78
78
|
export declare type TSetPayoutInstructionsResponse = {};
|
|
79
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<
|
|
80
|
+
export declare function set_pool_payout_instructions<T extends TRPCAgent | TDaemon>(agent: T, params: TSetPayoutInstructionsRequest): Promise<ResType<T, TSetPayoutInstructionsResponse, WsSetPayoutInstructionsMessage>>;
|
|
81
81
|
export declare const get_harvesters_command = "get_harvesters";
|
|
82
82
|
export declare type get_harvesters_command = typeof get_harvesters_command;
|
|
83
83
|
export declare type TGetHarvestersRequest = {};
|
|
@@ -85,14 +85,14 @@ export declare type TGetHarvestersResponse = {
|
|
|
85
85
|
harvesters: Receiver[];
|
|
86
86
|
};
|
|
87
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<
|
|
88
|
+
export declare function get_harvesters<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetHarvestersResponse, WsGetHarvestersMessage>>;
|
|
89
89
|
export declare const get_harvesters_summary_command = "get_harvesters_summary";
|
|
90
90
|
export declare type get_harvesters_summary_command = typeof get_harvesters_summary_command;
|
|
91
91
|
export declare type TGetHarvestersSummaryResponse = {
|
|
92
92
|
harvesters: Receiver<true>[];
|
|
93
93
|
};
|
|
94
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<
|
|
95
|
+
export declare function get_harvesters_summary<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetHarvestersSummaryResponse, WsGetHarvestersSummaryMessage>>;
|
|
96
96
|
export declare const get_harvester_plots_valid_command = "get_harvester_plots_valid";
|
|
97
97
|
export declare type get_harvester_plots_valid_command = typeof get_harvester_plots_valid_command;
|
|
98
98
|
export declare type TGetHarvesterPlotsValidRequest = {
|
|
@@ -114,7 +114,7 @@ export declare type TGetHarvesterPlotsValidResponse = {
|
|
|
114
114
|
plots: Plot[];
|
|
115
115
|
};
|
|
116
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<
|
|
117
|
+
export declare function get_harvester_plots_valid<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsValidRequest): Promise<ResType<T, TGetHarvesterPlotsValidResponse, WsGetHarvesterPlotsValidMessage>>;
|
|
118
118
|
export declare const get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
|
|
119
119
|
export declare type get_harvester_plots_invalid_command = typeof get_harvester_plots_invalid_command;
|
|
120
120
|
export declare type TGetHarvesterPlotsInvalidRequest = {
|
|
@@ -132,7 +132,7 @@ export declare type TGetHarvesterPlotsInvalidResponse = {
|
|
|
132
132
|
plots: str[];
|
|
133
133
|
};
|
|
134
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<
|
|
135
|
+
export declare function get_harvester_plots_invalid<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsInvalidRequest): Promise<ResType<T, TGetHarvesterPlotsInvalidResponse, WsGetHarvesterPlotsInvalidMessage>>;
|
|
136
136
|
export declare const get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
|
|
137
137
|
export declare type get_harvester_plots_keys_missing_command = typeof get_harvester_plots_keys_missing_command;
|
|
138
138
|
export declare type TGetHarvesterPlotsKeysMissingRequest = {
|
|
@@ -150,7 +150,7 @@ export declare type TGetHarvesterPlotsKeysMissingResponse = {
|
|
|
150
150
|
plots: str[];
|
|
151
151
|
};
|
|
152
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<
|
|
153
|
+
export declare function get_harvester_plots_keys_missing<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsKeysMissingRequest): Promise<ResType<T, TGetHarvesterPlotsKeysMissingResponse, WsGetHarvesterPlotsKeysMissingMessage>>;
|
|
154
154
|
export declare const get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
|
|
155
155
|
export declare type get_harvester_plots_duplicates_command = typeof get_harvester_plots_duplicates_command;
|
|
156
156
|
export declare type TGetHarvesterPlotsDuplicatesRequest = {
|
|
@@ -168,7 +168,7 @@ export declare type TGetHarvesterPlotsDuplicatesResponse = {
|
|
|
168
168
|
plots: str[];
|
|
169
169
|
};
|
|
170
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<
|
|
171
|
+
export declare function get_harvester_plots_duplicates<T extends TRPCAgent | TDaemon>(agent: T, param: TGetHarvesterPlotsDuplicatesRequest): Promise<ResType<T, TGetHarvesterPlotsDuplicatesResponse, WsGetHarvesterPlotsDuplicatesMessage>>;
|
|
172
172
|
export declare const get_pool_login_link_command = "get_pool_login_link";
|
|
173
173
|
export declare type get_pool_login_link_command = typeof get_pool_login_link_command;
|
|
174
174
|
export declare type TGetPoolLinkRequest = {
|
|
@@ -178,6 +178,6 @@ export declare type TGetPoolLinkResponse = {
|
|
|
178
178
|
login_link: str;
|
|
179
179
|
};
|
|
180
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<
|
|
181
|
+
export declare function get_pool_login_link<T extends TRPCAgent | TDaemon>(agent: T, params: TGetPoolLinkRequest): Promise<ResType<T, TGetPoolLinkResponse, WsGetPoolLinkMessage>>;
|
|
182
182
|
export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
|
|
183
183
|
export declare type RpcFarmerMessageOnWs = WsGetRewardTargetsMessage | WsGetSignagePointMessage | WsGetSignagePointsMessage | WsSetRewardTargetsMessage | WsGetHarvestersMessage | WsGetHarvestersSummaryMessage | WsGetHarvesterPlotsValidMessage | WsGetHarvesterPlotsInvalidMessage | WsGetHarvesterPlotsKeysMissingMessage | WsGetHarvesterPlotsDuplicatesMessage | WsSetPayoutInstructionsMessage | WsGetPoolStateMessage | WsGetPoolLinkMessage;
|