chia-agent 9.0.1 → 9.2.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.
- package/CHANGELOG.md +128 -0
- package/README.md +5 -5
- package/api/chia/data_layer/data_layer_util.d.ts +30 -0
- package/api/chia/data_layer/data_layer_util.js +2 -0
- package/api/chia/data_layer/data_layer_wallet.d.ts +21 -0
- package/api/chia/data_layer/data_layer_wallet.js +2 -0
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/types/_python_types_.d.ts +1 -0
- package/api/chia/types/clvm_cost.d.ts +2 -0
- package/api/chia/types/clvm_cost.js +2 -0
- package/api/chia/types/mempool_item.d.ts +2 -3
- package/api/chia/util/keychain.d.ts +12 -0
- package/api/chia/util/keychain.js +2 -0
- package/api/chia/wallet/lineage_proof.d.ts +7 -0
- package/api/chia/wallet/lineage_proof.js +2 -0
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -0
- package/api/chia/wallet/util/wallet_types.d.ts +2 -1
- package/api/chia/wallet/util/wallet_types.js +3 -1
- package/api/rpc/common/index.d.ts +9 -8
- package/api/rpc/crawler/index.d.ts +2 -2
- package/api/rpc/data_layer/index.d.ts +291 -0
- package/api/rpc/data_layer/index.js +196 -0
- package/api/rpc/farmer/index.d.ts +13 -13
- package/api/rpc/full_node/index.d.ts +45 -25
- package/api/rpc/full_node/index.js +8 -1
- package/api/rpc/harvester/index.d.ts +6 -6
- package/api/rpc/index.d.ts +12 -9
- package/api/rpc/index.js +70 -20
- package/api/rpc/wallet/index.d.ts +329 -81
- package/api/rpc/wallet/index.js +144 -4
- package/api/ws/daemon/index.d.ts +102 -3
- package/api/ws/daemon/index.js +37 -2
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +15 -12
- package/api/ws/wallet/index.d.ts +1 -1
- package/package.json +1 -1
- package/rpc/index.d.ts +6 -2
- package/rpc/index.js +3 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { TRPCAgent } from "../../../rpc/index";
|
|
2
|
+
import { bool, None, Optional, str, uint64 } from "../../chia/types/_python_types_";
|
|
3
|
+
import { TransactionRecord } from "../../chia/wallet/transaction_record";
|
|
4
|
+
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
|
+
import { OfferMarshalled, OfferStoreMarshalled } from "../../chia/data_layer/data_layer_util";
|
|
6
|
+
export declare const chia_data_layer_service = "chia_data_layer";
|
|
7
|
+
export declare type chia_data_layer_service = typeof chia_data_layer_service;
|
|
8
|
+
export declare const create_data_store_command = "create_data_store";
|
|
9
|
+
export declare type create_data_store_command = typeof create_data_store_command;
|
|
10
|
+
export declare type TCreateDataStoreRequest = {
|
|
11
|
+
fee?: uint64;
|
|
12
|
+
};
|
|
13
|
+
export declare type TCreateDataStoreResponse = {
|
|
14
|
+
txs: TransactionRecord[];
|
|
15
|
+
id: str;
|
|
16
|
+
};
|
|
17
|
+
export declare function create_data_store(agent: TRPCAgent, params: TCreateDataStoreRequest): Promise<TCreateDataStoreResponse | import("../../../rpc/index").ErrorResponse>;
|
|
18
|
+
export declare const get_owned_stores_command = "get_owned_stores";
|
|
19
|
+
export declare type get_owned_stores_command = typeof get_owned_stores_command;
|
|
20
|
+
export declare type TGetOwnedStoresResponse = {
|
|
21
|
+
store_ids: str[];
|
|
22
|
+
};
|
|
23
|
+
export declare function get_owned_stores(agent: TRPCAgent): Promise<TGetOwnedStoresResponse | import("../../../rpc/index").ErrorResponse>;
|
|
24
|
+
export declare const batch_update_command = "batch_update";
|
|
25
|
+
export declare type batch_update_command = typeof batch_update_command;
|
|
26
|
+
export declare type TBatchUpdateRequest = {
|
|
27
|
+
fee?: uint64;
|
|
28
|
+
changelist: Array<{
|
|
29
|
+
key: str;
|
|
30
|
+
reference_node_hash?: str;
|
|
31
|
+
side?: 0 | 1;
|
|
32
|
+
value?: str;
|
|
33
|
+
}>;
|
|
34
|
+
id: str;
|
|
35
|
+
};
|
|
36
|
+
export declare type TBatchUpdateResponse = {
|
|
37
|
+
tx_id: bytes32;
|
|
38
|
+
};
|
|
39
|
+
export declare function batch_update(agent: TRPCAgent, params: TBatchUpdateRequest): Promise<TBatchUpdateResponse | import("../../../rpc/index").ErrorResponse>;
|
|
40
|
+
export declare const get_value_command = "get_value";
|
|
41
|
+
export declare type get_value_command = typeof get_value_command;
|
|
42
|
+
export declare type TGetValueRequest = {
|
|
43
|
+
id: str;
|
|
44
|
+
key: str;
|
|
45
|
+
root_hash?: str;
|
|
46
|
+
};
|
|
47
|
+
export declare type TGetValueResponse = {
|
|
48
|
+
value: str | None;
|
|
49
|
+
};
|
|
50
|
+
export declare function get_value(agent: TRPCAgent, params: TGetValueRequest): Promise<TGetValueResponse | import("../../../rpc/index").ErrorResponse>;
|
|
51
|
+
export declare const get_keys_command = "get_keys";
|
|
52
|
+
export declare type get_keys_command = typeof get_keys_command;
|
|
53
|
+
export declare type TGetKeysRequest = {
|
|
54
|
+
id: str;
|
|
55
|
+
root_hash?: str;
|
|
56
|
+
};
|
|
57
|
+
export declare type TGetKeysResponse = {
|
|
58
|
+
keys: str[];
|
|
59
|
+
};
|
|
60
|
+
export declare function get_keys(agent: TRPCAgent, params: TGetKeysRequest): Promise<TGetKeysResponse | import("../../../rpc/index").ErrorResponse>;
|
|
61
|
+
export declare const get_keys_values_command = "get_keys_values";
|
|
62
|
+
export declare type get_keys_values_command = typeof get_keys_values_command;
|
|
63
|
+
export declare type TGetKeysValuesRequest = {
|
|
64
|
+
id: str;
|
|
65
|
+
root_hash?: str;
|
|
66
|
+
};
|
|
67
|
+
export declare type TGetKeysValuesResponse = {
|
|
68
|
+
keys_values: Array<{
|
|
69
|
+
hash: str;
|
|
70
|
+
key: str;
|
|
71
|
+
value: str;
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
export declare function get_keys_values(agent: TRPCAgent, params: TGetKeysValuesRequest): Promise<TGetKeysValuesResponse | import("../../../rpc/index").ErrorResponse>;
|
|
75
|
+
export declare const get_ancestors_command = "get_ancestors";
|
|
76
|
+
export declare type get_ancestors_command = typeof get_ancestors_command;
|
|
77
|
+
export declare type TGetAncestorsRequest = {
|
|
78
|
+
id: str;
|
|
79
|
+
hash: str;
|
|
80
|
+
};
|
|
81
|
+
export declare type TGetAncestorsResponse = {
|
|
82
|
+
ancestors: Array<{
|
|
83
|
+
hash: bytes32;
|
|
84
|
+
left_hash: bytes32;
|
|
85
|
+
right_hash: bytes32;
|
|
86
|
+
}>;
|
|
87
|
+
};
|
|
88
|
+
export declare function get_ancestors(agent: TRPCAgent, params: TGetAncestorsRequest): Promise<TGetAncestorsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
89
|
+
export declare const get_root_command = "get_root";
|
|
90
|
+
export declare type get_root_command = typeof get_root_command;
|
|
91
|
+
export declare type TGetRootRequest = {
|
|
92
|
+
id: str;
|
|
93
|
+
};
|
|
94
|
+
export declare type TGetRootResponse = {
|
|
95
|
+
hash: bytes32;
|
|
96
|
+
confirmed: bool;
|
|
97
|
+
timestamp: uint64;
|
|
98
|
+
};
|
|
99
|
+
export declare function get_root(agent: TRPCAgent, params: TGetRootRequest): Promise<TGetRootResponse | import("../../../rpc/index").ErrorResponse>;
|
|
100
|
+
export declare const get_local_root_command = "get_local_root";
|
|
101
|
+
export declare type get_local_root_command = typeof get_local_root_command;
|
|
102
|
+
export declare type TGetLocalRootRequest = {
|
|
103
|
+
id: str;
|
|
104
|
+
};
|
|
105
|
+
export declare type TGetLocalRootResponse = {
|
|
106
|
+
hash: bytes32 | None;
|
|
107
|
+
};
|
|
108
|
+
export declare function get_local_root(agent: TRPCAgent, params: TGetLocalRootRequest): Promise<TGetLocalRootResponse | import("../../../rpc/index").ErrorResponse>;
|
|
109
|
+
export declare const get_roots_command = "get_roots";
|
|
110
|
+
export declare type get_roots_command = typeof get_roots_command;
|
|
111
|
+
export declare type TGetRootsRequest = {
|
|
112
|
+
ids: str[];
|
|
113
|
+
};
|
|
114
|
+
export declare type TGetRootsResponse = {
|
|
115
|
+
root_hashes: Array<{
|
|
116
|
+
id: bytes32;
|
|
117
|
+
hash: bytes32;
|
|
118
|
+
confirmed: bool;
|
|
119
|
+
timestamp: uint64;
|
|
120
|
+
}>;
|
|
121
|
+
};
|
|
122
|
+
export declare function get_roots(agent: TRPCAgent, params: TGetRootsRequest): Promise<TGetRootsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
123
|
+
export declare const delete_key_command = "delete_key";
|
|
124
|
+
export declare type delete_key_command = typeof delete_key_command;
|
|
125
|
+
export declare type TDeleteKeyRequest = {
|
|
126
|
+
fee?: uint64;
|
|
127
|
+
key: str;
|
|
128
|
+
id: str;
|
|
129
|
+
};
|
|
130
|
+
export declare type TDeleteKeyResponse = {
|
|
131
|
+
tx_id: bytes32;
|
|
132
|
+
};
|
|
133
|
+
export declare function delete_key(agent: TRPCAgent, params: TDeleteKeyRequest): Promise<TDeleteKeyResponse | import("../../../rpc/index").ErrorResponse>;
|
|
134
|
+
export declare const insert_command = "insert";
|
|
135
|
+
export declare type insert_command = typeof insert_command;
|
|
136
|
+
export declare type TInsertRequest = {
|
|
137
|
+
fee?: uint64;
|
|
138
|
+
key: str;
|
|
139
|
+
value: str;
|
|
140
|
+
id: str;
|
|
141
|
+
};
|
|
142
|
+
export declare type TInsertResponse = {
|
|
143
|
+
tx_id: bytes32;
|
|
144
|
+
};
|
|
145
|
+
export declare function insert(agent: TRPCAgent, params: TInsertRequest): Promise<TInsertResponse | import("../../../rpc/index").ErrorResponse>;
|
|
146
|
+
export declare const subscribe_command = "subscribe";
|
|
147
|
+
export declare type subscribe_command = typeof subscribe_command;
|
|
148
|
+
export declare type TSubscribeRequest = {
|
|
149
|
+
id: str;
|
|
150
|
+
urls: str[];
|
|
151
|
+
};
|
|
152
|
+
export declare type TSubscribeResponse = {};
|
|
153
|
+
export declare function subscribe(agent: TRPCAgent, params: TSubscribeRequest): Promise<TSubscribeResponse | import("../../../rpc/index").ErrorResponse>;
|
|
154
|
+
export declare const unsubscribe_command = "unsubscribe";
|
|
155
|
+
export declare type unsubscribe_command = typeof unsubscribe_command;
|
|
156
|
+
export declare type TUnsubscribeRequest = {
|
|
157
|
+
id: str;
|
|
158
|
+
};
|
|
159
|
+
export declare type TUnsubscribeResponse = {};
|
|
160
|
+
export declare function unsubscribe(agent: TRPCAgent, params: TUnsubscribeRequest): Promise<TUnsubscribeResponse | import("../../../rpc/index").ErrorResponse>;
|
|
161
|
+
export declare const add_mirror_command = "add_mirror";
|
|
162
|
+
export declare type add_mirror_command = typeof add_mirror_command;
|
|
163
|
+
export declare type TAddMirrorRequest = {
|
|
164
|
+
id: str;
|
|
165
|
+
urls: str[];
|
|
166
|
+
amount: uint64;
|
|
167
|
+
fee?: uint64;
|
|
168
|
+
};
|
|
169
|
+
export declare type TAddMirrorResponse = {};
|
|
170
|
+
export declare function add_mirror(agent: TRPCAgent, params: TAddMirrorRequest): Promise<TAddMirrorResponse | import("../../../rpc/index").ErrorResponse>;
|
|
171
|
+
export declare const delete_mirror_command = "delete_mirror";
|
|
172
|
+
export declare type delete_mirror_command = typeof delete_mirror_command;
|
|
173
|
+
export declare type TDeleteMirrorRequest = {
|
|
174
|
+
coin_id: str;
|
|
175
|
+
fee?: uint64;
|
|
176
|
+
};
|
|
177
|
+
export declare type TDeleteMirrorResponse = {};
|
|
178
|
+
export declare function delete_mirror(agent: TRPCAgent, params: TDeleteMirrorRequest): Promise<TDeleteMirrorResponse | import("../../../rpc/index").ErrorResponse>;
|
|
179
|
+
export declare const get_mirrors_command = "get_mirrors";
|
|
180
|
+
export declare type get_mirrors_command = typeof get_mirrors_command;
|
|
181
|
+
export declare type TGetMirrorsRequest = {
|
|
182
|
+
id: str;
|
|
183
|
+
};
|
|
184
|
+
export declare type TGetMirrorsResponse = {
|
|
185
|
+
mirrors: Array<{
|
|
186
|
+
coin_id: str;
|
|
187
|
+
launcher_id: str;
|
|
188
|
+
amount: uint64;
|
|
189
|
+
urls: str[];
|
|
190
|
+
ours: bool;
|
|
191
|
+
}>;
|
|
192
|
+
};
|
|
193
|
+
export declare function get_mirrors(agent: TRPCAgent, params: TGetMirrorsRequest): Promise<TGetMirrorsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
194
|
+
export declare const remove_subscriptions_command = "remove_subscriptions";
|
|
195
|
+
export declare type remove_subscriptions_command = typeof remove_subscriptions_command;
|
|
196
|
+
export declare type TRemoveSubscriptionsRequest = {
|
|
197
|
+
id: str;
|
|
198
|
+
urls: str[];
|
|
199
|
+
};
|
|
200
|
+
export declare type TRemoveSubscriptionsResponse = {};
|
|
201
|
+
export declare function remove_subscriptions(agent: TRPCAgent, params: TRemoveSubscriptionsRequest): Promise<TRemoveSubscriptionsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
202
|
+
export declare const subscriptions_command = "subscriptions";
|
|
203
|
+
export declare type subscriptions_command = typeof subscriptions_command;
|
|
204
|
+
export declare type TSubscriptionsResponse = {
|
|
205
|
+
store_ids: str[];
|
|
206
|
+
};
|
|
207
|
+
export declare function subscriptions(agent: TRPCAgent): Promise<TSubscriptionsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
208
|
+
export declare const get_kv_diff_command = "get_kv_diff";
|
|
209
|
+
export declare type get_kv_diff_command = typeof get_kv_diff_command;
|
|
210
|
+
export declare type TGetKvDiffRequest = {
|
|
211
|
+
id: str;
|
|
212
|
+
hash_1: str;
|
|
213
|
+
hash_2: str;
|
|
214
|
+
};
|
|
215
|
+
export declare type TGetKvDiffResponse = {
|
|
216
|
+
diff: Array<{
|
|
217
|
+
type: str;
|
|
218
|
+
key: str;
|
|
219
|
+
value: str;
|
|
220
|
+
}>;
|
|
221
|
+
};
|
|
222
|
+
export declare function get_kv_diff(agent: TRPCAgent, params: TGetKvDiffRequest): Promise<TGetKvDiffResponse | import("../../../rpc/index").ErrorResponse>;
|
|
223
|
+
export declare const get_root_history_command = "get_root_history";
|
|
224
|
+
export declare type get_root_history_command = typeof get_root_history_command;
|
|
225
|
+
export declare type TGetRootHistoryRequest = {
|
|
226
|
+
id: str;
|
|
227
|
+
};
|
|
228
|
+
export declare type TGetRootHistoryResponse = {
|
|
229
|
+
root_history: Array<{
|
|
230
|
+
root_hash: bytes32;
|
|
231
|
+
confirmed: bool;
|
|
232
|
+
timestamp: uint64;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
235
|
+
export declare function get_root_history(agent: TRPCAgent, params: TGetRootHistoryRequest): Promise<TGetRootHistoryResponse | import("../../../rpc/index").ErrorResponse>;
|
|
236
|
+
export declare const add_missing_files_command = "add_missing_files";
|
|
237
|
+
export declare type add_missing_files_command = typeof add_missing_files_command;
|
|
238
|
+
export declare type TAddMissingFilesRequest = {
|
|
239
|
+
ids?: str[];
|
|
240
|
+
overwrite?: bool;
|
|
241
|
+
foldername?: str;
|
|
242
|
+
};
|
|
243
|
+
export declare type TAddMissingFilesResponse = {};
|
|
244
|
+
export declare function add_missing_files(agent: TRPCAgent, params: TAddMissingFilesRequest): Promise<TAddMissingFilesResponse | import("../../../rpc/index").ErrorResponse>;
|
|
245
|
+
export declare const make_offer_command = "make_offer";
|
|
246
|
+
export declare type make_offer_command = typeof make_offer_command;
|
|
247
|
+
export declare type TMakeOfferRequest = {
|
|
248
|
+
fee?: uint64;
|
|
249
|
+
maker: OfferStoreMarshalled;
|
|
250
|
+
taker: OfferStoreMarshalled;
|
|
251
|
+
};
|
|
252
|
+
export declare type TMakeOfferResponse = {
|
|
253
|
+
success: bool;
|
|
254
|
+
offer: OfferMarshalled;
|
|
255
|
+
};
|
|
256
|
+
export declare function make_offer(agent: TRPCAgent, params: TMakeOfferRequest): Promise<TMakeOfferResponse | import("../../../rpc/index").ErrorResponse>;
|
|
257
|
+
export declare const take_offer_command = "take_offer";
|
|
258
|
+
export declare type take_offer_command = typeof take_offer_command;
|
|
259
|
+
export declare type TTakeOfferRequest = {
|
|
260
|
+
fee?: uint64;
|
|
261
|
+
offer: OfferMarshalled;
|
|
262
|
+
};
|
|
263
|
+
export declare type TTakeOfferResponse = {
|
|
264
|
+
success: bool;
|
|
265
|
+
trade_id: str;
|
|
266
|
+
};
|
|
267
|
+
export declare function take_offer(agent: TRPCAgent, params: TTakeOfferRequest): Promise<TTakeOfferResponse | import("../../../rpc/index").ErrorResponse>;
|
|
268
|
+
export declare const verify_offer_command = "verify_offer";
|
|
269
|
+
export declare type verify_offer_command = typeof verify_offer_command;
|
|
270
|
+
export declare type TVerifyOfferRequest = {
|
|
271
|
+
fee?: uint64;
|
|
272
|
+
offer: OfferMarshalled;
|
|
273
|
+
};
|
|
274
|
+
export declare type TVerifyOfferResponse = {
|
|
275
|
+
success: bool;
|
|
276
|
+
valid: bool;
|
|
277
|
+
error: Optional<str>;
|
|
278
|
+
fee: Optional<uint64>;
|
|
279
|
+
};
|
|
280
|
+
export declare function verify_offer(agent: TRPCAgent, params: TVerifyOfferRequest): Promise<TVerifyOfferResponse | import("../../../rpc/index").ErrorResponse>;
|
|
281
|
+
export declare const cancel_offer_command = "cancel_offer";
|
|
282
|
+
export declare type cancel_offer_command = typeof cancel_offer_command;
|
|
283
|
+
export declare type TCancelOfferRequest = {
|
|
284
|
+
trade_id: str;
|
|
285
|
+
secure: bool;
|
|
286
|
+
fee?: uint64;
|
|
287
|
+
};
|
|
288
|
+
export declare type TCancelOfferResponse = {
|
|
289
|
+
success: bool;
|
|
290
|
+
};
|
|
291
|
+
export declare function cancel_offer(agent: TRPCAgent, params: TCancelOfferRequest): Promise<TCancelOfferResponse | import("../../../rpc/index").ErrorResponse>;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.verify_offer_command = exports.take_offer = exports.take_offer_command = exports.make_offer = exports.make_offer_command = exports.add_missing_files = exports.add_missing_files_command = exports.get_root_history = exports.get_root_history_command = exports.get_kv_diff = exports.get_kv_diff_command = exports.subscriptions = exports.subscriptions_command = exports.remove_subscriptions = exports.remove_subscriptions_command = exports.get_mirrors = exports.get_mirrors_command = exports.delete_mirror = exports.delete_mirror_command = exports.add_mirror = exports.add_mirror_command = exports.unsubscribe = exports.unsubscribe_command = exports.subscribe = exports.subscribe_command = exports.insert = exports.insert_command = exports.delete_key = exports.delete_key_command = exports.get_roots = exports.get_roots_command = exports.get_local_root = exports.get_local_root_command = exports.get_root = exports.get_root_command = exports.get_ancestors = exports.get_ancestors_command = exports.get_keys_values = exports.get_keys_values_command = exports.get_keys = exports.get_keys_command = exports.get_value = exports.get_value_command = exports.batch_update = exports.batch_update_command = exports.get_owned_stores = exports.get_owned_stores_command = exports.create_data_store = exports.create_data_store_command = exports.chia_data_layer_service = void 0;
|
|
13
|
+
exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = void 0;
|
|
14
|
+
exports.chia_data_layer_service = "chia_data_layer";
|
|
15
|
+
exports.create_data_store_command = "create_data_store";
|
|
16
|
+
function create_data_store(agent, params) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.create_data_store_command, params);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
exports.create_data_store = create_data_store;
|
|
22
|
+
exports.get_owned_stores_command = "get_owned_stores";
|
|
23
|
+
function get_owned_stores(agent) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_owned_stores_command);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.get_owned_stores = get_owned_stores;
|
|
29
|
+
exports.batch_update_command = "batch_update";
|
|
30
|
+
function batch_update(agent, params) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.batch_update_command, params);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.batch_update = batch_update;
|
|
36
|
+
exports.get_value_command = "get_value";
|
|
37
|
+
function get_value(agent, params) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_value_command, params);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.get_value = get_value;
|
|
43
|
+
exports.get_keys_command = "get_keys";
|
|
44
|
+
function get_keys(agent, params) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_command, params);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
exports.get_keys = get_keys;
|
|
50
|
+
exports.get_keys_values_command = "get_keys_values";
|
|
51
|
+
function get_keys_values(agent, params) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_values_command, params);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.get_keys_values = get_keys_values;
|
|
57
|
+
exports.get_ancestors_command = "get_ancestors";
|
|
58
|
+
function get_ancestors(agent, params) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_ancestors_command, params);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
exports.get_ancestors = get_ancestors;
|
|
64
|
+
exports.get_root_command = "get_root";
|
|
65
|
+
function get_root(agent, params) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_command, params);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
exports.get_root = get_root;
|
|
71
|
+
exports.get_local_root_command = "get_local_root";
|
|
72
|
+
function get_local_root(agent, params) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_local_root_command, params);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
exports.get_local_root = get_local_root;
|
|
78
|
+
exports.get_roots_command = "get_roots";
|
|
79
|
+
function get_roots(agent, params) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_roots_command, params);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
exports.get_roots = get_roots;
|
|
85
|
+
exports.delete_key_command = "delete_key";
|
|
86
|
+
function delete_key(agent, params) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_key_command, params);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
exports.delete_key = delete_key;
|
|
92
|
+
exports.insert_command = "insert";
|
|
93
|
+
function insert(agent, params) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.insert_command, params);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
exports.insert = insert;
|
|
99
|
+
exports.subscribe_command = "subscribe";
|
|
100
|
+
function subscribe(agent, params) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.subscribe_command, params);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
exports.subscribe = subscribe;
|
|
106
|
+
exports.unsubscribe_command = "unsubscribe";
|
|
107
|
+
function unsubscribe(agent, params) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.unsubscribe_command, params);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
exports.unsubscribe = unsubscribe;
|
|
113
|
+
exports.add_mirror_command = "add_mirror";
|
|
114
|
+
function add_mirror(agent, params) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.add_mirror_command, params);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
exports.add_mirror = add_mirror;
|
|
120
|
+
exports.delete_mirror_command = "delete_mirror";
|
|
121
|
+
function delete_mirror(agent, params) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_mirror_command, params);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
exports.delete_mirror = delete_mirror;
|
|
127
|
+
exports.get_mirrors_command = "get_mirrors";
|
|
128
|
+
function get_mirrors(agent, params) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_mirrors_command, params);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
exports.get_mirrors = get_mirrors;
|
|
134
|
+
exports.remove_subscriptions_command = "remove_subscriptions";
|
|
135
|
+
function remove_subscriptions(agent, params) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.remove_subscriptions_command, params);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
exports.remove_subscriptions = remove_subscriptions;
|
|
141
|
+
exports.subscriptions_command = "subscriptions";
|
|
142
|
+
function subscriptions(agent) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.subscriptions_command);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
exports.subscriptions = subscriptions;
|
|
148
|
+
exports.get_kv_diff_command = "get_kv_diff";
|
|
149
|
+
function get_kv_diff(agent, params) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_kv_diff_command, params);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
exports.get_kv_diff = get_kv_diff;
|
|
155
|
+
exports.get_root_history_command = "get_root_history";
|
|
156
|
+
function get_root_history(agent, params) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_history_command, params);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
exports.get_root_history = get_root_history;
|
|
162
|
+
exports.add_missing_files_command = "add_missing_files";
|
|
163
|
+
function add_missing_files(agent, params) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.add_missing_files_command, params);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
exports.add_missing_files = add_missing_files;
|
|
169
|
+
exports.make_offer_command = "make_offer";
|
|
170
|
+
function make_offer(agent, params) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.make_offer_command, params);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
exports.make_offer = make_offer;
|
|
176
|
+
exports.take_offer_command = "take_offer";
|
|
177
|
+
function take_offer(agent, params) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.take_offer_command, params);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
exports.take_offer = take_offer;
|
|
183
|
+
exports.verify_offer_command = "verify_offer";
|
|
184
|
+
function verify_offer(agent, params) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.verify_offer_command, params);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
exports.verify_offer = verify_offer;
|
|
190
|
+
exports.cancel_offer_command = "cancel_offer";
|
|
191
|
+
function cancel_offer(agent, params) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.cancel_offer_command, params);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
exports.cancel_offer = cancel_offer;
|
|
@@ -23,14 +23,14 @@ export declare type TGetSignagePointResponse = {
|
|
|
23
23
|
};
|
|
24
24
|
proofs: [string, ProofOfSpace];
|
|
25
25
|
};
|
|
26
|
-
export declare function get_signage_point(agent: TRPCAgent, params: TGetSignagePointRequest): Promise<TGetSignagePointResponse>;
|
|
26
|
+
export declare function get_signage_point(agent: TRPCAgent, params: TGetSignagePointRequest): Promise<TGetSignagePointResponse | import("../../../rpc/index").ErrorResponse>;
|
|
27
27
|
export declare const get_signage_points_command = "get_signage_points";
|
|
28
28
|
export declare type get_signage_points_command = typeof get_signage_points_command;
|
|
29
29
|
export declare type TGetSignagePointsRequest = {};
|
|
30
30
|
export declare type TGetSignagePointsResponse = {
|
|
31
31
|
signage_points: TGetSignagePointResponse[];
|
|
32
32
|
};
|
|
33
|
-
export declare function get_signage_points(agent: TRPCAgent): Promise<TGetSignagePointsResponse>;
|
|
33
|
+
export declare function get_signage_points(agent: TRPCAgent): Promise<TGetSignagePointsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
34
34
|
export declare const get_reward_targets_command = "get_reward_targets";
|
|
35
35
|
export declare type get_reward_targets_command = typeof get_reward_targets_command;
|
|
36
36
|
export declare type TGetRewardTargetRequest = {
|
|
@@ -46,7 +46,7 @@ export declare type TGetRewardTargetResponse = {
|
|
|
46
46
|
farmer_target: str;
|
|
47
47
|
pool_target: str;
|
|
48
48
|
};
|
|
49
|
-
export declare function get_reward_targets(agent: TRPCAgent, params: TGetRewardTargetRequest): Promise<TGetRewardTargetResponse>;
|
|
49
|
+
export declare function get_reward_targets(agent: TRPCAgent, params: TGetRewardTargetRequest): Promise<TGetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
|
|
50
50
|
export declare const set_reward_targets_command = "set_reward_targets";
|
|
51
51
|
export declare type set_reward_targets_command = typeof set_reward_targets_command;
|
|
52
52
|
export declare type TSetRewardTargetRequest = {
|
|
@@ -54,14 +54,14 @@ export declare type TSetRewardTargetRequest = {
|
|
|
54
54
|
pool_target?: str;
|
|
55
55
|
};
|
|
56
56
|
export declare type TSetRewardTargetResponse = {};
|
|
57
|
-
export declare function set_reward_targets(agent: TRPCAgent, params: TSetRewardTargetRequest): Promise<TSetRewardTargetResponse>;
|
|
57
|
+
export declare function set_reward_targets(agent: TRPCAgent, params: TSetRewardTargetRequest): Promise<TSetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
|
|
58
58
|
export declare const get_pool_state_command = "get_pool_state";
|
|
59
59
|
export declare type get_pool_state_command = typeof get_pool_state_command;
|
|
60
60
|
export declare type TGetPoolStateRequest = {};
|
|
61
61
|
export declare type TGetPoolStateResponse = {
|
|
62
62
|
pool_state: PoolState[];
|
|
63
63
|
};
|
|
64
|
-
export declare function get_pool_state(agent: TRPCAgent): Promise<TSetRewardTargetResponse>;
|
|
64
|
+
export declare function get_pool_state(agent: TRPCAgent): Promise<TSetRewardTargetResponse | import("../../../rpc/index").ErrorResponse>;
|
|
65
65
|
export declare const set_payout_instructions_command = "set_payout_instructions";
|
|
66
66
|
export declare type set_payout_instructions_command = typeof set_payout_instructions_command;
|
|
67
67
|
export declare type TSetPayoutInstructionsRequest = {
|
|
@@ -69,20 +69,20 @@ export declare type TSetPayoutInstructionsRequest = {
|
|
|
69
69
|
payout_instructions: str;
|
|
70
70
|
};
|
|
71
71
|
export declare type TSetPayoutInstructionsResponse = {};
|
|
72
|
-
export declare function set_pool_payout_instructions(agent: TRPCAgent, params: TSetPayoutInstructionsRequest): Promise<TSetPayoutInstructionsResponse>;
|
|
72
|
+
export declare function set_pool_payout_instructions(agent: TRPCAgent, params: TSetPayoutInstructionsRequest): Promise<TSetPayoutInstructionsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
73
73
|
export declare const get_harvesters_command = "get_harvesters";
|
|
74
74
|
export declare type get_harvesters_command = typeof get_harvesters_command;
|
|
75
75
|
export declare type TGetHarvestersRequest = {};
|
|
76
76
|
export declare type TGetHarvestersResponse = {
|
|
77
77
|
harvesters: Receiver[];
|
|
78
78
|
};
|
|
79
|
-
export declare function get_harvesters(agent: TRPCAgent): Promise<TGetHarvestersResponse>;
|
|
79
|
+
export declare function get_harvesters(agent: TRPCAgent): Promise<TGetHarvestersResponse | import("../../../rpc/index").ErrorResponse>;
|
|
80
80
|
export declare const get_harvesters_summary_command = "get_harvesters_summary";
|
|
81
81
|
export declare type get_harvesters_summary_command = typeof get_harvesters_summary_command;
|
|
82
82
|
export declare type TGetHarvestersSummaryResponse = {
|
|
83
83
|
harvesters: Receiver<true>[];
|
|
84
84
|
};
|
|
85
|
-
export declare function get_harvesters_summary(agent: TRPCAgent): Promise<TGetHarvestersSummaryResponse>;
|
|
85
|
+
export declare function get_harvesters_summary(agent: TRPCAgent): Promise<TGetHarvestersSummaryResponse | import("../../../rpc/index").ErrorResponse>;
|
|
86
86
|
export declare const get_harvester_plots_valid_command = "get_harvester_plots_valid";
|
|
87
87
|
export declare type get_harvester_plots_valid_command = typeof get_harvester_plots_valid_command;
|
|
88
88
|
export declare type TGetHarvesterPlotsValidRequest = {
|
|
@@ -103,7 +103,7 @@ export declare type TGetHarvesterPlotsValidResponse = {
|
|
|
103
103
|
total_count: int;
|
|
104
104
|
plots: Plot[];
|
|
105
105
|
};
|
|
106
|
-
export declare function get_harvester_plots_valid(agent: TRPCAgent, param: TGetHarvesterPlotsValidRequest): Promise<TGetHarvesterPlotsValidResponse>;
|
|
106
|
+
export declare function get_harvester_plots_valid(agent: TRPCAgent, param: TGetHarvesterPlotsValidRequest): Promise<TGetHarvesterPlotsValidResponse | import("../../../rpc/index").ErrorResponse>;
|
|
107
107
|
export declare const get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
|
|
108
108
|
export declare type get_harvester_plots_invalid_command = typeof get_harvester_plots_invalid_command;
|
|
109
109
|
export declare type TGetHarvesterPlotsInvalidRequest = {
|
|
@@ -120,7 +120,7 @@ export declare type TGetHarvesterPlotsInvalidResponse = {
|
|
|
120
120
|
total_count: int;
|
|
121
121
|
plots: str[];
|
|
122
122
|
};
|
|
123
|
-
export declare function get_harvester_plots_invalid(agent: TRPCAgent, param: TGetHarvesterPlotsInvalidRequest): Promise<TGetHarvesterPlotsInvalidResponse>;
|
|
123
|
+
export declare function get_harvester_plots_invalid(agent: TRPCAgent, param: TGetHarvesterPlotsInvalidRequest): Promise<TGetHarvesterPlotsInvalidResponse | import("../../../rpc/index").ErrorResponse>;
|
|
124
124
|
export declare const get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
|
|
125
125
|
export declare type get_harvester_plots_keys_missing_command = typeof get_harvester_plots_keys_missing_command;
|
|
126
126
|
export declare type TGetHarvesterPlotsKeysMissingRequest = {
|
|
@@ -137,7 +137,7 @@ export declare type TGetHarvesterPlotsKeysMissingResponse = {
|
|
|
137
137
|
total_count: int;
|
|
138
138
|
plots: str[];
|
|
139
139
|
};
|
|
140
|
-
export declare function get_harvester_plots_keys_missing(agent: TRPCAgent, param: TGetHarvesterPlotsKeysMissingRequest): Promise<TGetHarvesterPlotsKeysMissingResponse>;
|
|
140
|
+
export declare function get_harvester_plots_keys_missing(agent: TRPCAgent, param: TGetHarvesterPlotsKeysMissingRequest): Promise<TGetHarvesterPlotsKeysMissingResponse | import("../../../rpc/index").ErrorResponse>;
|
|
141
141
|
export declare const get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
|
|
142
142
|
export declare type get_harvester_plots_duplicates_command = typeof get_harvester_plots_duplicates_command;
|
|
143
143
|
export declare type TGetHarvesterPlotsDuplicatesRequest = {
|
|
@@ -154,7 +154,7 @@ export declare type TGetHarvesterPlotsDuplicatesResponse = {
|
|
|
154
154
|
total_count: int;
|
|
155
155
|
plots: str[];
|
|
156
156
|
};
|
|
157
|
-
export declare function get_harvester_plots_duplicates(agent: TRPCAgent, param: TGetHarvesterPlotsDuplicatesRequest): Promise<TGetHarvesterPlotsDuplicatesResponse>;
|
|
157
|
+
export declare function get_harvester_plots_duplicates(agent: TRPCAgent, param: TGetHarvesterPlotsDuplicatesRequest): Promise<TGetHarvesterPlotsDuplicatesResponse | import("../../../rpc/index").ErrorResponse>;
|
|
158
158
|
export declare const get_pool_login_link_command = "get_pool_login_link";
|
|
159
159
|
export declare type get_pool_login_link_command = typeof get_pool_login_link_command;
|
|
160
160
|
export declare type TGetPoolLinkRequest = {
|
|
@@ -163,4 +163,4 @@ export declare type TGetPoolLinkRequest = {
|
|
|
163
163
|
export declare type TGetPoolLinkResponse = {
|
|
164
164
|
login_link: str;
|
|
165
165
|
};
|
|
166
|
-
export declare function get_pool_login_link(agent: TRPCAgent, params: TGetPoolLinkRequest): Promise<TGetPoolLinkResponse>;
|
|
166
|
+
export declare function get_pool_login_link(agent: TRPCAgent, params: TGetPoolLinkRequest): Promise<TGetPoolLinkResponse | import("../../../rpc/index").ErrorResponse>;
|