chia-agent 5.0.0 → 8.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 +148 -0
- package/README.md +7 -7
- 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/plot-sync/receiver.js +2 -0
- package/api/chia/protocols/harvester_protocol.d.ts +0 -5
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +23 -0
- package/api/chia/wallet/nft_wallet/nft_info.js +2 -0
- package/api/chia/wallet/puzzle_drivers.d.ts +6 -0
- package/api/chia/wallet/puzzle_drivers.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +2 -0
- package/api/chia/wallet/util/wallet_types.d.ts +2 -1
- package/api/chia/wallet/util/wallet_types.js +2 -1
- package/api/rpc/farmer/index.d.ts +83 -10
- package/api/rpc/farmer/index.js +36 -1
- package/api/rpc/index.d.ts +6 -6
- package/api/rpc/index.js +27 -3
- package/api/rpc/wallet/index.d.ts +304 -28
- package/api/rpc/wallet/index.js +135 -7
- package/api/ws/farmer/index.d.ts +32 -9
- package/api/ws/farmer/index.js +44 -5
- package/api/ws/harvester/index.d.ts +13 -2
- package/api/ws/harvester/index.js +14 -1
- package/api/ws/index.d.ts +6 -6
- package/api/ws/index.js +7 -3
- package/package.json +1 -1
package/api/rpc/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = void 0;
|
|
3
|
+
exports.cat_get_asset_id = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_names = exports.get_coin_record_by_name = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block_records = exports.get_block_record_by_height = exports.get_block_record = exports.get_block = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_pool_login_link = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
+
exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.delete_all_keys = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = void 0;
|
|
5
|
+
exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.take_offer = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction_count = exports.get_transaction = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = void 0;
|
|
6
6
|
var index_1 = require("./farmer/index");
|
|
7
7
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
8
8
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "get_signage_point", { enumerable: true, get: fun
|
|
|
10
10
|
Object.defineProperty(exports, "get_signage_points", { enumerable: true, get: function () { return index_1.get_signage_points; } });
|
|
11
11
|
Object.defineProperty(exports, "set_reward_targets", { enumerable: true, get: function () { return index_1.set_reward_targets; } });
|
|
12
12
|
Object.defineProperty(exports, "get_harvesters", { enumerable: true, get: function () { return index_1.get_harvesters; } });
|
|
13
|
+
Object.defineProperty(exports, "get_harvesters_summary", { enumerable: true, get: function () { return index_1.get_harvesters_summary; } });
|
|
14
|
+
Object.defineProperty(exports, "get_harvester_plots_valid", { enumerable: true, get: function () { return index_1.get_harvester_plots_valid; } });
|
|
15
|
+
Object.defineProperty(exports, "get_harvester_plots_invalid", { enumerable: true, get: function () { return index_1.get_harvester_plots_invalid; } });
|
|
16
|
+
Object.defineProperty(exports, "get_harvester_plots_keys_missing", { enumerable: true, get: function () { return index_1.get_harvester_plots_keys_missing; } });
|
|
17
|
+
Object.defineProperty(exports, "get_harvester_plots_duplicates", { enumerable: true, get: function () { return index_1.get_harvester_plots_duplicates; } });
|
|
18
|
+
Object.defineProperty(exports, "get_pool_login_link", { enumerable: true, get: function () { return index_1.get_pool_login_link; } });
|
|
13
19
|
Object.defineProperty(exports, "set_pool_payout_instructions", { enumerable: true, get: function () { return index_1.set_pool_payout_instructions; } });
|
|
14
20
|
Object.defineProperty(exports, "get_pool_state", { enumerable: true, get: function () { return index_1.get_pool_state; } });
|
|
15
21
|
var index_2 = require("./full_node/index");
|
|
@@ -62,17 +68,35 @@ Object.defineProperty(exports, "create_offer_for_ids", { enumerable: true, get:
|
|
|
62
68
|
Object.defineProperty(exports, "create_signed_transaction", { enumerable: true, get: function () { return index_4.create_signed_transaction; } });
|
|
63
69
|
Object.defineProperty(exports, "delete_unconfirmed_transactions", { enumerable: true, get: function () { return index_4.delete_unconfirmed_transactions; } });
|
|
64
70
|
Object.defineProperty(exports, "select_coins", { enumerable: true, get: function () { return index_4.select_coins; } });
|
|
71
|
+
Object.defineProperty(exports, "get_current_derivation_index", { enumerable: true, get: function () { return index_4.get_current_derivation_index; } });
|
|
72
|
+
Object.defineProperty(exports, "extend_derivation_index", { enumerable: true, get: function () { return index_4.extend_derivation_index; } });
|
|
65
73
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
66
74
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
75
|
+
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
76
|
+
Object.defineProperty(exports, "did_get_wallet_name", { enumerable: true, get: function () { return index_4.did_get_wallet_name; } });
|
|
67
77
|
Object.defineProperty(exports, "did_create_attest", { enumerable: true, get: function () { return index_4.did_create_attest; } });
|
|
68
78
|
Object.defineProperty(exports, "did_create_backup_file", { enumerable: true, get: function () { return index_4.did_create_backup_file; } });
|
|
79
|
+
Object.defineProperty(exports, "did_transfer_did", { enumerable: true, get: function () { return index_4.did_transfer_did; } });
|
|
69
80
|
Object.defineProperty(exports, "did_get_did", { enumerable: true, get: function () { return index_4.did_get_did; } });
|
|
70
81
|
Object.defineProperty(exports, "did_get_information_needed_for_recovery", { enumerable: true, get: function () { return index_4.did_get_information_needed_for_recovery; } });
|
|
82
|
+
Object.defineProperty(exports, "did_get_current_coin_info", { enumerable: true, get: function () { return index_4.did_get_current_coin_info; } });
|
|
71
83
|
Object.defineProperty(exports, "did_get_pubkey", { enumerable: true, get: function () { return index_4.did_get_pubkey; } });
|
|
72
84
|
Object.defineProperty(exports, "did_get_recovery_list", { enumerable: true, get: function () { return index_4.did_get_recovery_list; } });
|
|
85
|
+
Object.defineProperty(exports, "did_get_metadata", { enumerable: true, get: function () { return index_4.did_get_metadata; } });
|
|
73
86
|
Object.defineProperty(exports, "did_recovery_spend", { enumerable: true, get: function () { return index_4.did_recovery_spend; } });
|
|
74
87
|
Object.defineProperty(exports, "did_spend", { enumerable: true, get: function () { return index_4.did_spend; } });
|
|
75
88
|
Object.defineProperty(exports, "did_update_recovery_ids", { enumerable: true, get: function () { return index_4.did_update_recovery_ids; } });
|
|
89
|
+
Object.defineProperty(exports, "did_update_metadata", { enumerable: true, get: function () { return index_4.did_update_metadata; } });
|
|
90
|
+
Object.defineProperty(exports, "nft_mint_nft", { enumerable: true, get: function () { return index_4.nft_mint_nft; } });
|
|
91
|
+
Object.defineProperty(exports, "nft_get_nfts", { enumerable: true, get: function () { return index_4.nft_get_nfts; } });
|
|
92
|
+
Object.defineProperty(exports, "nft_set_nft_did", { enumerable: true, get: function () { return index_4.nft_set_nft_did; } });
|
|
93
|
+
Object.defineProperty(exports, "nft_get_by_did", { enumerable: true, get: function () { return index_4.nft_get_by_did; } });
|
|
94
|
+
Object.defineProperty(exports, "nft_get_wallet_did", { enumerable: true, get: function () { return index_4.nft_get_wallet_did; } });
|
|
95
|
+
Object.defineProperty(exports, "nft_get_wallets_with_dids", { enumerable: true, get: function () { return index_4.nft_get_wallets_with_dids; } });
|
|
96
|
+
Object.defineProperty(exports, "nft_set_nft_status", { enumerable: true, get: function () { return index_4.nft_set_nft_status; } });
|
|
97
|
+
Object.defineProperty(exports, "nft_transfer_nft", { enumerable: true, get: function () { return index_4.nft_transfer_nft; } });
|
|
98
|
+
Object.defineProperty(exports, "nft_get_info", { enumerable: true, get: function () { return index_4.nft_get_info; } });
|
|
99
|
+
Object.defineProperty(exports, "nft_add_uri", { enumerable: true, get: function () { return index_4.nft_add_uri; } });
|
|
76
100
|
Object.defineProperty(exports, "farm_block", { enumerable: true, get: function () { return index_4.farm_block; } });
|
|
77
101
|
Object.defineProperty(exports, "generate_mnemonic", { enumerable: true, get: function () { return index_4.generate_mnemonic; } });
|
|
78
102
|
Object.defineProperty(exports, "get_all_offers", { enumerable: true, get: function () { return index_4.get_all_offers; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletInfo } from "../../chia/wallet/wallet_info";
|
|
2
2
|
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
3
|
-
import { bool, bytes, False, int, Optional, str, True, uint128, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
3
|
+
import { bool, bytes, False, int, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
5
|
import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
@@ -8,6 +8,8 @@ import { TRPCAgent } from "../../../rpc";
|
|
|
8
8
|
import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
|
|
9
9
|
import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
|
|
10
10
|
import { CAT } from "../../chia/wallet/cat_wallet/cat_constants";
|
|
11
|
+
import { TDriverDict } from "../../chia/wallet/puzzle_drivers";
|
|
12
|
+
import { NFTInfo } from "../../chia/wallet/nft_wallet/nft_info";
|
|
11
13
|
export declare const chia_wallet_service = "chia_wallet";
|
|
12
14
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
13
15
|
export declare const log_in_command = "log_in";
|
|
@@ -89,6 +91,7 @@ export declare const check_delete_key_command = "check_delete_key";
|
|
|
89
91
|
export declare type check_delete_key_command = typeof check_delete_key_command;
|
|
90
92
|
export declare type TCheckDeleteKeyRequest = {
|
|
91
93
|
fingerprint: int;
|
|
94
|
+
max_ph_to_search?: int;
|
|
92
95
|
};
|
|
93
96
|
export declare type TCheckDeleteKeyResponse = {
|
|
94
97
|
fingerprint: int;
|
|
@@ -154,6 +157,7 @@ export declare const get_wallets_command = "get_wallets";
|
|
|
154
157
|
export declare type get_wallets_command = typeof get_wallets_command;
|
|
155
158
|
export declare type TGetWalletsRequest = {
|
|
156
159
|
type?: int;
|
|
160
|
+
include_data?: bool;
|
|
157
161
|
};
|
|
158
162
|
export declare type TGetWalletsResponse = {
|
|
159
163
|
wallets: WalletInfo[];
|
|
@@ -206,11 +210,13 @@ export declare type TCreate_New_DID_WalletRequest = {
|
|
|
206
210
|
backup_dids: str[];
|
|
207
211
|
num_of_backup_ids_needed: uint64;
|
|
208
212
|
amount: int;
|
|
213
|
+
metadata?: Record<str, str>;
|
|
214
|
+
wallet_name?: str;
|
|
209
215
|
} | {
|
|
210
216
|
fee?: uint64;
|
|
211
217
|
wallet_type: "did_wallet";
|
|
212
218
|
did_type: "recovery";
|
|
213
|
-
|
|
219
|
+
backup_data: str;
|
|
214
220
|
};
|
|
215
221
|
export declare type TCreate_New_DID_WalletResponse = {
|
|
216
222
|
success: True;
|
|
@@ -229,6 +235,17 @@ export declare type TCreate_New_DID_WalletResponse = {
|
|
|
229
235
|
backup_dids: bytes[];
|
|
230
236
|
num_verifications_required: uint64;
|
|
231
237
|
};
|
|
238
|
+
export declare type TCreate_New_NFT_WalletRequest = {
|
|
239
|
+
fee?: uint64;
|
|
240
|
+
wallet_type: "nft_wallet";
|
|
241
|
+
did_id?: str;
|
|
242
|
+
name?: str;
|
|
243
|
+
};
|
|
244
|
+
export declare type TCreate_New_NFT_WalletResponse = {
|
|
245
|
+
success: True;
|
|
246
|
+
type: uint8;
|
|
247
|
+
wallet_id: uint32;
|
|
248
|
+
};
|
|
232
249
|
export declare type TCreate_New_Pool_WalletRequest = {
|
|
233
250
|
fee?: uint64;
|
|
234
251
|
wallet_type: "pool_wallet";
|
|
@@ -256,8 +273,8 @@ export declare type TCreate_New_Pool_WalletResponse = {
|
|
|
256
273
|
};
|
|
257
274
|
export declare const create_new_wallet_command = "create_new_wallet";
|
|
258
275
|
export declare type create_new_wallet_command = typeof create_new_wallet_command;
|
|
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;
|
|
276
|
+
export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Pool_WalletRequest;
|
|
277
|
+
export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse;
|
|
261
278
|
export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse>;
|
|
262
279
|
export declare const get_wallet_balance_command = "get_wallet_balance";
|
|
263
280
|
export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
|
|
@@ -322,6 +339,7 @@ export declare type TSendTransactionRequest = {
|
|
|
322
339
|
fee: int;
|
|
323
340
|
address: str;
|
|
324
341
|
memos?: str[];
|
|
342
|
+
min_coin_amount?: uint128;
|
|
325
343
|
};
|
|
326
344
|
export declare type TSendTransactionResponse = {
|
|
327
345
|
transaction: TransactionRecordConvenience;
|
|
@@ -384,6 +402,7 @@ export declare type create_signed_transaction_command = typeof create_signed_tra
|
|
|
384
402
|
export declare type TCreateSignedTransactionRequest = {
|
|
385
403
|
additions: TAdditions[];
|
|
386
404
|
fee?: uint64;
|
|
405
|
+
min_coin_amount?: uint128;
|
|
387
406
|
coins?: Coin[];
|
|
388
407
|
coin_announcements?: TCoinAnnouncement[];
|
|
389
408
|
puzzle_announcements?: TPuzzleAnnouncement[];
|
|
@@ -409,6 +428,29 @@ export declare type TSelectCoinsResponse = {
|
|
|
409
428
|
coins: Coin[];
|
|
410
429
|
};
|
|
411
430
|
export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
|
|
431
|
+
export declare const get_current_derivation_index_command = "get_current_derivation_index";
|
|
432
|
+
export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
|
|
433
|
+
export declare type TGetCurrentDerivationIndexResponse = {
|
|
434
|
+
success: True;
|
|
435
|
+
index: Optional<uint32>;
|
|
436
|
+
};
|
|
437
|
+
export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse>;
|
|
438
|
+
export declare const extend_derivation_index_command = "extend_derivation_index";
|
|
439
|
+
export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
|
|
440
|
+
export declare type TExtendDerivationIndexRequest = {
|
|
441
|
+
index: uint32;
|
|
442
|
+
};
|
|
443
|
+
export declare type TExtendDerivationIndexResponse = {
|
|
444
|
+
success: True;
|
|
445
|
+
index: Optional<uint32>;
|
|
446
|
+
};
|
|
447
|
+
export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse>;
|
|
448
|
+
export declare const get_cat_list_command = "get_cat_list";
|
|
449
|
+
export declare type get_cat_list_command = typeof get_cat_list_command;
|
|
450
|
+
export declare type TGetCatListResponse = {
|
|
451
|
+
cat_list: CAT[];
|
|
452
|
+
};
|
|
453
|
+
export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
|
|
412
454
|
export declare const cat_set_name_command = "cat_set_name";
|
|
413
455
|
export declare type cat_set_name_command = typeof cat_set_name_command;
|
|
414
456
|
export declare type TCatSetNameRequest = {
|
|
@@ -458,6 +500,7 @@ export declare type TCatSpendRequest = {
|
|
|
458
500
|
memos?: str[];
|
|
459
501
|
amount: uint64;
|
|
460
502
|
fee: uint64;
|
|
503
|
+
min_coin_amount?: uint128;
|
|
461
504
|
};
|
|
462
505
|
export declare type TCatSpendResponse = {
|
|
463
506
|
transaction: TransactionRecordConvenience;
|
|
@@ -480,6 +523,8 @@ export declare type TCreateOfferForIdsRequest = {
|
|
|
480
523
|
offer: Record<int, int>;
|
|
481
524
|
fee?: uint64;
|
|
482
525
|
validate_only?: bool;
|
|
526
|
+
driver_dict?: TDriverDict;
|
|
527
|
+
min_coin_amount?: uint128;
|
|
483
528
|
};
|
|
484
529
|
export declare type TCreateOfferForIdsResponse = {
|
|
485
530
|
offer: str;
|
|
@@ -496,6 +541,7 @@ export declare type TGetOfferSummaryResponse = {
|
|
|
496
541
|
offered: Record<str, int>;
|
|
497
542
|
requested: Record<str, int>;
|
|
498
543
|
fees: int;
|
|
544
|
+
infos: TDriverDict;
|
|
499
545
|
};
|
|
500
546
|
};
|
|
501
547
|
export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
|
|
@@ -513,6 +559,7 @@ export declare type take_offer_command = typeof take_offer_command;
|
|
|
513
559
|
export declare type TTakeOfferRequest = {
|
|
514
560
|
offer: str;
|
|
515
561
|
fee?: uint64;
|
|
562
|
+
min_coin_amount?: uint128;
|
|
516
563
|
};
|
|
517
564
|
export declare type TTakeOfferResponse = {
|
|
518
565
|
trade_record: TradeRecordConvenience;
|
|
@@ -563,16 +610,35 @@ export declare type TCancelOfferRequest = {
|
|
|
563
610
|
};
|
|
564
611
|
export declare type TCancelOfferResponse = {};
|
|
565
612
|
export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
|
|
566
|
-
export declare const
|
|
567
|
-
export declare type
|
|
568
|
-
export declare type
|
|
569
|
-
|
|
613
|
+
export declare const did_set_wallet_name_command = "did_set_wallet_name";
|
|
614
|
+
export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
|
|
615
|
+
export declare type TDidSetWalletNameRequest = {
|
|
616
|
+
wallet_id: uint32;
|
|
617
|
+
name: str;
|
|
570
618
|
};
|
|
571
|
-
export declare
|
|
619
|
+
export declare type TDidSetWalletNameResponse = {
|
|
620
|
+
success: True;
|
|
621
|
+
wallet_id: uint32;
|
|
622
|
+
} | {
|
|
623
|
+
success: False;
|
|
624
|
+
error: str;
|
|
625
|
+
};
|
|
626
|
+
export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse>;
|
|
627
|
+
export declare const did_get_wallet_name_command = "did_get_wallet_name";
|
|
628
|
+
export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
|
|
629
|
+
export declare type TDidGetWalletNameRequest = {
|
|
630
|
+
wallet_id: uint32;
|
|
631
|
+
};
|
|
632
|
+
export declare type TDidGetWalletNameResponse = {
|
|
633
|
+
success: True;
|
|
634
|
+
wallet_id: uint32;
|
|
635
|
+
name: str;
|
|
636
|
+
};
|
|
637
|
+
export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse>;
|
|
572
638
|
export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
|
|
573
639
|
export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
|
|
574
640
|
export declare type TDidUpdateRecoveryIdsRequest = {
|
|
575
|
-
wallet_id:
|
|
641
|
+
wallet_id: uint32;
|
|
576
642
|
new_list: str[];
|
|
577
643
|
num_verifications_required?: uint64;
|
|
578
644
|
};
|
|
@@ -580,6 +646,22 @@ export declare type TDidUpdateRecoveryIdsResponse = {
|
|
|
580
646
|
success: bool;
|
|
581
647
|
};
|
|
582
648
|
export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse>;
|
|
649
|
+
export declare const did_update_metadata_command = "did_update_metadata";
|
|
650
|
+
export declare type did_update_metadata_command = typeof did_update_metadata_command;
|
|
651
|
+
export declare type TDidUpdateMetadataRequest = {
|
|
652
|
+
wallet_id: uint32;
|
|
653
|
+
metadata?: Record<str, str>;
|
|
654
|
+
fee?: uint64;
|
|
655
|
+
};
|
|
656
|
+
export declare type TDidUpdateMetadataResponse = {
|
|
657
|
+
success: True;
|
|
658
|
+
wallet_id: uint32;
|
|
659
|
+
spend_bundle: SpendBundle;
|
|
660
|
+
} | {
|
|
661
|
+
success: False;
|
|
662
|
+
error: str;
|
|
663
|
+
};
|
|
664
|
+
export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse>;
|
|
583
665
|
export declare const did_spend_command = "did_spend";
|
|
584
666
|
export declare type did_spend_command = typeof did_spend_command;
|
|
585
667
|
export declare type TDidSpendRequest = {
|
|
@@ -593,21 +675,21 @@ export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Pro
|
|
|
593
675
|
export declare const did_get_pubkey_command = "did_get_pubkey";
|
|
594
676
|
export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
|
|
595
677
|
export declare type TDidGetPubkeyRequest = {
|
|
596
|
-
wallet_id:
|
|
678
|
+
wallet_id: uint32;
|
|
597
679
|
};
|
|
598
680
|
export declare type TDidGetPubkeyResponse = {
|
|
599
681
|
success: bool;
|
|
600
|
-
pubkey:
|
|
682
|
+
pubkey: str;
|
|
601
683
|
};
|
|
602
684
|
export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse>;
|
|
603
685
|
export declare const did_get_did_command = "did_get_did";
|
|
604
686
|
export declare type did_get_did_command = typeof did_get_did_command;
|
|
605
687
|
export declare type TDidGetDidRequest = {
|
|
606
|
-
wallet_id:
|
|
688
|
+
wallet_id: uint32;
|
|
607
689
|
};
|
|
608
690
|
export declare type TDidGetDidResponse = {
|
|
609
691
|
success: bool;
|
|
610
|
-
wallet_id:
|
|
692
|
+
wallet_id: uint32;
|
|
611
693
|
my_did: str;
|
|
612
694
|
coin_id?: bytes32;
|
|
613
695
|
};
|
|
@@ -615,39 +697,53 @@ export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest):
|
|
|
615
697
|
export declare const did_recovery_spend_command = "did_recovery_spend";
|
|
616
698
|
export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
|
|
617
699
|
export declare type TDidRecoverySpendRequest = {
|
|
618
|
-
wallet_id:
|
|
619
|
-
|
|
700
|
+
wallet_id: uint32;
|
|
701
|
+
attest_data: str[];
|
|
620
702
|
pubkey?: str;
|
|
621
703
|
puzhash?: str;
|
|
622
704
|
};
|
|
623
705
|
export declare type TDidRecoverySpendResponse = {
|
|
624
|
-
success:
|
|
706
|
+
success: True;
|
|
707
|
+
spend_bundle: SpendBundle;
|
|
708
|
+
} | {
|
|
709
|
+
success: False;
|
|
625
710
|
};
|
|
626
711
|
export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse>;
|
|
627
712
|
export declare const did_get_recovery_list_command = "did_get_recovery_list";
|
|
628
713
|
export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
|
|
629
714
|
export declare type TDidGetRecoveryListRequest = {
|
|
630
|
-
wallet_id:
|
|
715
|
+
wallet_id: uint32;
|
|
631
716
|
};
|
|
632
717
|
export declare type TDidGetRecoveryListResponse = {
|
|
633
718
|
success: bool;
|
|
634
|
-
wallet_id:
|
|
635
|
-
|
|
719
|
+
wallet_id: uint32;
|
|
720
|
+
recovery_list: str[];
|
|
636
721
|
num_required: uint64;
|
|
637
722
|
};
|
|
638
723
|
export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse>;
|
|
724
|
+
export declare const did_get_metadata_command = "did_get_metadata";
|
|
725
|
+
export declare type did_get_metadata_command = typeof did_get_metadata_command;
|
|
726
|
+
export declare type TDidGetMetadataRequest = {
|
|
727
|
+
wallet_id: uint32;
|
|
728
|
+
};
|
|
729
|
+
export declare type TDidGetMetadataResponse = {
|
|
730
|
+
success: True;
|
|
731
|
+
wallet_id: uint32;
|
|
732
|
+
metadata: Record<str, str>;
|
|
733
|
+
};
|
|
734
|
+
export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse>;
|
|
639
735
|
export declare const did_create_attest_command = "did_create_attest";
|
|
640
736
|
export declare type did_create_attest_command = typeof did_create_attest_command;
|
|
641
737
|
export declare type TDidCreateAttestRequest = {
|
|
642
|
-
wallet_id:
|
|
738
|
+
wallet_id: uint32;
|
|
643
739
|
coin_name: str;
|
|
644
740
|
puzhash: str;
|
|
645
|
-
filename: str;
|
|
646
741
|
};
|
|
647
742
|
export declare type TDidCreateAttestResponse = {
|
|
648
743
|
success: True;
|
|
649
744
|
message_spend_bundle: str;
|
|
650
745
|
info: [str, str, uint64];
|
|
746
|
+
attest_data: str;
|
|
651
747
|
} | {
|
|
652
748
|
success: False;
|
|
653
749
|
};
|
|
@@ -655,11 +751,11 @@ export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAtte
|
|
|
655
751
|
export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
|
|
656
752
|
export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
|
|
657
753
|
export declare type TDidGetInformationNeededForRecoveryRequest = {
|
|
658
|
-
wallet_id:
|
|
754
|
+
wallet_id: uint32;
|
|
659
755
|
};
|
|
660
756
|
export declare type TDidGetInformationNeededForRecoveryResponse = {
|
|
661
757
|
success: bool;
|
|
662
|
-
wallet_id:
|
|
758
|
+
wallet_id: uint32;
|
|
663
759
|
my_did: str;
|
|
664
760
|
coin_name: str;
|
|
665
761
|
newpuzhash: Optional<bytes32>;
|
|
@@ -667,17 +763,197 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
|
|
|
667
763
|
backup_dids: bytes[];
|
|
668
764
|
};
|
|
669
765
|
export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse>;
|
|
766
|
+
export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
|
|
767
|
+
export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
|
|
768
|
+
export declare type TDidGetCurrentCoinInfoRequest = {
|
|
769
|
+
wallet_id: uint32;
|
|
770
|
+
};
|
|
771
|
+
export declare type TDidGetCurrentCoinInfoResponse = {
|
|
772
|
+
success: True;
|
|
773
|
+
wallet_id: uint32;
|
|
774
|
+
my_did: str;
|
|
775
|
+
did_parent: bytes32;
|
|
776
|
+
did_innerpuz: bytes32;
|
|
777
|
+
did_amount: uint64;
|
|
778
|
+
};
|
|
779
|
+
export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse>;
|
|
670
780
|
export declare const did_create_backup_file_command = "did_create_backup_file";
|
|
671
781
|
export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
|
|
672
782
|
export declare type TDidCreateBackupFileRequest = {
|
|
673
|
-
wallet_id:
|
|
674
|
-
filename: str;
|
|
783
|
+
wallet_id: uint32;
|
|
675
784
|
};
|
|
676
785
|
export declare type TDidCreateBackupFileResponse = {
|
|
677
|
-
wallet_id:
|
|
678
|
-
success:
|
|
786
|
+
wallet_id: uint32;
|
|
787
|
+
success: True;
|
|
788
|
+
backup_data: str;
|
|
679
789
|
};
|
|
680
790
|
export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse>;
|
|
791
|
+
export declare const did_transfer_did_command = "did_transfer_did";
|
|
792
|
+
export declare type did_transfer_did_command = typeof did_transfer_did_command;
|
|
793
|
+
export declare type TDidTransferDidRequest = {
|
|
794
|
+
wallet_id: uint32;
|
|
795
|
+
inner_address: str;
|
|
796
|
+
fee?: uint64;
|
|
797
|
+
with_recovery_info?: bool;
|
|
798
|
+
};
|
|
799
|
+
export declare type TDidTransferDidResponse = {
|
|
800
|
+
success: True;
|
|
801
|
+
transaction: TransactionRecordConvenience;
|
|
802
|
+
transaction_id: bytes32;
|
|
803
|
+
};
|
|
804
|
+
export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse>;
|
|
805
|
+
export declare const nft_mint_nft_command = "nft_mint_nft";
|
|
806
|
+
export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
|
|
807
|
+
export declare type TNftMintNftRequest = {
|
|
808
|
+
wallet_id: uint32;
|
|
809
|
+
royalty_address?: str;
|
|
810
|
+
target_address?: str;
|
|
811
|
+
uris: str[];
|
|
812
|
+
meta_uris: str[];
|
|
813
|
+
license_uris: str[];
|
|
814
|
+
hash: str;
|
|
815
|
+
edition_number: uint64;
|
|
816
|
+
edition_total: uint64;
|
|
817
|
+
meta_hash?: str;
|
|
818
|
+
license_hash?: str;
|
|
819
|
+
fee?: uint64;
|
|
820
|
+
did_id?: str;
|
|
821
|
+
royalty_percentage?: uint16;
|
|
822
|
+
};
|
|
823
|
+
export declare type TNftMintNftResponse = {
|
|
824
|
+
wallet_id: uint32;
|
|
825
|
+
success: True;
|
|
826
|
+
spend_bundle: SpendBundle;
|
|
827
|
+
};
|
|
828
|
+
export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse>;
|
|
829
|
+
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
830
|
+
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
831
|
+
export declare type TNftGetNftsRequest = {
|
|
832
|
+
wallet_id: uint32;
|
|
833
|
+
};
|
|
834
|
+
export declare type TNftGetNftsResponse = {
|
|
835
|
+
wallet_id: uint32;
|
|
836
|
+
success: True;
|
|
837
|
+
nft_list: NFTInfo[];
|
|
838
|
+
};
|
|
839
|
+
export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse>;
|
|
840
|
+
export declare const nft_set_nft_did_command = "nft_set_nft_did";
|
|
841
|
+
export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
|
|
842
|
+
export declare type TNftSetNftDidRequest = {
|
|
843
|
+
wallet_id: uint32;
|
|
844
|
+
did_id: str;
|
|
845
|
+
nft_coin_id: str;
|
|
846
|
+
fee?: uint64;
|
|
847
|
+
};
|
|
848
|
+
export declare type TNftSetNftDidResponse = {
|
|
849
|
+
wallet_id: uint32;
|
|
850
|
+
success: True;
|
|
851
|
+
spend_bundle: SpendBundle;
|
|
852
|
+
} | {
|
|
853
|
+
success: False;
|
|
854
|
+
error: str;
|
|
855
|
+
};
|
|
856
|
+
export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse>;
|
|
857
|
+
export declare const nft_get_by_did_command = "nft_get_by_did";
|
|
858
|
+
export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
|
|
859
|
+
export declare type TNftGetByDidRequest = {
|
|
860
|
+
did_id?: str;
|
|
861
|
+
};
|
|
862
|
+
export declare type TNftGetByDidResponse = {
|
|
863
|
+
wallet_id: uint32;
|
|
864
|
+
success: True;
|
|
865
|
+
} | {
|
|
866
|
+
success: False;
|
|
867
|
+
error: str;
|
|
868
|
+
};
|
|
869
|
+
export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse>;
|
|
870
|
+
export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
|
|
871
|
+
export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
|
|
872
|
+
export declare type TNftGetWalletDidRequest = {
|
|
873
|
+
wallet_id: uint32;
|
|
874
|
+
};
|
|
875
|
+
export declare type TNftGetWalletDidResponse = {
|
|
876
|
+
did_id: Optional<str>;
|
|
877
|
+
success: True;
|
|
878
|
+
} | {
|
|
879
|
+
success: False;
|
|
880
|
+
error: str;
|
|
881
|
+
};
|
|
882
|
+
export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse>;
|
|
883
|
+
export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
|
|
884
|
+
export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
|
|
885
|
+
export declare type TNftGetWalletsWithDidsResponse = {
|
|
886
|
+
success: True;
|
|
887
|
+
nft_wallets: Array<{
|
|
888
|
+
wallet_id: uint32;
|
|
889
|
+
did_id: str;
|
|
890
|
+
did_wallet_id: uint32;
|
|
891
|
+
}>;
|
|
892
|
+
};
|
|
893
|
+
export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse>;
|
|
894
|
+
export declare const nft_set_nft_status_command = "nft_set_nft_status";
|
|
895
|
+
export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
|
|
896
|
+
export declare type TNftSetNftStatusRequest = {
|
|
897
|
+
wallet_id: uint32;
|
|
898
|
+
coin_id: str;
|
|
899
|
+
in_transaction: bool;
|
|
900
|
+
};
|
|
901
|
+
export declare type TNftSetNftStatusResponse = {
|
|
902
|
+
success: True;
|
|
903
|
+
} | {
|
|
904
|
+
success: False;
|
|
905
|
+
error: str;
|
|
906
|
+
};
|
|
907
|
+
export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse>;
|
|
908
|
+
export declare const nft_transfer_nft_command = "nft_transfer_nft";
|
|
909
|
+
export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
|
|
910
|
+
export declare type TNftTransferNftRequest = {
|
|
911
|
+
wallet_id: uint32;
|
|
912
|
+
target_address: str;
|
|
913
|
+
nft_coin_id: str;
|
|
914
|
+
fee?: uint64;
|
|
915
|
+
};
|
|
916
|
+
export declare type TNftTransferNftResponse = {
|
|
917
|
+
success: True;
|
|
918
|
+
wallet_id: uint32;
|
|
919
|
+
spend_bundle: SpendBundle;
|
|
920
|
+
} | {
|
|
921
|
+
success: False;
|
|
922
|
+
error: str;
|
|
923
|
+
};
|
|
924
|
+
export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse>;
|
|
925
|
+
export declare const nft_get_info_command = "nft_get_info";
|
|
926
|
+
export declare type nft_get_info_command = typeof nft_get_info_command;
|
|
927
|
+
export declare type TNftGetInfoRequest = {
|
|
928
|
+
coin_id: str;
|
|
929
|
+
latest?: bool;
|
|
930
|
+
};
|
|
931
|
+
export declare type TNftGetInfoResponse = {
|
|
932
|
+
success: True;
|
|
933
|
+
nft_info: NFTInfo;
|
|
934
|
+
} | {
|
|
935
|
+
success: False;
|
|
936
|
+
error: str;
|
|
937
|
+
};
|
|
938
|
+
export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse>;
|
|
939
|
+
export declare const nft_add_uri_command = "nft_add_uri";
|
|
940
|
+
export declare type nft_add_uri_command = typeof nft_add_uri_command;
|
|
941
|
+
export declare type TNftAddUriRequest = {
|
|
942
|
+
wallet_id: uint32;
|
|
943
|
+
uri: str;
|
|
944
|
+
key: str;
|
|
945
|
+
nft_coin_id: str;
|
|
946
|
+
fee?: uint64;
|
|
947
|
+
};
|
|
948
|
+
export declare type TNftAddUriResponse = {
|
|
949
|
+
success: True;
|
|
950
|
+
wallet_id: uint32;
|
|
951
|
+
spend_bundle: SpendBundle;
|
|
952
|
+
} | {
|
|
953
|
+
success: False;
|
|
954
|
+
error: str;
|
|
955
|
+
};
|
|
956
|
+
export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse>;
|
|
681
957
|
export declare const rl_set_user_info_command = "rl_set_user_info";
|
|
682
958
|
export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
|
|
683
959
|
export declare type TRlSetUserInfoRequest = {
|