chia-agent 14.5.0 → 16.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 +59 -1
- package/README.md +34 -7
- package/api/chia/consensus/cost_calculator.d.ts +2 -1
- package/api/chia/data_layer/data_layer_util.d.ts +3 -2
- package/api/chia/data_layer/data_layer_wallet.d.ts +2 -14
- package/api/chia/data_layer/singleton_record.d.ts +15 -0
- package/api/chia/farmer/farmer.d.ts +2 -1
- package/api/chia/harvester/harvester.d.ts +4 -2
- package/api/chia/plot-sync/receiver.d.ts +3 -2
- package/api/chia/pools/pool_config.d.ts +3 -2
- package/api/chia/pools/pool_wallet_info.d.ts +4 -2
- package/api/chia/protocols/farmer_protocol.d.ts +7 -5
- package/api/chia/protocols/harvester_protocol.d.ts +4 -2
- package/api/chia/protocols/pool_protocol.d.ts +4 -2
- package/api/chia/rpc/util.d.ts +2 -1
- package/api/chia/rpc/wallet_request_types.d.ts +5 -2
- package/api/chia/types/_python_types_.d.ts +0 -14
- package/api/chia/types/clvm_cost.d.ts +1 -1
- package/api/chia/types/coin_record.d.ts +2 -1
- package/api/chia/types/mempool_item.d.ts +4 -2
- package/api/chia/types/mojos.d.ts +1 -1
- package/api/chia/types/unfinished_header_block.d.ts +2 -2
- package/api/chia/util/keychain.d.ts +4 -1
- package/api/chia/util/streamable.d.ts +2 -1
- package/api/chia/wallet/conditions.d.ts +2 -1
- package/api/chia/wallet/lineage_proof.d.ts +3 -2
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -2
- package/api/chia/wallet/notification_store.d.ts +3 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +3 -2
- package/api/chia/wallet/signer_protocol.d.ts +3 -2
- package/api/chia/wallet/trade_record.d.ts +3 -2
- package/api/chia/wallet/transaction_record.d.ts +3 -2
- package/api/chia/wallet/util/quality_filter.d.ts +2 -2
- package/api/chia/wallet/util/tx_config.d.ts +3 -2
- package/api/chia/wallet/util/wallet_types.d.ts +1 -3
- package/api/chia/wallet/util/wallet_types.js +0 -2
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +1 -1
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
- package/api/chia/wallet/wallet_coin_record.d.ts +6 -5
- package/api/chia/wallet/wallet_coin_store.d.ts +2 -1
- package/api/chia/wallet/wallet_info.d.ts +2 -1
- package/api/chia/wallet/wallet_node.d.ts +1 -1
- package/api/chia_rs/chia-bls/lib.d.ts +4 -0
- package/api/chia_rs/chia-bls/public_key.d.ts +1 -2
- package/api/chia_rs/chia-bls/secret_key.d.ts +1 -0
- package/api/chia_rs/chia-bls/signature.d.ts +1 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +3 -2
- package/api/chia_rs/chia-protocol/block_record.d.ts +3 -2
- package/api/chia_rs/chia-protocol/classgroup.d.ts +1 -1
- package/api/chia_rs/chia-protocol/coin.d.ts +2 -2
- package/api/chia_rs/chia-protocol/foliage.d.ts +4 -2
- package/api/chia_rs/chia-protocol/fullblock.d.ts +2 -1
- package/api/chia_rs/chia-protocol/pool_target.d.ts +2 -2
- package/api/chia_rs/chia-protocol/proof_of_space.d.ts +4 -2
- package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +4 -2
- package/api/chia_rs/chia-protocol/slots.d.ts +3 -2
- package/api/chia_rs/chia-protocol/spend_bundle.d.ts +1 -1
- package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +3 -2
- package/api/chia_rs/chia-protocol/unfinished_block.d.ts +2 -1
- package/api/chia_rs/chia-protocol/vdf.d.ts +3 -2
- package/api/chia_rs/wheel/python/sized_bytes.d.ts +7 -0
- package/api/chia_rs/wheel/python/sized_ints.d.ts +11 -0
- package/api/pool-reference/pool/record.d.ts +4 -2
- package/api/rpc/common/index.d.ts +2 -1
- package/api/rpc/common/index.js +34 -65
- package/api/rpc/crawler/index.d.ts +3 -2
- package/api/rpc/crawler/index.js +7 -20
- package/api/rpc/data_layer/index.d.ts +3 -2
- package/api/rpc/data_layer/index.js +106 -186
- package/api/rpc/farmer/index.d.ts +3 -2
- package/api/rpc/farmer/index.js +40 -75
- package/api/rpc/full_node/index.d.ts +6 -5
- package/api/rpc/full_node/index.js +112 -196
- package/api/rpc/harvester/index.d.ts +2 -1
- package/api/rpc/harvester/index.js +25 -50
- package/api/rpc/index.d.ts +2 -2
- package/api/rpc/index.js +3 -17
- package/api/rpc/pool/index.d.ts +2 -1
- package/api/rpc/pool/index.js +18 -40
- package/api/rpc/wallet/index.d.ts +9 -260
- package/api/rpc/wallet/index.js +388 -755
- package/api/types.d.ts +3 -2
- package/api/ws/chia_plots_create/index.js +20 -32
- package/api/ws/crawler/index.d.ts +3 -2
- package/api/ws/crawler/index.js +21 -32
- package/api/ws/daemon/index.d.ts +3 -1
- package/api/ws/daemon/index.js +125 -212
- package/api/ws/farmer/index.d.ts +3 -2
- package/api/ws/farmer/index.js +112 -134
- package/api/ws/full_node/index.d.ts +8 -7
- package/api/ws/full_node/index.js +59 -76
- package/api/ws/harvester/index.d.ts +2 -1
- package/api/ws/harvester/index.js +60 -76
- package/api/ws/timelord/index.d.ts +3 -2
- package/api/ws/timelord/index.js +40 -54
- package/api/ws/wallet/index.d.ts +2 -1
- package/api/ws/wallet/index.js +72 -90
- package/bin/cli.js +40 -51
- package/config/index.js +13 -9
- package/daemon/connection.js +2 -2
- package/daemon/index.d.ts +28 -5
- package/daemon/index.js +262 -123
- package/logger.d.ts +43 -16
- package/logger.js +219 -49
- package/package.json +9 -4
- package/rpc/index.d.ts +4 -3
- package/rpc/index.js +174 -134
- package/api/chia/types/blockchain_format/foliage.d.ts +0 -1
- package/api/chia/types/blockchain_format/pool_target.d.ts +0 -1
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +0 -1
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +0 -8
- package/api/chia/wallet/dao_wallet/dao_info.d.ts +0 -39
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +0 -35
- /package/api/chia/{types/blockchain_format/foliage.js → data_layer/singleton_record.js} +0 -0
- /package/api/{chia/types/blockchain_format/pool_target.js → chia_rs/chia-bls/lib.js} +0 -0
- /package/api/{chia/types/blockchain_format/reward_chain_block.js → chia_rs/chia-bls/secret_key.js} +0 -0
- /package/api/{chia/types/blockchain_format/sized_bytes.js → chia_rs/chia-bls/signature.js} +0 -0
- /package/api/{chia/wallet/dao_wallet/dao_info.js → chia_rs/wheel/python/sized_bytes.js} +0 -0
- /package/api/{chia/wallet/dao_wallet/dao_wallet.js → chia_rs/wheel/python/sized_ints.js} +0 -0
package/api/rpc/wallet/index.js
CHANGED
|
@@ -1,1022 +1,655 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
3
|
+
exports.cat_set_name_command = exports.get_cat_list_command = exports.sign_message_by_id_command = exports.sign_message_by_address_command = exports.combine_coins_command = exports.split_coins_command = exports.get_transaction_memo_command = exports.verify_signature_command = exports.send_notification_command = exports.delete_notifications_command = exports.get_notifications_command = exports.extend_derivation_index_command = exports.get_current_derivation_index_command = exports.get_coin_records_by_names_command = exports.get_spendable_coins_command = exports.select_coins_command = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction_command = exports.get_farmed_amount_command = exports.get_transaction_count_command = exports.get_coin_records_command = exports.spend_clawback_coins_command = exports.send_transaction_multi_command = exports.send_transaction_command = exports.get_next_address_command = exports.get_transactions_command = exports.get_transaction_command = exports.get_wallet_balances_command = exports.get_wallet_balance_command = exports.create_new_wallet_command = exports.get_wallets_command = exports.get_initial_freeze_period_command_of_wallet = exports.get_auto_claim_command = exports.set_auto_claim_command = exports.get_timestamp_for_height_command = exports.push_transactions_command = exports.push_tx_command = exports.get_height_info_command = exports.get_sync_status_command = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys_command = exports.check_delete_key_command = exports.delete_key_command = exports.add_key_command = exports.generate_mnemonic_command = exports.get_private_key_command = exports.get_public_keys_command = exports.get_logged_in_fingerprint_command = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
4
|
+
exports.add_rate_limited_funds_command = exports.send_clawback_transaction_command = exports.rl_set_user_info_command = exports.nft_mint_bulk_command = exports.nft_calculate_royalties_command = exports.nft_add_uri_command = exports.nft_get_info_command = exports.nft_transfer_nft_command = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did_command = exports.nft_get_by_did_command = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk_command = exports.nft_set_nft_did_command = exports.nft_get_nfts_command = exports.nft_count_nfts_command = exports.nft_mint_nft_command = exports.did_transfer_did_command = exports.did_find_lost_did_command = exports.did_get_info_command = exports.did_message_spend_command = exports.did_create_backup_file_command = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery_command = exports.did_create_attest_command = exports.did_get_metadata_command = exports.did_get_recovery_list_command = exports.did_recovery_spend_command = exports.did_get_did_command = exports.did_get_pubkey_command = exports.did_spend_command = exports.did_update_metadata_command = exports.did_update_recovery_ids_command = exports.did_get_wallet_name_command = exports.did_set_wallet_name_command = exports.cancel_offers_command = exports.cancel_offer_command = exports.get_offers_count_command = exports.get_all_offers_command = exports.get_offer_command = exports.take_offer_command = exports.check_offer_validity_command = exports.get_offer_summary_command = exports.create_offer_for_ids_command = exports.cat_get_asset_id_command = exports.cat_spend_command = exports.get_stray_cats_command = exports.cat_get_name_command = exports.cat_asset_id_to_name_command = void 0;
|
|
5
|
+
exports.execute_signing_instructions_command = exports.submit_transactions_command = exports.apply_signatures_command = exports.gather_signing_info_command = exports.crcat_approve_pending_command = exports.vc_revoke_command = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs_command = exports.vc_spend_command = exports.vc_get_list_command = exports.vc_get_command = exports.vc_mint_command = exports.dl_verify_proof_command = exports.dl_delete_mirror_command = exports.dl_new_mirror_command = exports.dl_get_mirrors_command = exports.dl_owned_singletons_command = exports.dl_history_command = exports.dl_update_multiple_command = exports.dl_update_root_command = exports.dl_singletons_by_root_command = exports.dl_latest_singleton_command = exports.dl_stop_tracking_command = exports.dl_track_new_command = exports.create_new_dl_command = exports.pw_status_command = exports.pw_absorb_rewards_command = exports.pw_self_pool_command = exports.pw_join_pool_command = void 0;
|
|
6
|
+
exports.log_in = log_in;
|
|
7
|
+
exports.get_logged_in_fingerprint = get_logged_in_fingerprint;
|
|
8
|
+
exports.get_public_keys = get_public_keys;
|
|
9
|
+
exports.get_private_key = get_private_key;
|
|
10
|
+
exports.generate_mnemonic = generate_mnemonic;
|
|
11
|
+
exports.add_key = add_key;
|
|
12
|
+
exports.delete_key = delete_key;
|
|
13
|
+
exports.check_delete_key = check_delete_key;
|
|
14
|
+
exports.delete_all_keys = delete_all_keys;
|
|
15
|
+
exports.set_wallet_resync_on_startup = set_wallet_resync_on_startup;
|
|
16
|
+
exports.get_sync_status = get_sync_status;
|
|
17
|
+
exports.get_height_info = get_height_info;
|
|
18
|
+
exports.push_tx = push_tx;
|
|
19
|
+
exports.push_transactions = push_transactions;
|
|
20
|
+
exports.get_timestamp_for_height = get_timestamp_for_height;
|
|
21
|
+
exports.set_auto_claim = set_auto_claim;
|
|
22
|
+
exports.get_auto_claim = get_auto_claim;
|
|
23
|
+
exports.get_initial_freeze_period_of_wallet = get_initial_freeze_period_of_wallet;
|
|
24
|
+
exports.get_wallets = get_wallets;
|
|
25
|
+
exports.create_new_wallet = create_new_wallet;
|
|
26
|
+
exports.get_wallet_balance = get_wallet_balance;
|
|
27
|
+
exports.get_wallet_balances = get_wallet_balances;
|
|
28
|
+
exports.get_transaction = get_transaction;
|
|
29
|
+
exports.get_transactions = get_transactions;
|
|
30
|
+
exports.get_next_address = get_next_address;
|
|
31
|
+
exports.send_transaction = send_transaction;
|
|
32
|
+
exports.send_transaction_multi = send_transaction_multi;
|
|
33
|
+
exports.spend_clawback_coins = spend_clawback_coins;
|
|
34
|
+
exports.get_coin_records = get_coin_records;
|
|
35
|
+
exports.get_transaction_count = get_transaction_count;
|
|
36
|
+
exports.get_farmed_amount = get_farmed_amount;
|
|
37
|
+
exports.create_signed_transaction = create_signed_transaction;
|
|
38
|
+
exports.delete_unconfirmed_transactions = delete_unconfirmed_transactions;
|
|
39
|
+
exports.select_coins = select_coins;
|
|
40
|
+
exports.get_spendable_coins = get_spendable_coins;
|
|
41
|
+
exports.get_coin_records_by_names = get_coin_records_by_names;
|
|
42
|
+
exports.get_current_derivation_index = get_current_derivation_index;
|
|
43
|
+
exports.extend_derivation_index = extend_derivation_index;
|
|
44
|
+
exports.get_notifications = get_notifications;
|
|
45
|
+
exports.delete_notifications = delete_notifications;
|
|
46
|
+
exports.send_notification = send_notification;
|
|
47
|
+
exports.verify_signature = verify_signature;
|
|
48
|
+
exports.get_transaction_memo = get_transaction_memo;
|
|
49
|
+
exports.split_coins = split_coins;
|
|
50
|
+
exports.combine_coins = combine_coins;
|
|
51
|
+
exports.sign_message_by_address = sign_message_by_address;
|
|
52
|
+
exports.sign_message_by_id = sign_message_by_id;
|
|
53
|
+
exports.get_cat_list = get_cat_list;
|
|
54
|
+
exports.cat_set_name = cat_set_name;
|
|
55
|
+
exports.cat_asset_id_to_name = cat_asset_id_to_name;
|
|
56
|
+
exports.cat_get_name = cat_get_name;
|
|
57
|
+
exports.get_stray_cats = get_stray_cats;
|
|
58
|
+
exports.cat_spend = cat_spend;
|
|
59
|
+
exports.cat_get_asset_id = cat_get_asset_id;
|
|
60
|
+
exports.create_offer_for_ids = create_offer_for_ids;
|
|
61
|
+
exports.get_offer_summary = get_offer_summary;
|
|
62
|
+
exports.check_offer_validity = check_offer_validity;
|
|
63
|
+
exports.take_offer = take_offer;
|
|
64
|
+
exports.get_offer = get_offer;
|
|
65
|
+
exports.get_all_offers = get_all_offers;
|
|
66
|
+
exports.get_offers_count = get_offers_count;
|
|
67
|
+
exports.cancel_offer = cancel_offer;
|
|
68
|
+
exports.cancel_offers = cancel_offers;
|
|
69
|
+
exports.did_set_wallet_name = did_set_wallet_name;
|
|
70
|
+
exports.did_get_wallet_name = did_get_wallet_name;
|
|
71
|
+
exports.did_update_recovery_ids = did_update_recovery_ids;
|
|
72
|
+
exports.did_update_metadata = did_update_metadata;
|
|
73
|
+
exports.did_spend = did_spend;
|
|
74
|
+
exports.did_get_pubkey = did_get_pubkey;
|
|
75
|
+
exports.did_get_did = did_get_did;
|
|
76
|
+
exports.did_recovery_spend = did_recovery_spend;
|
|
77
|
+
exports.did_get_recovery_list = did_get_recovery_list;
|
|
78
|
+
exports.did_get_metadata = did_get_metadata;
|
|
79
|
+
exports.did_create_attest = did_create_attest;
|
|
80
|
+
exports.did_get_information_needed_for_recovery = did_get_information_needed_for_recovery;
|
|
81
|
+
exports.did_get_current_coin_info = did_get_current_coin_info;
|
|
82
|
+
exports.did_create_backup_file = did_create_backup_file;
|
|
83
|
+
exports.did_message_spend = did_message_spend;
|
|
84
|
+
exports.did_get_info = did_get_info;
|
|
85
|
+
exports.did_find_lost_did = did_find_lost_did;
|
|
86
|
+
exports.did_transfer_did = did_transfer_did;
|
|
87
|
+
exports.nft_mint_nft = nft_mint_nft;
|
|
88
|
+
exports.nft_count_nfts = nft_count_nfts;
|
|
89
|
+
exports.nft_get_nfts = nft_get_nfts;
|
|
90
|
+
exports.nft_set_nft_did = nft_set_nft_did;
|
|
91
|
+
exports.nft_set_did_bulk = nft_set_did_bulk;
|
|
92
|
+
exports.nft_transfer_bulk = nft_transfer_bulk;
|
|
93
|
+
exports.nft_get_by_did = nft_get_by_did;
|
|
94
|
+
exports.nft_get_wallet_did = nft_get_wallet_did;
|
|
95
|
+
exports.nft_get_wallets_with_dids = nft_get_wallets_with_dids;
|
|
96
|
+
exports.nft_set_nft_status = nft_set_nft_status;
|
|
97
|
+
exports.nft_transfer_nft = nft_transfer_nft;
|
|
98
|
+
exports.nft_get_info = nft_get_info;
|
|
99
|
+
exports.nft_add_uri = nft_add_uri;
|
|
100
|
+
exports.nft_calculate_royalties = nft_calculate_royalties;
|
|
101
|
+
exports.nft_mint_bulk = nft_mint_bulk;
|
|
102
|
+
exports.rl_set_user_info = rl_set_user_info;
|
|
103
|
+
exports.send_clawback_transaction = send_clawback_transaction;
|
|
104
|
+
exports.add_rate_limited_funds = add_rate_limited_funds;
|
|
105
|
+
exports.pw_join_pool = pw_join_pool;
|
|
106
|
+
exports.pw_self_pool = pw_self_pool;
|
|
107
|
+
exports.pw_absorb_rewards = pw_absorb_rewards;
|
|
108
|
+
exports.pw_status = pw_status;
|
|
109
|
+
exports.create_new_dl = create_new_dl;
|
|
110
|
+
exports.dl_track_new = dl_track_new;
|
|
111
|
+
exports.dl_stop_tracking = dl_stop_tracking;
|
|
112
|
+
exports.dl_latest_singleton = dl_latest_singleton;
|
|
113
|
+
exports.dl_singletons_by_root = dl_singletons_by_root;
|
|
114
|
+
exports.dl_update_root = dl_update_root;
|
|
115
|
+
exports.dl_update_multiple = dl_update_multiple;
|
|
116
|
+
exports.dl_history = dl_history;
|
|
117
|
+
exports.dl_owned_singletons = dl_owned_singletons;
|
|
118
|
+
exports.dl_get_mirrors = dl_get_mirrors;
|
|
119
|
+
exports.dl_new_mirror = dl_new_mirror;
|
|
120
|
+
exports.dl_delete_mirror = dl_delete_mirror;
|
|
121
|
+
exports.dl_verify_proof = dl_verify_proof;
|
|
122
|
+
exports.vc_mint = vc_mint;
|
|
123
|
+
exports.vc_get = vc_get;
|
|
124
|
+
exports.vc_get_list = vc_get_list;
|
|
125
|
+
exports.vc_spend = vc_spend;
|
|
126
|
+
exports.vc_add_proofs = vc_add_proofs;
|
|
127
|
+
exports.vc_get_proofs_for_root = vc_get_proofs_for_root;
|
|
128
|
+
exports.vc_revoke = vc_revoke;
|
|
129
|
+
exports.crcat_approve_pending = crcat_approve_pending;
|
|
130
|
+
exports.gather_signing_info = gather_signing_info;
|
|
131
|
+
exports.apply_signatures = apply_signatures;
|
|
132
|
+
exports.submit_transactions = submit_transactions;
|
|
133
|
+
exports.execute_signing_instructions = execute_signing_instructions;
|
|
18
134
|
exports.chia_wallet_service = "chia_wallet";
|
|
19
135
|
// # Key management
|
|
20
136
|
exports.log_in_command = "log_in";
|
|
21
|
-
function log_in(agent, data) {
|
|
22
|
-
return
|
|
23
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.log_in_command, data);
|
|
24
|
-
});
|
|
137
|
+
async function log_in(agent, data) {
|
|
138
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.log_in_command, data);
|
|
25
139
|
}
|
|
26
|
-
exports.log_in = log_in;
|
|
27
140
|
exports.get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
|
|
28
|
-
function get_logged_in_fingerprint(agent) {
|
|
29
|
-
return
|
|
30
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_logged_in_fingerprint_command);
|
|
31
|
-
});
|
|
141
|
+
async function get_logged_in_fingerprint(agent) {
|
|
142
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_logged_in_fingerprint_command);
|
|
32
143
|
}
|
|
33
|
-
exports.get_logged_in_fingerprint = get_logged_in_fingerprint;
|
|
34
144
|
exports.get_public_keys_command = "get_public_keys";
|
|
35
|
-
function get_public_keys(agent) {
|
|
36
|
-
return
|
|
37
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_public_keys_command);
|
|
38
|
-
});
|
|
145
|
+
async function get_public_keys(agent) {
|
|
146
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_public_keys_command);
|
|
39
147
|
}
|
|
40
|
-
exports.get_public_keys = get_public_keys;
|
|
41
148
|
exports.get_private_key_command = "get_private_key";
|
|
42
|
-
function get_private_key(agent, data) {
|
|
43
|
-
return
|
|
44
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_private_key_command, data);
|
|
45
|
-
});
|
|
149
|
+
async function get_private_key(agent, data) {
|
|
150
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_private_key_command, data);
|
|
46
151
|
}
|
|
47
|
-
exports.get_private_key = get_private_key;
|
|
48
152
|
exports.generate_mnemonic_command = "generate_mnemonic";
|
|
49
|
-
function generate_mnemonic(agent) {
|
|
50
|
-
return
|
|
51
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.generate_mnemonic_command);
|
|
52
|
-
});
|
|
153
|
+
async function generate_mnemonic(agent) {
|
|
154
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.generate_mnemonic_command);
|
|
53
155
|
}
|
|
54
|
-
exports.generate_mnemonic = generate_mnemonic;
|
|
55
156
|
exports.add_key_command = "add_key";
|
|
56
|
-
function add_key(agent, data) {
|
|
57
|
-
return
|
|
58
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.add_key_command, data);
|
|
59
|
-
});
|
|
157
|
+
async function add_key(agent, data) {
|
|
158
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.add_key_command, data);
|
|
60
159
|
}
|
|
61
|
-
exports.add_key = add_key;
|
|
62
160
|
exports.delete_key_command = "delete_key";
|
|
63
|
-
function delete_key(agent, data) {
|
|
64
|
-
return
|
|
65
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.delete_key_command, data);
|
|
66
|
-
});
|
|
161
|
+
async function delete_key(agent, data) {
|
|
162
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.delete_key_command, data);
|
|
67
163
|
}
|
|
68
|
-
exports.delete_key = delete_key;
|
|
69
164
|
exports.check_delete_key_command = "check_delete_key";
|
|
70
|
-
function check_delete_key(agent, data) {
|
|
71
|
-
return
|
|
72
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.check_delete_key_command, data);
|
|
73
|
-
});
|
|
165
|
+
async function check_delete_key(agent, data) {
|
|
166
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.check_delete_key_command, data);
|
|
74
167
|
}
|
|
75
|
-
exports.check_delete_key = check_delete_key;
|
|
76
168
|
exports.delete_all_keys_command = "delete_all_keys";
|
|
77
|
-
function delete_all_keys(agent) {
|
|
78
|
-
return
|
|
79
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.delete_all_keys_command);
|
|
80
|
-
});
|
|
169
|
+
async function delete_all_keys(agent) {
|
|
170
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.delete_all_keys_command);
|
|
81
171
|
}
|
|
82
|
-
exports.delete_all_keys = delete_all_keys;
|
|
83
172
|
exports.set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
84
|
-
function set_wallet_resync_on_startup(agent) {
|
|
85
|
-
return
|
|
86
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.set_wallet_resync_on_startup_command);
|
|
87
|
-
});
|
|
173
|
+
async function set_wallet_resync_on_startup(agent) {
|
|
174
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.set_wallet_resync_on_startup_command);
|
|
88
175
|
}
|
|
89
|
-
exports.set_wallet_resync_on_startup = set_wallet_resync_on_startup;
|
|
90
176
|
// # Wallet node
|
|
91
177
|
exports.get_sync_status_command = "get_sync_status";
|
|
92
|
-
function get_sync_status(agent, data) {
|
|
93
|
-
return
|
|
94
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_sync_status_command);
|
|
95
|
-
});
|
|
178
|
+
async function get_sync_status(agent, data) {
|
|
179
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_sync_status_command);
|
|
96
180
|
}
|
|
97
|
-
exports.get_sync_status = get_sync_status;
|
|
98
181
|
exports.get_height_info_command = "get_height_info";
|
|
99
|
-
function get_height_info(agent, data) {
|
|
100
|
-
return
|
|
101
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_height_info_command);
|
|
102
|
-
});
|
|
182
|
+
async function get_height_info(agent, data) {
|
|
183
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_height_info_command);
|
|
103
184
|
}
|
|
104
|
-
exports.get_height_info = get_height_info;
|
|
105
185
|
exports.push_tx_command = "push_tx";
|
|
106
|
-
function push_tx(agent, data) {
|
|
107
|
-
return
|
|
108
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.push_tx_command, data);
|
|
109
|
-
});
|
|
186
|
+
async function push_tx(agent, data) {
|
|
187
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.push_tx_command, data);
|
|
110
188
|
}
|
|
111
|
-
exports.push_tx = push_tx;
|
|
112
189
|
exports.push_transactions_command = "push_transactions";
|
|
113
|
-
function push_transactions(agent, data) {
|
|
114
|
-
return
|
|
115
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.push_transactions_command, data);
|
|
116
|
-
});
|
|
190
|
+
async function push_transactions(agent, data) {
|
|
191
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.push_transactions_command, data);
|
|
117
192
|
}
|
|
118
|
-
exports.push_transactions = push_transactions;
|
|
119
193
|
exports.get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
120
|
-
function get_timestamp_for_height(agent, params) {
|
|
121
|
-
return
|
|
122
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command, params);
|
|
123
|
-
});
|
|
194
|
+
async function get_timestamp_for_height(agent, params) {
|
|
195
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command, params);
|
|
124
196
|
}
|
|
125
|
-
exports.get_timestamp_for_height = get_timestamp_for_height;
|
|
126
197
|
exports.set_auto_claim_command = "set_auto_claim";
|
|
127
|
-
function set_auto_claim(agent, data) {
|
|
128
|
-
return
|
|
129
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.set_auto_claim_command, data);
|
|
130
|
-
});
|
|
198
|
+
async function set_auto_claim(agent, data) {
|
|
199
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.set_auto_claim_command, data);
|
|
131
200
|
}
|
|
132
|
-
exports.set_auto_claim = set_auto_claim;
|
|
133
201
|
exports.get_auto_claim_command = "get_auto_claim";
|
|
134
|
-
function get_auto_claim(agent, params) {
|
|
135
|
-
return
|
|
136
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_auto_claim_command, params);
|
|
137
|
-
});
|
|
202
|
+
async function get_auto_claim(agent, params) {
|
|
203
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_auto_claim_command, params);
|
|
138
204
|
}
|
|
139
|
-
exports.get_auto_claim = get_auto_claim;
|
|
140
205
|
// This API was removed in `chia-blockchain@2.4.4`. Will be removed from `chia-agent` in the future.
|
|
141
206
|
exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
142
|
-
function get_initial_freeze_period_of_wallet(agent) {
|
|
143
|
-
return
|
|
144
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_initial_freeze_period_command_of_wallet);
|
|
145
|
-
});
|
|
207
|
+
async function get_initial_freeze_period_of_wallet(agent) {
|
|
208
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_initial_freeze_period_command_of_wallet);
|
|
146
209
|
}
|
|
147
|
-
exports.get_initial_freeze_period_of_wallet = get_initial_freeze_period_of_wallet;
|
|
148
210
|
// # Wallet management
|
|
149
211
|
exports.get_wallets_command = "get_wallets";
|
|
150
|
-
function get_wallets(agent, data) {
|
|
151
|
-
return
|
|
152
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallets_command, data);
|
|
153
|
-
});
|
|
212
|
+
async function get_wallets(agent, data) {
|
|
213
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallets_command, data);
|
|
154
214
|
}
|
|
155
|
-
exports.get_wallets = get_wallets;
|
|
156
215
|
exports.create_new_wallet_command = "create_new_wallet";
|
|
157
|
-
function create_new_wallet(agent, data) {
|
|
158
|
-
return
|
|
159
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.create_new_wallet_command, data);
|
|
160
|
-
});
|
|
216
|
+
async function create_new_wallet(agent, data) {
|
|
217
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.create_new_wallet_command, data);
|
|
161
218
|
}
|
|
162
|
-
exports.create_new_wallet = create_new_wallet;
|
|
163
219
|
exports.get_wallet_balance_command = "get_wallet_balance";
|
|
164
|
-
function get_wallet_balance(agent, data) {
|
|
165
|
-
return
|
|
166
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallet_balance_command, data);
|
|
167
|
-
});
|
|
220
|
+
async function get_wallet_balance(agent, data) {
|
|
221
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallet_balance_command, data);
|
|
168
222
|
}
|
|
169
|
-
exports.get_wallet_balance = get_wallet_balance;
|
|
170
223
|
exports.get_wallet_balances_command = "get_wallet_balances";
|
|
171
|
-
function get_wallet_balances(agent, data) {
|
|
172
|
-
return
|
|
173
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallet_balances_command, data);
|
|
174
|
-
});
|
|
224
|
+
async function get_wallet_balances(agent, data) {
|
|
225
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallet_balances_command, data);
|
|
175
226
|
}
|
|
176
|
-
exports.get_wallet_balances = get_wallet_balances;
|
|
177
227
|
exports.get_transaction_command = "get_transaction";
|
|
178
|
-
function get_transaction(agent, data) {
|
|
179
|
-
return
|
|
180
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_command, data);
|
|
181
|
-
});
|
|
228
|
+
async function get_transaction(agent, data) {
|
|
229
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_command, data);
|
|
182
230
|
}
|
|
183
|
-
exports.get_transaction = get_transaction;
|
|
184
231
|
exports.get_transactions_command = "get_transactions";
|
|
185
|
-
function get_transactions(agent, data) {
|
|
186
|
-
return
|
|
187
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_transactions_command, data);
|
|
188
|
-
});
|
|
232
|
+
async function get_transactions(agent, data) {
|
|
233
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_transactions_command, data);
|
|
189
234
|
}
|
|
190
|
-
exports.get_transactions = get_transactions;
|
|
191
235
|
exports.get_next_address_command = "get_next_address";
|
|
192
|
-
function get_next_address(agent, data) {
|
|
193
|
-
return
|
|
194
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_next_address_command, data);
|
|
195
|
-
});
|
|
236
|
+
async function get_next_address(agent, data) {
|
|
237
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_next_address_command, data);
|
|
196
238
|
}
|
|
197
|
-
exports.get_next_address = get_next_address;
|
|
198
239
|
exports.send_transaction_command = "send_transaction";
|
|
199
|
-
function send_transaction(agent, data) {
|
|
200
|
-
return
|
|
201
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.send_transaction_command, data);
|
|
202
|
-
});
|
|
240
|
+
async function send_transaction(agent, data) {
|
|
241
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.send_transaction_command, data);
|
|
203
242
|
}
|
|
204
|
-
exports.send_transaction = send_transaction;
|
|
205
243
|
exports.send_transaction_multi_command = "send_transaction_multi";
|
|
206
|
-
function send_transaction_multi(agent, data) {
|
|
207
|
-
return
|
|
208
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.send_transaction_multi_command, data);
|
|
209
|
-
});
|
|
244
|
+
async function send_transaction_multi(agent, data) {
|
|
245
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.send_transaction_multi_command, data);
|
|
210
246
|
}
|
|
211
|
-
exports.send_transaction_multi = send_transaction_multi;
|
|
212
247
|
exports.spend_clawback_coins_command = "spend_clawback_coins";
|
|
213
|
-
function spend_clawback_coins(agent, data) {
|
|
214
|
-
return
|
|
215
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.spend_clawback_coins_command, data);
|
|
216
|
-
});
|
|
248
|
+
async function spend_clawback_coins(agent, data) {
|
|
249
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.spend_clawback_coins_command, data);
|
|
217
250
|
}
|
|
218
|
-
exports.spend_clawback_coins = spend_clawback_coins;
|
|
219
251
|
exports.get_coin_records_command = "get_coin_records";
|
|
220
|
-
function get_coin_records(agent, data) {
|
|
221
|
-
return
|
|
222
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_command, data);
|
|
223
|
-
});
|
|
252
|
+
async function get_coin_records(agent, data) {
|
|
253
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_command, data);
|
|
224
254
|
}
|
|
225
|
-
exports.get_coin_records = get_coin_records;
|
|
226
255
|
exports.get_transaction_count_command = "get_transaction_count";
|
|
227
|
-
function get_transaction_count(agent, data) {
|
|
228
|
-
return
|
|
229
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_count_command, data);
|
|
230
|
-
});
|
|
256
|
+
async function get_transaction_count(agent, data) {
|
|
257
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_count_command, data);
|
|
231
258
|
}
|
|
232
|
-
exports.get_transaction_count = get_transaction_count;
|
|
233
259
|
exports.get_farmed_amount_command = "get_farmed_amount";
|
|
234
|
-
function get_farmed_amount(agent) {
|
|
235
|
-
return
|
|
236
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_farmed_amount_command);
|
|
237
|
-
});
|
|
260
|
+
async function get_farmed_amount(agent) {
|
|
261
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_farmed_amount_command);
|
|
238
262
|
}
|
|
239
|
-
exports.get_farmed_amount = get_farmed_amount;
|
|
240
263
|
exports.create_signed_transaction_command = "create_signed_transaction";
|
|
241
|
-
function create_signed_transaction(agent, data) {
|
|
242
|
-
return
|
|
243
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.create_signed_transaction_command, data);
|
|
244
|
-
});
|
|
264
|
+
async function create_signed_transaction(agent, data) {
|
|
265
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.create_signed_transaction_command, data);
|
|
245
266
|
}
|
|
246
|
-
exports.create_signed_transaction = create_signed_transaction;
|
|
247
267
|
exports.delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
|
|
248
|
-
function delete_unconfirmed_transactions(agent, data) {
|
|
249
|
-
return
|
|
250
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.delete_unconfirmed_transactions_command, data);
|
|
251
|
-
});
|
|
268
|
+
async function delete_unconfirmed_transactions(agent, data) {
|
|
269
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.delete_unconfirmed_transactions_command, data);
|
|
252
270
|
}
|
|
253
|
-
exports.delete_unconfirmed_transactions = delete_unconfirmed_transactions;
|
|
254
271
|
exports.select_coins_command = "select_coins";
|
|
255
|
-
function select_coins(agent, data) {
|
|
256
|
-
return
|
|
257
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.select_coins_command, data);
|
|
258
|
-
});
|
|
272
|
+
async function select_coins(agent, data) {
|
|
273
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.select_coins_command, data);
|
|
259
274
|
}
|
|
260
|
-
exports.select_coins = select_coins;
|
|
261
275
|
exports.get_spendable_coins_command = "get_spendable_coins";
|
|
262
|
-
function get_spendable_coins(agent, data) {
|
|
263
|
-
return
|
|
264
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_spendable_coins_command, data);
|
|
265
|
-
});
|
|
276
|
+
async function get_spendable_coins(agent, data) {
|
|
277
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_spendable_coins_command, data);
|
|
266
278
|
}
|
|
267
|
-
exports.get_spendable_coins = get_spendable_coins;
|
|
268
279
|
exports.get_coin_records_by_names_command = "get_coin_records_by_names";
|
|
269
|
-
function get_coin_records_by_names(agent, data) {
|
|
270
|
-
return
|
|
271
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_by_names_command, data);
|
|
272
|
-
});
|
|
280
|
+
async function get_coin_records_by_names(agent, data) {
|
|
281
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_by_names_command, data);
|
|
273
282
|
}
|
|
274
|
-
exports.get_coin_records_by_names = get_coin_records_by_names;
|
|
275
283
|
exports.get_current_derivation_index_command = "get_current_derivation_index";
|
|
276
|
-
function get_current_derivation_index(agent) {
|
|
277
|
-
return
|
|
278
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_current_derivation_index_command);
|
|
279
|
-
});
|
|
284
|
+
async function get_current_derivation_index(agent) {
|
|
285
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_current_derivation_index_command);
|
|
280
286
|
}
|
|
281
|
-
exports.get_current_derivation_index = get_current_derivation_index;
|
|
282
287
|
exports.extend_derivation_index_command = "extend_derivation_index";
|
|
283
|
-
function extend_derivation_index(agent, data) {
|
|
284
|
-
return
|
|
285
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.extend_derivation_index_command, data);
|
|
286
|
-
});
|
|
288
|
+
async function extend_derivation_index(agent, data) {
|
|
289
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.extend_derivation_index_command, data);
|
|
287
290
|
}
|
|
288
|
-
exports.extend_derivation_index = extend_derivation_index;
|
|
289
291
|
exports.get_notifications_command = "get_notifications";
|
|
290
|
-
function get_notifications(agent, data) {
|
|
291
|
-
return
|
|
292
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_notifications_command, data);
|
|
293
|
-
});
|
|
292
|
+
async function get_notifications(agent, data) {
|
|
293
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_notifications_command, data);
|
|
294
294
|
}
|
|
295
|
-
exports.get_notifications = get_notifications;
|
|
296
295
|
exports.delete_notifications_command = "delete_notifications";
|
|
297
|
-
function delete_notifications(agent, data) {
|
|
298
|
-
return
|
|
299
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.delete_notifications_command, data);
|
|
300
|
-
});
|
|
296
|
+
async function delete_notifications(agent, data) {
|
|
297
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.delete_notifications_command, data);
|
|
301
298
|
}
|
|
302
|
-
exports.delete_notifications = delete_notifications;
|
|
303
299
|
exports.send_notification_command = "send_notification";
|
|
304
|
-
function send_notification(agent, data) {
|
|
305
|
-
return
|
|
306
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.send_notification_command, data);
|
|
307
|
-
});
|
|
300
|
+
async function send_notification(agent, data) {
|
|
301
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.send_notification_command, data);
|
|
308
302
|
}
|
|
309
|
-
exports.send_notification = send_notification;
|
|
310
303
|
exports.verify_signature_command = "verify_signature";
|
|
311
|
-
function verify_signature(agent, data) {
|
|
312
|
-
return
|
|
313
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.verify_signature_command, data);
|
|
314
|
-
});
|
|
304
|
+
async function verify_signature(agent, data) {
|
|
305
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.verify_signature_command, data);
|
|
315
306
|
}
|
|
316
|
-
exports.verify_signature = verify_signature;
|
|
317
307
|
exports.get_transaction_memo_command = "get_transaction_memo";
|
|
318
|
-
function get_transaction_memo(agent, data) {
|
|
319
|
-
return
|
|
320
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_memo_command, data);
|
|
321
|
-
});
|
|
308
|
+
async function get_transaction_memo(agent, data) {
|
|
309
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_memo_command, data);
|
|
322
310
|
}
|
|
323
|
-
exports.get_transaction_memo = get_transaction_memo;
|
|
324
311
|
exports.split_coins_command = "split_coins";
|
|
325
|
-
function split_coins(agent, data) {
|
|
326
|
-
return
|
|
327
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.split_coins_command, data);
|
|
328
|
-
});
|
|
312
|
+
async function split_coins(agent, data) {
|
|
313
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.split_coins_command, data);
|
|
329
314
|
}
|
|
330
|
-
exports.split_coins = split_coins;
|
|
331
315
|
exports.combine_coins_command = "combine_coins";
|
|
332
|
-
function combine_coins(agent, data) {
|
|
333
|
-
return
|
|
334
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.combine_coins_command, data);
|
|
335
|
-
});
|
|
316
|
+
async function combine_coins(agent, data) {
|
|
317
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.combine_coins_command, data);
|
|
336
318
|
}
|
|
337
|
-
exports.combine_coins = combine_coins;
|
|
338
319
|
exports.sign_message_by_address_command = "sign_message_by_address";
|
|
339
|
-
function sign_message_by_address(agent, data) {
|
|
340
|
-
return
|
|
341
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_address_command, data);
|
|
342
|
-
});
|
|
320
|
+
async function sign_message_by_address(agent, data) {
|
|
321
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_address_command, data);
|
|
343
322
|
}
|
|
344
|
-
exports.sign_message_by_address = sign_message_by_address;
|
|
345
323
|
exports.sign_message_by_id_command = "sign_message_by_id";
|
|
346
|
-
function sign_message_by_id(agent, data) {
|
|
347
|
-
return
|
|
348
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_id_command, data);
|
|
349
|
-
});
|
|
324
|
+
async function sign_message_by_id(agent, data) {
|
|
325
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_id_command, data);
|
|
350
326
|
}
|
|
351
|
-
exports.sign_message_by_id = sign_message_by_id;
|
|
352
327
|
// # CATs and Trading
|
|
353
328
|
exports.get_cat_list_command = "get_cat_list";
|
|
354
|
-
function get_cat_list(agent) {
|
|
355
|
-
return
|
|
356
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_cat_list_command);
|
|
357
|
-
});
|
|
329
|
+
async function get_cat_list(agent) {
|
|
330
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_cat_list_command);
|
|
358
331
|
}
|
|
359
|
-
exports.get_cat_list = get_cat_list;
|
|
360
332
|
exports.cat_set_name_command = "cat_set_name";
|
|
361
|
-
function cat_set_name(agent, data) {
|
|
362
|
-
return
|
|
363
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cat_set_name_command, data);
|
|
364
|
-
});
|
|
333
|
+
async function cat_set_name(agent, data) {
|
|
334
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cat_set_name_command, data);
|
|
365
335
|
}
|
|
366
|
-
exports.cat_set_name = cat_set_name;
|
|
367
336
|
exports.cat_asset_id_to_name_command = "cat_asset_id_to_name";
|
|
368
|
-
function cat_asset_id_to_name(agent, data) {
|
|
369
|
-
return
|
|
370
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cat_asset_id_to_name_command, data);
|
|
371
|
-
});
|
|
337
|
+
async function cat_asset_id_to_name(agent, data) {
|
|
338
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cat_asset_id_to_name_command, data);
|
|
372
339
|
}
|
|
373
|
-
exports.cat_asset_id_to_name = cat_asset_id_to_name;
|
|
374
340
|
exports.cat_get_name_command = "cat_get_name";
|
|
375
|
-
function cat_get_name(agent, data) {
|
|
376
|
-
return
|
|
377
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cat_get_name_command, data);
|
|
378
|
-
});
|
|
341
|
+
async function cat_get_name(agent, data) {
|
|
342
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cat_get_name_command, data);
|
|
379
343
|
}
|
|
380
|
-
exports.cat_get_name = cat_get_name;
|
|
381
344
|
exports.get_stray_cats_command = "get_stray_cats";
|
|
382
|
-
function get_stray_cats(agent) {
|
|
383
|
-
return
|
|
384
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_stray_cats_command);
|
|
385
|
-
});
|
|
345
|
+
async function get_stray_cats(agent) {
|
|
346
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_stray_cats_command);
|
|
386
347
|
}
|
|
387
|
-
exports.get_stray_cats = get_stray_cats;
|
|
388
348
|
exports.cat_spend_command = "cat_spend";
|
|
389
|
-
function cat_spend(agent, data) {
|
|
390
|
-
return
|
|
391
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cat_spend_command, data);
|
|
392
|
-
});
|
|
349
|
+
async function cat_spend(agent, data) {
|
|
350
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cat_spend_command, data);
|
|
393
351
|
}
|
|
394
|
-
exports.cat_spend = cat_spend;
|
|
395
352
|
exports.cat_get_asset_id_command = "cat_get_asset_id";
|
|
396
|
-
function cat_get_asset_id(agent, data) {
|
|
397
|
-
return
|
|
398
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cat_get_asset_id_command, data);
|
|
399
|
-
});
|
|
353
|
+
async function cat_get_asset_id(agent, data) {
|
|
354
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cat_get_asset_id_command, data);
|
|
400
355
|
}
|
|
401
|
-
exports.cat_get_asset_id = cat_get_asset_id;
|
|
402
356
|
exports.create_offer_for_ids_command = "create_offer_for_ids";
|
|
403
|
-
function create_offer_for_ids(agent, data) {
|
|
404
|
-
return
|
|
405
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.create_offer_for_ids_command, data);
|
|
406
|
-
});
|
|
357
|
+
async function create_offer_for_ids(agent, data) {
|
|
358
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.create_offer_for_ids_command, data);
|
|
407
359
|
}
|
|
408
|
-
exports.create_offer_for_ids = create_offer_for_ids;
|
|
409
360
|
exports.get_offer_summary_command = "get_offer_summary";
|
|
410
|
-
function get_offer_summary(agent, data) {
|
|
411
|
-
return
|
|
412
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_offer_summary_command, data);
|
|
413
|
-
});
|
|
361
|
+
async function get_offer_summary(agent, data) {
|
|
362
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_offer_summary_command, data);
|
|
414
363
|
}
|
|
415
|
-
exports.get_offer_summary = get_offer_summary;
|
|
416
364
|
exports.check_offer_validity_command = "check_offer_validity";
|
|
417
|
-
function check_offer_validity(agent, data) {
|
|
418
|
-
return
|
|
419
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.check_offer_validity_command, data);
|
|
420
|
-
});
|
|
365
|
+
async function check_offer_validity(agent, data) {
|
|
366
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.check_offer_validity_command, data);
|
|
421
367
|
}
|
|
422
|
-
exports.check_offer_validity = check_offer_validity;
|
|
423
368
|
exports.take_offer_command = "take_offer";
|
|
424
|
-
function take_offer(agent, data) {
|
|
425
|
-
return
|
|
426
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.take_offer_command, data);
|
|
427
|
-
});
|
|
369
|
+
async function take_offer(agent, data) {
|
|
370
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.take_offer_command, data);
|
|
428
371
|
}
|
|
429
|
-
exports.take_offer = take_offer;
|
|
430
372
|
exports.get_offer_command = "get_offer";
|
|
431
|
-
function get_offer(agent, data) {
|
|
432
|
-
return
|
|
433
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_offer_command, data);
|
|
434
|
-
});
|
|
373
|
+
async function get_offer(agent, data) {
|
|
374
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_offer_command, data);
|
|
435
375
|
}
|
|
436
|
-
exports.get_offer = get_offer;
|
|
437
376
|
exports.get_all_offers_command = "get_all_offers";
|
|
438
|
-
function get_all_offers(agent, data) {
|
|
439
|
-
return
|
|
440
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_all_offers_command, data);
|
|
441
|
-
});
|
|
377
|
+
async function get_all_offers(agent, data) {
|
|
378
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_all_offers_command, data);
|
|
442
379
|
}
|
|
443
|
-
exports.get_all_offers = get_all_offers;
|
|
444
380
|
exports.get_offers_count_command = "get_offers_count";
|
|
445
|
-
function get_offers_count(agent) {
|
|
446
|
-
return
|
|
447
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_offers_count_command);
|
|
448
|
-
});
|
|
381
|
+
async function get_offers_count(agent) {
|
|
382
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_offers_count_command);
|
|
449
383
|
}
|
|
450
|
-
exports.get_offers_count = get_offers_count;
|
|
451
384
|
exports.cancel_offer_command = "cancel_offer";
|
|
452
|
-
function cancel_offer(agent, data) {
|
|
453
|
-
return
|
|
454
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cancel_offer_command, data);
|
|
455
|
-
});
|
|
385
|
+
async function cancel_offer(agent, data) {
|
|
386
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cancel_offer_command, data);
|
|
456
387
|
}
|
|
457
|
-
exports.cancel_offer = cancel_offer;
|
|
458
388
|
exports.cancel_offers_command = "cancel_offers";
|
|
459
|
-
function cancel_offers(agent, data) {
|
|
460
|
-
return
|
|
461
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.cancel_offers_command, data);
|
|
462
|
-
});
|
|
389
|
+
async function cancel_offers(agent, data) {
|
|
390
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.cancel_offers_command, data);
|
|
463
391
|
}
|
|
464
|
-
exports.cancel_offers = cancel_offers;
|
|
465
392
|
// # DID Wallet
|
|
466
393
|
exports.did_set_wallet_name_command = "did_set_wallet_name";
|
|
467
|
-
function did_set_wallet_name(agent, data) {
|
|
468
|
-
return
|
|
469
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_set_wallet_name_command, data);
|
|
470
|
-
});
|
|
394
|
+
async function did_set_wallet_name(agent, data) {
|
|
395
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_set_wallet_name_command, data);
|
|
471
396
|
}
|
|
472
|
-
exports.did_set_wallet_name = did_set_wallet_name;
|
|
473
397
|
exports.did_get_wallet_name_command = "did_get_wallet_name";
|
|
474
|
-
function did_get_wallet_name(agent, data) {
|
|
475
|
-
return
|
|
476
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_wallet_name_command, data);
|
|
477
|
-
});
|
|
398
|
+
async function did_get_wallet_name(agent, data) {
|
|
399
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_wallet_name_command, data);
|
|
478
400
|
}
|
|
479
|
-
exports.did_get_wallet_name = did_get_wallet_name;
|
|
480
401
|
exports.did_update_recovery_ids_command = "did_update_recovery_ids";
|
|
481
|
-
function did_update_recovery_ids(agent, data) {
|
|
482
|
-
return
|
|
483
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_update_recovery_ids_command, data);
|
|
484
|
-
});
|
|
402
|
+
async function did_update_recovery_ids(agent, data) {
|
|
403
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_update_recovery_ids_command, data);
|
|
485
404
|
}
|
|
486
|
-
exports.did_update_recovery_ids = did_update_recovery_ids;
|
|
487
405
|
exports.did_update_metadata_command = "did_update_metadata";
|
|
488
|
-
function did_update_metadata(agent, data) {
|
|
489
|
-
return
|
|
490
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_update_metadata_command, data);
|
|
491
|
-
});
|
|
406
|
+
async function did_update_metadata(agent, data) {
|
|
407
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_update_metadata_command, data);
|
|
492
408
|
}
|
|
493
|
-
exports.did_update_metadata = did_update_metadata;
|
|
494
409
|
exports.did_spend_command = "did_spend";
|
|
495
|
-
function did_spend(agent, data) {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_spend_command, data);
|
|
499
|
-
});
|
|
410
|
+
async function did_spend(agent, data) {
|
|
411
|
+
console.warn("did_spend was deprecated at chia-blockchain@1.2.8.");
|
|
412
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_spend_command, data);
|
|
500
413
|
}
|
|
501
|
-
exports.did_spend = did_spend;
|
|
502
414
|
exports.did_get_pubkey_command = "did_get_pubkey";
|
|
503
|
-
function did_get_pubkey(agent) {
|
|
504
|
-
return
|
|
505
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_pubkey_command);
|
|
506
|
-
});
|
|
415
|
+
async function did_get_pubkey(agent) {
|
|
416
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_pubkey_command);
|
|
507
417
|
}
|
|
508
|
-
exports.did_get_pubkey = did_get_pubkey;
|
|
509
418
|
exports.did_get_did_command = "did_get_did";
|
|
510
|
-
function did_get_did(agent, data) {
|
|
511
|
-
return
|
|
512
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_did_command, data);
|
|
513
|
-
});
|
|
419
|
+
async function did_get_did(agent, data) {
|
|
420
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_did_command, data);
|
|
514
421
|
}
|
|
515
|
-
exports.did_get_did = did_get_did;
|
|
516
422
|
exports.did_recovery_spend_command = "did_recovery_spend";
|
|
517
|
-
function did_recovery_spend(agent, data) {
|
|
518
|
-
return
|
|
519
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_recovery_spend_command, data);
|
|
520
|
-
});
|
|
423
|
+
async function did_recovery_spend(agent, data) {
|
|
424
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_recovery_spend_command, data);
|
|
521
425
|
}
|
|
522
|
-
exports.did_recovery_spend = did_recovery_spend;
|
|
523
426
|
exports.did_get_recovery_list_command = "did_get_recovery_list";
|
|
524
|
-
function did_get_recovery_list(agent, data) {
|
|
525
|
-
return
|
|
526
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_recovery_list_command, data);
|
|
527
|
-
});
|
|
427
|
+
async function did_get_recovery_list(agent, data) {
|
|
428
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_recovery_list_command, data);
|
|
528
429
|
}
|
|
529
|
-
exports.did_get_recovery_list = did_get_recovery_list;
|
|
530
430
|
exports.did_get_metadata_command = "did_get_metadata";
|
|
531
|
-
function did_get_metadata(agent, data) {
|
|
532
|
-
return
|
|
533
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_metadata_command, data);
|
|
534
|
-
});
|
|
431
|
+
async function did_get_metadata(agent, data) {
|
|
432
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_metadata_command, data);
|
|
535
433
|
}
|
|
536
|
-
exports.did_get_metadata = did_get_metadata;
|
|
537
434
|
exports.did_create_attest_command = "did_create_attest";
|
|
538
|
-
function did_create_attest(agent, data) {
|
|
539
|
-
return
|
|
540
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_create_attest_command, data);
|
|
541
|
-
});
|
|
435
|
+
async function did_create_attest(agent, data) {
|
|
436
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_create_attest_command, data);
|
|
542
437
|
}
|
|
543
|
-
exports.did_create_attest = did_create_attest;
|
|
544
438
|
exports.did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
|
|
545
|
-
function did_get_information_needed_for_recovery(agent, data) {
|
|
546
|
-
return
|
|
547
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_information_needed_for_recovery_command, data);
|
|
548
|
-
});
|
|
439
|
+
async function did_get_information_needed_for_recovery(agent, data) {
|
|
440
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_information_needed_for_recovery_command, data);
|
|
549
441
|
}
|
|
550
|
-
exports.did_get_information_needed_for_recovery = did_get_information_needed_for_recovery;
|
|
551
442
|
exports.did_get_current_coin_info_command = "did_get_current_coin_info";
|
|
552
|
-
function did_get_current_coin_info(agent, data) {
|
|
553
|
-
return
|
|
554
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_current_coin_info_command, data);
|
|
555
|
-
});
|
|
443
|
+
async function did_get_current_coin_info(agent, data) {
|
|
444
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_current_coin_info_command, data);
|
|
556
445
|
}
|
|
557
|
-
exports.did_get_current_coin_info = did_get_current_coin_info;
|
|
558
446
|
exports.did_create_backup_file_command = "did_create_backup_file";
|
|
559
|
-
function did_create_backup_file(agent, data) {
|
|
560
|
-
return
|
|
561
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_create_backup_file_command, data);
|
|
562
|
-
});
|
|
447
|
+
async function did_create_backup_file(agent, data) {
|
|
448
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_create_backup_file_command, data);
|
|
563
449
|
}
|
|
564
|
-
exports.did_create_backup_file = did_create_backup_file;
|
|
565
450
|
exports.did_message_spend_command = "did_message_spend";
|
|
566
|
-
function did_message_spend(agent, data) {
|
|
567
|
-
return
|
|
568
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_message_spend_command, data);
|
|
569
|
-
});
|
|
451
|
+
async function did_message_spend(agent, data) {
|
|
452
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_message_spend_command, data);
|
|
570
453
|
}
|
|
571
|
-
exports.did_message_spend = did_message_spend;
|
|
572
454
|
exports.did_get_info_command = "did_get_info";
|
|
573
|
-
function did_get_info(agent, data) {
|
|
574
|
-
return
|
|
575
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_info_command, data);
|
|
576
|
-
});
|
|
455
|
+
async function did_get_info(agent, data) {
|
|
456
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_get_info_command, data);
|
|
577
457
|
}
|
|
578
|
-
exports.did_get_info = did_get_info;
|
|
579
458
|
exports.did_find_lost_did_command = "did_find_lost_did";
|
|
580
|
-
function did_find_lost_did(agent, data) {
|
|
581
|
-
return
|
|
582
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_find_lost_did_command, data);
|
|
583
|
-
});
|
|
459
|
+
async function did_find_lost_did(agent, data) {
|
|
460
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_find_lost_did_command, data);
|
|
584
461
|
}
|
|
585
|
-
exports.did_find_lost_did = did_find_lost_did;
|
|
586
462
|
exports.did_transfer_did_command = "did_transfer_did";
|
|
587
|
-
function did_transfer_did(agent, data) {
|
|
588
|
-
return
|
|
589
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.did_transfer_did_command, data);
|
|
590
|
-
});
|
|
463
|
+
async function did_transfer_did(agent, data) {
|
|
464
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.did_transfer_did_command, data);
|
|
591
465
|
}
|
|
592
|
-
exports.did_transfer_did = did_transfer_did;
|
|
593
|
-
// # DAO Wallet
|
|
594
|
-
exports.dao_adjust_filter_level_command = "dao_adjust_filter_level";
|
|
595
|
-
function dao_adjust_filter_level(agent, data) {
|
|
596
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
597
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_adjust_filter_level_command, data);
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
exports.dao_adjust_filter_level = dao_adjust_filter_level;
|
|
601
|
-
exports.dao_add_funds_to_treasury_command = "dao_add_funds_to_treasury";
|
|
602
|
-
function dao_add_funds_to_treasury(agent, data) {
|
|
603
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_add_funds_to_treasury_command, data);
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
exports.dao_add_funds_to_treasury = dao_add_funds_to_treasury;
|
|
608
|
-
exports.dao_get_treasury_balance_command = "dao_get_treasury_balance";
|
|
609
|
-
function dao_get_treasury_balance(agent, data) {
|
|
610
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_get_treasury_balance_command, data);
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
exports.dao_get_treasury_balance = dao_get_treasury_balance;
|
|
615
|
-
exports.dao_get_treasury_id_command = "dao_get_treasury_id";
|
|
616
|
-
function dao_get_treasury_id(agent, data) {
|
|
617
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_get_treasury_id_command, data);
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
exports.dao_get_treasury_id = dao_get_treasury_id;
|
|
622
|
-
exports.dao_get_rules_command = "dao_get_rules";
|
|
623
|
-
function dao_get_rules(agent, data) {
|
|
624
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_get_rules_command, data);
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
exports.dao_get_rules = dao_get_rules;
|
|
629
|
-
exports.dao_send_to_lockup_command = "dao_send_to_lockup";
|
|
630
|
-
function dao_send_to_lockup(agent, data) {
|
|
631
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_send_to_lockup_command, data);
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
exports.dao_send_to_lockup = dao_send_to_lockup;
|
|
636
|
-
exports.dao_get_proposals_command = "dao_get_proposals";
|
|
637
|
-
function dao_get_proposals(agent, data) {
|
|
638
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
639
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_get_proposals_command, data);
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
exports.dao_get_proposals = dao_get_proposals;
|
|
643
|
-
exports.dao_get_proposal_state_command = "dao_get_proposal_state";
|
|
644
|
-
function dao_get_proposal_state(agent, data) {
|
|
645
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_get_proposal_state_command, data);
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
exports.dao_get_proposal_state = dao_get_proposal_state;
|
|
650
|
-
exports.dao_exit_lockup_command = "dao_exit_lockup";
|
|
651
|
-
function dao_exit_lockup(agent, data) {
|
|
652
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_exit_lockup_command, data);
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
exports.dao_exit_lockup = dao_exit_lockup;
|
|
657
|
-
exports.dao_create_proposal_command = "dao_create_proposal";
|
|
658
|
-
function dao_create_proposal(agent, data) {
|
|
659
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_create_proposal_command, data);
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
exports.dao_create_proposal = dao_create_proposal;
|
|
664
|
-
exports.dao_vote_on_proposal_command = "dao_vote_on_proposal";
|
|
665
|
-
function dao_vote_on_proposal(agent, data) {
|
|
666
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_vote_on_proposal_command, data);
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
exports.dao_vote_on_proposal = dao_vote_on_proposal;
|
|
671
|
-
exports.dao_parse_proposal_command = "dao_parse_proposal";
|
|
672
|
-
function dao_parse_proposal(agent, data) {
|
|
673
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
674
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_parse_proposal_command, data);
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
exports.dao_parse_proposal = dao_parse_proposal;
|
|
678
|
-
exports.dao_close_proposal_command = "dao_close_proposal";
|
|
679
|
-
function dao_close_proposal(agent, data) {
|
|
680
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
681
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_close_proposal_command, data);
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
exports.dao_close_proposal = dao_close_proposal;
|
|
685
|
-
exports.dao_free_coins_from_finished_proposals_command = "dao_free_coins_from_finished_proposals";
|
|
686
|
-
function dao_free_coins_from_finished_proposals(agent, data) {
|
|
687
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dao_free_coins_from_finished_proposals_command, data);
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
exports.dao_free_coins_from_finished_proposals = dao_free_coins_from_finished_proposals;
|
|
692
466
|
// # NFT Wallet
|
|
693
467
|
exports.nft_mint_nft_command = "nft_mint_nft";
|
|
694
|
-
function nft_mint_nft(agent, data) {
|
|
695
|
-
return
|
|
696
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_mint_nft_command, data);
|
|
697
|
-
});
|
|
468
|
+
async function nft_mint_nft(agent, data) {
|
|
469
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_mint_nft_command, data);
|
|
698
470
|
}
|
|
699
|
-
exports.nft_mint_nft = nft_mint_nft;
|
|
700
471
|
exports.nft_count_nfts_command = "nft_count_nfts";
|
|
701
|
-
function nft_count_nfts(agent, data) {
|
|
702
|
-
return
|
|
703
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_count_nfts_command, data);
|
|
704
|
-
});
|
|
472
|
+
async function nft_count_nfts(agent, data) {
|
|
473
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_count_nfts_command, data);
|
|
705
474
|
}
|
|
706
|
-
exports.nft_count_nfts = nft_count_nfts;
|
|
707
475
|
exports.nft_get_nfts_command = "nft_get_nfts";
|
|
708
|
-
function nft_get_nfts(agent, data) {
|
|
709
|
-
return
|
|
710
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_nfts_command, data);
|
|
711
|
-
});
|
|
476
|
+
async function nft_get_nfts(agent, data) {
|
|
477
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_nfts_command, data);
|
|
712
478
|
}
|
|
713
|
-
exports.nft_get_nfts = nft_get_nfts;
|
|
714
479
|
exports.nft_set_nft_did_command = "nft_set_nft_did";
|
|
715
|
-
function nft_set_nft_did(agent, data) {
|
|
716
|
-
return
|
|
717
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_nft_did_command, data);
|
|
718
|
-
});
|
|
480
|
+
async function nft_set_nft_did(agent, data) {
|
|
481
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_nft_did_command, data);
|
|
719
482
|
}
|
|
720
|
-
exports.nft_set_nft_did = nft_set_nft_did;
|
|
721
483
|
exports.nft_set_did_bulk_command = "nft_set_did_bulk";
|
|
722
|
-
function nft_set_did_bulk(agent, data) {
|
|
723
|
-
return
|
|
724
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_did_bulk_command, data);
|
|
725
|
-
});
|
|
484
|
+
async function nft_set_did_bulk(agent, data) {
|
|
485
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_did_bulk_command, data);
|
|
726
486
|
}
|
|
727
|
-
exports.nft_set_did_bulk = nft_set_did_bulk;
|
|
728
487
|
exports.nft_transfer_bulk_command = "nft_transfer_bulk";
|
|
729
|
-
function nft_transfer_bulk(agent, data) {
|
|
730
|
-
return
|
|
731
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_bulk_command, data);
|
|
732
|
-
});
|
|
488
|
+
async function nft_transfer_bulk(agent, data) {
|
|
489
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_bulk_command, data);
|
|
733
490
|
}
|
|
734
|
-
exports.nft_transfer_bulk = nft_transfer_bulk;
|
|
735
491
|
exports.nft_get_by_did_command = "nft_get_by_did";
|
|
736
|
-
function nft_get_by_did(agent, data) {
|
|
737
|
-
return
|
|
738
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_by_did_command, data);
|
|
739
|
-
});
|
|
492
|
+
async function nft_get_by_did(agent, data) {
|
|
493
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_by_did_command, data);
|
|
740
494
|
}
|
|
741
|
-
exports.nft_get_by_did = nft_get_by_did;
|
|
742
495
|
exports.nft_get_wallet_did_command = "nft_get_wallet_did";
|
|
743
|
-
function nft_get_wallet_did(agent, data) {
|
|
744
|
-
return
|
|
745
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_wallet_did_command, data);
|
|
746
|
-
});
|
|
496
|
+
async function nft_get_wallet_did(agent, data) {
|
|
497
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_wallet_did_command, data);
|
|
747
498
|
}
|
|
748
|
-
exports.nft_get_wallet_did = nft_get_wallet_did;
|
|
749
499
|
exports.nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
|
|
750
|
-
function nft_get_wallets_with_dids(agent) {
|
|
751
|
-
return
|
|
752
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_wallets_with_dids_command);
|
|
753
|
-
});
|
|
500
|
+
async function nft_get_wallets_with_dids(agent) {
|
|
501
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_wallets_with_dids_command);
|
|
754
502
|
}
|
|
755
|
-
exports.nft_get_wallets_with_dids = nft_get_wallets_with_dids;
|
|
756
503
|
exports.nft_set_nft_status_command = "nft_set_nft_status";
|
|
757
|
-
function nft_set_nft_status(agent, data) {
|
|
758
|
-
return
|
|
759
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_nft_status_command, data);
|
|
760
|
-
});
|
|
504
|
+
async function nft_set_nft_status(agent, data) {
|
|
505
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_set_nft_status_command, data);
|
|
761
506
|
}
|
|
762
|
-
exports.nft_set_nft_status = nft_set_nft_status;
|
|
763
507
|
exports.nft_transfer_nft_command = "nft_transfer_nft";
|
|
764
|
-
function nft_transfer_nft(agent, data) {
|
|
765
|
-
return
|
|
766
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_nft_command, data);
|
|
767
|
-
});
|
|
508
|
+
async function nft_transfer_nft(agent, data) {
|
|
509
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_nft_command, data);
|
|
768
510
|
}
|
|
769
|
-
exports.nft_transfer_nft = nft_transfer_nft;
|
|
770
511
|
exports.nft_get_info_command = "nft_get_info";
|
|
771
|
-
function nft_get_info(agent, data) {
|
|
772
|
-
return
|
|
773
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_info_command, data);
|
|
774
|
-
});
|
|
512
|
+
async function nft_get_info(agent, data) {
|
|
513
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_get_info_command, data);
|
|
775
514
|
}
|
|
776
|
-
exports.nft_get_info = nft_get_info;
|
|
777
515
|
exports.nft_add_uri_command = "nft_add_uri";
|
|
778
|
-
function nft_add_uri(agent, data) {
|
|
779
|
-
return
|
|
780
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_add_uri_command, data);
|
|
781
|
-
});
|
|
516
|
+
async function nft_add_uri(agent, data) {
|
|
517
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_add_uri_command, data);
|
|
782
518
|
}
|
|
783
|
-
exports.nft_add_uri = nft_add_uri;
|
|
784
519
|
exports.nft_calculate_royalties_command = "nft_calculate_royalties";
|
|
785
|
-
function nft_calculate_royalties(agent, data) {
|
|
786
|
-
return
|
|
787
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_calculate_royalties_command, data);
|
|
788
|
-
});
|
|
520
|
+
async function nft_calculate_royalties(agent, data) {
|
|
521
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_calculate_royalties_command, data);
|
|
789
522
|
}
|
|
790
|
-
exports.nft_calculate_royalties = nft_calculate_royalties;
|
|
791
523
|
exports.nft_mint_bulk_command = "nft_mint_bulk";
|
|
792
|
-
function nft_mint_bulk(agent, data) {
|
|
793
|
-
return
|
|
794
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.nft_mint_bulk_command, data);
|
|
795
|
-
});
|
|
524
|
+
async function nft_mint_bulk(agent, data) {
|
|
525
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_mint_bulk_command, data);
|
|
796
526
|
}
|
|
797
|
-
exports.nft_mint_bulk = nft_mint_bulk;
|
|
798
527
|
// # RL wallet
|
|
799
528
|
exports.rl_set_user_info_command = "rl_set_user_info";
|
|
800
|
-
function rl_set_user_info(agent, data) {
|
|
801
|
-
return
|
|
802
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.rl_set_user_info_command, data);
|
|
803
|
-
});
|
|
529
|
+
async function rl_set_user_info(agent, data) {
|
|
530
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.rl_set_user_info_command, data);
|
|
804
531
|
}
|
|
805
|
-
exports.rl_set_user_info = rl_set_user_info;
|
|
806
532
|
exports.send_clawback_transaction_command = "send_clawback_transaction:";
|
|
807
|
-
function send_clawback_transaction(agent, data) {
|
|
808
|
-
return
|
|
809
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.send_clawback_transaction_command, data);
|
|
810
|
-
});
|
|
533
|
+
async function send_clawback_transaction(agent, data) {
|
|
534
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.send_clawback_transaction_command, data);
|
|
811
535
|
}
|
|
812
|
-
exports.send_clawback_transaction = send_clawback_transaction;
|
|
813
536
|
exports.add_rate_limited_funds_command = "add_rate_limited_funds:";
|
|
814
|
-
function add_rate_limited_funds(agent, data) {
|
|
815
|
-
return
|
|
816
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.add_rate_limited_funds_command, data);
|
|
817
|
-
});
|
|
537
|
+
async function add_rate_limited_funds(agent, data) {
|
|
538
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.add_rate_limited_funds_command, data);
|
|
818
539
|
}
|
|
819
|
-
exports.add_rate_limited_funds = add_rate_limited_funds;
|
|
820
540
|
exports.pw_join_pool_command = "pw_join_pool";
|
|
821
|
-
function pw_join_pool(agent, data) {
|
|
822
|
-
return
|
|
823
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.pw_join_pool_command, data);
|
|
824
|
-
});
|
|
541
|
+
async function pw_join_pool(agent, data) {
|
|
542
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.pw_join_pool_command, data);
|
|
825
543
|
}
|
|
826
|
-
exports.pw_join_pool = pw_join_pool;
|
|
827
544
|
exports.pw_self_pool_command = "pw_self_pool";
|
|
828
|
-
function pw_self_pool(agent, data) {
|
|
829
|
-
return
|
|
830
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.pw_self_pool_command, data);
|
|
831
|
-
});
|
|
545
|
+
async function pw_self_pool(agent, data) {
|
|
546
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.pw_self_pool_command, data);
|
|
832
547
|
}
|
|
833
|
-
exports.pw_self_pool = pw_self_pool;
|
|
834
548
|
exports.pw_absorb_rewards_command = "pw_absorb_rewards";
|
|
835
|
-
function pw_absorb_rewards(agent, data) {
|
|
836
|
-
return
|
|
837
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.pw_absorb_rewards_command, data);
|
|
838
|
-
});
|
|
549
|
+
async function pw_absorb_rewards(agent, data) {
|
|
550
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.pw_absorb_rewards_command, data);
|
|
839
551
|
}
|
|
840
|
-
exports.pw_absorb_rewards = pw_absorb_rewards;
|
|
841
552
|
exports.pw_status_command = "pw_status";
|
|
842
|
-
function pw_status(agent, data) {
|
|
843
|
-
return
|
|
844
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.pw_status_command, data);
|
|
845
|
-
});
|
|
553
|
+
async function pw_status(agent, data) {
|
|
554
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.pw_status_command, data);
|
|
846
555
|
}
|
|
847
|
-
exports.pw_status = pw_status;
|
|
848
556
|
exports.create_new_dl_command = "create_new_dl";
|
|
849
|
-
function create_new_dl(agent, data) {
|
|
850
|
-
return
|
|
851
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.create_new_dl_command, data);
|
|
852
|
-
});
|
|
557
|
+
async function create_new_dl(agent, data) {
|
|
558
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.create_new_dl_command, data);
|
|
853
559
|
}
|
|
854
|
-
exports.create_new_dl = create_new_dl;
|
|
855
560
|
exports.dl_track_new_command = "dl_track_new";
|
|
856
|
-
function dl_track_new(agent, data) {
|
|
857
|
-
return
|
|
858
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_track_new_command, data);
|
|
859
|
-
});
|
|
561
|
+
async function dl_track_new(agent, data) {
|
|
562
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_track_new_command, data);
|
|
860
563
|
}
|
|
861
|
-
exports.dl_track_new = dl_track_new;
|
|
862
564
|
exports.dl_stop_tracking_command = "dl_stop_tracking";
|
|
863
|
-
function dl_stop_tracking(agent, data) {
|
|
864
|
-
return
|
|
865
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_stop_tracking_command, data);
|
|
866
|
-
});
|
|
565
|
+
async function dl_stop_tracking(agent, data) {
|
|
566
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_stop_tracking_command, data);
|
|
867
567
|
}
|
|
868
|
-
exports.dl_stop_tracking = dl_stop_tracking;
|
|
869
568
|
exports.dl_latest_singleton_command = "dl_latest_singleton";
|
|
870
|
-
function dl_latest_singleton(agent, data) {
|
|
871
|
-
return
|
|
872
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_latest_singleton_command, data);
|
|
873
|
-
});
|
|
569
|
+
async function dl_latest_singleton(agent, data) {
|
|
570
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_latest_singleton_command, data);
|
|
874
571
|
}
|
|
875
|
-
exports.dl_latest_singleton = dl_latest_singleton;
|
|
876
572
|
exports.dl_singletons_by_root_command = "dl_singletons_by_root";
|
|
877
|
-
function dl_singletons_by_root(agent, data) {
|
|
878
|
-
return
|
|
879
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_singletons_by_root_command, data);
|
|
880
|
-
});
|
|
573
|
+
async function dl_singletons_by_root(agent, data) {
|
|
574
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_singletons_by_root_command, data);
|
|
881
575
|
}
|
|
882
|
-
exports.dl_singletons_by_root = dl_singletons_by_root;
|
|
883
576
|
exports.dl_update_root_command = "dl_update_root";
|
|
884
|
-
function dl_update_root(agent, data) {
|
|
885
|
-
return
|
|
886
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_update_root_command, data);
|
|
887
|
-
});
|
|
577
|
+
async function dl_update_root(agent, data) {
|
|
578
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_update_root_command, data);
|
|
888
579
|
}
|
|
889
|
-
exports.dl_update_root = dl_update_root;
|
|
890
580
|
exports.dl_update_multiple_command = "dl_update_multiple";
|
|
891
|
-
function dl_update_multiple(agent, data) {
|
|
892
|
-
return
|
|
893
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_update_multiple_command, data);
|
|
894
|
-
});
|
|
581
|
+
async function dl_update_multiple(agent, data) {
|
|
582
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_update_multiple_command, data);
|
|
895
583
|
}
|
|
896
|
-
exports.dl_update_multiple = dl_update_multiple;
|
|
897
584
|
exports.dl_history_command = "dl_history";
|
|
898
|
-
function dl_history(agent, data) {
|
|
899
|
-
return
|
|
900
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_history_command, data);
|
|
901
|
-
});
|
|
585
|
+
async function dl_history(agent, data) {
|
|
586
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_history_command, data);
|
|
902
587
|
}
|
|
903
|
-
exports.dl_history = dl_history;
|
|
904
588
|
exports.dl_owned_singletons_command = "dl_owned_singletons";
|
|
905
|
-
function dl_owned_singletons(agent) {
|
|
906
|
-
return
|
|
907
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_owned_singletons_command);
|
|
908
|
-
});
|
|
589
|
+
async function dl_owned_singletons(agent) {
|
|
590
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_owned_singletons_command);
|
|
909
591
|
}
|
|
910
|
-
exports.dl_owned_singletons = dl_owned_singletons;
|
|
911
592
|
exports.dl_get_mirrors_command = "dl_get_mirrors";
|
|
912
|
-
function dl_get_mirrors(agent, data) {
|
|
913
|
-
return
|
|
914
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_get_mirrors_command, data);
|
|
915
|
-
});
|
|
593
|
+
async function dl_get_mirrors(agent, data) {
|
|
594
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_get_mirrors_command, data);
|
|
916
595
|
}
|
|
917
|
-
exports.dl_get_mirrors = dl_get_mirrors;
|
|
918
596
|
exports.dl_new_mirror_command = "dl_new_mirror";
|
|
919
|
-
function dl_new_mirror(agent, data) {
|
|
920
|
-
return
|
|
921
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_new_mirror_command, data);
|
|
922
|
-
});
|
|
597
|
+
async function dl_new_mirror(agent, data) {
|
|
598
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_new_mirror_command, data);
|
|
923
599
|
}
|
|
924
|
-
exports.dl_new_mirror = dl_new_mirror;
|
|
925
600
|
exports.dl_delete_mirror_command = "dl_delete_mirror";
|
|
926
|
-
function dl_delete_mirror(agent, data) {
|
|
927
|
-
return
|
|
928
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_delete_mirror_command, data);
|
|
929
|
-
});
|
|
601
|
+
async function dl_delete_mirror(agent, data) {
|
|
602
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_delete_mirror_command, data);
|
|
930
603
|
}
|
|
931
|
-
exports.dl_delete_mirror = dl_delete_mirror;
|
|
932
604
|
exports.dl_verify_proof_command = "dl_verify_proof";
|
|
933
|
-
function dl_verify_proof(agent, data) {
|
|
934
|
-
return
|
|
935
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.dl_verify_proof_command, data);
|
|
936
|
-
});
|
|
605
|
+
async function dl_verify_proof(agent, data) {
|
|
606
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.dl_verify_proof_command, data);
|
|
937
607
|
}
|
|
938
|
-
exports.dl_verify_proof = dl_verify_proof;
|
|
939
608
|
exports.vc_mint_command = "vc_mint";
|
|
940
|
-
function vc_mint(agent, data) {
|
|
941
|
-
return
|
|
942
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_mint_command, data);
|
|
943
|
-
});
|
|
609
|
+
async function vc_mint(agent, data) {
|
|
610
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_mint_command, data);
|
|
944
611
|
}
|
|
945
|
-
exports.vc_mint = vc_mint;
|
|
946
612
|
exports.vc_get_command = "vc_get";
|
|
947
|
-
function vc_get(agent, data) {
|
|
948
|
-
return
|
|
949
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_command, data);
|
|
950
|
-
});
|
|
613
|
+
async function vc_get(agent, data) {
|
|
614
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_command, data);
|
|
951
615
|
}
|
|
952
|
-
exports.vc_get = vc_get;
|
|
953
616
|
exports.vc_get_list_command = "vc_get_list";
|
|
954
|
-
function vc_get_list(agent, data) {
|
|
955
|
-
return
|
|
956
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_list_command, data);
|
|
957
|
-
});
|
|
617
|
+
async function vc_get_list(agent, data) {
|
|
618
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_list_command, data);
|
|
958
619
|
}
|
|
959
|
-
exports.vc_get_list = vc_get_list;
|
|
960
620
|
exports.vc_spend_command = "vc_spend";
|
|
961
|
-
function vc_spend(agent, data) {
|
|
962
|
-
return
|
|
963
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_spend_command, data);
|
|
964
|
-
});
|
|
621
|
+
async function vc_spend(agent, data) {
|
|
622
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_spend_command, data);
|
|
965
623
|
}
|
|
966
|
-
exports.vc_spend = vc_spend;
|
|
967
624
|
exports.vc_add_proofs_command = "vc_add_proofs";
|
|
968
|
-
function vc_add_proofs(agent, data) {
|
|
969
|
-
return
|
|
970
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_add_proofs_command, data);
|
|
971
|
-
});
|
|
625
|
+
async function vc_add_proofs(agent, data) {
|
|
626
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_add_proofs_command, data);
|
|
972
627
|
}
|
|
973
|
-
exports.vc_add_proofs = vc_add_proofs;
|
|
974
628
|
exports.vc_get_proofs_for_root_command = "vc_get_proofs_for_root";
|
|
975
|
-
function vc_get_proofs_for_root(agent, data) {
|
|
976
|
-
return
|
|
977
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_proofs_for_root_command, data);
|
|
978
|
-
});
|
|
629
|
+
async function vc_get_proofs_for_root(agent, data) {
|
|
630
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_proofs_for_root_command, data);
|
|
979
631
|
}
|
|
980
|
-
exports.vc_get_proofs_for_root = vc_get_proofs_for_root;
|
|
981
632
|
exports.vc_revoke_command = "vc_revoke";
|
|
982
|
-
function vc_revoke(agent, data) {
|
|
983
|
-
return
|
|
984
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.vc_revoke_command, data);
|
|
985
|
-
});
|
|
633
|
+
async function vc_revoke(agent, data) {
|
|
634
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_revoke_command, data);
|
|
986
635
|
}
|
|
987
|
-
exports.vc_revoke = vc_revoke;
|
|
988
636
|
exports.crcat_approve_pending_command = "crcat_approve_pending";
|
|
989
|
-
function crcat_approve_pending(agent, data) {
|
|
990
|
-
return
|
|
991
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.crcat_approve_pending_command, data);
|
|
992
|
-
});
|
|
637
|
+
async function crcat_approve_pending(agent, data) {
|
|
638
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.crcat_approve_pending_command, data);
|
|
993
639
|
}
|
|
994
|
-
exports.crcat_approve_pending = crcat_approve_pending;
|
|
995
640
|
exports.gather_signing_info_command = "gather_signing_info";
|
|
996
|
-
function gather_signing_info(agent, data) {
|
|
997
|
-
return
|
|
998
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.gather_signing_info_command, data);
|
|
999
|
-
});
|
|
641
|
+
async function gather_signing_info(agent, data) {
|
|
642
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.gather_signing_info_command, data);
|
|
1000
643
|
}
|
|
1001
|
-
exports.gather_signing_info = gather_signing_info;
|
|
1002
644
|
exports.apply_signatures_command = "apply_signatures";
|
|
1003
|
-
function apply_signatures(agent, data) {
|
|
1004
|
-
return
|
|
1005
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.apply_signatures_command, data);
|
|
1006
|
-
});
|
|
645
|
+
async function apply_signatures(agent, data) {
|
|
646
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.apply_signatures_command, data);
|
|
1007
647
|
}
|
|
1008
|
-
exports.apply_signatures = apply_signatures;
|
|
1009
648
|
exports.submit_transactions_command = "submit_transactions";
|
|
1010
|
-
function submit_transactions(agent, data) {
|
|
1011
|
-
return
|
|
1012
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.submit_transactions_command, data);
|
|
1013
|
-
});
|
|
649
|
+
async function submit_transactions(agent, data) {
|
|
650
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.submit_transactions_command, data);
|
|
1014
651
|
}
|
|
1015
|
-
exports.submit_transactions = submit_transactions;
|
|
1016
652
|
exports.execute_signing_instructions_command = "execute_signing_instructions";
|
|
1017
|
-
function execute_signing_instructions(agent, data) {
|
|
1018
|
-
return
|
|
1019
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.execute_signing_instructions_command, data);
|
|
1020
|
-
});
|
|
653
|
+
async function execute_signing_instructions(agent, data) {
|
|
654
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.execute_signing_instructions_command, data);
|
|
1021
655
|
}
|
|
1022
|
-
exports.execute_signing_instructions = execute_signing_instructions;
|