chia-agent 9.1.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +75 -0
- package/README.md +3 -3
- package/api/chia/types/_python_types_.d.ts +1 -0
- package/api/chia/types/clvm_cost.d.ts +2 -0
- package/api/chia/types/clvm_cost.js +2 -0
- package/api/chia/types/mempool_item.d.ts +2 -3
- package/api/chia/util/keychain.d.ts +12 -0
- package/api/chia/util/keychain.js +2 -0
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -0
- package/api/chia/wallet/util/wallet_types.d.ts +0 -1
- package/api/chia/wallet/util/wallet_types.js +1 -1
- package/api/rpc/common/index.d.ts +3 -2
- package/api/rpc/data_layer/index.d.ts +1 -0
- package/api/rpc/full_node/index.d.ts +20 -0
- package/api/rpc/full_node/index.js +8 -1
- package/api/rpc/index.d.ts +6 -6
- package/api/rpc/index.js +13 -4
- package/api/rpc/wallet/index.d.ts +130 -4
- package/api/rpc/wallet/index.js +60 -4
- package/api/ws/daemon/index.d.ts +102 -3
- package/api/ws/daemon/index.js +37 -2
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +15 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [9.2.0]
|
|
4
|
+
### Minor breaking change
|
|
5
|
+
- `add_private_key` daemon WebSocket API now deprecated `passphrase` request param
|
|
6
|
+
and added `label` param.
|
|
7
|
+
- `program` property was removed from `MempoolItem` class.
|
|
8
|
+
See [MempoolItem](./src/api/chia/types/mempool_item.ts) for more detail.
|
|
9
|
+
This impacts on API response below:
|
|
10
|
+
- [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#get_all_mempool_itemsagent)
|
|
11
|
+
of FullNode RPC API
|
|
12
|
+
- [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#get_mempool_item_by_tx_idagent-params)
|
|
13
|
+
of FullNode RPC API
|
|
14
|
+
### Removed
|
|
15
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
16
|
+
(Code will remain awhile on chia-agent for backward compatibility. Only document is removed for now.)
|
|
17
|
+
- Removed `rl_set_user_info`
|
|
18
|
+
- Removed `send_clawback_transaction`
|
|
19
|
+
- Removed `add_rate_limited_funds`
|
|
20
|
+
- Removed RL Wallet type from `create_new_wallet` API
|
|
21
|
+
- Removed `RATE_LIMITED` from [`WalletType`](./src/api/chia/wallet/util/wallet_types.ts)
|
|
22
|
+
### Added
|
|
23
|
+
- [New Daemon WebSocket API](./src/api/ws/daemon)
|
|
24
|
+
- [`get_key`](./src/api/ws/daemon/README.md#get_keydaemon-params)
|
|
25
|
+
- [`get_keys`](./src/api/ws/daemon/README.md#get_keysdaemon-params)
|
|
26
|
+
- [`set_label`](./src/api/ws/daemon/README.md#set_labeldaemon-params)
|
|
27
|
+
- [`delete_label`](./src/api/ws/daemon/README.md#delete_labeldaemon-params)
|
|
28
|
+
- [`running_services`](./src/api/ws/daemon/README.md#running_servicesdaemon)
|
|
29
|
+
- Added support for Bladebit2 plotting option
|
|
30
|
+
- [New FullNode RPC API](./src/api/rpc/full_node)
|
|
31
|
+
- [`get_fee_estimate`](./src/api/rpc/full_node/README.md#get_fee_estimateagent-params)
|
|
32
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
33
|
+
- [`push_transactions`](./src/api/rpc/wallet/README.md#push_transactionsagent-params)
|
|
34
|
+
- [`get_notifications`](./src/api/rpc/wallet/README.md#get_notificationsagent-params)
|
|
35
|
+
- [`delete_notifications`](./src/api/rpc/wallet/README.md#delete_notificationsagent-params)
|
|
36
|
+
- [`send_notification`](./src/api/rpc/wallet/README.md#send_notificationagent-params)
|
|
37
|
+
- [`sign_message_by_address`](./src/api/rpc/wallet/README.md#sign_message_by_addressagent-params)
|
|
38
|
+
- [`sign_message_by_id`](./src/api/rpc/wallet/README.md#sign_message_by_idagent-params)
|
|
39
|
+
- [`nft_calculate_royalties`](./src/api/rpc/wallet/README.md#nft_calculate_royaltiesagent-params)
|
|
40
|
+
- [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
|
|
41
|
+
### Changed
|
|
42
|
+
- [Daemon WebSocket API](./src/api/rpc/wallet)
|
|
43
|
+
- [`add_private_key`](./src/api/ws/daemon/README.md#add_private_keydaemon-params)
|
|
44
|
+
- Removed `passphrase` request parameter
|
|
45
|
+
- Added `label` request parameter
|
|
46
|
+
- [DataLayer RPC API](./src/api/rpc/data_layer)
|
|
47
|
+
- [`get_value`](./src/api/rpc/data_layer/README.md#get_valueagent-params)
|
|
48
|
+
- Added `root_hash` request parameter
|
|
49
|
+
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
50
|
+
- `program` property was removed from `MempoolItem` class.
|
|
51
|
+
See [MempoolItem](./src/api/chia/types/mempool_item.ts) for more detail.
|
|
52
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
53
|
+
- [`nft_get_nfts`](./src/api/rpc/wallet/README.md#nft_get_nftsagent-params)
|
|
54
|
+
- Made `wallet_id` optional request parameter
|
|
55
|
+
- Added `start_index`, `num`, `ignore_size_limit` request parameters
|
|
56
|
+
- [`nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
|
|
57
|
+
- Added `ignore_size_limit` request parameters
|
|
58
|
+
- [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
|
|
59
|
+
- Removed error response
|
|
60
|
+
- [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
|
|
61
|
+
- Added `signed_txs` to response
|
|
62
|
+
- [Common RPC API](./src/api/rpc/common)
|
|
63
|
+
- [`healthz`](./src/api/rpc/common/README.md#healthzagent)
|
|
64
|
+
- Changed `success` type to `True` from `"true"`
|
|
65
|
+
- `p2_address`, `minter_did`, `off_chain_metadata` were added to `NFTInfo` class.
|
|
66
|
+
This impacts on API response below:
|
|
67
|
+
- [`nft_get_nfts`](./src/api/rpc/wallet/README.md#nft_get_nftsagent-params)
|
|
68
|
+
- [`nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
|
|
69
|
+
### Fixed
|
|
70
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
71
|
+
- [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
|
|
72
|
+
- Fixed an issue where `did_id` request param was described to be required
|
|
73
|
+
- [Common RPC API](./src/api/rpc/common)
|
|
74
|
+
- [`get_routes`](./src/api/rpc/common/README.md#get_routesagent)
|
|
75
|
+
- Added missing `success` response parameter.
|
|
76
|
+
|
|
3
77
|
## [9.1.0]
|
|
4
78
|
### Added
|
|
5
79
|
- Added Common RPC API Error format description and type
|
|
@@ -632,6 +706,7 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
632
706
|
Initial release.
|
|
633
707
|
|
|
634
708
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
709
|
+
[9.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.1.0...v9.2.0
|
|
635
710
|
[9.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.0.1...v9.1.0
|
|
636
711
|
[9.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v9.0.0...v9.0.1
|
|
637
712
|
[9.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v8.0.0...v9.0.0
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/js/chia-agent) [](https://opensource.org/licenses/MIT)
|
|
3
3
|
|
|
4
4
|
chia rpc/websocket client library for NodeJS.
|
|
5
|
-
Supports all RPC/Websocket API available at `chia 1.6.
|
|
5
|
+
Supports all RPC/Websocket API available at `chia 1.6.1`.
|
|
6
6
|
\(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
|
|
7
7
|
|
|
8
8
|
you can develop your own nodejs script with `chia-agent` to:
|
|
@@ -22,8 +22,8 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/
|
|
25
|
+
- [`0ab3cd76661eae9623ab47af6a88a2af76f91ccb`](https://github.com/Chia-Network/chia-blockchain/tree/0ab3cd76661eae9623ab47af6a88a2af76f91ccb) of [chia-blockchain 1.6.1](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/0ab3cd76661eae9623ab47af6a88a2af76f91ccb...main)
|
|
27
27
|
- [`495f71e3acc93b18f10cfa9aac6a5b68cc7064c2`](https://github.com/Chia-Network/pool-reference/tree/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
28
|
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2...main)
|
|
29
29
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SpendBundle } from "./spend_bundle";
|
|
2
|
-
import { SerializedProgram } from "./blockchain_format/program";
|
|
3
2
|
import { Coin } from "./blockchain_format/coin";
|
|
4
3
|
import { bytes32 } from "./blockchain_format/sized_bytes";
|
|
5
4
|
import { NPCResult } from "../consensus/cost_calculator";
|
|
6
|
-
import { uint64 } from "./_python_types_";
|
|
5
|
+
import { uint32, uint64 } from "./_python_types_";
|
|
7
6
|
export declare type MempoolItem = {
|
|
8
7
|
spend_bundle: SpendBundle;
|
|
9
8
|
fee: uint64;
|
|
@@ -12,5 +11,5 @@ export declare type MempoolItem = {
|
|
|
12
11
|
spend_bundle_name: bytes32;
|
|
13
12
|
additions: Coin[];
|
|
14
13
|
removals: Coin[];
|
|
15
|
-
|
|
14
|
+
height_added_to_mempool: uint32;
|
|
16
15
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { bytes, G1Element, PrivateKey, Optional, str, uint32 } from "../types/_python_types_";
|
|
2
|
+
export declare type KeyDataSecrets = {
|
|
3
|
+
mnemonic: str[];
|
|
4
|
+
entropy: bytes;
|
|
5
|
+
private_key: PrivateKey;
|
|
6
|
+
};
|
|
7
|
+
export declare type KeyData = {
|
|
8
|
+
fingerprint: uint32;
|
|
9
|
+
public_key: G1Element;
|
|
10
|
+
label: Optional<str>;
|
|
11
|
+
secrets: Optional<KeyDataSecrets>;
|
|
12
|
+
};
|
|
@@ -18,6 +18,9 @@ export declare type NFTInfo = {
|
|
|
18
18
|
chain_info: str;
|
|
19
19
|
mint_height: uint32;
|
|
20
20
|
supports_did: bool;
|
|
21
|
+
p2_address: bytes32;
|
|
21
22
|
pending_transaction: bool;
|
|
23
|
+
minter_did: Optional<bytes32>;
|
|
22
24
|
launcher_puzhash: bytes32;
|
|
25
|
+
off_chain_metadata: Optional<str>;
|
|
23
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { str, uint16 } from "../../chia/types/_python_types_";
|
|
1
|
+
import { str, True, uint16 } from "../../chia/types/_python_types_";
|
|
2
2
|
import { TRPCAgent } from "../../../rpc/index";
|
|
3
3
|
import { TConnectionGeneral } from "../../types";
|
|
4
4
|
import { TConnectionFullNode } from "../../ws/full_node/index";
|
|
@@ -35,12 +35,13 @@ export declare function stop_node(agent: TRPCAgent): Promise<TStopNodeResponse |
|
|
|
35
35
|
export declare const get_routes_command = "get_routes";
|
|
36
36
|
export declare type get_routes_command = typeof get_routes_command;
|
|
37
37
|
export declare type TGetRoutesResponse = {
|
|
38
|
+
success: True;
|
|
38
39
|
routes: str[];
|
|
39
40
|
};
|
|
40
41
|
export declare function get_routes(agent: TRPCAgent): Promise<TGetRoutesResponse | import("../../../rpc/index").ErrorResponse>;
|
|
41
42
|
export declare const healthz_command = "healthz";
|
|
42
43
|
export declare type healthz_command = typeof healthz_command;
|
|
43
44
|
export declare type THealthzResponse = {
|
|
44
|
-
success:
|
|
45
|
+
success: True;
|
|
45
46
|
};
|
|
46
47
|
export declare function healthz(agent: TRPCAgent): Promise<THealthzResponse | import("../../../rpc/index").ErrorResponse>;
|
|
@@ -10,6 +10,7 @@ import { TRPCAgent } from "../../../rpc";
|
|
|
10
10
|
import { EndOfSubSlotBundle } from "../../chia/types/end_of_slot_bundle";
|
|
11
11
|
import { SignagePoint } from "../../chia/full_node/signage_point";
|
|
12
12
|
import { CoinSpend } from "../../chia/types/coin_spend";
|
|
13
|
+
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
13
14
|
export declare const chia_full_node_service = "chia_full_node";
|
|
14
15
|
export declare type chia_full_node_service = typeof chia_full_node_service;
|
|
15
16
|
export declare const get_blockchain_state_command = "get_blockchain_state";
|
|
@@ -279,3 +280,22 @@ export declare type TGetMempoolItemByTxIdResponse = {
|
|
|
279
280
|
mempool_item: MempoolItem;
|
|
280
281
|
};
|
|
281
282
|
export declare function get_mempool_item_by_tx_id(agent: TRPCAgent, data: TGetMempoolItemByTxIdRequest): Promise<TGetMempoolItemByTxIdResponse | import("../../../rpc").ErrorResponse>;
|
|
283
|
+
export declare const get_fee_estimate_command = "get_fee_estimate";
|
|
284
|
+
export declare type get_fee_estimate_command = typeof get_fee_estimate_command;
|
|
285
|
+
export declare type TGetFeeEstimateRequest = {
|
|
286
|
+
spend_bundle?: SpendBundle;
|
|
287
|
+
cost?: uint64;
|
|
288
|
+
target_times: int[];
|
|
289
|
+
};
|
|
290
|
+
export declare type TGetFeeEstimateResponse = {
|
|
291
|
+
estimates: uint64[];
|
|
292
|
+
target_times: int[];
|
|
293
|
+
current_fee_rate: uint64;
|
|
294
|
+
mempool_size: CLVMCost;
|
|
295
|
+
mempool_max_size: CLVMCost;
|
|
296
|
+
full_node_synced: bool;
|
|
297
|
+
peak_height: uint32;
|
|
298
|
+
last_peak_timestamp: uint64;
|
|
299
|
+
node_time_utc: int;
|
|
300
|
+
};
|
|
301
|
+
export declare function get_fee_estimate(agent: TRPCAgent, data: TGetFeeEstimateRequest): Promise<TGetFeeEstimateResponse | import("../../../rpc").ErrorResponse>;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_hint = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.get_network_info_of_full_node = exports.get_network_info_command_of_full_node = exports.get_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_additions_and_removals = exports.get_additions_and_removals_command = exports.get_network_space = exports.get_network_space_command = exports.get_unfinished_block_headers = exports.get_unfinished_block_headers_command = exports.get_block_spends = exports.get_block_spends_command = exports.get_block_records = exports.get_block_records_command = exports.get_block_record = exports.get_block_record_command = exports.get_block_record_by_height = exports.get_block_record_by_height_command = exports.get_block_count_metrics = exports.get_block_count_metrics_command = exports.get_blocks = exports.get_blocks_command = exports.get_block = exports.get_block_command = exports.get_blockchain_state = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
|
|
13
|
-
exports.get_mempool_item_by_tx_id = void 0;
|
|
13
|
+
exports.get_fee_estimate = exports.get_fee_estimate_command = exports.get_mempool_item_by_tx_id = void 0;
|
|
14
14
|
exports.chia_full_node_service = "chia_full_node";
|
|
15
15
|
exports.get_blockchain_state_command = "get_blockchain_state";
|
|
16
16
|
function get_blockchain_state(agent) {
|
|
@@ -187,3 +187,10 @@ function get_mempool_item_by_tx_id(agent, data) {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
exports.get_mempool_item_by_tx_id = get_mempool_item_by_tx_id;
|
|
190
|
+
exports.get_fee_estimate_command = "get_fee_estimate";
|
|
191
|
+
function get_fee_estimate(agent, data) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_fee_estimate_command, data);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
exports.get_fee_estimate = get_fee_estimate;
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { TGetRewardTargetResponse, TGetSignagePointResponse, TGetSignagePointsResponse, TSetRewardTargetResponse, TGetHarvestersResponse, TGetHarvestersSummaryResponse, TGetHarvesterPlotsValidResponse, TGetHarvesterPlotsInvalidResponse, TGetHarvesterPlotsKeysMissingResponse, TGetHarvesterPlotsDuplicatesResponse, TSetPayoutInstructionsResponse, TGetPoolStateResponse, TGetPoolLinkResponse } from "./farmer/index";
|
|
2
2
|
export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateRequest, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
|
|
3
|
-
import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockSpendsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByNamesResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetCoinRecordsByParentIdsResponse, TGetCoinRecordsByHintResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse, TGetPuzzleAndSolutionResponse } from "./full_node/index";
|
|
4
|
-
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, } from "./full_node/index";
|
|
3
|
+
import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockSpendsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByNamesResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetCoinRecordsByParentIdsResponse, TGetCoinRecordsByHintResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse, TGetPuzzleAndSolutionResponse, TGetFeeEstimateResponse } from "./full_node/index";
|
|
4
|
+
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, } from "./full_node/index";
|
|
5
5
|
import type { TAddPlotDirectoryResponse, TDeletePlotResponse, TGetPlotDirectoriesResponse, TGetPlotsResponse, TRefreshPlotsResponse, TRemovePlotDirectoryResponse } from "./harvester/index";
|
|
6
6
|
export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
|
|
7
|
-
import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, TCancelOffersResponse, TCatGetAssetIdResponse, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameResponse, TCatSetNameResponse, TCatSpendResponse, TCheckOfferValidityResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsResponse, TGetCurrentDerivationIndexResponse, TExtendDerivationIndexResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidSetWalletNameResponse, TDidGetWalletNameResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidTransferDidResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidGetCurrentCoinInfoResponse, TDidGetMetadataResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, TDidUpdateMetadataResponse, TNftMintNftResponse, TNftGetNftsResponse, TNftSetNftDidResponse, TNftGetByDidResponse, TNftGetWalletDidResponse, TNftGetWalletsWithDidsResponse, TNftSetNftStatusResponse, TNftTransferNftResponse, TNftGetInfoResponse, TNftAddUriResponse, TFarmBlockResponse, TGenerateMnemonicResponse, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountResponse, TGetHeightInfoResponse, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetNetworkInfoResponseOfWallet, TGetNextAddressResponse, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryResponse, TGetPrivateKeyResponse, TGetPublicKeysResponse, TGetSyncStatusResponse, TGetTransactionCountResponse, TGetTransactionResponse, TGetTransactionsResponse, TGetWalletBalanceResponse, TGetWalletsResponse, TLoginResponse, TPushTxResponse as TPushTxResponseOfWallet, TPwAbsorbRewardsResponse, TPwStatusResponse, TRlSetUserInfoResponse, TSendClawbackTransactionResponse, TSendTransactionResponse, TSendTransactionMultiResponse, TTakeOfferResponse, TPwJoinPoolResponse, TPwSelfPoolResponse, TCreateNewDlResponse, TDlTrackNewResponse, TDlStopTrackingResponse, TDlLatestSingletonResponse, TDlSingletonsByRootResponse, TDlUpdateRootResponse, TDlUpdateMultipleResponse, TDlHistoryResponse, TDlOwnedSingletonsResponse, TDlGetMirrorsResponse, TDlNewMirrorResponse, TDlDeleteMirrorResponse } from "./wallet/index";
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
7
|
+
import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, TCancelOffersResponse, TCatGetAssetIdResponse, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameResponse, TCatSetNameResponse, TCatSpendResponse, TCheckOfferValidityResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsResponse, TGetCurrentDerivationIndexResponse, TExtendDerivationIndexResponse, TGetNotificationsResponse, TDeleteNotificationsResponse, TSendNotificationResponse, TSignMessageByAddressResponse, TSignMessageByIdResponse, TNftCalculateRoyaltiesResponse, TNftMintBulkResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidSetWalletNameResponse, TDidGetWalletNameResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidTransferDidResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidGetCurrentCoinInfoResponse, TDidGetMetadataResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, TDidUpdateMetadataResponse, TNftMintNftResponse, TNftGetNftsResponse, TNftSetNftDidResponse, TNftGetByDidResponse, TNftGetWalletDidResponse, TNftGetWalletsWithDidsResponse, TNftSetNftStatusResponse, TNftTransferNftResponse, TNftGetInfoResponse, TNftAddUriResponse, TFarmBlockResponse, TGenerateMnemonicResponse, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountResponse, TGetHeightInfoResponse, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetNetworkInfoResponseOfWallet, TGetNextAddressResponse, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryResponse, TGetPrivateKeyResponse, TGetPublicKeysResponse, TGetSyncStatusResponse, TGetTransactionCountResponse, TGetTransactionResponse, TGetTransactionsResponse, TGetWalletBalanceResponse, TGetWalletsResponse, TLoginResponse, TPushTxResponse as TPushTxResponseOfWallet, TPushTransactionsResponse, TPwAbsorbRewardsResponse, TPwStatusResponse, TRlSetUserInfoResponse, TSendClawbackTransactionResponse, TSendTransactionResponse, TSendTransactionMultiResponse, TTakeOfferResponse, TPwJoinPoolResponse, TPwSelfPoolResponse, TCreateNewDlResponse, TDlTrackNewResponse, TDlStopTrackingResponse, TDlLatestSingletonResponse, TDlSingletonsByRootResponse, TDlUpdateRootResponse, TDlUpdateMultipleResponse, TDlHistoryResponse, TDlOwnedSingletonsResponse, TDlGetMirrorsResponse, TDlNewMirrorResponse, TDlDeleteMirrorResponse } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
9
9
|
import { TCreateDataStoreResponse, TGetOwnedStoresResponse, TBatchUpdateResponse, TGetValueResponse, TGetKeysResponse, TGetKeysValuesResponse, TGetAncestorsResponse, TGetRootResponse, TGetLocalRootResponse, TGetRootsResponse, TDeleteKeyResponse as TDeleteKeyResponseDL, TInsertResponse, TSubscribeResponse, TUnsubscribeResponse, TAddMirrorResponse, TDeleteMirrorResponse, TGetMirrorsResponse, TRemoveSubscriptionsResponse, TSubscriptionsResponse, TGetKvDiffResponse, TGetRootHistoryResponse, TAddMissingFilesResponse, TMakeOfferResponse, TTakeOfferResponse as TTakeOfferResponseDL, TVerifyOfferResponse, TCancelOfferResponse as TCancelOfferResponseDL } from "./data_layer/index";
|
|
10
10
|
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, } from "./data_layer/index";
|
|
11
11
|
import type { TGetIpsAfterTimestampResponse, TGetPeerCountsResponse } from "./crawler/index";
|
|
@@ -13,9 +13,9 @@ export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimesta
|
|
|
13
13
|
import type { TGetConnectionsResponse, TOpenConnectionResponse, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, THealthzResponse } from "./common/index";
|
|
14
14
|
export { chia_common_service, TGetConnectionsRequest, TGetConnectionsResponse, TOpenConnectionRequest, TOpenConnectionResponse, TCloseConnectionRequest, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, THealthzResponse, get_connections, open_connection, close_connection, stop_node, get_routes, healthz, } from "./common/index";
|
|
15
15
|
export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
|
|
16
|
-
export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse;
|
|
16
|
+
export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse;
|
|
17
17
|
export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
|
|
18
|
-
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
18
|
+
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
19
19
|
export declare type RpcDataLayerMessage = TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponseDL | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponseDL | TVerifyOfferResponse | TCancelOfferResponseDL;
|
|
20
20
|
export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
|
|
21
21
|
export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse | THealthzResponse;
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = void 0;
|
|
3
|
+
exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
+
exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.delete_all_keys = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = void 0;
|
|
5
|
+
exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.farm_block = exports.nft_add_uri = void 0;
|
|
6
|
+
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = void 0;
|
|
7
7
|
var index_1 = require("./farmer/index");
|
|
8
8
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
9
9
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "get_network_space", { enumerable: true, get: fun
|
|
|
46
46
|
Object.defineProperty(exports, "get_unfinished_block_headers", { enumerable: true, get: function () { return index_2.get_unfinished_block_headers; } });
|
|
47
47
|
Object.defineProperty(exports, "push_tx", { enumerable: true, get: function () { return index_2.push_tx; } });
|
|
48
48
|
Object.defineProperty(exports, "get_puzzle_and_solution", { enumerable: true, get: function () { return index_2.get_puzzle_and_solution; } });
|
|
49
|
+
Object.defineProperty(exports, "get_fee_estimate", { enumerable: true, get: function () { return index_2.get_fee_estimate; } });
|
|
49
50
|
var index_3 = require("./harvester/index");
|
|
50
51
|
Object.defineProperty(exports, "chia_harvester_service", { enumerable: true, get: function () { return index_3.chia_harvester_service; } });
|
|
51
52
|
Object.defineProperty(exports, "add_plot_directory", { enumerable: true, get: function () { return index_3.add_plot_directory; } });
|
|
@@ -74,6 +75,13 @@ Object.defineProperty(exports, "delete_unconfirmed_transactions", { enumerable:
|
|
|
74
75
|
Object.defineProperty(exports, "select_coins", { enumerable: true, get: function () { return index_4.select_coins; } });
|
|
75
76
|
Object.defineProperty(exports, "get_current_derivation_index", { enumerable: true, get: function () { return index_4.get_current_derivation_index; } });
|
|
76
77
|
Object.defineProperty(exports, "extend_derivation_index", { enumerable: true, get: function () { return index_4.extend_derivation_index; } });
|
|
78
|
+
Object.defineProperty(exports, "get_notifications", { enumerable: true, get: function () { return index_4.get_notifications; } });
|
|
79
|
+
Object.defineProperty(exports, "delete_notifications", { enumerable: true, get: function () { return index_4.delete_notifications; } });
|
|
80
|
+
Object.defineProperty(exports, "send_notification", { enumerable: true, get: function () { return index_4.send_notification; } });
|
|
81
|
+
Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, get: function () { return index_4.sign_message_by_address; } });
|
|
82
|
+
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
83
|
+
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
|
+
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
77
85
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
78
86
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
79
87
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
@@ -124,6 +132,7 @@ Object.defineProperty(exports, "get_wallet_balance", { enumerable: true, get: fu
|
|
|
124
132
|
Object.defineProperty(exports, "get_wallets", { enumerable: true, get: function () { return index_4.get_wallets; } });
|
|
125
133
|
Object.defineProperty(exports, "log_in", { enumerable: true, get: function () { return index_4.log_in; } });
|
|
126
134
|
Object.defineProperty(exports, "push_tx_wallet", { enumerable: true, get: function () { return index_4.push_tx; } });
|
|
135
|
+
Object.defineProperty(exports, "push_transactions", { enumerable: true, get: function () { return index_4.push_transactions; } });
|
|
127
136
|
Object.defineProperty(exports, "pw_join_pool", { enumerable: true, get: function () { return index_4.pw_join_pool; } });
|
|
128
137
|
Object.defineProperty(exports, "pw_self_pool", { enumerable: true, get: function () { return index_4.pw_self_pool; } });
|
|
129
138
|
Object.defineProperty(exports, "pw_absorb_rewards", { enumerable: true, get: function () { return index_4.pw_absorb_rewards; } });
|
|
@@ -132,6 +132,13 @@ export declare type TPushTxRequest = {
|
|
|
132
132
|
};
|
|
133
133
|
export declare type TPushTxResponse = {};
|
|
134
134
|
export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse | import("../../../rpc").ErrorResponse>;
|
|
135
|
+
export declare const push_transactions_command = "push_transactions";
|
|
136
|
+
export declare type push_transactions_command = typeof push_transactions_command;
|
|
137
|
+
export declare type TPushTransactionsRequest = {
|
|
138
|
+
transactions: str;
|
|
139
|
+
};
|
|
140
|
+
export declare type TPushTransactionsResponse = {};
|
|
141
|
+
export declare function push_transactions(agent: TRPCAgent, data: TPushTransactionsRequest): Promise<TPushTransactionsResponse | import("../../../rpc").ErrorResponse>;
|
|
135
142
|
export declare const farm_block_command = "farm_block";
|
|
136
143
|
export declare type farm_block_command = typeof farm_block_command;
|
|
137
144
|
export declare type TFarmBlockRequest = {
|
|
@@ -408,6 +415,7 @@ export declare type TPuzzleAnnouncement = {
|
|
|
408
415
|
export declare const create_signed_transaction_command = "create_signed_transaction";
|
|
409
416
|
export declare type create_signed_transaction_command = typeof create_signed_transaction_command;
|
|
410
417
|
export declare type TCreateSignedTransactionRequest = {
|
|
418
|
+
wallet_id?: uint32;
|
|
411
419
|
additions: TAdditions[];
|
|
412
420
|
fee?: uint64;
|
|
413
421
|
min_coin_amount?: uint64;
|
|
@@ -417,6 +425,7 @@ export declare type TCreateSignedTransactionRequest = {
|
|
|
417
425
|
puzzle_announcements?: TPuzzleAnnouncement[];
|
|
418
426
|
};
|
|
419
427
|
export declare type TCreateSignedTransactionResponse = {
|
|
428
|
+
signed_txs: TransactionRecordConvenience[];
|
|
420
429
|
signed_tx: TransactionRecordConvenience;
|
|
421
430
|
};
|
|
422
431
|
export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse | import("../../../rpc").ErrorResponse>;
|
|
@@ -456,6 +465,67 @@ export declare type TExtendDerivationIndexResponse = {
|
|
|
456
465
|
index: Optional<uint32>;
|
|
457
466
|
};
|
|
458
467
|
export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
|
|
468
|
+
export declare const get_notifications_command = "get_notifications";
|
|
469
|
+
export declare type get_notifications_command = typeof get_notifications_command;
|
|
470
|
+
export declare type TGetNotificationsRequest = {
|
|
471
|
+
ids?: str[];
|
|
472
|
+
start?: int;
|
|
473
|
+
end?: int;
|
|
474
|
+
};
|
|
475
|
+
export declare type TGetNotificationsResponse = {
|
|
476
|
+
notifications: Array<{
|
|
477
|
+
id: str;
|
|
478
|
+
message: str;
|
|
479
|
+
amount: uint64;
|
|
480
|
+
}>;
|
|
481
|
+
};
|
|
482
|
+
export declare function get_notifications(agent: TRPCAgent, data: TGetNotificationsRequest): Promise<TGetNotificationsResponse | import("../../../rpc").ErrorResponse>;
|
|
483
|
+
export declare const delete_notifications_command = "delete_notifications";
|
|
484
|
+
export declare type delete_notifications_command = typeof delete_notifications_command;
|
|
485
|
+
export declare type TDeleteNotificationsRequest = {
|
|
486
|
+
ids?: str[];
|
|
487
|
+
};
|
|
488
|
+
export declare type TDeleteNotificationsResponse = {};
|
|
489
|
+
export declare function delete_notifications(agent: TRPCAgent, data: TDeleteNotificationsRequest): Promise<TDeleteNotificationsResponse | import("../../../rpc").ErrorResponse>;
|
|
490
|
+
export declare const send_notification_command = "send_notification";
|
|
491
|
+
export declare type send_notification_command = typeof send_notification_command;
|
|
492
|
+
export declare type TSendNotificationRequest = {
|
|
493
|
+
target: str;
|
|
494
|
+
message: str;
|
|
495
|
+
amount: uint64;
|
|
496
|
+
fee?: uint64;
|
|
497
|
+
};
|
|
498
|
+
export declare type TSendNotificationResponse = {
|
|
499
|
+
tx: TransactionRecordConvenience;
|
|
500
|
+
};
|
|
501
|
+
export declare function send_notification(agent: TRPCAgent, data: TSendNotificationRequest): Promise<TSendNotificationResponse | import("../../../rpc").ErrorResponse>;
|
|
502
|
+
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
503
|
+
export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
504
|
+
export declare type TSignMessageByAddressRequest = {
|
|
505
|
+
address: str;
|
|
506
|
+
message: str;
|
|
507
|
+
};
|
|
508
|
+
export declare type TSignMessageByAddressResponse = {
|
|
509
|
+
success: True;
|
|
510
|
+
pubkey: str;
|
|
511
|
+
signature: str;
|
|
512
|
+
};
|
|
513
|
+
export declare function sign_message_by_address(agent: TRPCAgent, data: TSignMessageByAddressRequest): Promise<TSignMessageByAddressResponse | import("../../../rpc").ErrorResponse>;
|
|
514
|
+
export declare const sign_message_by_id_command = "sign_message_by_id";
|
|
515
|
+
export declare type sign_message_by_id_command = typeof sign_message_by_id_command;
|
|
516
|
+
export declare type TSignMessageByIdRequest = {
|
|
517
|
+
id: str;
|
|
518
|
+
message: str;
|
|
519
|
+
};
|
|
520
|
+
export declare type TSignMessageByIdResponse = {
|
|
521
|
+
success: False;
|
|
522
|
+
error: str;
|
|
523
|
+
} | {
|
|
524
|
+
success: True;
|
|
525
|
+
pubkey: str;
|
|
526
|
+
signature: str;
|
|
527
|
+
};
|
|
528
|
+
export declare function sign_message_by_id(agent: TRPCAgent, data: TSignMessageByIdRequest): Promise<TSignMessageByIdResponse | import("../../../rpc").ErrorResponse>;
|
|
459
529
|
export declare const get_cat_list_command = "get_cat_list";
|
|
460
530
|
export declare type get_cat_list_command = typeof get_cat_list_command;
|
|
461
531
|
export declare type TGetCatListResponse = {
|
|
@@ -855,7 +925,10 @@ export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest)
|
|
|
855
925
|
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
856
926
|
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
857
927
|
export declare type TNftGetNftsRequest = {
|
|
858
|
-
wallet_id
|
|
928
|
+
wallet_id?: uint32;
|
|
929
|
+
start_index?: int;
|
|
930
|
+
num?: int;
|
|
931
|
+
ignore_size_limit?: bool;
|
|
859
932
|
};
|
|
860
933
|
export declare type TNftGetNftsResponse = {
|
|
861
934
|
wallet_id: uint32;
|
|
@@ -867,7 +940,7 @@ export declare const nft_set_nft_did_command = "nft_set_nft_did";
|
|
|
867
940
|
export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
|
|
868
941
|
export declare type TNftSetNftDidRequest = {
|
|
869
942
|
wallet_id: uint32;
|
|
870
|
-
did_id
|
|
943
|
+
did_id?: str;
|
|
871
944
|
nft_coin_id: str;
|
|
872
945
|
fee?: uint64;
|
|
873
946
|
};
|
|
@@ -953,6 +1026,7 @@ export declare type nft_get_info_command = typeof nft_get_info_command;
|
|
|
953
1026
|
export declare type TNftGetInfoRequest = {
|
|
954
1027
|
coin_id: str;
|
|
955
1028
|
latest?: bool;
|
|
1029
|
+
ignore_size_limit?: bool;
|
|
956
1030
|
};
|
|
957
1031
|
export declare type TNftGetInfoResponse = {
|
|
958
1032
|
success: True;
|
|
@@ -975,11 +1049,63 @@ export declare type TNftAddUriResponse = {
|
|
|
975
1049
|
success: True;
|
|
976
1050
|
wallet_id: uint32;
|
|
977
1051
|
spend_bundle: SpendBundle;
|
|
978
|
-
}
|
|
1052
|
+
};
|
|
1053
|
+
export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse | import("../../../rpc").ErrorResponse>;
|
|
1054
|
+
export declare const nft_calculate_royalties_command = "nft_calculate_royalties";
|
|
1055
|
+
export declare type nft_calculate_royalties_command = typeof nft_calculate_royalties_command;
|
|
1056
|
+
export declare type TNftCalculateRoyaltiesRequest = {
|
|
1057
|
+
royalty_assets?: Array<{
|
|
1058
|
+
asset: str;
|
|
1059
|
+
royalty_address: str;
|
|
1060
|
+
royalty_percentage: uint16;
|
|
1061
|
+
}>;
|
|
1062
|
+
fungible_assets?: Array<{
|
|
1063
|
+
asset: str;
|
|
1064
|
+
amount: uint64;
|
|
1065
|
+
}>;
|
|
1066
|
+
};
|
|
1067
|
+
export declare type TNftCalculateRoyaltiesResponse = Record<str, Array<{
|
|
1068
|
+
asset: str;
|
|
1069
|
+
address: str;
|
|
1070
|
+
amount: uint64;
|
|
1071
|
+
}>>;
|
|
1072
|
+
export declare function nft_calculate_royalties(agent: TRPCAgent, data: TNftCalculateRoyaltiesRequest): Promise<TNftCalculateRoyaltiesResponse | import("../../../rpc").ErrorResponse>;
|
|
1073
|
+
export declare const nft_mint_bulk_command = "nft_mint_bulk";
|
|
1074
|
+
export declare type nft_mint_bulk_command = typeof nft_mint_bulk_command;
|
|
1075
|
+
export declare type TNftMintBulkRequest = {
|
|
1076
|
+
wallet_id: uint32;
|
|
1077
|
+
royalty_address?: str;
|
|
1078
|
+
royalty_percentage?: uint16;
|
|
1079
|
+
metadata_list: Array<{
|
|
1080
|
+
uris: str[];
|
|
1081
|
+
meta_uris: str[];
|
|
1082
|
+
license_uris: str[];
|
|
1083
|
+
hash: str;
|
|
1084
|
+
edition_number?: uint64;
|
|
1085
|
+
edition_total?: uint64;
|
|
1086
|
+
meta_hash?: str;
|
|
1087
|
+
license_hash?: str;
|
|
1088
|
+
}>;
|
|
1089
|
+
target_list?: str[];
|
|
1090
|
+
mint_number_start?: int;
|
|
1091
|
+
mint_total?: int;
|
|
1092
|
+
xch_coins?: Coin[];
|
|
1093
|
+
xch_change_target?: str;
|
|
1094
|
+
new_innerpuzhash?: str;
|
|
1095
|
+
new_p2_puzhash?: str;
|
|
1096
|
+
did_coin?: Coin;
|
|
1097
|
+
did_lineage_parent?: str;
|
|
1098
|
+
mint_from_did?: bool;
|
|
1099
|
+
fee?: uint64;
|
|
1100
|
+
};
|
|
1101
|
+
export declare type TNftMintBulkResponse = {
|
|
979
1102
|
success: False;
|
|
980
1103
|
error: str;
|
|
1104
|
+
} | {
|
|
1105
|
+
success: True;
|
|
1106
|
+
spend_bundle: SpendBundle;
|
|
981
1107
|
};
|
|
982
|
-
export declare function
|
|
1108
|
+
export declare function nft_mint_bulk(agent: TRPCAgent, data: TNftMintBulkRequest): Promise<TNftMintBulkResponse | import("../../../rpc").ErrorResponse>;
|
|
983
1109
|
export declare const rl_set_user_info_command = "rl_set_user_info";
|
|
984
1110
|
export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
|
|
985
1111
|
export declare type TRlSetUserInfoRequest = {
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = void 0;
|
|
12
|
+
exports.get_transaction_count_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.farm_block = exports.farm_block_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
13
|
+
exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = void 0;
|
|
14
|
+
exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_create_backup_file = exports.did_create_backup_file_command = exports.did_get_current_coin_info = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery = exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = void 0;
|
|
15
|
+
exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = void 0;
|
|
16
16
|
exports.chia_wallet_service = "chia_wallet";
|
|
17
17
|
// # Key management
|
|
18
18
|
exports.log_in_command = "log_in";
|
|
@@ -100,6 +100,13 @@ function push_tx(agent, data) {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
exports.push_tx = push_tx;
|
|
103
|
+
exports.push_transactions_command = "push_transactions";
|
|
104
|
+
function push_transactions(agent, data) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.push_transactions_command, data);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
exports.push_transactions = push_transactions;
|
|
103
110
|
exports.farm_block_command = "farm_block";
|
|
104
111
|
function farm_block(agent, data) {
|
|
105
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -228,6 +235,41 @@ function extend_derivation_index(agent, data) {
|
|
|
228
235
|
});
|
|
229
236
|
}
|
|
230
237
|
exports.extend_derivation_index = extend_derivation_index;
|
|
238
|
+
exports.get_notifications_command = "get_notifications";
|
|
239
|
+
function get_notifications(agent, data) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_notifications_command, data);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
exports.get_notifications = get_notifications;
|
|
245
|
+
exports.delete_notifications_command = "delete_notifications";
|
|
246
|
+
function delete_notifications(agent, data) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.delete_notifications_command, data);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
exports.delete_notifications = delete_notifications;
|
|
252
|
+
exports.send_notification_command = "send_notification";
|
|
253
|
+
function send_notification(agent, data) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.send_notification_command, data);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
exports.send_notification = send_notification;
|
|
259
|
+
exports.sign_message_by_address_command = "sign_message_by_address";
|
|
260
|
+
function sign_message_by_address(agent, data) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_address_command, data);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
exports.sign_message_by_address = sign_message_by_address;
|
|
266
|
+
exports.sign_message_by_id_command = "sign_message_by_id";
|
|
267
|
+
function sign_message_by_id(agent, data) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.sign_message_by_id_command, data);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
exports.sign_message_by_id = sign_message_by_id;
|
|
231
273
|
// # CATs and Trading
|
|
232
274
|
exports.get_cat_list_command = "get_cat_list";
|
|
233
275
|
function get_cat_list(agent) {
|
|
@@ -519,6 +561,20 @@ function nft_add_uri(agent, data) {
|
|
|
519
561
|
});
|
|
520
562
|
}
|
|
521
563
|
exports.nft_add_uri = nft_add_uri;
|
|
564
|
+
exports.nft_calculate_royalties_command = "nft_calculate_royalties";
|
|
565
|
+
function nft_calculate_royalties(agent, data) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_calculate_royalties_command, data);
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
exports.nft_calculate_royalties = nft_calculate_royalties;
|
|
571
|
+
exports.nft_mint_bulk_command = "nft_mint_bulk";
|
|
572
|
+
function nft_mint_bulk(agent, data) {
|
|
573
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
574
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_mint_bulk_command, data);
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
exports.nft_mint_bulk = nft_mint_bulk;
|
|
522
578
|
// # RL wallet
|
|
523
579
|
exports.rl_set_user_info_command = "rl_set_user_info";
|
|
524
580
|
function rl_set_user_info(agent, data) {
|
package/api/ws/daemon/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { GetMessageType } from "../../types";
|
|
2
2
|
import { TDaemon } from "../../../daemon/index";
|
|
3
|
-
import { bool, int, None, Optional, str, True } from "../../chia/types/_python_types_";
|
|
3
|
+
import { bool, False, int, None, Optional, str, True, uint32 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { chiapos_install_info } from "../../chia/plotters/chiapos";
|
|
5
5
|
import { bladebit_install_info } from "../../chia/plotters/bladebit";
|
|
6
6
|
import { madmax_install_info } from "../../chia/plotters/maxmax";
|
|
7
|
+
import { KeyData } from "../../chia/util/keychain";
|
|
7
8
|
export declare const daemon_service = "daemon";
|
|
8
9
|
export declare type daemon_service = typeof daemon_service;
|
|
9
10
|
export declare const ping_command = "ping";
|
|
@@ -57,6 +58,25 @@ export declare type TBladeBitParams = {
|
|
|
57
58
|
plotter: "bladebit";
|
|
58
59
|
w?: bool;
|
|
59
60
|
m?: bool;
|
|
61
|
+
no_cpu_affinity?: bool;
|
|
62
|
+
};
|
|
63
|
+
export declare type TBladeBit2Params = {
|
|
64
|
+
plotter: "bladebit2";
|
|
65
|
+
w?: bool;
|
|
66
|
+
m?: bool;
|
|
67
|
+
no_cpu_affinity?: bool;
|
|
68
|
+
t1: str;
|
|
69
|
+
t2?: str;
|
|
70
|
+
u?: int;
|
|
71
|
+
cache?: str;
|
|
72
|
+
f1_threads?: int;
|
|
73
|
+
fp_threads?: int;
|
|
74
|
+
c_threads?: int;
|
|
75
|
+
p2_threads?: int;
|
|
76
|
+
p3_threads?: int;
|
|
77
|
+
alternate?: bool;
|
|
78
|
+
no_t1_direct?: bool;
|
|
79
|
+
no_t2_direct?: bool;
|
|
60
80
|
};
|
|
61
81
|
export declare type TMadMaxParams = {
|
|
62
82
|
plotter: "madmax";
|
|
@@ -67,7 +87,7 @@ export declare type TMadMaxParams = {
|
|
|
67
87
|
K?: int;
|
|
68
88
|
G?: bool;
|
|
69
89
|
};
|
|
70
|
-
export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitParams | TMadMaxParams);
|
|
90
|
+
export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitParams | TBladeBit2Params | TMadMaxParams);
|
|
71
91
|
export declare type TStartPlottingResponse = {
|
|
72
92
|
success: bool;
|
|
73
93
|
ids: str[];
|
|
@@ -93,6 +113,13 @@ export declare type TStopServiceResponse = {
|
|
|
93
113
|
service_name: str;
|
|
94
114
|
};
|
|
95
115
|
export declare function stop_service(daemon: TDaemon, data: TStopServiceRequest): Promise<GetMessageType<"daemon", "stop_service", TStopServiceResponse>>;
|
|
116
|
+
export declare const running_services_command = "running_services";
|
|
117
|
+
export declare type running_services_command = typeof running_services_command;
|
|
118
|
+
export declare type TRunningServicesResponse = {
|
|
119
|
+
success: bool;
|
|
120
|
+
running_services: str[];
|
|
121
|
+
};
|
|
122
|
+
export declare function running_services(daemon: TDaemon): Promise<GetMessageType<"daemon", "running_services", TRunningServicesResponse>>;
|
|
96
123
|
export declare const is_running_command = "is_running";
|
|
97
124
|
export declare type is_running_command = typeof is_running_command;
|
|
98
125
|
export declare type TIsRunningRequest = {
|
|
@@ -110,7 +137,7 @@ export declare type TAddPrivateKeyRequest = {
|
|
|
110
137
|
kc_user?: str;
|
|
111
138
|
kc_testing?: bool;
|
|
112
139
|
mnemonic?: str;
|
|
113
|
-
|
|
140
|
+
label?: str;
|
|
114
141
|
};
|
|
115
142
|
export declare type TAddPrivateKeyResponse = {
|
|
116
143
|
success: bool;
|
|
@@ -208,6 +235,78 @@ export declare type TGetKeyForFingerprintResponse = {
|
|
|
208
235
|
entropy: str;
|
|
209
236
|
};
|
|
210
237
|
export declare function get_key_for_fingerprint(daemon: TDaemon, data: TGetKeyForFingerprintRequest): Promise<GetMessageType<"daemon", "get_key_for_fingerprint", TGetKeyForFingerprintResponse>>;
|
|
238
|
+
export declare const get_key_command = "get_key";
|
|
239
|
+
export declare type get_key_command = typeof get_key_command;
|
|
240
|
+
export declare type TGetKeyRequest = {
|
|
241
|
+
fingerprint: uint32;
|
|
242
|
+
include_secrets?: bool;
|
|
243
|
+
};
|
|
244
|
+
export declare type TGetKeyResponse = {
|
|
245
|
+
success: True;
|
|
246
|
+
key: KeyData;
|
|
247
|
+
} | {
|
|
248
|
+
success: False;
|
|
249
|
+
error: "keyring is locked" | "key not found" | "malformed request";
|
|
250
|
+
error_details?: {
|
|
251
|
+
message: str;
|
|
252
|
+
} | {
|
|
253
|
+
fingerprint: int;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
export declare function get_key(daemon: TDaemon, data: TGetKeyRequest): Promise<GetMessageType<"daemon", "get_key", TGetKeyResponse>>;
|
|
257
|
+
export declare const get_keys_command = "get_keys";
|
|
258
|
+
export declare type get_keys_command = typeof get_keys_command;
|
|
259
|
+
export declare type TGetKeysRequest = {
|
|
260
|
+
include_secrets?: bool;
|
|
261
|
+
};
|
|
262
|
+
export declare type TGetKeysResponse = {
|
|
263
|
+
success: True;
|
|
264
|
+
keys: KeyData[];
|
|
265
|
+
} | {
|
|
266
|
+
success: False;
|
|
267
|
+
error: "keyring is locked" | "key not found" | "malformed request";
|
|
268
|
+
error_details?: {
|
|
269
|
+
message: str;
|
|
270
|
+
} | {
|
|
271
|
+
fingerprint: int;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
export declare function get_keys(daemon: TDaemon, data: TGetKeysRequest): Promise<GetMessageType<"daemon", "get_keys", TGetKeysResponse>>;
|
|
275
|
+
export declare const set_label_command = "set_label";
|
|
276
|
+
export declare type set_label_command = typeof set_label_command;
|
|
277
|
+
export declare type TSetLabelRequest = {
|
|
278
|
+
fingerprint: uint32;
|
|
279
|
+
label: str;
|
|
280
|
+
};
|
|
281
|
+
export declare type TSetLabelResponse = {
|
|
282
|
+
success: True;
|
|
283
|
+
} | {
|
|
284
|
+
success: False;
|
|
285
|
+
error: "keyring is locked" | "key not found" | "malformed request";
|
|
286
|
+
error_details?: {
|
|
287
|
+
message: str;
|
|
288
|
+
} | {
|
|
289
|
+
fingerprint: int;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
export declare function set_label(daemon: TDaemon, data: TSetLabelRequest): Promise<GetMessageType<"daemon", "set_label", TSetLabelResponse>>;
|
|
293
|
+
export declare const delete_label_command = "delete_label";
|
|
294
|
+
export declare type delete_label_command = typeof delete_label_command;
|
|
295
|
+
export declare type TDeleteLabelRequest = {
|
|
296
|
+
fingerprint: uint32;
|
|
297
|
+
};
|
|
298
|
+
export declare type TDeleteLabelResponse = {
|
|
299
|
+
success: True;
|
|
300
|
+
} | {
|
|
301
|
+
success: False;
|
|
302
|
+
error: "keyring is locked" | "key not found" | "malformed request";
|
|
303
|
+
error_details?: {
|
|
304
|
+
message: str;
|
|
305
|
+
} | {
|
|
306
|
+
fingerprint: int;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
export declare function delete_label(daemon: TDaemon, data: TDeleteLabelRequest): Promise<GetMessageType<"daemon", "delete_label", TDeleteLabelResponse>>;
|
|
211
310
|
export declare const is_keyring_locked_command = "is_keyring_locked";
|
|
212
311
|
export declare type is_keyring_locked_command = typeof is_keyring_locked_command;
|
|
213
312
|
export declare type TIsKeyringLockedResponse = {
|
package/api/ws/daemon/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.on_keyring_status_changed = exports.keyring_status_changed_command = exports.get_plotters = exports.get_plotters_command = exports.get_version = void 0;
|
|
12
|
+
exports.remove_keyring_passphrase_command = exports.set_keyring_passphrase = exports.set_keyring_passphrase_command = exports.migrate_keyring = exports.migrate_keyring_command = exports.validate_keyring_passphrase = exports.validate_keyring_passphrase_command = exports.unlock_keyring = exports.unlock_keyring_command = exports.keyring_status = exports.keyring_status_command = exports.is_keyring_locked = exports.is_keyring_locked_command = exports.delete_label = exports.delete_label_command = exports.set_label = exports.set_label_command = exports.get_keys = exports.get_keys_command = exports.get_key = exports.get_key_command = exports.get_key_for_fingerprint = exports.get_key_for_fingerprint_command = exports.get_first_private_key = exports.get_first_private_key_command = exports.get_all_private_keys = exports.get_all_private_keys_command = exports.delete_key_by_fingerprint = exports.delete_key_by_fingerprint_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_keys = exports.check_keys_command = exports.add_private_key = exports.add_private_key_command = exports.is_running = exports.is_running_command = exports.running_services = exports.running_services_command = exports.stop_service = exports.stop_service_command = exports.stop_plotting = exports.stop_plotting_command = exports.start_plotting = exports.start_plotting_command = exports.start_service = exports.start_service_command = exports.ping = exports.ping_command = exports.daemon_service = void 0;
|
|
13
|
+
exports.on_keyring_status_changed = exports.keyring_status_changed_command = exports.get_plotters = exports.get_plotters_command = exports.get_version = exports.get_version_command = exports.get_status = exports.get_status_command = exports.register_service = exports.register_service_command = exports.exit = exports.exit_command = exports.notify_keyring_migration_completed = exports.notify_keyring_migration_completed_command = exports.remove_keyring_passphrase = void 0;
|
|
14
14
|
// The daemon service currently does not provide state_change event as of v1.1.5.
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
16
|
exports.daemon_service = "daemon";
|
|
@@ -49,6 +49,13 @@ function stop_service(daemon, data) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
exports.stop_service = stop_service;
|
|
52
|
+
exports.running_services_command = "running_services";
|
|
53
|
+
function running_services(daemon) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
return daemon.sendMessage(exports.daemon_service, exports.running_services_command);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
exports.running_services = running_services;
|
|
52
59
|
exports.is_running_command = "is_running";
|
|
53
60
|
function is_running(daemon, data) {
|
|
54
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -105,6 +112,34 @@ function get_key_for_fingerprint(daemon, data) {
|
|
|
105
112
|
});
|
|
106
113
|
}
|
|
107
114
|
exports.get_key_for_fingerprint = get_key_for_fingerprint;
|
|
115
|
+
exports.get_key_command = "get_key";
|
|
116
|
+
function get_key(daemon, data) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return daemon.sendMessage(exports.daemon_service, exports.get_key_command, data);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
exports.get_key = get_key;
|
|
122
|
+
exports.get_keys_command = "get_keys";
|
|
123
|
+
function get_keys(daemon, data) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
return daemon.sendMessage(exports.daemon_service, exports.get_keys_command, data);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
exports.get_keys = get_keys;
|
|
129
|
+
exports.set_label_command = "set_label";
|
|
130
|
+
function set_label(daemon, data) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
return daemon.sendMessage(exports.daemon_service, exports.set_label_command, data);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
exports.set_label = set_label;
|
|
136
|
+
exports.delete_label_command = "delete_label";
|
|
137
|
+
function delete_label(daemon, data) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return daemon.sendMessage(exports.daemon_service, exports.delete_label_command, data);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
exports.delete_label = delete_label;
|
|
108
143
|
exports.is_keyring_locked_command = "is_keyring_locked";
|
|
109
144
|
function is_keyring_locked(daemon) {
|
|
110
145
|
return __awaiter(this, void 0, void 0, function* () {
|
package/api/ws/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ import type { chia_crawler_service, loaded_initial_peers_command, crawl_batch_co
|
|
|
13
13
|
export { chia_crawler_service, TLoadedInitialPeersBroadCast, TCrawlBatchCompletedBroadCast, TPeerCounts, on_loaded_initial_peers, on_crawl_batch_completed, } from "./crawler/index";
|
|
14
14
|
import type { chia_timelord_service, finished_pot_command, new_compact_proof_command, skipping_peak_command, new_peak_command, TFinishedPotBroadCast, TNewCompactProofBroadCast, TSkippingPeakBroadCast, TNewPeakBroadCast } from "./timelord/index";
|
|
15
15
|
export { chia_timelord_service, TFinishedPotBroadCast, TNewCompactProofBroadCast, TSkippingPeakBroadCast, TNewPeakBroadCast, on_finished_pot, on_new_compact_proof, on_skipping_peak, on_new_peak, } from "./timelord/index";
|
|
16
|
-
import type { daemon_service, exit_command,
|
|
17
|
-
export { daemon_service, TRegisterServiceResponse,
|
|
16
|
+
import type { daemon_service, exit_command, TExitResponse, get_status_command, TGetStatusResponse, get_version_command, TGetVersionResponse, get_plotters_command, TGetPlottersResponse, running_services_command, TRunningServicesResponse, is_running_command, TIsRunningResponse, add_private_key_command, TAddPrivateKeyResponse, check_keys_command, TCheckKeysResponse, delete_all_keys_command, TDeleteAllKeysResponse, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse, get_all_private_keys_command, TGetAllPrivateKeysResponse, get_first_private_key_command, TGetFirstPrivateKeyResponse, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse, get_key_command, TGetKeyResponse, get_keys_command, TGetKeysResponse, set_label_command, TSetLabelResponse, delete_label_command, TDeleteLabelResponse, is_keyring_locked_command, TIsKeyringLockedResponse, keyring_status_command, TKeyringStatusResponse, unlock_keyring_command, TUnlockKeyringResponse, set_keyring_passphrase_command, TSetKeyringPassphraseResponse, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse, ping_command, TPingResponse, register_service_command, TRegisterServiceResponse, start_plotting_command, TStartPlottingResponse, start_service_command, TStartServiceResponse, stop_plotting_command, TStopPlottingResponse, stop_service_command, TStopServiceResponse, migrate_keyring_command, TMigrateKeyringResponse, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse, keyring_status_changed_command, TKeyringStatusChangedBroadCast, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse } from "./daemon/index";
|
|
17
|
+
export { daemon_service, register_service, TRegisterServiceRequest, TRegisterServiceResponse, start_service, TStartServiceRequest, TStartServiceResponse, start_plotting, TStartPlottingResponse, TStartPlottingRequest, stop_service, TStopServiceResponse, TStopServiceRequest, stop_plotting, TStopPlottingRequest, TStopPlottingResponse, exit, TExitRequest, TExitResponse, get_status, TGetStatusRequest, TGetStatusResponse, get_version, TGetVersionRequest, TGetVersionResponse, get_plotters, TGetPlottersRequest, TGetPlottersResponse, running_services, TRunningServicesResponse, is_running, TIsRunningRequest, TIsRunningResponse, add_private_key, TAddPrivateKeyRequest, TAddPrivateKeyResponse, check_keys, TCheckKeysRequest, TCheckKeysResponse, delete_all_keys, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_key_by_fingerprint, TDeleteKeyByFingerprintRequest, TDeleteKeyByFingerprintResponse, get_all_private_keys, TGetAllPrivateKeysRequest, TGetAllPrivateKeysResponse, get_first_private_key, TGetFirstPrivateKeyRequest, TGetFirstPrivateKeyResponse, get_key_for_fingerprint, TGetKeyForFingerprintRequest, TGetKeyForFingerprintResponse, get_key, TGetKeyRequest, TGetKeyResponse, get_keys, TGetKeysRequest, TGetKeysResponse, set_label, TSetLabelRequest, TSetLabelResponse, delete_label, TDeleteLabelRequest, TDeleteLabelResponse, is_keyring_locked, TIsKeyringLockedResponse, on_keyring_status_changed, TKeyringStatusChangedBroadCast, keyring_status, TKeyringStatusResponse, unlock_keyring, TUnlockKeyringRequest, TUnlockKeyringResponse, migrate_keyring, TMigrateKeyringRequest, TMigrateKeyringResponse, set_keyring_passphrase, TSetKeyringPassphraseRequest, TSetKeyringPassphraseResponse, remove_keyring_passphrase, TRemoveKeyringPassphraseRequest, TRemoveKeyringPassphraseResponse, notify_keyring_migration_completed, TNotifyKeyringMigrationCompletedRequest, TNotifyKeyringMigrationCompletedResponse, ping, TPingRequest, TPingResponse, validate_keyring_passphrase, TValidateKeyringPassphraseRequest, TValidateKeyringPassphraseResponse, TPlotQueue, } from "./daemon/index";
|
|
18
18
|
export declare type WsFarmerMessage = GetMessageType<chia_farmer_service, new_farming_info_command, TNewFarmingInfoBroadCast> | GetMessageType<chia_farmer_service, new_signage_point_command, TNewSignagePointBroadCast> | GetMessageType<chia_farmer_service, harvester_update_command, THarvesterUpdateBroadCast> | GetMessageType<chia_farmer_service, harvester_removed_command, THarvesterRemovedBroadCast> | GetMessageType<chia_farmer_service, get_connections_farmer_command, TGetConnectionsFarmerBroadCast> | GetMessageType<chia_farmer_service, proof_command, TProofBroadCast> | GetMessageType<chia_farmer_service, submitted_partial_command, TSubmittedPartialBroadCast>;
|
|
19
19
|
export declare type WsFullNodeMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateBroadCast> | GetMessageType<chia_full_node_service, block_command, TBlockBroadCast> | GetMessageType<chia_full_node_service, signage_point_command, TSignagePointBroadCast> | GetMessageType<chia_full_node_service, get_connections_full_node_command, TGetConnectionsFullNodeBroadCast>;
|
|
20
20
|
export declare type WsHarvesterMessage = GetMessageType<chia_harvester_service, get_plots_command, TGetPlotsBroadCast> | GetMessageType<chia_harvester_service, farming_info_command, TFarmingInfoBroadCast> | GetMessageType<chia_harvester_service, get_connections_harvester_command, TGetConnectionsHarvesterBroadCast>;
|
|
@@ -22,5 +22,5 @@ export declare type WsWalletMessage = GetMessageType<chia_wallet_service, get_co
|
|
|
22
22
|
export declare type WsPlotsMessage = GetMessageType<chia_plotter_service, state_changed_command_of_plots, TStateChangedBroadCastOfPlots>;
|
|
23
23
|
export declare type WsCrawlerMessage = GetMessageType<chia_crawler_service, loaded_initial_peers_command, TLoadedInitialPeersBroadCast> | GetMessageType<chia_crawler_service, crawl_batch_completed_command, TCrawlBatchCompletedBroadCast>;
|
|
24
24
|
export declare type WsTimelordMessage = GetMessageType<chia_timelord_service, finished_pot_command, TFinishedPotBroadCast> | GetMessageType<chia_timelord_service, new_compact_proof_command, TNewCompactProofBroadCast> | GetMessageType<chia_timelord_service, skipping_peak_command, TSkippingPeakBroadCast> | GetMessageType<chia_timelord_service, new_peak_command, TNewPeakBroadCast>;
|
|
25
|
-
export declare type WsDaemonMessage = GetMessageType<daemon_service, exit_command, TExitResponse> | GetMessageType<daemon_service, get_status_command, TGetStatusResponse> | GetMessageType<daemon_service, get_version_command, TGetVersionResponse> | GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse> | GetMessageType<daemon_service, is_running_command, TIsRunningResponse> | GetMessageType<daemon_service, ping_command, TPingResponse> | GetMessageType<daemon_service, register_service_command, TRegisterServiceResponse> | GetMessageType<daemon_service, start_plotting_command, TStartPlottingResponse> | GetMessageType<daemon_service, start_service_command, TStartServiceResponse> | GetMessageType<daemon_service, stop_plotting_command, TStopPlottingResponse> | GetMessageType<daemon_service, stop_service_command, TStopServiceResponse> | GetMessageType<daemon_service, add_private_key_command, TAddPrivateKeyResponse> | GetMessageType<daemon_service, check_keys_command, TCheckKeysResponse> | GetMessageType<daemon_service, delete_all_keys_command, TDeleteAllKeysResponse> | GetMessageType<daemon_service, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse> | GetMessageType<daemon_service, get_all_private_keys_command, TGetAllPrivateKeysResponse> | GetMessageType<daemon_service, get_first_private_key_command, TGetFirstPrivateKeyResponse> | GetMessageType<daemon_service, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse> | GetMessageType<daemon_service, is_keyring_locked_command, TIsKeyringLockedResponse> | GetMessageType<daemon_service, keyring_status_command, TKeyringStatusResponse> | GetMessageType<daemon_service, unlock_keyring_command, TUnlockKeyringResponse> | GetMessageType<daemon_service, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse> | GetMessageType<daemon_service, migrate_keyring_command, TMigrateKeyringResponse> | GetMessageType<daemon_service, set_keyring_passphrase_command, TSetKeyringPassphraseResponse> | GetMessageType<daemon_service, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse> | GetMessageType<daemon_service, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse> | GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
|
|
25
|
+
export declare type WsDaemonMessage = GetMessageType<daemon_service, exit_command, TExitResponse> | GetMessageType<daemon_service, get_status_command, TGetStatusResponse> | GetMessageType<daemon_service, get_version_command, TGetVersionResponse> | GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse> | GetMessageType<daemon_service, running_services_command, TRunningServicesResponse> | GetMessageType<daemon_service, is_running_command, TIsRunningResponse> | GetMessageType<daemon_service, ping_command, TPingResponse> | GetMessageType<daemon_service, register_service_command, TRegisterServiceResponse> | GetMessageType<daemon_service, start_plotting_command, TStartPlottingResponse> | GetMessageType<daemon_service, start_service_command, TStartServiceResponse> | GetMessageType<daemon_service, stop_plotting_command, TStopPlottingResponse> | GetMessageType<daemon_service, stop_service_command, TStopServiceResponse> | GetMessageType<daemon_service, add_private_key_command, TAddPrivateKeyResponse> | GetMessageType<daemon_service, check_keys_command, TCheckKeysResponse> | GetMessageType<daemon_service, delete_all_keys_command, TDeleteAllKeysResponse> | GetMessageType<daemon_service, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse> | GetMessageType<daemon_service, get_all_private_keys_command, TGetAllPrivateKeysResponse> | GetMessageType<daemon_service, get_first_private_key_command, TGetFirstPrivateKeyResponse> | GetMessageType<daemon_service, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse> | GetMessageType<daemon_service, get_key_command, TGetKeyResponse> | GetMessageType<daemon_service, get_keys_command, TGetKeysResponse> | GetMessageType<daemon_service, set_label_command, TSetLabelResponse> | GetMessageType<daemon_service, delete_label_command, TDeleteLabelResponse> | GetMessageType<daemon_service, is_keyring_locked_command, TIsKeyringLockedResponse> | GetMessageType<daemon_service, keyring_status_command, TKeyringStatusResponse> | GetMessageType<daemon_service, unlock_keyring_command, TUnlockKeyringResponse> | GetMessageType<daemon_service, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse> | GetMessageType<daemon_service, migrate_keyring_command, TMigrateKeyringResponse> | GetMessageType<daemon_service, set_keyring_passphrase_command, TSetKeyringPassphraseResponse> | GetMessageType<daemon_service, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse> | GetMessageType<daemon_service, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse> | GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
|
|
26
26
|
export declare type WsMessage = WsFarmerMessage | WsFullNodeMessage | WsHarvesterMessage | WsWalletMessage | WsPlotsMessage | WsCrawlerMessage | WsTimelordMessage | WsDaemonMessage;
|
package/api/ws/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.validate_keyring_passphrase = exports.
|
|
3
|
+
exports.add_private_key = exports.is_running = exports.running_services = exports.get_plotters = exports.get_version = exports.get_status = exports.exit = exports.stop_plotting = exports.stop_service = exports.start_plotting = exports.start_service = exports.register_service = exports.daemon_service = exports.on_new_peak = exports.on_skipping_peak = exports.on_new_compact_proof = exports.on_finished_pot = exports.chia_timelord_service = exports.on_crawl_batch_completed = exports.on_loaded_initial_peers = exports.chia_crawler_service = exports.on_state_changed_of_plots = exports.state_changed_command_of_plots = exports.chia_plotter_service = exports.on_message_from_wallet = exports.on_coin_added_of_wallet = exports.on_state_changed_of_wallet = exports.on_sync_changed_of_wallet = exports.on_get_connections_wallet = exports.chia_wallet_service = exports.on_farming_info = exports.on_get_plots = exports.on_get_connections_harvester = exports.on_message_from_harvester = exports.chia_harvester_service = exports.on_signage_point = exports.on_block = exports.on_get_blockchain_state = exports.on_get_connections_full_node = exports.on_message_from_full_node = exports.chia_full_node_service = exports.on_submitted_partial = exports.on_proof = exports.on_harvester_removed = exports.on_harvester_update = exports.on_new_signage_point = exports.on_new_farming_info = exports.on_get_connections_farmer = exports.on_message_from_farmer = exports.chia_farmer_service = void 0;
|
|
4
|
+
exports.validate_keyring_passphrase = exports.ping = exports.notify_keyring_migration_completed = exports.remove_keyring_passphrase = exports.set_keyring_passphrase = exports.migrate_keyring = exports.unlock_keyring = exports.keyring_status = exports.on_keyring_status_changed = exports.is_keyring_locked = exports.delete_label = exports.set_label = exports.get_keys = exports.get_key = exports.get_key_for_fingerprint = exports.get_first_private_key = exports.get_all_private_keys = exports.delete_key_by_fingerprint = exports.delete_all_keys = exports.check_keys = void 0;
|
|
5
5
|
var index_1 = require("./farmer/index");
|
|
6
6
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
7
7
|
Object.defineProperty(exports, "on_message_from_farmer", { enumerable: true, get: function () { return index_1.on_message_from_farmer; } });
|
|
@@ -48,17 +48,16 @@ Object.defineProperty(exports, "on_skipping_peak", { enumerable: true, get: func
|
|
|
48
48
|
Object.defineProperty(exports, "on_new_peak", { enumerable: true, get: function () { return index_7.on_new_peak; } });
|
|
49
49
|
var index_8 = require("./daemon/index");
|
|
50
50
|
Object.defineProperty(exports, "daemon_service", { enumerable: true, get: function () { return index_8.daemon_service; } });
|
|
51
|
+
Object.defineProperty(exports, "register_service", { enumerable: true, get: function () { return index_8.register_service; } });
|
|
52
|
+
Object.defineProperty(exports, "start_service", { enumerable: true, get: function () { return index_8.start_service; } });
|
|
53
|
+
Object.defineProperty(exports, "start_plotting", { enumerable: true, get: function () { return index_8.start_plotting; } });
|
|
54
|
+
Object.defineProperty(exports, "stop_service", { enumerable: true, get: function () { return index_8.stop_service; } });
|
|
55
|
+
Object.defineProperty(exports, "stop_plotting", { enumerable: true, get: function () { return index_8.stop_plotting; } });
|
|
56
|
+
Object.defineProperty(exports, "exit", { enumerable: true, get: function () { return index_8.exit; } });
|
|
51
57
|
Object.defineProperty(exports, "get_status", { enumerable: true, get: function () { return index_8.get_status; } });
|
|
52
58
|
Object.defineProperty(exports, "get_version", { enumerable: true, get: function () { return index_8.get_version; } });
|
|
53
59
|
Object.defineProperty(exports, "get_plotters", { enumerable: true, get: function () { return index_8.get_plotters; } });
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
Object.defineProperty(exports, "stop_service", { enumerable: true, get: function () { return index_8.stop_service; } });
|
|
56
|
-
Object.defineProperty(exports, "stop_plotting", { enumerable: true, get: function () { return index_8.stop_plotting; } });
|
|
57
|
-
Object.defineProperty(exports, "start_service", { enumerable: true, get: function () { return index_8.start_service; } });
|
|
58
|
-
Object.defineProperty(exports, "exit_command", { enumerable: true, get: function () { return index_8.exit_command; } });
|
|
59
|
-
Object.defineProperty(exports, "start_plotting", { enumerable: true, get: function () { return index_8.start_plotting; } });
|
|
60
|
-
Object.defineProperty(exports, "register_service", { enumerable: true, get: function () { return index_8.register_service; } });
|
|
61
|
-
Object.defineProperty(exports, "ping", { enumerable: true, get: function () { return index_8.ping; } });
|
|
60
|
+
Object.defineProperty(exports, "running_services", { enumerable: true, get: function () { return index_8.running_services; } });
|
|
62
61
|
Object.defineProperty(exports, "is_running", { enumerable: true, get: function () { return index_8.is_running; } });
|
|
63
62
|
Object.defineProperty(exports, "add_private_key", { enumerable: true, get: function () { return index_8.add_private_key; } });
|
|
64
63
|
Object.defineProperty(exports, "check_keys", { enumerable: true, get: function () { return index_8.check_keys; } });
|
|
@@ -67,13 +66,17 @@ Object.defineProperty(exports, "delete_key_by_fingerprint", { enumerable: true,
|
|
|
67
66
|
Object.defineProperty(exports, "get_all_private_keys", { enumerable: true, get: function () { return index_8.get_all_private_keys; } });
|
|
68
67
|
Object.defineProperty(exports, "get_first_private_key", { enumerable: true, get: function () { return index_8.get_first_private_key; } });
|
|
69
68
|
Object.defineProperty(exports, "get_key_for_fingerprint", { enumerable: true, get: function () { return index_8.get_key_for_fingerprint; } });
|
|
69
|
+
Object.defineProperty(exports, "get_key", { enumerable: true, get: function () { return index_8.get_key; } });
|
|
70
|
+
Object.defineProperty(exports, "get_keys", { enumerable: true, get: function () { return index_8.get_keys; } });
|
|
71
|
+
Object.defineProperty(exports, "set_label", { enumerable: true, get: function () { return index_8.set_label; } });
|
|
72
|
+
Object.defineProperty(exports, "delete_label", { enumerable: true, get: function () { return index_8.delete_label; } });
|
|
70
73
|
Object.defineProperty(exports, "is_keyring_locked", { enumerable: true, get: function () { return index_8.is_keyring_locked; } });
|
|
74
|
+
Object.defineProperty(exports, "on_keyring_status_changed", { enumerable: true, get: function () { return index_8.on_keyring_status_changed; } });
|
|
71
75
|
Object.defineProperty(exports, "keyring_status", { enumerable: true, get: function () { return index_8.keyring_status; } });
|
|
72
76
|
Object.defineProperty(exports, "unlock_keyring", { enumerable: true, get: function () { return index_8.unlock_keyring; } });
|
|
73
77
|
Object.defineProperty(exports, "migrate_keyring", { enumerable: true, get: function () { return index_8.migrate_keyring; } });
|
|
74
78
|
Object.defineProperty(exports, "set_keyring_passphrase", { enumerable: true, get: function () { return index_8.set_keyring_passphrase; } });
|
|
75
79
|
Object.defineProperty(exports, "remove_keyring_passphrase", { enumerable: true, get: function () { return index_8.remove_keyring_passphrase; } });
|
|
76
80
|
Object.defineProperty(exports, "notify_keyring_migration_completed", { enumerable: true, get: function () { return index_8.notify_keyring_migration_completed; } });
|
|
77
|
-
Object.defineProperty(exports, "
|
|
78
|
-
Object.defineProperty(exports, "on_keyring_status_changed", { enumerable: true, get: function () { return index_8.on_keyring_status_changed; } });
|
|
81
|
+
Object.defineProperty(exports, "ping", { enumerable: true, get: function () { return index_8.ping; } });
|
|
79
82
|
Object.defineProperty(exports, "validate_keyring_passphrase", { enumerable: true, get: function () { return index_8.validate_keyring_passphrase; } });
|