chia-agent 5.0.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -0
- package/README.md +7 -7
- package/api/chia/farmer/farmer.d.ts +1 -0
- package/api/chia/harvester/harvester.d.ts +2 -3
- package/api/chia/plot-sync/receiver.d.ts +22 -0
- package/api/chia/plot-sync/receiver.js +2 -0
- package/api/chia/protocols/harvester_protocol.d.ts +0 -5
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +23 -0
- package/api/chia/wallet/nft_wallet/nft_info.js +2 -0
- package/api/chia/wallet/puzzle_drivers.d.ts +6 -0
- package/api/chia/wallet/puzzle_drivers.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +2 -0
- package/api/chia/wallet/util/wallet_types.d.ts +2 -1
- package/api/chia/wallet/util/wallet_types.js +2 -1
- package/api/rpc/farmer/index.d.ts +83 -10
- package/api/rpc/farmer/index.js +36 -1
- package/api/rpc/index.d.ts +6 -6
- package/api/rpc/index.js +27 -3
- package/api/rpc/wallet/index.d.ts +304 -28
- package/api/rpc/wallet/index.js +135 -7
- package/api/ws/farmer/index.d.ts +32 -9
- package/api/ws/farmer/index.js +44 -5
- package/api/ws/harvester/index.d.ts +13 -2
- package/api/ws/harvester/index.js +14 -1
- package/api/ws/index.d.ts +6 -6
- package/api/ws/index.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,150 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [8.0.0]
|
|
4
|
+
### Breaking Change
|
|
5
|
+
- [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
|
|
6
|
+
- Renamed `series_number` to `edition_number`.
|
|
7
|
+
- Renamed `series_total` to `edition_total`.
|
|
8
|
+
### Added
|
|
9
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
10
|
+
- [`get_current_derivation_index`](./src/api/rpc/wallet/README.md#get_current_derivation_indexagent)
|
|
11
|
+
- [`extend_derivation_index`](./src/api/rpc/wallet/README.md#extend_derivation_indexagent-params)
|
|
12
|
+
### Changed
|
|
13
|
+
- [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
|
|
14
|
+
- Added `min_coin_amount` to request parameter
|
|
15
|
+
- [`cat_spend`](./src/api/rpc/wallet/README.md#cat_spendagent-params)
|
|
16
|
+
- Added `min_coin_amount` to request parameter
|
|
17
|
+
- [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
|
|
18
|
+
- Added `min_coin_amount` to request parameter
|
|
19
|
+
- [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
|
|
20
|
+
- Added `min_coin_amount` to request parameter
|
|
21
|
+
- [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
|
|
22
|
+
- Renamed `series_number` to `edition_number`.
|
|
23
|
+
- Renamed `series_total` to `edition_total`.
|
|
24
|
+
- [`create_signed_transaction`](./src/api/rpc/wallet/README.md#create_signed_transactionagent-params)
|
|
25
|
+
- Added `min_coin_amount` to request parameter
|
|
26
|
+
|
|
27
|
+
## [7.0.0]
|
|
28
|
+
### Breaking Change
|
|
29
|
+
- [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
|
|
30
|
+
- Renamed `filename` to `backup_data`.
|
|
31
|
+
- [`did_get_recovery_list`](./src/api/rpc/wallet/README.md#did_get_recovery_listagent-params)
|
|
32
|
+
- Renamed `recover_list` to `recovery_list`.
|
|
33
|
+
- [`did_recovery_spend`](./src/api/rpc/wallet/README.md#did_recovery_spendagent-params)
|
|
34
|
+
- Renamed `attest_filenames` to `attest_data`.
|
|
35
|
+
- Changed the type of `success` response property to `bool` from `SpendBundle`.
|
|
36
|
+
- Added `spend_bundle` to response.
|
|
37
|
+
- [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
|
|
38
|
+
- Removed `filename` from request.
|
|
39
|
+
- Added `attest_data` to response.
|
|
40
|
+
- [`did_create_backup_file`](./src/api/rpc/wallet/README.md#did_create_backup_fileagent-params)
|
|
41
|
+
- Removed `filename` from request.
|
|
42
|
+
- Added `backup_data` to response.
|
|
43
|
+
### Added
|
|
44
|
+
- [New Farmer WebSocket API](./src/api/ws/farmer)
|
|
45
|
+
- [`on_proof`](./src/api/ws/farmer/README.md#on_proof)
|
|
46
|
+
- [`on_submitted_partial`](./src/api/ws/farmer/README.md#on_submitted_partial)
|
|
47
|
+
- [New Harvester WebSocket API](./src/api/ws/harvester)
|
|
48
|
+
- [`on_farming_info`](./src/api/ws/harvester/README.md#on_farming_info)
|
|
49
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
50
|
+
- [`did_set_wallet_name`](./src/api/rpc/wallet/README.md#did_set_wallet_nameagent-params)
|
|
51
|
+
- [`did_get_wallet_name`](./src/api/rpc/wallet/README.md#did_get_wallet_nameagent-params)
|
|
52
|
+
- [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
|
|
53
|
+
- [`did_get_metadata`](./src/api/rpc/wallet/README.md#did_get_metadataagent-params)
|
|
54
|
+
- [`did_get_current_coin_info`](./src/api/rpc/wallet/README.md#did_get_current_coin_infoagent-params)
|
|
55
|
+
- [`did_transfer_did`](./src/api/rpc/wallet/README.md#did_transfer_didagent-params)
|
|
56
|
+
- [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
|
|
57
|
+
- [`nft_get_nfts`](./src/api/rpc/wallet/README.md#nft_get_nftsagent-params)
|
|
58
|
+
- [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
|
|
59
|
+
- [`nft_get_by_did`](./src/api/rpc/wallet/README.md#nft_get_by_didagent-params)
|
|
60
|
+
- [`nft_get_wallet_did`](./src/api/rpc/wallet/README.md#nft_get_wallet_didagent-params)
|
|
61
|
+
- [`nft_get_wallets_with_dids`](./src/api/rpc/wallet/README.md#nft_get_wallets_with_didsagent)
|
|
62
|
+
- [`nft_set_nft_status`](./src/api/rpc/wallet/README.md#nft_set_nft_statusagent-params)
|
|
63
|
+
- [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
|
|
64
|
+
- [`nft_get_info`](./src/api/rpc/wallet/README.md#nft_get_infoagent-params)
|
|
65
|
+
- [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
|
|
66
|
+
### Changed
|
|
67
|
+
- [`get_reward_targets`](./src/api/rpc/farmer/README.md#get_reward_targetsagent-params)
|
|
68
|
+
- Added `max_ph_to_search` to request parameter
|
|
69
|
+
- [`check_delete_key`](./src/api/rpc/wallet/README.md#check_delete_keyagent-params)
|
|
70
|
+
- Added `max_ph_to_search` to request parameter
|
|
71
|
+
- [`get_wallets`](./src/api/rpc/wallet/README.md#get_walletsagent-params)
|
|
72
|
+
- Added `include_data` to request parameter
|
|
73
|
+
- [`create_new_wallet`](./src/api/rpc/wallet/README.md#create_new_walletagent-params)
|
|
74
|
+
- Added `metadata` and `wallet_name` to request parameter for DID wallet
|
|
75
|
+
- Changed parameter name from `filename` and `backup_data` for request parameter for DID wallet recovery
|
|
76
|
+
- Added NFT Wallet type
|
|
77
|
+
- [`create_offer_for_ids`](./src/api/rpc/wallet/README.md#create_offer_for_idsagent-params)
|
|
78
|
+
- Added `driver_dict` to request parameter
|
|
79
|
+
- [`get_offer_summary`](./src/api/rpc/wallet/README.md#get_offer_summaryagent-params)
|
|
80
|
+
- Added `infos` to response parameter
|
|
81
|
+
- [`did_update_recovery_ids`](./src/api/rpc/wallet/README.md#did_update_recovery_idsagent-params)
|
|
82
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
83
|
+
- [`did_get_did`](./src/api/rpc/wallet/README.md#did_get_didagent-params)
|
|
84
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
85
|
+
- [`did_get_recovery_list`](./src/api/rpc/wallet/README.md#did_get_recovery_listagent-params)
|
|
86
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
87
|
+
- Renamed `recover_list` to `recovery_list`.
|
|
88
|
+
- [`did_recovery_spend`](./src/api/rpc/wallet/README.md#did_recovery_spendagent-params)
|
|
89
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
90
|
+
- Renamed `attest_filenames` to `attest_data`.
|
|
91
|
+
- Changed response dict format
|
|
92
|
+
- [`did_get_pubkey`](./src/api/rpc/wallet/README.md#did_get_pubkeyagent-params)
|
|
93
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
94
|
+
- [`did_create_attest`](./src/api/rpc/wallet/README.md#did_create_attestagent-params)
|
|
95
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
96
|
+
- Removed `filename` from request.
|
|
97
|
+
- Added `attest_data` to response.
|
|
98
|
+
- [`did_get_information_needed_for_recovery`](./src/api/rpc/wallet/README.md#did_get_information_needed_for_recoveryagent-params)
|
|
99
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
100
|
+
- [`did_create_backup_file`](./src/api/rpc/wallet/README.md#did_create_backup_fileagent-params)
|
|
101
|
+
- Changed the type of `wallet_id` to `uint32` from `int`.
|
|
102
|
+
- Removed `filename` from request.
|
|
103
|
+
- Added `backup_data` to response.
|
|
104
|
+
- `TradeRecordConvenience` type at `chia/wallet/trade_record.py` was changed.
|
|
105
|
+
(Added `infos` property to `summary` dict)
|
|
106
|
+
As a result, the following APIs are affected:
|
|
107
|
+
- `create_offer_for_ids` of Wallet RPC API
|
|
108
|
+
- `take_offer` of Wallet RPC API
|
|
109
|
+
- `get_offer` of Wallet RPC API
|
|
110
|
+
- `get_all_offers` of Wallet RPC API
|
|
111
|
+
- Renamed `DISTRIBUTED_ID` to `DECENTRALIZED_ID` of `WalletType` in `src/api/chia/wallet/util/wallet_type.ts`.
|
|
112
|
+
- Added `NFT` to `WalletType` in `src/api/chia/wallet/util/wallet_type.ts`.
|
|
113
|
+
### Fixed
|
|
114
|
+
- Fixed an issue where README description for `did_get_pubkey` was wrong.
|
|
115
|
+
- Fixed an issue where the type of `pubkey` response property for `did_get_pubkey` was wrong.
|
|
116
|
+
|
|
117
|
+
## [6.0.0]
|
|
118
|
+
### Minor Breaking Change
|
|
119
|
+
- At chia-blockchain@1.3.5, a farmer websocket API `new_plots` was replaced by
|
|
120
|
+
`harvester_update` and `harvester_removed`.
|
|
121
|
+
This change is not critical because in application's point of view it may just miss new plot info but
|
|
122
|
+
farming will continue without problem.
|
|
123
|
+
### Removed
|
|
124
|
+
- [Farmer WebSocket API](./src/api/ws/farmer)
|
|
125
|
+
- `on_new_plots`
|
|
126
|
+
### Added
|
|
127
|
+
- [New Farmer WebSocket API](./src/api/ws/farmer)
|
|
128
|
+
- [`harvester_updated`](./src/api/ws/farmer/README.md#on_harvester_update)
|
|
129
|
+
- [`harvester_removed`](./src/api/ws/farmer/README.md#on_harvester_removed)
|
|
130
|
+
- [New Farmer RPC API](./src/api/rpc/farmer)
|
|
131
|
+
- [`get_harvesters_summary`](./src/api/rpc/farmer/README.md#get_harvesters_summaryagent)
|
|
132
|
+
- [`get_harvester_plots_valid`](./src/api/rpc/farmer/README.md#get_harvester_plots_validagent-params)
|
|
133
|
+
- [`get_harvester_plots_invalid`](./src/api/rpc/farmer/README.md#get_harvester_plots_invalidagent-params)
|
|
134
|
+
- [`get_harvester_plots_keys_missing`](./src/api/rpc/farmer/README.md#get_harvester_plots_keys_missingagent-params)
|
|
135
|
+
- [`get_harvester_plots_duplicates`](./src/api/rpc/farmer/README.md#get_harvester_plots_duplicatesagent-params)
|
|
136
|
+
### Changed
|
|
137
|
+
- `Plot` type at `chia/harvester/harvester.py` was changed.
|
|
138
|
+
(Removed deprecated `plot-seed` and change the type of `time_modified` to `int` from `float`)
|
|
139
|
+
As a result, the following APIs are affected:
|
|
140
|
+
- `get_plots` of Harvester RPC API
|
|
141
|
+
- `on_get_plots` of Harvester WebSocket API
|
|
142
|
+
- [`get_pool_state`](./src/api/rpc/farmer/README.md#get_pool_stateagent)
|
|
143
|
+
- `plot_count` property is added
|
|
144
|
+
### Fixed
|
|
145
|
+
- Fixed an issue where README description of `get_harvesters`(Farmer RPC API) did not reflect actual API format
|
|
146
|
+
- Added missing `get_pool_login_link` of Farmer RPC API to `./src/api/rpc/index.ts`
|
|
147
|
+
|
|
3
148
|
## [5.0.0]
|
|
4
149
|
### Breaking Change
|
|
5
150
|
- At chia-blockchain@1.3.4, in `chia/consensus/cost_calculator.py`,
|
|
@@ -353,6 +498,9 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
353
498
|
Initial release.
|
|
354
499
|
|
|
355
500
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
501
|
+
[8.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v7.0.0...v8.0.0
|
|
502
|
+
[7.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v6.0.0...v7.0.0
|
|
503
|
+
[6.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v5.0.0...v6.0.0
|
|
356
504
|
[5.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v4.0.0...v5.0.0
|
|
357
505
|
[4.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.1...v4.0.0
|
|
358
506
|
[3.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v3.0.0...v3.0.1
|
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.
|
|
5
|
+
Supports all RPC/Websocket API available at `chia 1.5.0`.
|
|
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,10 +22,10 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the
|
|
27
|
-
- [`
|
|
28
|
-
- [Diff to the
|
|
25
|
+
- [`787e96b8edc6ed95ca7a6d6ade115a62e6bff672`](https://github.com/Chia-Network/chia-blockchain/tree/787e96b8edc6ed95ca7a6d6ade115a62e6bff672) of [chia-blockchain 1.5.0](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/787e96b8edc6ed95ca7a6d6ade115a62e6bff672...main)
|
|
27
|
+
- [`495f71e3acc93b18f10cfa9aac6a5b68cc7064c2`](https://github.com/Chia-Network/pool-reference/tree/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
|
+
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/495f71e3acc93b18f10cfa9aac6a5b68cc7064c2...main)
|
|
29
29
|
|
|
30
30
|
## API
|
|
31
31
|
There are 2 kinds of APIs in chia.
|
|
@@ -53,12 +53,12 @@ console.log(res.plots[0]);
|
|
|
53
53
|
{
|
|
54
54
|
file_size: 108875876912,
|
|
55
55
|
filename: 'M:\\plot-k32-yyyy-mm-dd-xx-xx-xxxxxxxxxxxxxxxxxxxxxxxxx.plot',
|
|
56
|
-
|
|
56
|
+
plot_id: '...',
|
|
57
57
|
plot_public_key: '0x934a93489...',
|
|
58
58
|
pool_contract_puzzle_hash: null,
|
|
59
59
|
pool_public_key: '0xb0aa9485c0d...',
|
|
60
60
|
size: 32,
|
|
61
|
-
time_modified: 1619540745
|
|
61
|
+
time_modified: 1619540745
|
|
62
62
|
}
|
|
63
63
|
*/
|
|
64
64
|
```
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { bytes,
|
|
1
|
+
import { bytes, G1Element, int, Optional, str } from "../types/_python_types_";
|
|
2
2
|
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
3
|
export declare type Plot = {
|
|
4
4
|
filename: str;
|
|
5
5
|
size: int;
|
|
6
|
-
"plot-seed": bytes;
|
|
7
6
|
plot_id: bytes;
|
|
8
7
|
pool_public_key: Optional<G1Element>;
|
|
9
8
|
pool_contract_puzzle_hash: Optional<bytes32>;
|
|
10
9
|
plot_public_key: G1Element;
|
|
11
10
|
file_size: int;
|
|
12
|
-
time_modified:
|
|
11
|
+
time_modified: int;
|
|
13
12
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { bool, float, int, None, Optional, str, uint32 } from "../types/_python_types_";
|
|
3
|
+
import { Plot } from "../protocols/harvester_protocol";
|
|
4
|
+
export declare type MayBeSummary<S, O> = S extends true ? int : O;
|
|
5
|
+
export declare type Receiver<SUMMARY extends boolean = false> = {
|
|
6
|
+
connection: {
|
|
7
|
+
node_id: bytes32;
|
|
8
|
+
host: str;
|
|
9
|
+
port: int;
|
|
10
|
+
};
|
|
11
|
+
plots: MayBeSummary<SUMMARY, Plot[]>;
|
|
12
|
+
failed_to_open_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
13
|
+
no_key_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
14
|
+
duplicates: MayBeSummary<SUMMARY, str[]>;
|
|
15
|
+
total_plot_size: int;
|
|
16
|
+
syncing: {
|
|
17
|
+
initial: bool;
|
|
18
|
+
plot_files_processed: uint32;
|
|
19
|
+
plot_files_total: uint32;
|
|
20
|
+
} | None;
|
|
21
|
+
last_sync_time: Optional<float>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { bool, bytes, Optional, str, uint16, uint32, uint64 } from "../../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type NFTInfo = {
|
|
4
|
+
launcher_id: bytes32;
|
|
5
|
+
nft_coin_id: bytes32;
|
|
6
|
+
owner_did: Optional<bytes32>;
|
|
7
|
+
royalty_percentage: Optional<uint16>;
|
|
8
|
+
royalty_puzzle_hash: Optional<bytes32>;
|
|
9
|
+
data_uris: str[];
|
|
10
|
+
data_hash: bytes;
|
|
11
|
+
metadata_uris: str[];
|
|
12
|
+
metadata_hash: bytes;
|
|
13
|
+
license_uris: str[];
|
|
14
|
+
license_hash: bytes;
|
|
15
|
+
series_total: uint64;
|
|
16
|
+
series_number: uint64;
|
|
17
|
+
updater_puzhash: bytes32;
|
|
18
|
+
chain_info: str;
|
|
19
|
+
mint_height: uint32;
|
|
20
|
+
supports_did: bool;
|
|
21
|
+
pending_transaction: bool;
|
|
22
|
+
launcher_puzhash: bytes32;
|
|
23
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bool, bytes, int, Optional, str, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
2
2
|
import { Coin } from "../types/blockchain_format/coin";
|
|
3
3
|
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
4
|
+
import { TDriverDict } from "./puzzle_drivers";
|
|
4
5
|
export declare type TradeRecord = {
|
|
5
6
|
confirmed_at_index: uint32;
|
|
6
7
|
accepted_at_time: Optional<uint64>;
|
|
@@ -18,6 +19,7 @@ export declare type TradeRecordConvenience = {
|
|
|
18
19
|
summary: {
|
|
19
20
|
offered: Record<str, int>;
|
|
20
21
|
requested: Record<str, int>;
|
|
22
|
+
infos: TDriverDict;
|
|
21
23
|
fees: int;
|
|
22
24
|
};
|
|
23
25
|
pending: Record<str, int>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ProofOfSpace } from "../../chia/types/blockchain_format/proof_of_space";
|
|
2
|
-
import { bool, int, str, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
2
|
+
import { bool, int, Optional, str, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
3
3
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
4
4
|
import { TRPCAgent } from "../../../rpc/index";
|
|
5
|
-
import { RespondPlots } from "../../chia/protocols/harvester_protocol";
|
|
6
5
|
import { PoolState } from "../../chia/farmer/farmer";
|
|
6
|
+
import { Receiver } from "../../chia/plot-sync/receiver";
|
|
7
|
+
import { Plot } from "../../chia/protocols/harvester_protocol";
|
|
7
8
|
export declare const chia_farmer_service = "chia_farmer";
|
|
8
9
|
export declare type chia_farmer_service = typeof chia_farmer_service;
|
|
9
10
|
export declare const get_signage_point_command = "get_signage_point";
|
|
@@ -34,6 +35,7 @@ export declare const get_reward_targets_command = "get_reward_targets";
|
|
|
34
35
|
export declare type get_reward_targets_command = typeof get_reward_targets_command;
|
|
35
36
|
export declare type TGetRewardTargetRequest = {
|
|
36
37
|
search_for_private_key: bool;
|
|
38
|
+
max_ph_to_search?: int;
|
|
37
39
|
};
|
|
38
40
|
export declare type TGetRewardTargetResponse = {
|
|
39
41
|
farmer_target: str;
|
|
@@ -68,20 +70,91 @@ export declare type TSetPayoutInstructionsRequest = {
|
|
|
68
70
|
};
|
|
69
71
|
export declare type TSetPayoutInstructionsResponse = {};
|
|
70
72
|
export declare function set_pool_payout_instructions(agent: TRPCAgent, params: TSetPayoutInstructionsRequest): Promise<TSetPayoutInstructionsResponse>;
|
|
71
|
-
export declare type HarvesterObject = RespondPlots & {
|
|
72
|
-
connection: {
|
|
73
|
-
node_id: str;
|
|
74
|
-
host: str;
|
|
75
|
-
port: int;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
73
|
export declare const get_harvesters_command = "get_harvesters";
|
|
79
74
|
export declare type get_harvesters_command = typeof get_harvesters_command;
|
|
80
75
|
export declare type TGetHarvestersRequest = {};
|
|
81
76
|
export declare type TGetHarvestersResponse = {
|
|
82
|
-
harvesters:
|
|
77
|
+
harvesters: Receiver[];
|
|
83
78
|
};
|
|
84
79
|
export declare function get_harvesters(agent: TRPCAgent): Promise<TGetHarvestersResponse>;
|
|
80
|
+
export declare const get_harvesters_summary_command = "get_harvesters_summary";
|
|
81
|
+
export declare type get_harvesters_summary_command = typeof get_harvesters_summary_command;
|
|
82
|
+
export declare type TGetHarvestersSummaryResponse = {
|
|
83
|
+
harvesters: Receiver<true>[];
|
|
84
|
+
};
|
|
85
|
+
export declare function get_harvesters_summary(agent: TRPCAgent): Promise<TGetHarvestersSummaryResponse>;
|
|
86
|
+
export declare const get_harvester_plots_valid_command = "get_harvester_plots_valid";
|
|
87
|
+
export declare type get_harvester_plots_valid_command = typeof get_harvester_plots_valid_command;
|
|
88
|
+
export declare type TGetHarvesterPlotsValidRequest = {
|
|
89
|
+
node_id: bytes32;
|
|
90
|
+
page: int;
|
|
91
|
+
page_size: int;
|
|
92
|
+
filter: Array<{
|
|
93
|
+
key: str;
|
|
94
|
+
value: Optional<str>;
|
|
95
|
+
}>;
|
|
96
|
+
sort_key: str;
|
|
97
|
+
reverse: bool;
|
|
98
|
+
};
|
|
99
|
+
export declare type TGetHarvesterPlotsValidResponse = {
|
|
100
|
+
node_id: str;
|
|
101
|
+
page: int;
|
|
102
|
+
page_count: int;
|
|
103
|
+
total_count: int;
|
|
104
|
+
plots: Plot[];
|
|
105
|
+
};
|
|
106
|
+
export declare function get_harvester_plots_valid(agent: TRPCAgent, param: TGetHarvesterPlotsValidRequest): Promise<TGetHarvesterPlotsValidResponse>;
|
|
107
|
+
export declare const get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
|
|
108
|
+
export declare type get_harvester_plots_invalid_command = typeof get_harvester_plots_invalid_command;
|
|
109
|
+
export declare type TGetHarvesterPlotsInvalidRequest = {
|
|
110
|
+
node_id: bytes32;
|
|
111
|
+
page: int;
|
|
112
|
+
page_size: int;
|
|
113
|
+
filter: str[];
|
|
114
|
+
reverse: bool;
|
|
115
|
+
};
|
|
116
|
+
export declare type TGetHarvesterPlotsInvalidResponse = {
|
|
117
|
+
node_id: str;
|
|
118
|
+
page: int;
|
|
119
|
+
page_count: int;
|
|
120
|
+
total_count: int;
|
|
121
|
+
plots: str[];
|
|
122
|
+
};
|
|
123
|
+
export declare function get_harvester_plots_invalid(agent: TRPCAgent, param: TGetHarvesterPlotsInvalidRequest): Promise<TGetHarvesterPlotsInvalidResponse>;
|
|
124
|
+
export declare const get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
|
|
125
|
+
export declare type get_harvester_plots_keys_missing_command = typeof get_harvester_plots_keys_missing_command;
|
|
126
|
+
export declare type TGetHarvesterPlotsKeysMissingRequest = {
|
|
127
|
+
node_id: bytes32;
|
|
128
|
+
page: int;
|
|
129
|
+
page_size: int;
|
|
130
|
+
filter: str[];
|
|
131
|
+
reverse: bool;
|
|
132
|
+
};
|
|
133
|
+
export declare type TGetHarvesterPlotsKeysMissingResponse = {
|
|
134
|
+
node_id: str;
|
|
135
|
+
page: int;
|
|
136
|
+
page_count: int;
|
|
137
|
+
total_count: int;
|
|
138
|
+
plots: str[];
|
|
139
|
+
};
|
|
140
|
+
export declare function get_harvester_plots_keys_missing(agent: TRPCAgent, param: TGetHarvesterPlotsKeysMissingRequest): Promise<TGetHarvesterPlotsKeysMissingResponse>;
|
|
141
|
+
export declare const get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
|
|
142
|
+
export declare type get_harvester_plots_duplicates_command = typeof get_harvester_plots_duplicates_command;
|
|
143
|
+
export declare type TGetHarvesterPlotsDuplicatesRequest = {
|
|
144
|
+
node_id: bytes32;
|
|
145
|
+
page: int;
|
|
146
|
+
page_size: int;
|
|
147
|
+
filter: str[];
|
|
148
|
+
reverse: bool;
|
|
149
|
+
};
|
|
150
|
+
export declare type TGetHarvesterPlotsDuplicatesResponse = {
|
|
151
|
+
node_id: str;
|
|
152
|
+
page: int;
|
|
153
|
+
page_count: int;
|
|
154
|
+
total_count: int;
|
|
155
|
+
plots: str[];
|
|
156
|
+
};
|
|
157
|
+
export declare function get_harvester_plots_duplicates(agent: TRPCAgent, param: TGetHarvesterPlotsDuplicatesRequest): Promise<TGetHarvesterPlotsDuplicatesResponse>;
|
|
85
158
|
export declare const get_pool_login_link_command = "get_pool_login_link";
|
|
86
159
|
export declare type get_pool_login_link_command = typeof get_pool_login_link_command;
|
|
87
160
|
export declare type TGetPoolLinkRequest = {
|
package/api/rpc/farmer/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.get_pool_login_link = exports.get_pool_login_link_command = exports.get_harvesters = exports.get_harvesters_command = exports.set_pool_payout_instructions = exports.set_payout_instructions_command = exports.get_pool_state = exports.get_pool_state_command = exports.set_reward_targets = exports.set_reward_targets_command = exports.get_reward_targets = exports.get_reward_targets_command = exports.get_signage_points = exports.get_signage_points_command = exports.get_signage_point = exports.get_signage_point_command = exports.chia_farmer_service = void 0;
|
|
12
|
+
exports.get_pool_login_link = exports.get_pool_login_link_command = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_duplicates_command = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_keys_missing_command = exports.get_harvester_plots_invalid = exports.get_harvester_plots_invalid_command = exports.get_harvester_plots_valid = exports.get_harvester_plots_valid_command = exports.get_harvesters_summary = exports.get_harvesters_summary_command = exports.get_harvesters = exports.get_harvesters_command = exports.set_pool_payout_instructions = exports.set_payout_instructions_command = exports.get_pool_state = exports.get_pool_state_command = exports.set_reward_targets = exports.set_reward_targets_command = exports.get_reward_targets = exports.get_reward_targets_command = exports.get_signage_points = exports.get_signage_points_command = exports.get_signage_point = exports.get_signage_point_command = exports.chia_farmer_service = void 0;
|
|
13
13
|
exports.chia_farmer_service = "chia_farmer";
|
|
14
14
|
exports.get_signage_point_command = "get_signage_point";
|
|
15
15
|
function get_signage_point(agent, params) {
|
|
@@ -60,6 +60,41 @@ function get_harvesters(agent) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
exports.get_harvesters = get_harvesters;
|
|
63
|
+
exports.get_harvesters_summary_command = "get_harvesters_summary";
|
|
64
|
+
function get_harvesters_summary(agent) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
return agent.sendMessage(exports.chia_farmer_service, exports.get_harvesters_summary_command);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
exports.get_harvesters_summary = get_harvesters_summary;
|
|
70
|
+
exports.get_harvester_plots_valid_command = "get_harvester_plots_valid";
|
|
71
|
+
function get_harvester_plots_valid(agent, param) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_valid_command, param);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
exports.get_harvester_plots_valid = get_harvester_plots_valid;
|
|
77
|
+
exports.get_harvester_plots_invalid_command = "get_harvester_plots_invalid";
|
|
78
|
+
function get_harvester_plots_invalid(agent, param) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_invalid_command, param);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
exports.get_harvester_plots_invalid = get_harvester_plots_invalid;
|
|
84
|
+
exports.get_harvester_plots_keys_missing_command = "get_harvester_plots_keys_missing";
|
|
85
|
+
function get_harvester_plots_keys_missing(agent, param) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_keys_missing_command, param);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
exports.get_harvester_plots_keys_missing = get_harvester_plots_keys_missing;
|
|
91
|
+
exports.get_harvester_plots_duplicates_command = "get_harvester_plots_duplicates";
|
|
92
|
+
function get_harvester_plots_duplicates(agent, param) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return agent.sendMessage(exports.chia_farmer_service, exports.get_harvester_plots_duplicates_command, param);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
exports.get_harvester_plots_duplicates = get_harvester_plots_duplicates;
|
|
63
98
|
exports.get_pool_login_link_command = "get_pool_login_link";
|
|
64
99
|
function get_pool_login_link(agent, params) {
|
|
65
100
|
return __awaiter(this, void 0, void 0, function* () {
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { TGetRewardTargetResponse, TGetSignagePointResponse, TGetSignagePointsResponse, TSetRewardTargetResponse, TGetHarvestersResponse, TSetPayoutInstructionsResponse, TGetPoolStateResponse } from "./farmer/index";
|
|
2
|
-
export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, TGetSignagePointRequest, TGetSignagePointResponse, TGetSignagePointsRequest, TGetSignagePointsResponse, TSetRewardTargetRequest, TSetRewardTargetResponse, TGetHarvestersRequest, TGetHarvestersResponse, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, TGetPoolStateRequest, TGetPoolStateResponse, get_reward_targets, get_signage_point, get_signage_points, set_reward_targets, get_harvesters, set_pool_payout_instructions, get_pool_state, } from "./farmer/index";
|
|
1
|
+
import type { TGetRewardTargetResponse, TGetSignagePointResponse, TGetSignagePointsResponse, TSetRewardTargetResponse, TGetHarvestersResponse, TGetHarvestersSummaryResponse, TGetHarvesterPlotsValidResponse, TGetHarvesterPlotsInvalidResponse, TGetHarvesterPlotsKeysMissingResponse, TGetHarvesterPlotsDuplicatesResponse, TSetPayoutInstructionsResponse, TGetPoolStateResponse, TGetPoolLinkResponse } from "./farmer/index";
|
|
2
|
+
export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, TGetSignagePointRequest, TGetSignagePointResponse, TGetSignagePointsRequest, TGetSignagePointsResponse, TSetRewardTargetRequest, TSetRewardTargetResponse, TGetHarvestersRequest, TGetHarvestersResponse, TGetHarvestersSummaryResponse, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, TGetPoolStateRequest, TGetPoolStateResponse, TGetPoolLinkRequest, TGetPoolLinkResponse, get_reward_targets, get_signage_point, get_signage_points, set_reward_targets, get_harvesters, get_harvesters_summary, get_harvester_plots_valid, get_harvester_plots_invalid, get_harvester_plots_keys_missing, get_harvester_plots_duplicates, get_pool_login_link, set_pool_payout_instructions, get_pool_state, } from "./farmer/index";
|
|
3
3
|
import type { TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightResponse, TGetBlockRecordResponse, TGetBlockRecordsResponse, TGetBlockResponse, TGetBlockchainStateResponse, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordByNameResponse, TGetCoinRecordsByNamesResponse, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesResponse, TGetCoinRecordsByParentIdsResponse, TGetCoinRecordsByHintResponse, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdResponse, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersResponse, TPushTxResponse } from "./full_node/index";
|
|
4
4
|
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, TGetBlockRecordRequest, TGetBlockRecordResponse, TGetBlockRecordsRequest, TGetBlockRecordsResponse, TGetBlockRequest, TGetBlockResponse, TGetBlockchainStateRequest, TGetBlockchainStateResponse, TGetBlocksRequest, TGetBlocksResponse, TGetBlockCountMetricsResponse, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, TPushTxRequest, TPushTxResponse, get_additions_and_removals, get_all_mempool_items, get_all_mempool_tx_ids, get_block, get_block_record, get_block_record_by_height, get_block_records, get_blockchain_state, get_blocks, get_block_count_metrics, get_recent_signage_point_or_eos, get_coin_record_by_name, get_coin_records_by_names, get_coin_records_by_puzzle_hash, get_coin_records_by_puzzle_hashes, get_coin_records_by_parent_ids, get_coin_records_by_hint, get_initial_freeze_period_of_full_node, get_mempool_item_by_tx_id, get_network_info_of_full_node, get_network_space, get_unfinished_block_headers, push_tx, } 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, TDeletePlotRequest, TDeletePlotResponse, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, TGetPlotsRequest, TGetPlotsResponse, TRefreshPlotsRequest, TRefreshPlotsResponse, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, add_plot_directory, delete_plot, get_plot_directories, get_plots, refresh_plots, remove_plot_directory, } from "./harvester/index";
|
|
7
|
-
import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, TCatGetAssetIdResponse, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameResponse, TCatSetNameResponse, TCatSpendResponse, TCheckOfferValidityResponse, TCreateNewWalletResponse, TCreateOfferForIdsResponse, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsResponse, TDeleteAllKeysResponse, TDeleteKeyResponse, TDidCreateAttestResponse, TDidCreateBackupFileResponse, TDidGetDidResponse, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyResponse, TDidGetRecoveryListResponse, TDidRecoverySpendResponse, TDidSpendResponse, TDidUpdateRecoveryIdsResponse, 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 } from "./wallet/index";
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, TAdditions, TCancelOfferRequest, TCancelOfferResponse, TCatGetAssetIdRequest, TCatGetAssetIdResponse, TCatGetNameRequest, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, TCatSetNameRequest, TCatSetNameResponse, TCatSpendRequest, TCatSpendResponse, TCheckOfferValidityRequest, TCheckOfferValidityResponse, TCreateNewWalletRequest, TCreateNewWalletResponse, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsRequest, TSelectCoinsResponse, 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, TDeleteKeyRequest, TDeleteKeyResponse, TDidCreateAttestRequest, TDidCreateAttestResponse, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, TDidGetDidRequest, TDidGetDidResponse, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, TDidGetPubkeyRequest, TDidGetPubkeyResponse, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, TDidRecoverySpendRequest, TDidRecoverySpendResponse, TDidSpendRequest, TDidSpendResponse, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, TFarmBlockRequest, TFarmBlockResponse, TGenerateMnemonicRequest, TGenerateMnemonicResponse, TGetAllOffersRequest, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountRequest, TGetFarmedAmountResponse, TGetHeightInfoRequest, TGetHeightInfoResponse, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetOfferRequest, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryRequest, TGetOfferSummaryResponse, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, TGetNextAddressRequest, TGetNextAddressResponse, TGetPrivateKeyRequest, TGetPrivateKeyResponse, TGetPublicKeysRequest, TGetPublicKeysResponse, TGetSyncStatusRequest, TGetSyncStatusResponse, TGetTransactionCountRequest, TGetTransactionCountResponse, TGetTransactionRequest, TGetTransactionResponse, TGetTransactionsRequest, TGetTransactionsResponse, TGetWalletBalanceRequest, TGetWalletBalanceResponse, TGetWalletsRequest, TGetWalletsResponse, TLoginRequest, TLoginResponse, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, TPwJoinPoolRequest, TPwJoinPoolResponse, TPwSelfPoolRequest, TPwSelfPoolResponse, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, TPwStatusRequest, TPwStatusResponse, TRlSetUserInfoRequest, TRlSetUserInfoResponse, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, TSendTransactionRequest, TSendTransactionResponse, TSendTransactionMultiRequest, TSendTransactionMultiResponse, TTakeOfferRequest, TTakeOfferResponse, add_key, add_rate_limited_funds, cancel_offer, cat_get_asset_id, cat_get_name, get_stray_cats, cat_asset_id_to_name, cat_set_name, cat_spend, check_offer_validity, create_new_wallet, create_offer_for_ids, create_signed_transaction, delete_unconfirmed_transactions, select_coins, delete_all_keys, delete_key, did_create_attest, did_create_backup_file, did_get_did, did_get_information_needed_for_recovery, did_get_pubkey, did_get_recovery_list, did_recovery_spend, did_spend, did_update_recovery_ids, farm_block, generate_mnemonic, get_all_offers, get_cat_list, get_farmed_amount, get_height_info, get_initial_freeze_period_of_wallet, get_logged_in_fingerprint, get_offer, get_offers_count, get_offer_summary, get_network_info_of_wallet, get_next_address, get_private_key, get_public_keys, get_sync_status, get_transaction, get_transaction_count, get_transactions, get_wallet_balance, get_wallets, log_in, push_tx as push_tx_wallet, pw_join_pool, pw_self_pool, pw_absorb_rewards, pw_status, rl_set_user_info, send_clawback_transaction, send_transaction, send_transaction_multi, take_offer, } from "./wallet/index";
|
|
7
|
+
import type { TAddKeyResponse, TAddRateLimitedFundsResponse, TCancelOfferResponse, 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 } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, TAdditions, TCancelOfferRequest, TCancelOfferResponse, TCatGetAssetIdRequest, TCatGetAssetIdResponse, TCatGetNameRequest, TCatGetNameResponse, TGetStrayCatsResponse, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, TCatSetNameRequest, TCatSetNameResponse, TCatSpendRequest, TCatSpendResponse, TCheckOfferValidityRequest, TCheckOfferValidityResponse, TCreateNewWalletRequest, TCreateNewWalletResponse, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, TSelectCoinsRequest, TSelectCoinsResponse, TGetCurrentDerivationIndexResponse, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, 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, TDeleteKeyRequest, TDeleteKeyResponse, TDidSetWalletNameRequest, TDidSetWalletNameResponse, TDidGetWalletNameRequest, TDidGetWalletNameResponse, TDidCreateAttestRequest, TDidCreateAttestResponse, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, TDidTransferDidRequest, TDidTransferDidResponse, TDidGetDidRequest, TDidGetDidResponse, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, TDidGetPubkeyRequest, TDidGetPubkeyResponse, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, TDidGetMetadataRequest, TDidGetMetadataResponse, TDidRecoverySpendRequest, TDidRecoverySpendResponse, TDidSpendRequest, TDidSpendResponse, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, TNftMintNftRequest, TNftMintNftResponse, TNftGetNftsRequest, TNftGetNftsResponse, TNftSetNftDidRequest, TNftSetNftDidResponse, TNftGetByDidRequest, TNftGetByDidResponse, TNftGetWalletDidRequest, TNftGetWalletDidResponse, TNftGetWalletsWithDidsResponse, TNftSetNftStatusRequest, TNftSetNftStatusResponse, TNftTransferNftRequest, TNftTransferNftResponse, TNftGetInfoRequest, TNftGetInfoResponse, TNftAddUriRequest, TNftAddUriResponse, TFarmBlockRequest, TFarmBlockResponse, TGenerateMnemonicRequest, TGenerateMnemonicResponse, TGetAllOffersRequest, TGetAllOffersResponse, TGetCatListResponse, TGetFarmedAmountRequest, TGetFarmedAmountResponse, TGetHeightInfoRequest, TGetHeightInfoResponse, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, TGetLoggedInFingerprintResponse, TGetOfferRequest, TGetOfferResponse, TGetOffersCountResponse, TGetOfferSummaryRequest, TGetOfferSummaryResponse, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, TGetNextAddressRequest, TGetNextAddressResponse, TGetPrivateKeyRequest, TGetPrivateKeyResponse, TGetPublicKeysRequest, TGetPublicKeysResponse, TGetSyncStatusRequest, TGetSyncStatusResponse, TGetTransactionCountRequest, TGetTransactionCountResponse, TGetTransactionRequest, TGetTransactionResponse, TGetTransactionsRequest, TGetTransactionsResponse, TGetWalletBalanceRequest, TGetWalletBalanceResponse, TGetWalletsRequest, TGetWalletsResponse, TLoginRequest, TLoginResponse, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, TPwJoinPoolRequest, TPwJoinPoolResponse, TPwSelfPoolRequest, TPwSelfPoolResponse, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, TPwStatusRequest, TPwStatusResponse, TRlSetUserInfoRequest, TRlSetUserInfoResponse, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, TSendTransactionRequest, TSendTransactionResponse, TSendTransactionMultiRequest, TSendTransactionMultiResponse, TTakeOfferRequest, TTakeOfferResponse, add_key, add_rate_limited_funds, cancel_offer, cat_get_asset_id, cat_get_name, get_stray_cats, cat_asset_id_to_name, cat_set_name, cat_spend, check_offer_validity, create_new_wallet, create_offer_for_ids, create_signed_transaction, delete_unconfirmed_transactions, select_coins, get_current_derivation_index, extend_derivation_index, delete_all_keys, delete_key, did_set_wallet_name, did_get_wallet_name, did_create_attest, did_create_backup_file, did_transfer_did, did_get_did, did_get_information_needed_for_recovery, did_get_current_coin_info, did_get_pubkey, did_get_recovery_list, did_get_metadata, did_recovery_spend, did_spend, did_update_recovery_ids, did_update_metadata, nft_mint_nft, nft_get_nfts, nft_set_nft_did, nft_get_by_did, nft_get_wallet_did, nft_get_wallets_with_dids, nft_set_nft_status, nft_transfer_nft, nft_get_info, nft_add_uri, farm_block, generate_mnemonic, get_all_offers, get_cat_list, get_farmed_amount, get_height_info, get_initial_freeze_period_of_wallet, get_logged_in_fingerprint, get_offer, get_offers_count, get_offer_summary, get_network_info_of_wallet, get_next_address, get_private_key, get_public_keys, get_sync_status, get_transaction, get_transaction_count, get_transactions, get_wallet_balance, get_wallets, log_in, push_tx as push_tx_wallet, pw_join_pool, pw_self_pool, pw_absorb_rewards, pw_status, rl_set_user_info, send_clawback_transaction, send_transaction, send_transaction_multi, take_offer, } from "./wallet/index";
|
|
9
9
|
import type { TGetIpsAfterTimestampResponse, TGetPeerCountsResponse } from "./crawler/index";
|
|
10
10
|
export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimestampResponse, TGetPeerCountsResponse, get_ips_after_timestamp, get_peer_counts, } from "./crawler/index";
|
|
11
11
|
import type { TGetConnectionsResponse, TOpenConnectionResponse, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse } from "./common/index";
|
|
12
12
|
export { chia_common_service, TGetConnectionsRequest, TGetConnectionsResponse, TOpenConnectionRequest, TOpenConnectionResponse, TCloseConnectionRequest, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, get_connections, open_connection, close_connection, stop_node, get_routes, } from "./common/index";
|
|
13
|
-
export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse;
|
|
13
|
+
export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
|
|
14
14
|
export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse;
|
|
15
15
|
export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
|
|
16
|
-
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | 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;
|
|
16
|
+
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | 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;
|
|
17
17
|
export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
|
|
18
18
|
export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse;
|
|
19
19
|
export declare type RpcMessage = RpcFarmerMessage | RpcFullNodeMessage | RpcHarvesterMessage | RpcWalletMessage | RpcCrawlerMessage | RpcCommonMessage;
|