chia-agent 3.0.1 → 6.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.
- package/CHANGELOG.md +177 -0
- package/README.md +9 -13
- package/api/chia/consensus/blockchain.d.ts +1 -0
- package/api/chia/{types/condition_with_args.js → consensus/blockchain.js} +0 -0
- package/api/chia/consensus/cost_calculator.d.ts +3 -3
- package/api/chia/farmer/farmer.d.ts +1 -0
- package/api/chia/harvester/harvester.d.ts +2 -3
- package/api/chia/plot-sync/receiver.d.ts +22 -0
- package/api/chia/{types/name_puzzle_condition.js → plot-sync/receiver.js} +0 -0
- package/api/chia/pools/pool_config.d.ts +0 -1
- package/api/chia/protocols/harvester_protocol.d.ts +0 -5
- package/api/chia/server/outbound_message.d.ts +1 -0
- package/api/chia/{wallet/util/backup_utils.js → server/outbound_message.js} +0 -0
- package/api/chia/timelord/types.d.ts +1 -0
- package/api/chia/{wallet/util/trade_utils.js → timelord/types.js} +0 -0
- package/api/chia/types/coin_record.d.ts +3 -1
- package/api/chia/types/spend_bundle_condition.d.ts +18 -0
- package/api/chia/types/spend_bundle_condition.js +2 -0
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +6 -0
- package/api/chia/wallet/cat_wallet/cat_constants.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +24 -0
- package/api/chia/wallet/trade_record.js +1 -0
- package/api/chia/wallet/transaction_record.d.ts +7 -2
- package/api/chia/wallet/util/wallet_types.d.ts +1 -1
- package/api/chia/wallet/util/wallet_types.js +1 -1
- package/api/rpc/common/index.d.ts +40 -0
- package/api/rpc/common/index.js +48 -0
- package/api/rpc/crawler/index.d.ts +29 -0
- package/api/rpc/crawler/index.js +27 -0
- package/api/rpc/farmer/index.d.ts +82 -10
- package/api/rpc/farmer/index.js +36 -1
- package/api/rpc/full_node/index.d.ts +39 -8
- package/api/rpc/full_node/index.js +21 -1
- package/api/rpc/index.d.ts +16 -10
- package/api/rpc/index.js +42 -12
- package/api/rpc/wallet/index.d.ts +198 -114
- package/api/rpc/wallet/index.js +98 -49
- package/api/types.d.ts +16 -0
- package/api/types.js +2 -1
- package/api/ws/crawler/index.d.ts +25 -0
- package/api/ws/crawler/index.js +40 -0
- package/api/ws/daemon/index.d.ts +8 -0
- package/api/ws/daemon/index.js +9 -2
- package/api/ws/farmer/index.d.ts +20 -8
- package/api/ws/farmer/index.js +31 -5
- package/api/ws/full_node/index.d.ts +50 -4
- package/api/ws/full_node/index.js +40 -1
- package/api/ws/harvester/index.d.ts +9 -3
- package/api/ws/harvester/index.js +14 -1
- package/api/ws/index.d.ts +22 -16
- package/api/ws/index.js +54 -33
- package/api/ws/timelord/index.d.ts +38 -0
- package/api/ws/timelord/index.js +66 -0
- package/api/ws/wallet/index.d.ts +32 -6
- package/api/ws/wallet/index.js +42 -3
- package/daemon/connection.d.ts +2 -2
- package/daemon/index.d.ts +6 -6
- package/index.d.ts +0 -2
- package/package.json +2 -2
- package/api/chia/types/condition_opcodes.d.ts +0 -20
- package/api/chia/types/condition_opcodes.js +0 -31
- package/api/chia/types/condition_with_args.d.ts +0 -6
- package/api/chia/types/name_puzzle_condition.d.ts +0 -8
- package/api/chia/wallet/util/backup_utils.d.ts +0 -25
- package/api/chia/wallet/util/trade_utils.d.ts +0 -11
|
@@ -2,36 +2,32 @@ import { WalletInfo } from "../../chia/wallet/wallet_info";
|
|
|
2
2
|
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
3
3
|
import { bool, bytes, False, int, Optional, str, True, uint128, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
|
-
import { TransactionRecord } from "../../chia/wallet/transaction_record";
|
|
5
|
+
import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
7
|
-
import { BackupInfo } from "../../chia/wallet/util/backup_utils";
|
|
8
7
|
import { TRPCAgent } from "../../../rpc";
|
|
9
8
|
import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
|
|
10
|
-
import {
|
|
9
|
+
import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
|
|
10
|
+
import { CAT } from "../../chia/wallet/cat_wallet/cat_constants";
|
|
11
11
|
export declare const chia_wallet_service = "chia_wallet";
|
|
12
12
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
13
13
|
export declare const log_in_command = "log_in";
|
|
14
14
|
export declare type log_in_command = typeof log_in_command;
|
|
15
15
|
export declare type TLoginRequest = {
|
|
16
16
|
fingerprint: int;
|
|
17
|
-
type: "skip";
|
|
18
|
-
host: str;
|
|
19
|
-
} | {
|
|
20
|
-
fingerprint: int;
|
|
21
|
-
type: "restore_backup";
|
|
22
|
-
host: str;
|
|
23
|
-
file_path: str;
|
|
24
17
|
};
|
|
25
18
|
export declare type TLoginResponse = {
|
|
26
19
|
fingerprint: int;
|
|
27
20
|
} | {
|
|
28
21
|
success: False;
|
|
29
|
-
error: "
|
|
30
|
-
} | {
|
|
31
|
-
backup_info: BackupInfo;
|
|
32
|
-
backup_path: str;
|
|
22
|
+
error: "Unknown Error";
|
|
33
23
|
};
|
|
34
24
|
export declare function log_in(agent: TRPCAgent, data: TLoginRequest): Promise<TLoginResponse>;
|
|
25
|
+
export declare const get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
|
|
26
|
+
export declare type get_logged_in_fingerprint_command = typeof get_logged_in_fingerprint_command;
|
|
27
|
+
export declare type TGetLoggedInFingerprintResponse = {
|
|
28
|
+
fingerprint: Optional<int>;
|
|
29
|
+
};
|
|
30
|
+
export declare function get_logged_in_fingerprint(agent: TRPCAgent): Promise<TGetLoggedInFingerprintResponse>;
|
|
35
31
|
export declare const get_public_keys_command = "get_public_keys";
|
|
36
32
|
export declare type get_public_keys_command = typeof get_public_keys_command;
|
|
37
33
|
export declare type TGetPublicKeysRequest = {};
|
|
@@ -73,11 +69,6 @@ export declare const add_key_command = "add_key";
|
|
|
73
69
|
export declare type add_key_command = typeof add_key_command;
|
|
74
70
|
export declare type TAddKeyRequest = {
|
|
75
71
|
mnemonic: str[];
|
|
76
|
-
type: "new_wallet" | "skip";
|
|
77
|
-
} | {
|
|
78
|
-
mnemonic: str[];
|
|
79
|
-
type: "restore_backup";
|
|
80
|
-
file_path: str;
|
|
81
72
|
};
|
|
82
73
|
export declare type TAddKeyResponse = {
|
|
83
74
|
success: false;
|
|
@@ -130,6 +121,13 @@ export declare type TGetHeightInfoResponse = {
|
|
|
130
121
|
height: uint32;
|
|
131
122
|
};
|
|
132
123
|
export declare function get_height_info(agent: TRPCAgent): Promise<TGetHeightInfoResponse>;
|
|
124
|
+
export declare const push_tx_command = "push_tx";
|
|
125
|
+
export declare type push_tx_command = typeof push_tx_command;
|
|
126
|
+
export declare type TPushTxRequest = {
|
|
127
|
+
spend_bundle: str;
|
|
128
|
+
};
|
|
129
|
+
export declare type TPushTxResponse = {};
|
|
130
|
+
export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse>;
|
|
133
131
|
export declare const farm_block_command = "farm_block";
|
|
134
132
|
export declare type farm_block_command = typeof farm_block_command;
|
|
135
133
|
export declare type TFarmBlockRequest = {
|
|
@@ -154,33 +152,30 @@ export declare type TGetNetworkInfoResponseOfWallet = {
|
|
|
154
152
|
export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet>;
|
|
155
153
|
export declare const get_wallets_command = "get_wallets";
|
|
156
154
|
export declare type get_wallets_command = typeof get_wallets_command;
|
|
157
|
-
export declare type TGetWalletsRequest = {
|
|
155
|
+
export declare type TGetWalletsRequest = {
|
|
156
|
+
type?: int;
|
|
157
|
+
};
|
|
158
158
|
export declare type TGetWalletsResponse = {
|
|
159
159
|
wallets: WalletInfo[];
|
|
160
160
|
};
|
|
161
|
-
export declare function get_wallets(agent: TRPCAgent): Promise<TGetWalletsResponse>;
|
|
162
|
-
export declare type
|
|
163
|
-
host: str;
|
|
161
|
+
export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse>;
|
|
162
|
+
export declare type TCreate_New_CAT_WalletRequest = {
|
|
164
163
|
fee?: uint64;
|
|
165
|
-
wallet_type: "
|
|
164
|
+
wallet_type: "cat_wallet";
|
|
166
165
|
mode: "new";
|
|
167
166
|
amount: uint64;
|
|
168
167
|
} | {
|
|
169
|
-
host: str;
|
|
170
168
|
fee?: uint64;
|
|
171
|
-
wallet_type: "
|
|
169
|
+
wallet_type: "cat_wallet";
|
|
172
170
|
mode: "existing";
|
|
173
|
-
|
|
171
|
+
asset_id: str;
|
|
174
172
|
};
|
|
175
|
-
export declare type
|
|
173
|
+
export declare type TCreate_New_CAT_WalletResponse = {
|
|
176
174
|
type: uint8;
|
|
177
|
-
|
|
175
|
+
asset_id: str;
|
|
178
176
|
wallet_id: uint32;
|
|
179
|
-
} | {
|
|
180
|
-
type: uint8;
|
|
181
177
|
};
|
|
182
178
|
export declare type TCreate_New_RL_WalletRequest = {
|
|
183
|
-
host: str;
|
|
184
179
|
fee?: uint64;
|
|
185
180
|
wallet_type: "rl_wallet";
|
|
186
181
|
rl_type: "admin";
|
|
@@ -189,7 +184,6 @@ export declare type TCreate_New_RL_WalletRequest = {
|
|
|
189
184
|
pubkey: str;
|
|
190
185
|
amount: int;
|
|
191
186
|
} | {
|
|
192
|
-
host: str;
|
|
193
187
|
fee?: uint64;
|
|
194
188
|
wallet_type: "rl_wallet";
|
|
195
189
|
rl_type: "user";
|
|
@@ -206,7 +200,6 @@ export declare type TCreate_New_RL_WalletResponse = {
|
|
|
206
200
|
pubkey: str;
|
|
207
201
|
};
|
|
208
202
|
export declare type TCreate_New_DID_WalletRequest = {
|
|
209
|
-
host: str;
|
|
210
203
|
fee?: uint64;
|
|
211
204
|
wallet_type: "did_wallet";
|
|
212
205
|
did_type: "new";
|
|
@@ -214,7 +207,6 @@ export declare type TCreate_New_DID_WalletRequest = {
|
|
|
214
207
|
num_of_backup_ids_needed: uint64;
|
|
215
208
|
amount: int;
|
|
216
209
|
} | {
|
|
217
|
-
host: str;
|
|
218
210
|
fee?: uint64;
|
|
219
211
|
wallet_type: "did_wallet";
|
|
220
212
|
did_type: "recovery";
|
|
@@ -238,7 +230,6 @@ export declare type TCreate_New_DID_WalletResponse = {
|
|
|
238
230
|
num_verifications_required: uint64;
|
|
239
231
|
};
|
|
240
232
|
export declare type TCreate_New_Pool_WalletRequest = {
|
|
241
|
-
host: str;
|
|
242
233
|
fee?: uint64;
|
|
243
234
|
wallet_type: "pool_wallet";
|
|
244
235
|
mode: "new";
|
|
@@ -253,7 +244,6 @@ export declare type TCreate_New_Pool_WalletRequest = {
|
|
|
253
244
|
p2_singleton_delayed_ph?: str;
|
|
254
245
|
p2_singleton_delay_time?: uint64;
|
|
255
246
|
} | {
|
|
256
|
-
host: str;
|
|
257
247
|
fee?: uint64;
|
|
258
248
|
wallet_type: "pool_wallet";
|
|
259
249
|
mode: "recovery";
|
|
@@ -266,8 +256,8 @@ export declare type TCreate_New_Pool_WalletResponse = {
|
|
|
266
256
|
};
|
|
267
257
|
export declare const create_new_wallet_command = "create_new_wallet";
|
|
268
258
|
export declare type create_new_wallet_command = typeof create_new_wallet_command;
|
|
269
|
-
export declare type TCreateNewWalletRequest =
|
|
270
|
-
export declare type TCreateNewWalletResponse =
|
|
259
|
+
export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_Pool_WalletRequest;
|
|
260
|
+
export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_Pool_WalletResponse;
|
|
271
261
|
export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse>;
|
|
272
262
|
export declare const get_wallet_balance_command = "get_wallet_balance";
|
|
273
263
|
export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
|
|
@@ -284,6 +274,7 @@ export declare type TGetWalletBalanceResponse = {
|
|
|
284
274
|
max_send_amount: uint64;
|
|
285
275
|
unspent_coin_count: int;
|
|
286
276
|
pending_coin_removal_count: int;
|
|
277
|
+
fingerprint?: int;
|
|
287
278
|
};
|
|
288
279
|
};
|
|
289
280
|
export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse>;
|
|
@@ -293,7 +284,7 @@ export declare type TGetTransactionRequest = {
|
|
|
293
284
|
transaction_id: str;
|
|
294
285
|
};
|
|
295
286
|
export declare type TGetTransactionResponse = {
|
|
296
|
-
transaction:
|
|
287
|
+
transaction: TransactionRecordConvenience;
|
|
297
288
|
transaction_id: TransactionRecord["name"];
|
|
298
289
|
};
|
|
299
290
|
export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse>;
|
|
@@ -303,11 +294,12 @@ export declare type TGetTransactionsRequest = {
|
|
|
303
294
|
wallet_id: int;
|
|
304
295
|
start?: int;
|
|
305
296
|
end?: int;
|
|
297
|
+
sort_key?: str;
|
|
298
|
+
reverse?: bool;
|
|
299
|
+
to_address?: str;
|
|
306
300
|
};
|
|
307
301
|
export declare type TGetTransactionsResponse = {
|
|
308
|
-
transactions:
|
|
309
|
-
to_address: string;
|
|
310
|
-
}>;
|
|
302
|
+
transactions: TransactionRecordConvenience[];
|
|
311
303
|
wallet_id: int;
|
|
312
304
|
};
|
|
313
305
|
export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse>;
|
|
@@ -327,11 +319,12 @@ export declare type send_transaction_command = typeof send_transaction_command;
|
|
|
327
319
|
export declare type TSendTransactionRequest = {
|
|
328
320
|
wallet_id: int;
|
|
329
321
|
amount: int;
|
|
330
|
-
fee
|
|
322
|
+
fee: int;
|
|
331
323
|
address: str;
|
|
324
|
+
memos?: str[];
|
|
332
325
|
};
|
|
333
326
|
export declare type TSendTransactionResponse = {
|
|
334
|
-
transaction:
|
|
327
|
+
transaction: TransactionRecordConvenience;
|
|
335
328
|
transaction_id: TransactionRecord["name"];
|
|
336
329
|
};
|
|
337
330
|
export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse>;
|
|
@@ -342,27 +335,22 @@ export declare type TSendTransactionMultiRequest = {
|
|
|
342
335
|
additions: TAdditions[];
|
|
343
336
|
fee?: uint64;
|
|
344
337
|
coins?: Coin[];
|
|
338
|
+
coin_announcements?: TCoinAnnouncement[];
|
|
339
|
+
puzzle_announcements?: TPuzzleAnnouncement[];
|
|
345
340
|
};
|
|
346
341
|
export declare type TSendTransactionMultiResponse = {
|
|
347
|
-
transaction:
|
|
348
|
-
transaction_id:
|
|
342
|
+
transaction: TransactionRecordConvenience;
|
|
343
|
+
transaction_id: TransactionRecordConvenience["name"];
|
|
349
344
|
};
|
|
350
345
|
export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse>;
|
|
351
|
-
export declare const create_backup_command = "create_backup";
|
|
352
|
-
export declare type create_backup_command = typeof create_backup_command;
|
|
353
|
-
export declare type TCreateBackupRequest = {
|
|
354
|
-
file_path: str;
|
|
355
|
-
};
|
|
356
|
-
export declare type TCreateBackupResponse = {};
|
|
357
|
-
export declare function create_backup(agent: TRPCAgent, data: TCreateBackupRequest): Promise<TCreateBackupResponse>;
|
|
358
346
|
export declare const get_transaction_count_command = "get_transaction_count";
|
|
359
347
|
export declare type get_transaction_count_command = typeof get_transaction_count_command;
|
|
360
348
|
export declare type TGetTransactionCountRequest = {
|
|
361
349
|
wallet_id: int;
|
|
362
350
|
};
|
|
363
351
|
export declare type TGetTransactionCountResponse = {
|
|
364
|
-
wallet_id: int;
|
|
365
352
|
count: int;
|
|
353
|
+
wallet_id: int;
|
|
366
354
|
};
|
|
367
355
|
export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse>;
|
|
368
356
|
export declare const get_farmed_amount_command = "get_farmed_amount";
|
|
@@ -379,6 +367,17 @@ export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedA
|
|
|
379
367
|
export declare type TAdditions = {
|
|
380
368
|
amount: uint64;
|
|
381
369
|
puzzle_hash: str;
|
|
370
|
+
memos?: str[];
|
|
371
|
+
};
|
|
372
|
+
export declare type TCoinAnnouncement = {
|
|
373
|
+
coin_id: str;
|
|
374
|
+
message: str;
|
|
375
|
+
morph_bytes?: str;
|
|
376
|
+
};
|
|
377
|
+
export declare type TPuzzleAnnouncement = {
|
|
378
|
+
puzzle_hash: str;
|
|
379
|
+
message: str;
|
|
380
|
+
morph_bytes?: str;
|
|
382
381
|
};
|
|
383
382
|
export declare const create_signed_transaction_command = "create_signed_transaction";
|
|
384
383
|
export declare type create_signed_transaction_command = typeof create_signed_transaction_command;
|
|
@@ -386,9 +385,11 @@ export declare type TCreateSignedTransactionRequest = {
|
|
|
386
385
|
additions: TAdditions[];
|
|
387
386
|
fee?: uint64;
|
|
388
387
|
coins?: Coin[];
|
|
388
|
+
coin_announcements?: TCoinAnnouncement[];
|
|
389
|
+
puzzle_announcements?: TPuzzleAnnouncement[];
|
|
389
390
|
};
|
|
390
391
|
export declare type TCreateSignedTransactionResponse = {
|
|
391
|
-
signed_tx:
|
|
392
|
+
signed_tx: TransactionRecordConvenience;
|
|
392
393
|
};
|
|
393
394
|
export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse>;
|
|
394
395
|
export declare const delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
|
|
@@ -398,97 +399,176 @@ export declare type TDeleteUnconfirmedTransactionsRequest = {
|
|
|
398
399
|
};
|
|
399
400
|
export declare type TDeleteUnconfirmedTransactionsResponse = {};
|
|
400
401
|
export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse>;
|
|
401
|
-
export declare const
|
|
402
|
-
export declare type
|
|
403
|
-
export declare type
|
|
402
|
+
export declare const select_coins_command = "select_coins";
|
|
403
|
+
export declare type select_coins_command = typeof select_coins_command;
|
|
404
|
+
export declare type TSelectCoinsRequest = {
|
|
405
|
+
amount: uint64;
|
|
406
|
+
wallet_id: uint32;
|
|
407
|
+
};
|
|
408
|
+
export declare type TSelectCoinsResponse = {
|
|
409
|
+
coins: Coin[];
|
|
410
|
+
};
|
|
411
|
+
export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
|
|
412
|
+
export declare const cat_set_name_command = "cat_set_name";
|
|
413
|
+
export declare type cat_set_name_command = typeof cat_set_name_command;
|
|
414
|
+
export declare type TCatSetNameRequest = {
|
|
404
415
|
wallet_id: int;
|
|
405
416
|
name: str;
|
|
406
417
|
};
|
|
407
|
-
export declare type
|
|
418
|
+
export declare type TCatSetNameResponse = {
|
|
408
419
|
wallet_id: int;
|
|
409
420
|
};
|
|
410
|
-
export declare function
|
|
411
|
-
export declare const
|
|
412
|
-
export declare type
|
|
413
|
-
export declare type
|
|
421
|
+
export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse>;
|
|
422
|
+
export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
|
|
423
|
+
export declare type cat_asset_id_to_name_command = typeof cat_asset_id_to_name_command;
|
|
424
|
+
export declare type TCatAssetIdToNameRequest = {
|
|
425
|
+
asset_id: str;
|
|
426
|
+
};
|
|
427
|
+
export declare type TCatAssetIdToNameResponse = {
|
|
428
|
+
wallet_id: Optional<uint32>;
|
|
429
|
+
name: str;
|
|
430
|
+
};
|
|
431
|
+
export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse>;
|
|
432
|
+
export declare const cat_get_name_command = "cat_get_name";
|
|
433
|
+
export declare type cat_get_name_command = typeof cat_get_name_command;
|
|
434
|
+
export declare type TCatGetNameRequest = {
|
|
414
435
|
wallet_id: int;
|
|
415
436
|
};
|
|
416
|
-
export declare type
|
|
437
|
+
export declare type TCatGetNameResponse = {
|
|
417
438
|
wallet_id: int;
|
|
418
439
|
name: str;
|
|
419
440
|
};
|
|
420
|
-
export declare function
|
|
421
|
-
export declare const
|
|
422
|
-
export declare type
|
|
423
|
-
export declare type
|
|
441
|
+
export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse>;
|
|
442
|
+
export declare const get_stray_cats_command = "get_stray_cats";
|
|
443
|
+
export declare type get_stray_cats_command = typeof get_stray_cats_command;
|
|
444
|
+
export declare type TGetStrayCatsResponse = {
|
|
445
|
+
stray_cats: Array<{
|
|
446
|
+
asset_id: str;
|
|
447
|
+
name: str;
|
|
448
|
+
first_seen_height: int;
|
|
449
|
+
sender_puzzle_hash: str;
|
|
450
|
+
}>;
|
|
451
|
+
};
|
|
452
|
+
export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse>;
|
|
453
|
+
export declare const cat_spend_command = "cat_spend";
|
|
454
|
+
export declare type cat_spend_command = typeof cat_spend_command;
|
|
455
|
+
export declare type TCatSpendRequest = {
|
|
424
456
|
wallet_id: int;
|
|
425
457
|
inner_address: str;
|
|
426
|
-
|
|
427
|
-
|
|
458
|
+
memos?: str[];
|
|
459
|
+
amount: uint64;
|
|
460
|
+
fee: uint64;
|
|
428
461
|
};
|
|
429
|
-
export declare type
|
|
430
|
-
transaction:
|
|
462
|
+
export declare type TCatSpendResponse = {
|
|
463
|
+
transaction: TransactionRecordConvenience;
|
|
431
464
|
transaction_id: TransactionRecord["name"];
|
|
432
465
|
};
|
|
433
|
-
export declare function
|
|
434
|
-
export declare const
|
|
435
|
-
export declare type
|
|
436
|
-
export declare type
|
|
466
|
+
export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse>;
|
|
467
|
+
export declare const cat_get_asset_id_command = "cat_get_asset_id";
|
|
468
|
+
export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
|
|
469
|
+
export declare type TCatGetAssetIdRequest = {
|
|
437
470
|
wallet_id: int;
|
|
438
471
|
};
|
|
439
|
-
export declare type
|
|
440
|
-
|
|
472
|
+
export declare type TCatGetAssetIdResponse = {
|
|
473
|
+
asset_id: str;
|
|
441
474
|
wallet_id: int;
|
|
442
475
|
};
|
|
443
|
-
export declare function
|
|
476
|
+
export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse>;
|
|
444
477
|
export declare const create_offer_for_ids_command = "create_offer_for_ids";
|
|
445
478
|
export declare type create_offer_for_ids_command = typeof create_offer_for_ids_command;
|
|
446
479
|
export declare type TCreateOfferForIdsRequest = {
|
|
447
|
-
|
|
448
|
-
|
|
480
|
+
offer: Record<int, int>;
|
|
481
|
+
fee?: uint64;
|
|
482
|
+
validate_only?: bool;
|
|
483
|
+
};
|
|
484
|
+
export declare type TCreateOfferForIdsResponse = {
|
|
485
|
+
offer: str;
|
|
486
|
+
trade_record: TradeRecordConvenience;
|
|
449
487
|
};
|
|
450
|
-
export declare type TCreateOfferForIdsResponse = {};
|
|
451
488
|
export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse>;
|
|
452
|
-
export declare const
|
|
453
|
-
export declare type
|
|
454
|
-
export declare type
|
|
455
|
-
|
|
489
|
+
export declare const get_offer_summary_command = "get_offer_summary";
|
|
490
|
+
export declare type get_offer_summary_command = typeof get_offer_summary_command;
|
|
491
|
+
export declare type TGetOfferSummaryRequest = {
|
|
492
|
+
offer: str;
|
|
493
|
+
};
|
|
494
|
+
export declare type TGetOfferSummaryResponse = {
|
|
495
|
+
summary: {
|
|
496
|
+
offered: Record<str, int>;
|
|
497
|
+
requested: Record<str, int>;
|
|
498
|
+
fees: int;
|
|
499
|
+
};
|
|
456
500
|
};
|
|
457
|
-
export declare
|
|
458
|
-
|
|
501
|
+
export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
|
|
502
|
+
export declare const check_offer_validity_command = "check_offer_validity";
|
|
503
|
+
export declare type check_offer_validity_command = typeof check_offer_validity_command;
|
|
504
|
+
export declare type TCheckOfferValidityRequest = {
|
|
505
|
+
offer: str;
|
|
459
506
|
};
|
|
460
|
-
export declare
|
|
461
|
-
|
|
462
|
-
export declare type respond_to_offer_command = typeof respond_to_offer_command;
|
|
463
|
-
export declare type TResponseToOfferRequest = {
|
|
464
|
-
filename: str;
|
|
507
|
+
export declare type TCheckOfferValidityResponse = {
|
|
508
|
+
valid: bool;
|
|
465
509
|
};
|
|
466
|
-
export declare
|
|
467
|
-
export declare
|
|
468
|
-
export declare
|
|
469
|
-
export declare type
|
|
470
|
-
|
|
471
|
-
|
|
510
|
+
export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse>;
|
|
511
|
+
export declare const take_offer_command = "take_offer";
|
|
512
|
+
export declare type take_offer_command = typeof take_offer_command;
|
|
513
|
+
export declare type TTakeOfferRequest = {
|
|
514
|
+
offer: str;
|
|
515
|
+
fee?: uint64;
|
|
472
516
|
};
|
|
473
|
-
export declare type
|
|
474
|
-
|
|
517
|
+
export declare type TTakeOfferResponse = {
|
|
518
|
+
trade_record: TradeRecordConvenience;
|
|
475
519
|
};
|
|
476
|
-
export declare function
|
|
477
|
-
export declare const
|
|
478
|
-
export declare type
|
|
479
|
-
export declare type
|
|
480
|
-
|
|
481
|
-
|
|
520
|
+
export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse>;
|
|
521
|
+
export declare const get_offer_command = "get_offer";
|
|
522
|
+
export declare type get_offer_command = typeof get_offer_command;
|
|
523
|
+
export declare type TGetOfferRequest = {
|
|
524
|
+
trade_id: str;
|
|
525
|
+
file_contents?: bool;
|
|
526
|
+
};
|
|
527
|
+
export declare type TGetOfferResponse = {
|
|
528
|
+
trade_record: TradeRecordConvenience;
|
|
529
|
+
offer: Optional<str>;
|
|
482
530
|
};
|
|
483
|
-
export declare function
|
|
484
|
-
export declare const
|
|
485
|
-
export declare type
|
|
486
|
-
export declare type
|
|
531
|
+
export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse>;
|
|
532
|
+
export declare const get_all_offers_command = "get_all_offers";
|
|
533
|
+
export declare type get_all_offers_command = typeof get_all_offers_command;
|
|
534
|
+
export declare type TGetAllOffersRequest = {
|
|
535
|
+
start?: int;
|
|
536
|
+
end?: int;
|
|
537
|
+
exclude_my_offers?: bool;
|
|
538
|
+
exclude_taken_offers?: bool;
|
|
539
|
+
include_completed?: bool;
|
|
540
|
+
sort_key?: str;
|
|
541
|
+
reverse?: bool;
|
|
542
|
+
file_contents?: bool;
|
|
543
|
+
};
|
|
544
|
+
export declare type TGetAllOffersResponse = {
|
|
545
|
+
trade_records: TradeRecordConvenience[];
|
|
546
|
+
offers: Optional<str[]>;
|
|
547
|
+
};
|
|
548
|
+
export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse>;
|
|
549
|
+
export declare const get_offers_count_command = "get_offers_count";
|
|
550
|
+
export declare type get_offers_count_command = typeof get_offers_count_command;
|
|
551
|
+
export declare type TGetOffersCountResponse = {
|
|
552
|
+
total: int;
|
|
553
|
+
my_offers_count: int;
|
|
554
|
+
taken_offers_count: int;
|
|
555
|
+
};
|
|
556
|
+
export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse>;
|
|
557
|
+
export declare const cancel_offer_command = "cancel_offer";
|
|
558
|
+
export declare type cancel_offer_command = typeof cancel_offer_command;
|
|
559
|
+
export declare type TCancelOfferRequest = {
|
|
487
560
|
secure: bool;
|
|
488
561
|
trade_id: str;
|
|
562
|
+
fee?: uint64;
|
|
563
|
+
};
|
|
564
|
+
export declare type TCancelOfferResponse = {};
|
|
565
|
+
export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
|
|
566
|
+
export declare const get_cat_list_command = "get_cat_list";
|
|
567
|
+
export declare type get_cat_list_command = typeof get_cat_list_command;
|
|
568
|
+
export declare type TGetCatListResponse = {
|
|
569
|
+
cat_list: CAT[];
|
|
489
570
|
};
|
|
490
|
-
export declare
|
|
491
|
-
export declare function cancel_trade(agent: TRPCAgent, data: TCancelTradeRequest): Promise<TCancelTradeResponse>;
|
|
571
|
+
export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
|
|
492
572
|
export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
|
|
493
573
|
export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
|
|
494
574
|
export declare type TDidUpdateRecoveryIdsRequest = {
|
|
@@ -647,6 +727,7 @@ export declare type TPwJoinPoolRequest = {
|
|
|
647
727
|
export declare type TPwJoinPoolResponse = {
|
|
648
728
|
total_fee: uint64;
|
|
649
729
|
transaction: TransactionRecord;
|
|
730
|
+
fee_transaction: Optional<TransactionRecord>;
|
|
650
731
|
} | {
|
|
651
732
|
success: False;
|
|
652
733
|
error: "not_initialized";
|
|
@@ -661,6 +742,7 @@ export declare type TPwSelfPoolRequest = {
|
|
|
661
742
|
export declare type TPwSelfPoolResponse = {
|
|
662
743
|
total_fee: uint64;
|
|
663
744
|
transaction: TransactionRecord;
|
|
745
|
+
fee_transaction: Optional<TransactionRecord>;
|
|
664
746
|
} | {
|
|
665
747
|
success: False;
|
|
666
748
|
error: "not_initialized";
|
|
@@ -671,10 +753,12 @@ export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command
|
|
|
671
753
|
export declare type TPwAbsorbRewardsRequest = {
|
|
672
754
|
wallet_id: uint32;
|
|
673
755
|
fee?: uint64;
|
|
756
|
+
max_spends_in_tx?: int;
|
|
674
757
|
};
|
|
675
758
|
export declare type TPwAbsorbRewardsResponse = {
|
|
676
759
|
state: PoolWalletInfo;
|
|
677
760
|
transaction: TransactionRecord;
|
|
761
|
+
fee_transaction: Optional<TransactionRecord>;
|
|
678
762
|
} | {
|
|
679
763
|
success: False;
|
|
680
764
|
error: "not_initialized";
|