chia-agent 9.0.1 → 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 +128 -0
- package/README.md +5 -5
- package/api/chia/data_layer/data_layer_util.d.ts +30 -0
- package/api/chia/data_layer/data_layer_util.js +2 -0
- package/api/chia/data_layer/data_layer_wallet.d.ts +21 -0
- package/api/chia/data_layer/data_layer_wallet.js +2 -0
- package/api/chia/server/outbound_message.d.ts +1 -1
- 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/lineage_proof.d.ts +7 -0
- package/api/chia/wallet/lineage_proof.js +2 -0
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -0
- package/api/chia/wallet/util/wallet_types.d.ts +2 -1
- package/api/chia/wallet/util/wallet_types.js +3 -1
- package/api/rpc/common/index.d.ts +9 -8
- package/api/rpc/crawler/index.d.ts +2 -2
- package/api/rpc/data_layer/index.d.ts +291 -0
- package/api/rpc/data_layer/index.js +196 -0
- package/api/rpc/farmer/index.d.ts +13 -13
- package/api/rpc/full_node/index.d.ts +45 -25
- package/api/rpc/full_node/index.js +8 -1
- package/api/rpc/harvester/index.d.ts +6 -6
- package/api/rpc/index.d.ts +12 -9
- package/api/rpc/index.js +70 -20
- package/api/rpc/wallet/index.d.ts +329 -81
- package/api/rpc/wallet/index.js +144 -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/api/ws/wallet/index.d.ts +1 -1
- package/package.json +1 -1
- package/rpc/index.d.ts +6 -2
- package/rpc/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,131 @@
|
|
|
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
|
+
|
|
77
|
+
## [9.1.0]
|
|
78
|
+
### Added
|
|
79
|
+
- Added Common RPC API Error format description and type
|
|
80
|
+
- [New DataLayer RPC API](./src/api/rpc/data_layer)
|
|
81
|
+
- [`create_data_store`](./src/api/rpc/data_layer/README.md#create_data_storeagent-params)
|
|
82
|
+
- [`get_owned_stores`](./src/api/rpc/data_layer/README.md#get_owned_storesagent)
|
|
83
|
+
- [`batch_update`](./src/api/rpc/data_layer/README.md#batch_updateagent-params)
|
|
84
|
+
- [`get_value`](./src/api/rpc/data_layer/README.md#get_valueagent-params)
|
|
85
|
+
- [`get_keys`](./src/api/rpc/data_layer/README.md#get_keysagent-params)
|
|
86
|
+
- [`get_keys_values`](./src/api/rpc/data_layer/README.md#get_keys_valuesagent-params)
|
|
87
|
+
- [`get_ancestors`](./src/api/rpc/data_layer/README.md#get_ancestorsagent-params)
|
|
88
|
+
- [`get_root`](./src/api/rpc/data_layer/README.md#get_rootagent-params)
|
|
89
|
+
- [`get_local_root`](./src/api/rpc/data_layer/README.md#get_local_rootagent-params)
|
|
90
|
+
- [`get_roots`](./src/api/rpc/data_layer/README.md#get_rootsagent-params)
|
|
91
|
+
- [`delete_key`](./src/api/rpc/data_layer/README.md#delete_keyagent-params)
|
|
92
|
+
- [`insert`](./src/api/rpc/data_layer/README.md#insertagent-params)
|
|
93
|
+
- [`subscribe`](./src/api/rpc/data_layer/README.md#subscribeagent-params)
|
|
94
|
+
- [`unsubscribe`](./src/api/rpc/data_layer/README.md#unsubscribeagent-params)
|
|
95
|
+
- [`add_mirror`](./src/api/rpc/data_layer/README.md#add_mirroragent-params)
|
|
96
|
+
- [`delete_mirror`](./src/api/rpc/data_layer/README.md#delete_mirroragent-params)
|
|
97
|
+
- [`get_mirrors`](./src/api/rpc/data_layer/README.md#get_mirrorsagent-params)
|
|
98
|
+
- [`remove_subscriptions`](./src/api/rpc/data_layer/README.md#remove_subscriptionsagent-params)
|
|
99
|
+
- [`subscriptions`](./src/api/rpc/data_layer/README.md#subscriptionsagent)
|
|
100
|
+
- [`get_kv_diff`](./src/api/rpc/data_layer/README.md#get_kv_diffagent-params)
|
|
101
|
+
- [`get_root_history`](./src/api/rpc/data_layer/README.md#get_root_historyagent-params)
|
|
102
|
+
- [`add_missing_files`](./src/api/rpc/data_layer/README.md#add_missing_filesagent-params)
|
|
103
|
+
- [`make_offer`](./src/api/rpc/data_layer/README.md#make_offeragent-params)
|
|
104
|
+
- [`take_offer`](./src/api/rpc/data_layer/README.md#take_offeragent-params)
|
|
105
|
+
- [`verify_offer`](./src/api/rpc/data_layer/README.md#verify_offeragent-params)
|
|
106
|
+
- [`cancel_offer`](./src/api/rpc/data_layer/README.md#cancel_offeragent-params)
|
|
107
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
108
|
+
- [`create_new_dl`](./src/api/rpc/wallet/README.md#create_new_dlagent-params)
|
|
109
|
+
- [`dl_track_new`](./src/api/rpc/wallet/README.md#dl_track_newagent-params)
|
|
110
|
+
- [`dl_stop_tracking`](./src/api/rpc/wallet/README.md#dl_stop_trackingagent-params)
|
|
111
|
+
- [`dl_latest_singleton`](./src/api/rpc/wallet/README.md#dl_latest_singletonagent-params)
|
|
112
|
+
- [`dl_singletons_by_root`](./src/api/rpc/wallet/README.md#dl_singletons_by_rootagent-params)
|
|
113
|
+
- [`dl_update_root`](./src/api/rpc/wallet/README.md#dl_update_rootagent-params)
|
|
114
|
+
- [`dl_update_multiple`](./src/api/rpc/wallet/README.md#dl_update_multipleagent-params)
|
|
115
|
+
- [`dl_history`](./src/api/rpc/wallet/README.md#dl_historyagent-params)
|
|
116
|
+
- [`dl_owned_singletons`](./src/api/rpc/wallet/README.md#dl_owned_singletonsagent-params)
|
|
117
|
+
- [`dl_get_mirrors`](./src/api/rpc/wallet/README.md#dl_get_mirrorsagent-params)
|
|
118
|
+
- [`dl_new_mirror`](./src/api/rpc/wallet/README.md#dl_new_mirroragent-params)
|
|
119
|
+
- [`dl_delete_mirror`](./src/api/rpc/wallet/README.md#dl_delete_mirroragent-params)
|
|
120
|
+
- [New Wallet WebSocket API](./src/api/ws/wallet)
|
|
121
|
+
- Added `offer_added`, `offer_cancelled` to `state_changed` event.
|
|
122
|
+
### Changed
|
|
123
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
124
|
+
- [`get_offer_summary`](./src/api/rpc/wallet/README.md#get_offer_summaryagent-params)
|
|
125
|
+
- Added `advanced` request parameter
|
|
126
|
+
- [`take_offer`](./src/api/rpc/wallet/README.md#take_offeragent-params)
|
|
127
|
+
- Added `solver` request parameter
|
|
128
|
+
|
|
3
129
|
## [9.0.1]
|
|
4
130
|
### Fixed
|
|
5
131
|
- Fixed an issue where wallet `state_changed` events(notified via WebSocket API) below were missing.
|
|
@@ -580,6 +706,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
580
706
|
Initial release.
|
|
581
707
|
|
|
582
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
|
|
710
|
+
[9.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.0.1...v9.1.0
|
|
583
711
|
[9.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v9.0.0...v9.0.1
|
|
584
712
|
[9.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v8.0.0...v9.0.0
|
|
585
713
|
[8.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v7.0.0...v8.0.0
|
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
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.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:
|
|
9
|
-
- retrieve latest data from RPC servers like `farmer`, `harvester`, `full_node`, `wallet`, `pool`, `crawler`.
|
|
9
|
+
- retrieve latest data from RPC servers like `farmer`, `harvester`, `full_node`, `wallet`, `pool`, `data_layer`, `crawler`.
|
|
10
10
|
- send email when proof is found.
|
|
11
11
|
- trigger scripts when target event is observed.
|
|
12
12
|
- start/stop services.
|
|
@@ -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
|
|
|
@@ -32,7 +32,7 @@ There are 2 kinds of APIs in chia.
|
|
|
32
32
|
`RPC API` and `Websocket API`.
|
|
33
33
|
|
|
34
34
|
### RPC API
|
|
35
|
-
RPC API is used to send message directly to chia services like `farmer`, `harvester`, `full_node`, `wallet`, `crawler`.
|
|
35
|
+
RPC API is used to send message directly to chia services like `farmer`, `harvester`, `full_node`, `wallet`, `data_layer`, `crawler`.
|
|
36
36
|
|
|
37
37
|
RPC API is just an async function in a traditional request/response style.
|
|
38
38
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { str } from "../types/_python_types_";
|
|
2
|
+
export declare type KeyValueMarshalled = {
|
|
3
|
+
key: str;
|
|
4
|
+
value: str;
|
|
5
|
+
};
|
|
6
|
+
export declare type OfferStoreMarshalled = {
|
|
7
|
+
store_id: str;
|
|
8
|
+
inclusions: KeyValueMarshalled[];
|
|
9
|
+
};
|
|
10
|
+
export declare type StoreProofsMarshalled = {
|
|
11
|
+
store_id: str;
|
|
12
|
+
proofs: ProofMarshalled[];
|
|
13
|
+
};
|
|
14
|
+
export declare type ProofMarshalled = {
|
|
15
|
+
key: str;
|
|
16
|
+
value: str;
|
|
17
|
+
node_hash: str;
|
|
18
|
+
layers: LayerMarshalled[];
|
|
19
|
+
};
|
|
20
|
+
export declare type LayerMarshalled = {
|
|
21
|
+
other_hash_side: "left" | "right";
|
|
22
|
+
other_hash: str;
|
|
23
|
+
combined_hash: str;
|
|
24
|
+
};
|
|
25
|
+
export declare type OfferMarshalled = {
|
|
26
|
+
trade_id: str;
|
|
27
|
+
offer: str;
|
|
28
|
+
taker: OfferStoreMarshalled[];
|
|
29
|
+
maker: StoreProofsMarshalled[];
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { bool, str, uint32, uint64 } from "../types/_python_types_";
|
|
3
|
+
import { LineageProof } from "../wallet/lineage_proof";
|
|
4
|
+
export declare type SingletonRecord = {
|
|
5
|
+
coin_id: bytes32;
|
|
6
|
+
launcher_id: bytes32;
|
|
7
|
+
root: bytes32;
|
|
8
|
+
inner_puzzle_hash: bytes32;
|
|
9
|
+
confirmed: bool;
|
|
10
|
+
confirmed_at_height: uint32;
|
|
11
|
+
lineage_proof: LineageProof;
|
|
12
|
+
generation: uint32;
|
|
13
|
+
timestamp: uint64;
|
|
14
|
+
};
|
|
15
|
+
export declare type Mirror = {
|
|
16
|
+
coin_id: str;
|
|
17
|
+
launcher_id: str;
|
|
18
|
+
amount: uint64;
|
|
19
|
+
urls: str[];
|
|
20
|
+
ours: bool;
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1
|
+
export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Optional, uint64 } from "../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type LineageProof = {
|
|
4
|
+
parent_name: Optional<bytes32>;
|
|
5
|
+
inner_puzzle_hash: Optional<bytes32>;
|
|
6
|
+
amount: Optional<uint64>;
|
|
7
|
+
};
|
|
@@ -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,6 +1,5 @@
|
|
|
1
1
|
export declare const WalletType: {
|
|
2
2
|
STANDARD_WALLET: number;
|
|
3
|
-
RATE_LIMITED: number;
|
|
4
3
|
ATOMIC_SWAP: number;
|
|
5
4
|
AUTHORIZED_PAYEE: number;
|
|
6
5
|
MULTI_SIG: number;
|
|
@@ -10,4 +9,6 @@ export declare const WalletType: {
|
|
|
10
9
|
DECENTRALIZED_ID: number;
|
|
11
10
|
POOLING_WALLET: number;
|
|
12
11
|
NFT: number;
|
|
12
|
+
DATA_LAYER: number;
|
|
13
|
+
DATA_LAYER_OFFER: number;
|
|
13
14
|
};
|
|
@@ -4,7 +4,7 @@ exports.WalletType = void 0;
|
|
|
4
4
|
exports.WalletType = {
|
|
5
5
|
// # Wallet Types
|
|
6
6
|
STANDARD_WALLET: 0,
|
|
7
|
-
RATE_LIMITED: 1,
|
|
7
|
+
// RATE_LIMITED: 1, // Deprecated at chia-blockchain@1.6.1
|
|
8
8
|
ATOMIC_SWAP: 2,
|
|
9
9
|
AUTHORIZED_PAYEE: 3,
|
|
10
10
|
MULTI_SIG: 4,
|
|
@@ -14,4 +14,6 @@ exports.WalletType = {
|
|
|
14
14
|
DECENTRALIZED_ID: 8,
|
|
15
15
|
POOLING_WALLET: 9,
|
|
16
16
|
NFT: 10,
|
|
17
|
+
DATA_LAYER: 11,
|
|
18
|
+
DATA_LAYER_OFFER: 12,
|
|
17
19
|
};
|
|
@@ -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";
|
|
@@ -12,7 +12,7 @@ export declare type TGetConnectionsRequest = {
|
|
|
12
12
|
export declare type TGetConnectionsResponse = {
|
|
13
13
|
connections: TConnectionGeneral[] | TConnectionFullNode[];
|
|
14
14
|
};
|
|
15
|
-
export declare function get_connections(agent: TRPCAgent, params: TGetConnectionsRequest): Promise<TGetConnectionsResponse>;
|
|
15
|
+
export declare function get_connections(agent: TRPCAgent, params: TGetConnectionsRequest): Promise<TGetConnectionsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
16
16
|
export declare const open_connection_command = "open_connection";
|
|
17
17
|
export declare type open_connection_command = typeof open_connection_command;
|
|
18
18
|
export declare type TOpenConnectionRequest = {
|
|
@@ -20,27 +20,28 @@ export declare type TOpenConnectionRequest = {
|
|
|
20
20
|
port: uint16;
|
|
21
21
|
};
|
|
22
22
|
export declare type TOpenConnectionResponse = {};
|
|
23
|
-
export declare function open_connection(agent: TRPCAgent, params: TOpenConnectionRequest): Promise<TOpenConnectionResponse>;
|
|
23
|
+
export declare function open_connection(agent: TRPCAgent, params: TOpenConnectionRequest): Promise<TOpenConnectionResponse | import("../../../rpc/index").ErrorResponse>;
|
|
24
24
|
export declare const close_connection_command = "close_connection";
|
|
25
25
|
export declare type close_connection_command = typeof close_connection_command;
|
|
26
26
|
export declare type TCloseConnectionRequest = {
|
|
27
27
|
node_id: str;
|
|
28
28
|
};
|
|
29
29
|
export declare type TCloseConnectionResponse = {};
|
|
30
|
-
export declare function close_connection(agent: TRPCAgent, params: TCloseConnectionRequest): Promise<TCloseConnectionResponse>;
|
|
30
|
+
export declare function close_connection(agent: TRPCAgent, params: TCloseConnectionRequest): Promise<TCloseConnectionResponse | import("../../../rpc/index").ErrorResponse>;
|
|
31
31
|
export declare const stop_node_command = "stop_node";
|
|
32
32
|
export declare type stop_node_command = typeof stop_node_command;
|
|
33
33
|
export declare type TStopNodeResponse = {};
|
|
34
|
-
export declare function stop_node(agent: TRPCAgent): Promise<TStopNodeResponse>;
|
|
34
|
+
export declare function stop_node(agent: TRPCAgent): Promise<TStopNodeResponse | import("../../../rpc/index").ErrorResponse>;
|
|
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
|
-
export declare function get_routes(agent: TRPCAgent): Promise<TGetRoutesResponse>;
|
|
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
|
-
export declare function healthz(agent: TRPCAgent): Promise<THealthzResponse>;
|
|
47
|
+
export declare function healthz(agent: TRPCAgent): Promise<THealthzResponse | import("../../../rpc/index").ErrorResponse>;
|
|
@@ -14,7 +14,7 @@ export declare type TGetPeerCountsResponse = {
|
|
|
14
14
|
versions: Record<str, int>;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export declare function get_peer_counts(agent: TRPCAgent): Promise<TGetPeerCountsResponse>;
|
|
17
|
+
export declare function get_peer_counts(agent: TRPCAgent): Promise<TGetPeerCountsResponse | import("../../../rpc/index").ErrorResponse>;
|
|
18
18
|
export declare const get_ips_after_timestamp_command = "get_ips_after_timestamp";
|
|
19
19
|
export declare type get_ips_after_timestamp_command = typeof get_ips_after_timestamp_command;
|
|
20
20
|
export declare type TGetIpsAfterTimestampRequest = {
|
|
@@ -26,4 +26,4 @@ export declare type TGetIpsAfterTimestampResponse = {
|
|
|
26
26
|
ips: str[];
|
|
27
27
|
total: int;
|
|
28
28
|
};
|
|
29
|
-
export declare function get_ips_after_timestamp(agent: TRPCAgent, params: TGetIpsAfterTimestampRequest): Promise<TGetIpsAfterTimestampResponse>;
|
|
29
|
+
export declare function get_ips_after_timestamp(agent: TRPCAgent, params: TGetIpsAfterTimestampRequest): Promise<TGetIpsAfterTimestampResponse | import("../../../rpc/index").ErrorResponse>;
|