chia-agent 13.2.0-beta.0 → 13.2.0-beta.2
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 +8 -0
- package/api/chia/consensus/block_record.d.ts +32 -32
- package/api/chia/consensus/block_record.js +2 -2
- package/api/chia/consensus/blockchain.d.ts +1 -1
- package/api/chia/consensus/blockchain.js +2 -2
- package/api/chia/consensus/cost_calculator.d.ts +7 -7
- package/api/chia/consensus/cost_calculator.js +2 -2
- package/api/chia/data_layer/data_layer_util.d.ts +49 -49
- package/api/chia/data_layer/data_layer_util.js +2 -2
- package/api/chia/data_layer/data_layer_wallet.d.ts +21 -21
- package/api/chia/data_layer/data_layer_wallet.js +2 -2
- package/api/chia/farmer/farmer.d.ts +26 -26
- package/api/chia/farmer/farmer.js +3 -3
- package/api/chia/farmer/farmer_api.js +2 -2
- package/api/chia/full_node/signage_point.d.ts +8 -8
- package/api/chia/full_node/signage_point.js +2 -2
- package/api/chia/harvester/harvester.d.ts +13 -13
- package/api/chia/harvester/harvester.js +2 -2
- package/api/chia/harvester/harvester_api.js +2 -2
- package/api/chia/plot-sync/receiver.d.ts +25 -25
- package/api/chia/plot-sync/receiver.js +2 -2
- package/api/chia/plotters/bladebit.d.ts +10 -10
- package/api/chia/plotters/bladebit.js +4 -4
- package/api/chia/plotters/chiapos.d.ts +7 -7
- package/api/chia/plotters/chiapos.js +4 -4
- package/api/chia/plotters/maxmax.d.ts +8 -8
- package/api/chia/plotters/maxmax.js +4 -4
- package/api/chia/plotting/util.d.ts +3 -3
- package/api/chia/plotting/util.js +2 -2
- package/api/chia/pool/store.d.ts +17 -17
- package/api/chia/pool/store.js +2 -2
- package/api/chia/pools/pool_config.d.ts +10 -10
- package/api/chia/pools/pool_config.js +2 -2
- package/api/chia/pools/pool_wallet_info.d.ts +22 -22
- package/api/chia/pools/pool_wallet_info.js +2 -2
- package/api/chia/protocols/farmer_protocol.d.ts +43 -43
- package/api/chia/protocols/farmer_protocol.js +2 -2
- package/api/chia/protocols/harvester_protocol.d.ts +12 -12
- package/api/chia/protocols/harvester_protocol.js +2 -2
- package/api/chia/protocols/pool_protocol.d.ts +93 -93
- package/api/chia/protocols/pool_protocol.js +21 -21
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/server/outbound_message.js +2 -2
- package/api/chia/timelord/types.d.ts +1 -1
- package/api/chia/timelord/types.js +2 -2
- package/api/chia/types/_python_types_.d.ts +22 -22
- package/api/chia/types/_python_types_.js +2 -2
- package/api/chia/types/blockchain_format/classgroup.d.ts +4 -4
- package/api/chia/types/blockchain_format/classgroup.js +2 -2
- package/api/chia/types/blockchain_format/coin.d.ts +11 -11
- package/api/chia/types/blockchain_format/coin.js +2 -2
- package/api/chia/types/blockchain_format/foliage.d.ts +35 -35
- package/api/chia/types/blockchain_format/foliage.js +2 -2
- package/api/chia/types/blockchain_format/pool_target.d.ts +6 -6
- package/api/chia/types/blockchain_format/pool_target.js +2 -2
- package/api/chia/types/blockchain_format/program.d.ts +1 -1
- package/api/chia/types/blockchain_format/program.js +2 -2
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +10 -10
- package/api/chia/types/blockchain_format/proof_of_space.js +2 -2
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +30 -30
- package/api/chia/types/blockchain_format/reward_chain_block.js +2 -2
- package/api/chia/types/blockchain_format/serialized_program.d.ts +2 -2
- package/api/chia/types/blockchain_format/serialized_program.js +2 -2
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +8 -8
- package/api/chia/types/blockchain_format/sized_bytes.js +2 -2
- package/api/chia/types/blockchain_format/slots.d.ts +24 -24
- package/api/chia/types/blockchain_format/slots.js +2 -2
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +9 -9
- package/api/chia/types/blockchain_format/sub_epoch_summary.js +2 -2
- package/api/chia/types/blockchain_format/vdf.d.ts +13 -13
- package/api/chia/types/blockchain_format/vdf.js +2 -2
- package/api/chia/types/clvm_cost.d.ts +2 -2
- package/api/chia/types/clvm_cost.js +2 -2
- package/api/chia/types/coin_record.d.ts +12 -12
- package/api/chia/types/coin_record.js +2 -2
- package/api/chia/types/coin_spend.d.ts +7 -7
- package/api/chia/types/coin_spend.js +2 -2
- package/api/chia/types/coin_spend_with_conditions.d.ts +6 -6
- package/api/chia/types/coin_spend_with_conditions.js +2 -2
- package/api/chia/types/condition_opcode.d.ts +2 -2
- package/api/chia/types/condition_opcode.js +2 -2
- package/api/chia/types/condition_with_args.d.ts +6 -6
- package/api/chia/types/condition_with_args.js +2 -2
- package/api/chia/types/end_of_slot_bundle.d.ts +8 -8
- package/api/chia/types/end_of_slot_bundle.js +2 -2
- package/api/chia/types/full_block.d.ts +20 -20
- package/api/chia/types/full_block.js +2 -2
- package/api/chia/types/mempool_item.d.ts +32 -32
- package/api/chia/types/mempool_item.js +2 -2
- package/api/chia/types/mojos.d.ts +2 -2
- package/api/chia/types/mojos.js +2 -2
- package/api/chia/types/signing_mode.d.ts +4 -4
- package/api/chia/types/signing_mode.js +2 -2
- package/api/chia/types/spend_bundle.d.ts +6 -6
- package/api/chia/types/spend_bundle.js +2 -2
- package/api/chia/types/spend_bundle_condition.d.ts +26 -26
- package/api/chia/types/spend_bundle_condition.js +2 -2
- package/api/chia/types/unfinished_header_block.d.ts +14 -14
- package/api/chia/types/unfinished_header_block.js +2 -2
- package/api/chia/util/keychain.d.ts +12 -12
- package/api/chia/util/keychain.js +2 -2
- package/api/chia/util/misc.d.ts +5 -5
- package/api/chia/util/misc.js +2 -2
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +6 -6
- package/api/chia/wallet/cat_wallet/cat_constants.js +2 -2
- package/api/chia/wallet/conditions.d.ts +12 -12
- package/api/chia/wallet/conditions.js +2 -2
- package/api/chia/wallet/lineage_proof.d.ts +7 -7
- package/api/chia/wallet/lineage_proof.js +2 -2
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +28 -28
- package/api/chia/wallet/nft_wallet/nft_info.js +2 -2
- package/api/chia/wallet/puzzle_drivers.d.ts +6 -6
- package/api/chia/wallet/puzzle_drivers.js +2 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +13 -13
- package/api/chia/wallet/puzzles/clawback/metadata.js +2 -2
- package/api/chia/wallet/trade_record.d.ts +31 -31
- package/api/chia/wallet/trade_record.js +3 -3
- package/api/chia/wallet/transaction_record.d.ts +37 -37
- package/api/chia/wallet/transaction_record.js +2 -2
- package/api/chia/wallet/util/quality_filter.d.ts +22 -22
- package/api/chia/wallet/util/quality_filter.js +2 -2
- package/api/chia/wallet/util/tx_config.d.ts +24 -24
- package/api/chia/wallet/util/tx_config.js +2 -2
- package/api/chia/wallet/util/wallet_types.d.ts +27 -27
- package/api/chia/wallet/util/wallet_types.js +27 -27
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +16 -16
- package/api/chia/wallet/vc_wallet/vc_drivers.js +2 -2
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +6 -6
- package/api/chia/wallet/vc_wallet/vc_store.js +2 -2
- package/api/chia/wallet/wallet_coin_record.d.ts +25 -25
- package/api/chia/wallet/wallet_coin_record.js +2 -2
- package/api/chia/wallet/wallet_coin_store.d.ts +19 -19
- package/api/chia/wallet/wallet_coin_store.js +2 -2
- package/api/chia/wallet/wallet_info.d.ts +10 -10
- package/api/chia/wallet/wallet_info.js +2 -2
- package/api/chia/wallet/wallet_node.d.ts +10 -10
- package/api/chia/wallet/wallet_node.js +2 -2
- package/api/rpc/common/index.d.ts +61 -61
- package/api/rpc/common/index.js +55 -55
- package/api/rpc/crawler/index.d.ts +35 -35
- package/api/rpc/crawler/index.js +27 -27
- package/api/rpc/data_layer/index.d.ts +357 -357
- package/api/rpc/data_layer/index.js +224 -224
- package/api/rpc/farmer/index.d.ts +183 -183
- package/api/rpc/farmer/index.js +104 -104
- package/api/rpc/full_node/index.d.ts +456 -456
- package/api/rpc/full_node/index.js +274 -274
- package/api/rpc/harvester/index.d.ts +87 -87
- package/api/rpc/harvester/index.js +69 -69
- package/api/rpc/index.d.ts +15 -15
- package/api/rpc/index.js +234 -234
- package/api/rpc/pool/index.d.ts +32 -32
- package/api/rpc/pool/index.js +48 -48
- package/api/rpc/wallet/index.d.ts +1788 -1788
- package/api/rpc/wallet/index.js +886 -886
- package/api/types.d.ts +28 -28
- package/api/types.js +5 -5
- package/api/ws/chia_plots_create/index.d.ts +17 -17
- package/api/ws/chia_plots_create/index.js +38 -38
- package/api/ws/crawler/index.d.ts +28 -28
- package/api/ws/crawler/index.js +40 -40
- package/api/ws/daemon/index.d.ts +608 -608
- package/api/ws/daemon/index.js +282 -282
- package/api/ws/farmer/index.d.ts +93 -93
- package/api/ws/farmer/index.js +159 -159
- package/api/ws/full_node/index.d.ts +79 -79
- package/api/ws/full_node/index.js +78 -78
- package/api/ws/harvester/index.d.ts +47 -47
- package/api/ws/harvester/index.js +91 -91
- package/api/ws/index.d.ts +17 -17
- package/api/ws/index.js +94 -94
- package/api/ws/timelord/index.d.ts +43 -43
- package/api/ws/timelord/index.js +66 -66
- package/api/ws/wallet/index.d.ts +69 -69
- package/api/ws/wallet/index.js +108 -108
- package/bin/cli.d.ts +2 -2
- package/bin/cli.js +81 -81
- package/config/index.d.ts +39 -39
- package/config/index.js +95 -95
- package/daemon/connection.d.ts +6 -6
- package/daemon/connection.js +49 -49
- package/daemon/index.d.ts +61 -61
- package/daemon/index.js +292 -292
- package/index.d.ts +4 -4
- package/index.js +16 -16
- package/logger.d.ts +22 -22
- package/logger.js +77 -77
- package/package.json +1 -1
- package/rpc/index.d.ts +59 -57
- package/rpc/index.js +262 -255
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.take_offer_command = exports.make_offer = exports.make_offer_command = exports.add_missing_files = exports.add_missing_files_command = exports.get_root_history = exports.get_root_history_command = exports.get_kv_diff = exports.get_kv_diff_command = exports.subscriptions = exports.subscriptions_command = exports.remove_subscriptions = exports.remove_subscriptions_command = exports.get_mirrors = exports.get_mirrors_command = exports.delete_mirror = exports.delete_mirror_command = exports.add_mirror = exports.add_mirror_command = exports.unsubscribe = exports.unsubscribe_command = exports.subscribe = exports.subscribe_command = exports.insert = exports.insert_command = exports.delete_key = exports.delete_key_command = exports.get_roots = exports.get_roots_command = exports.get_local_root = exports.get_local_root_command = exports.get_root = exports.get_root_command = exports.get_ancestors = exports.get_ancestors_command = exports.get_keys_values = exports.get_keys_values_command = exports.get_keys = exports.get_keys_command = exports.get_value = exports.get_value_command = exports.batch_update = exports.batch_update_command = exports.get_owned_stores = exports.get_owned_stores_command = exports.create_data_store = exports.create_data_store_command = exports.wallet_log_in = exports.wallet_log_in_command = exports.chia_data_layer_service = void 0;
|
|
13
|
-
exports.clear_pending_roots = exports.clear_pending_roots_command = exports.check_plugins = exports.check_plugins_command = exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = exports.verify_offer_command = exports.take_offer = void 0;
|
|
14
|
-
exports.chia_data_layer_service = "chia_data_layer";
|
|
15
|
-
exports.wallet_log_in_command = "wallet_log_in";
|
|
16
|
-
function wallet_log_in(agent, params) {
|
|
17
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.wallet_log_in_command, params);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
exports.wallet_log_in = wallet_log_in;
|
|
22
|
-
exports.create_data_store_command = "create_data_store";
|
|
23
|
-
function create_data_store(agent, params) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.create_data_store_command, params);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
exports.create_data_store = create_data_store;
|
|
29
|
-
exports.get_owned_stores_command = "get_owned_stores";
|
|
30
|
-
function get_owned_stores(agent) {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_owned_stores_command);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
exports.get_owned_stores = get_owned_stores;
|
|
36
|
-
exports.batch_update_command = "batch_update";
|
|
37
|
-
function batch_update(agent, params) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.batch_update_command, params);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
exports.batch_update = batch_update;
|
|
43
|
-
exports.get_value_command = "get_value";
|
|
44
|
-
function get_value(agent, params) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_value_command, params);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
exports.get_value = get_value;
|
|
50
|
-
exports.get_keys_command = "get_keys";
|
|
51
|
-
function get_keys(agent, params) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_command, params);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
exports.get_keys = get_keys;
|
|
57
|
-
exports.get_keys_values_command = "get_keys_values";
|
|
58
|
-
function get_keys_values(agent, params) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_values_command, params);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
exports.get_keys_values = get_keys_values;
|
|
64
|
-
exports.get_ancestors_command = "get_ancestors";
|
|
65
|
-
function get_ancestors(agent, params) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_ancestors_command, params);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
exports.get_ancestors = get_ancestors;
|
|
71
|
-
exports.get_root_command = "get_root";
|
|
72
|
-
function get_root(agent, params) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_command, params);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
exports.get_root = get_root;
|
|
78
|
-
exports.get_local_root_command = "get_local_root";
|
|
79
|
-
function get_local_root(agent, params) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_local_root_command, params);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
exports.get_local_root = get_local_root;
|
|
85
|
-
exports.get_roots_command = "get_roots";
|
|
86
|
-
function get_roots(agent, params) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_roots_command, params);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
exports.get_roots = get_roots;
|
|
92
|
-
exports.delete_key_command = "delete_key";
|
|
93
|
-
function delete_key(agent, params) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_key_command, params);
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
exports.delete_key = delete_key;
|
|
99
|
-
exports.insert_command = "insert";
|
|
100
|
-
function insert(agent, params) {
|
|
101
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.insert_command, params);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
exports.insert = insert;
|
|
106
|
-
exports.subscribe_command = "subscribe";
|
|
107
|
-
function subscribe(agent, params) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.subscribe_command, params);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
exports.subscribe = subscribe;
|
|
113
|
-
exports.unsubscribe_command = "unsubscribe";
|
|
114
|
-
function unsubscribe(agent, params) {
|
|
115
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.unsubscribe_command, params);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
exports.unsubscribe = unsubscribe;
|
|
120
|
-
exports.add_mirror_command = "add_mirror";
|
|
121
|
-
function add_mirror(agent, params) {
|
|
122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.add_mirror_command, params);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
exports.add_mirror = add_mirror;
|
|
127
|
-
exports.delete_mirror_command = "delete_mirror";
|
|
128
|
-
function delete_mirror(agent, params) {
|
|
129
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_mirror_command, params);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
exports.delete_mirror = delete_mirror;
|
|
134
|
-
exports.get_mirrors_command = "get_mirrors";
|
|
135
|
-
function get_mirrors(agent, params) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_mirrors_command, params);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
exports.get_mirrors = get_mirrors;
|
|
141
|
-
exports.remove_subscriptions_command = "remove_subscriptions";
|
|
142
|
-
function remove_subscriptions(agent, params) {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.remove_subscriptions_command, params);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
exports.remove_subscriptions = remove_subscriptions;
|
|
148
|
-
exports.subscriptions_command = "subscriptions";
|
|
149
|
-
function subscriptions(agent) {
|
|
150
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.subscriptions_command);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
exports.subscriptions = subscriptions;
|
|
155
|
-
exports.get_kv_diff_command = "get_kv_diff";
|
|
156
|
-
function get_kv_diff(agent, params) {
|
|
157
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_kv_diff_command, params);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
exports.get_kv_diff = get_kv_diff;
|
|
162
|
-
exports.get_root_history_command = "get_root_history";
|
|
163
|
-
function get_root_history(agent, params) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_history_command, params);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
exports.get_root_history = get_root_history;
|
|
169
|
-
exports.add_missing_files_command = "add_missing_files";
|
|
170
|
-
function add_missing_files(agent, params) {
|
|
171
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.add_missing_files_command, params);
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
exports.add_missing_files = add_missing_files;
|
|
176
|
-
exports.make_offer_command = "make_offer";
|
|
177
|
-
function make_offer(agent, params) {
|
|
178
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.make_offer_command, params);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
exports.make_offer = make_offer;
|
|
183
|
-
exports.take_offer_command = "take_offer";
|
|
184
|
-
function take_offer(agent, params) {
|
|
185
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.take_offer_command, params);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
exports.take_offer = take_offer;
|
|
190
|
-
exports.verify_offer_command = "verify_offer";
|
|
191
|
-
function verify_offer(agent, params) {
|
|
192
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.verify_offer_command, params);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
exports.verify_offer = verify_offer;
|
|
197
|
-
exports.cancel_offer_command = "cancel_offer";
|
|
198
|
-
function cancel_offer(agent, params) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.cancel_offer_command, params);
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
exports.cancel_offer = cancel_offer;
|
|
204
|
-
exports.get_sync_status_command = "get_sync_status";
|
|
205
|
-
function get_sync_status(agent, params) {
|
|
206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.get_sync_status_command, params);
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
exports.get_sync_status = get_sync_status;
|
|
211
|
-
exports.check_plugins_command = "check_plugins";
|
|
212
|
-
function check_plugins(agent) {
|
|
213
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.check_plugins_command);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
exports.check_plugins = check_plugins;
|
|
218
|
-
exports.clear_pending_roots_command = "clear_pending_roots";
|
|
219
|
-
function clear_pending_roots(agent, params) {
|
|
220
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
-
return agent.sendMessage(exports.chia_data_layer_service, exports.clear_pending_roots_command, params);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
exports.clear_pending_roots = clear_pending_roots;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.take_offer_command = exports.make_offer = exports.make_offer_command = exports.add_missing_files = exports.add_missing_files_command = exports.get_root_history = exports.get_root_history_command = exports.get_kv_diff = exports.get_kv_diff_command = exports.subscriptions = exports.subscriptions_command = exports.remove_subscriptions = exports.remove_subscriptions_command = exports.get_mirrors = exports.get_mirrors_command = exports.delete_mirror = exports.delete_mirror_command = exports.add_mirror = exports.add_mirror_command = exports.unsubscribe = exports.unsubscribe_command = exports.subscribe = exports.subscribe_command = exports.insert = exports.insert_command = exports.delete_key = exports.delete_key_command = exports.get_roots = exports.get_roots_command = exports.get_local_root = exports.get_local_root_command = exports.get_root = exports.get_root_command = exports.get_ancestors = exports.get_ancestors_command = exports.get_keys_values = exports.get_keys_values_command = exports.get_keys = exports.get_keys_command = exports.get_value = exports.get_value_command = exports.batch_update = exports.batch_update_command = exports.get_owned_stores = exports.get_owned_stores_command = exports.create_data_store = exports.create_data_store_command = exports.wallet_log_in = exports.wallet_log_in_command = exports.chia_data_layer_service = void 0;
|
|
13
|
+
exports.clear_pending_roots = exports.clear_pending_roots_command = exports.check_plugins = exports.check_plugins_command = exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = exports.verify_offer_command = exports.take_offer = void 0;
|
|
14
|
+
exports.chia_data_layer_service = "chia_data_layer";
|
|
15
|
+
exports.wallet_log_in_command = "wallet_log_in";
|
|
16
|
+
function wallet_log_in(agent, params) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.wallet_log_in_command, params);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
exports.wallet_log_in = wallet_log_in;
|
|
22
|
+
exports.create_data_store_command = "create_data_store";
|
|
23
|
+
function create_data_store(agent, params) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.create_data_store_command, params);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.create_data_store = create_data_store;
|
|
29
|
+
exports.get_owned_stores_command = "get_owned_stores";
|
|
30
|
+
function get_owned_stores(agent) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_owned_stores_command);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.get_owned_stores = get_owned_stores;
|
|
36
|
+
exports.batch_update_command = "batch_update";
|
|
37
|
+
function batch_update(agent, params) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.batch_update_command, params);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.batch_update = batch_update;
|
|
43
|
+
exports.get_value_command = "get_value";
|
|
44
|
+
function get_value(agent, params) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_value_command, params);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
exports.get_value = get_value;
|
|
50
|
+
exports.get_keys_command = "get_keys";
|
|
51
|
+
function get_keys(agent, params) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_command, params);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.get_keys = get_keys;
|
|
57
|
+
exports.get_keys_values_command = "get_keys_values";
|
|
58
|
+
function get_keys_values(agent, params) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_keys_values_command, params);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
exports.get_keys_values = get_keys_values;
|
|
64
|
+
exports.get_ancestors_command = "get_ancestors";
|
|
65
|
+
function get_ancestors(agent, params) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_ancestors_command, params);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
exports.get_ancestors = get_ancestors;
|
|
71
|
+
exports.get_root_command = "get_root";
|
|
72
|
+
function get_root(agent, params) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_command, params);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
exports.get_root = get_root;
|
|
78
|
+
exports.get_local_root_command = "get_local_root";
|
|
79
|
+
function get_local_root(agent, params) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_local_root_command, params);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
exports.get_local_root = get_local_root;
|
|
85
|
+
exports.get_roots_command = "get_roots";
|
|
86
|
+
function get_roots(agent, params) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_roots_command, params);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
exports.get_roots = get_roots;
|
|
92
|
+
exports.delete_key_command = "delete_key";
|
|
93
|
+
function delete_key(agent, params) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_key_command, params);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
exports.delete_key = delete_key;
|
|
99
|
+
exports.insert_command = "insert";
|
|
100
|
+
function insert(agent, params) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.insert_command, params);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
exports.insert = insert;
|
|
106
|
+
exports.subscribe_command = "subscribe";
|
|
107
|
+
function subscribe(agent, params) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.subscribe_command, params);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
exports.subscribe = subscribe;
|
|
113
|
+
exports.unsubscribe_command = "unsubscribe";
|
|
114
|
+
function unsubscribe(agent, params) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.unsubscribe_command, params);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
exports.unsubscribe = unsubscribe;
|
|
120
|
+
exports.add_mirror_command = "add_mirror";
|
|
121
|
+
function add_mirror(agent, params) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.add_mirror_command, params);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
exports.add_mirror = add_mirror;
|
|
127
|
+
exports.delete_mirror_command = "delete_mirror";
|
|
128
|
+
function delete_mirror(agent, params) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.delete_mirror_command, params);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
exports.delete_mirror = delete_mirror;
|
|
134
|
+
exports.get_mirrors_command = "get_mirrors";
|
|
135
|
+
function get_mirrors(agent, params) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_mirrors_command, params);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
exports.get_mirrors = get_mirrors;
|
|
141
|
+
exports.remove_subscriptions_command = "remove_subscriptions";
|
|
142
|
+
function remove_subscriptions(agent, params) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.remove_subscriptions_command, params);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
exports.remove_subscriptions = remove_subscriptions;
|
|
148
|
+
exports.subscriptions_command = "subscriptions";
|
|
149
|
+
function subscriptions(agent) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.subscriptions_command);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
exports.subscriptions = subscriptions;
|
|
155
|
+
exports.get_kv_diff_command = "get_kv_diff";
|
|
156
|
+
function get_kv_diff(agent, params) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_kv_diff_command, params);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
exports.get_kv_diff = get_kv_diff;
|
|
162
|
+
exports.get_root_history_command = "get_root_history";
|
|
163
|
+
function get_root_history(agent, params) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_root_history_command, params);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
exports.get_root_history = get_root_history;
|
|
169
|
+
exports.add_missing_files_command = "add_missing_files";
|
|
170
|
+
function add_missing_files(agent, params) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.add_missing_files_command, params);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
exports.add_missing_files = add_missing_files;
|
|
176
|
+
exports.make_offer_command = "make_offer";
|
|
177
|
+
function make_offer(agent, params) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.make_offer_command, params);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
exports.make_offer = make_offer;
|
|
183
|
+
exports.take_offer_command = "take_offer";
|
|
184
|
+
function take_offer(agent, params) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.take_offer_command, params);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
exports.take_offer = take_offer;
|
|
190
|
+
exports.verify_offer_command = "verify_offer";
|
|
191
|
+
function verify_offer(agent, params) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.verify_offer_command, params);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
exports.verify_offer = verify_offer;
|
|
197
|
+
exports.cancel_offer_command = "cancel_offer";
|
|
198
|
+
function cancel_offer(agent, params) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.cancel_offer_command, params);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
exports.cancel_offer = cancel_offer;
|
|
204
|
+
exports.get_sync_status_command = "get_sync_status";
|
|
205
|
+
function get_sync_status(agent, params) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.get_sync_status_command, params);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
exports.get_sync_status = get_sync_status;
|
|
211
|
+
exports.check_plugins_command = "check_plugins";
|
|
212
|
+
function check_plugins(agent) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.check_plugins_command);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
exports.check_plugins = check_plugins;
|
|
218
|
+
exports.clear_pending_roots_command = "clear_pending_roots";
|
|
219
|
+
function clear_pending_roots(agent, params) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.clear_pending_roots_command, params);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
exports.clear_pending_roots = clear_pending_roots;
|