chia-agent 14.0.0 → 14.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 +252 -3
- package/LICENSE +1 -1
- package/README.md +7 -5
- package/agent/index.d.ts +1 -1
- package/api/chia/consensus/block_record.d.ts +1 -32
- package/api/chia/consensus/blockchain.d.ts +2 -1
- package/api/chia/consensus/cost_calculator.d.ts +1 -1
- package/api/chia/data_layer/data_layer_util.d.ts +16 -16
- package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
- package/api/chia/farmer/farmer.d.ts +1 -1
- package/api/chia/full_node/signage_point.d.ts +1 -1
- package/api/chia/harvester/harvester.d.ts +1 -1
- package/api/chia/plot-sync/receiver.d.ts +2 -2
- package/api/chia/plotters/bladebit.d.ts +1 -1
- package/api/chia/plotters/chiapos.d.ts +1 -1
- package/api/chia/plotters/maxmax.d.ts +1 -1
- package/api/chia/plotting/util.d.ts +3 -3
- package/api/chia/pools/pool_config.d.ts +1 -1
- package/api/chia/pools/pool_wallet_info.d.ts +2 -4
- package/api/chia/protocols/farmer_protocol.d.ts +8 -8
- package/api/chia/protocols/harvester_protocol.d.ts +1 -1
- package/api/chia/protocols/pool_protocol.d.ts +13 -13
- package/api/chia/rpc/util.d.ts +14 -0
- package/api/chia/rpc/wallet_request_types.d.ts +46 -3
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/timelord/types.d.ts +1 -1
- package/api/chia/types/_python_types_.d.ts +22 -22
- package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
- package/api/chia/types/blockchain_format/coin.d.ts +1 -11
- package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
- package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
- package/api/chia/types/blockchain_format/program.d.ts +1 -1
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
- package/api/chia/types/blockchain_format/slots.d.ts +1 -24
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
- package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
- package/api/chia/types/clvm_cost.d.ts +1 -1
- package/api/chia/types/coin_record.d.ts +2 -2
- package/api/chia/types/coin_spend.d.ts +3 -8
- package/api/chia/types/condition_opcode.d.ts +1 -1
- package/api/chia/types/condition_with_args.d.ts +1 -1
- package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
- package/api/chia/types/full_block.d.ts +1 -20
- package/api/chia/types/mempool_item.d.ts +3 -3
- package/api/chia/types/mojos.d.ts +1 -1
- package/api/chia/types/signing_mode.d.ts +6 -6
- package/api/chia/types/spend_bundle.d.ts +1 -1
- package/api/chia/types/spend_bundle_condition.d.ts +1 -26
- package/api/chia/types/unfinished_block.d.ts +1 -0
- package/api/chia/types/unfinished_header_block.d.ts +1 -1
- package/api/chia/util/keychain.d.ts +2 -2
- package/api/chia/util/misc.d.ts +1 -1
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
- package/api/chia/wallet/conditions.d.ts +2 -2
- package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
- package/api/chia/wallet/lineage_proof.d.ts +1 -1
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
- package/api/chia/wallet/notification_store.d.ts +1 -1
- package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
- package/api/chia/wallet/signer_protocol.d.ts +54 -0
- package/api/chia/wallet/signer_protocol.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +3 -3
- package/api/chia/wallet/transaction_record.d.ts +4 -4
- package/api/chia/wallet/util/quality_filter.d.ts +5 -5
- package/api/chia/wallet/util/tx_config.d.ts +4 -11
- package/api/chia/wallet/util/wallet_types.d.ts +1 -1
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
- package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
- package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
- package/api/chia/wallet/wallet_info.d.ts +2 -2
- package/api/chia/wallet/wallet_node.d.ts +1 -1
- package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
- package/api/chia_rs/chia-bls/public_key.js +2 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
- package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
- package/api/chia_rs/chia-protocol/block_record.js +2 -0
- package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
- package/api/chia_rs/chia-protocol/classgroup.js +2 -0
- package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin.js +2 -0
- package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
- package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
- package/api/chia_rs/chia-protocol/foliage.js +2 -0
- package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
- package/api/chia_rs/chia-protocol/fullblock.js +2 -0
- package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
- package/api/chia_rs/chia-protocol/pool_target.js +2 -0
- package/api/chia_rs/chia-protocol/program.d.ts +2 -0
- package/api/chia_rs/chia-protocol/program.js +2 -0
- package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
- package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
- package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
- package/api/chia_rs/chia-protocol/slots.js +2 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
- package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
- package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
- package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
- package/api/chia_rs/chia-protocol/vdf.js +2 -0
- package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
- package/api/pool-reference/pool/record.js +2 -0
- package/api/rpc/common/index.d.ts +34 -24
- package/api/rpc/common/index.js +8 -1
- package/api/rpc/crawler/index.d.ts +10 -10
- package/api/rpc/data_layer/index.d.ts +208 -134
- package/api/rpc/data_layer/index.js +23 -2
- package/api/rpc/farmer/index.d.ts +52 -55
- package/api/rpc/full_node/index.d.ts +140 -154
- package/api/rpc/full_node/index.js +2 -9
- package/api/rpc/harvester/index.d.ts +31 -34
- package/api/rpc/index.d.ts +7 -7
- package/api/rpc/index.js +13 -9
- package/api/rpc/pool/index.d.ts +13 -13
- package/api/rpc/wallet/index.d.ts +747 -641
- package/api/rpc/wallet/index.js +27 -20
- package/api/types.d.ts +4 -3
- package/api/types.js +2 -1
- package/api/ws/chia_plots_create/index.d.ts +7 -7
- package/api/ws/crawler/index.d.ts +9 -9
- package/api/ws/daemon/index.d.ts +198 -166
- package/api/ws/daemon/index.js +17 -3
- package/api/ws/farmer/index.d.ts +34 -34
- package/api/ws/full_node/index.d.ts +28 -17
- package/api/ws/full_node/index.js +14 -1
- package/api/ws/harvester/index.d.ts +19 -19
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +5 -2
- package/api/ws/timelord/index.d.ts +14 -14
- package/api/ws/wallet/index.d.ts +22 -22
- package/bin/cli.js +3 -3
- package/config/index.d.ts +1 -1
- package/config/index.js +3 -3
- package/daemon/connection.js +9 -10
- package/daemon/index.d.ts +6 -6
- package/daemon/index.js +21 -21
- package/index.js +5 -1
- package/logger.d.ts +3 -3
- package/package.json +3 -3
- package/rpc/index.d.ts +6 -4
- package/rpc/index.js +29 -29
- package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
- /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
- /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
|
@@ -6,132 +6,196 @@ import { DLProof, OfferMarshalled, OfferStoreMarshalled, PluginStatusMarshalled,
|
|
|
6
6
|
import { GetMessageType, ResType } from "../../types";
|
|
7
7
|
import { TDaemon } from "../../../daemon/index";
|
|
8
8
|
export declare const chia_data_layer_service = "chia_data_layer";
|
|
9
|
-
export
|
|
9
|
+
export type chia_data_layer_service = typeof chia_data_layer_service;
|
|
10
10
|
export declare const wallet_log_in_command = "wallet_log_in";
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type wallet_log_in_command = typeof wallet_log_in_command;
|
|
12
|
+
export type TWalletLogInRequest = {
|
|
13
13
|
fingerprint: int;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type TWalletLogInResponse = Record<string, never>;
|
|
16
|
+
export type WsWalletLogInMessage = GetMessageType<chia_data_layer_service, wallet_log_in_command, TWalletLogInResponse>;
|
|
17
17
|
export declare function wallet_log_in<T extends TRPCAgent | TDaemon>(agent: T, params: TWalletLogInRequest): Promise<ResType<T, TWalletLogInResponse, WsWalletLogInMessage>>;
|
|
18
18
|
export declare const create_data_store_command = "create_data_store";
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type create_data_store_command = typeof create_data_store_command;
|
|
20
|
+
export type TCreateDataStoreRequest = {
|
|
21
21
|
fee?: uint64;
|
|
22
22
|
verbose?: bool;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type TCreateDataStoreResponse = {
|
|
25
25
|
txs?: TransactionRecord[];
|
|
26
26
|
id: str;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type WsCreateDataStoreMessage = GetMessageType<chia_data_layer_service, create_data_store_command, TCreateDataStoreResponse>;
|
|
29
29
|
export declare function create_data_store<T extends TRPCAgent | TDaemon>(agent: T, params: TCreateDataStoreRequest): Promise<ResType<T, TCreateDataStoreResponse, WsCreateDataStoreMessage>>;
|
|
30
30
|
export declare const get_owned_stores_command = "get_owned_stores";
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type get_owned_stores_command = typeof get_owned_stores_command;
|
|
32
|
+
export type TGetOwnedStoresResponse = {
|
|
33
33
|
store_ids: str[];
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type WsGetOwnedStoresMessage = GetMessageType<chia_data_layer_service, get_owned_stores_command, TGetOwnedStoresResponse>;
|
|
36
36
|
export declare function get_owned_stores<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetOwnedStoresResponse, WsGetOwnedStoresMessage>>;
|
|
37
|
+
export type BatchUpdateChange = {
|
|
38
|
+
action: "insert";
|
|
39
|
+
key: str;
|
|
40
|
+
value: str;
|
|
41
|
+
reference_node_hash?: str;
|
|
42
|
+
side?: 0 | 1;
|
|
43
|
+
} | {
|
|
44
|
+
action: "delete";
|
|
45
|
+
key: str;
|
|
46
|
+
} | {
|
|
47
|
+
action: "upsert";
|
|
48
|
+
key: str;
|
|
49
|
+
value: str;
|
|
50
|
+
};
|
|
37
51
|
export declare const batch_update_command = "batch_update";
|
|
38
|
-
export
|
|
39
|
-
export
|
|
52
|
+
export type batch_update_command = typeof batch_update_command;
|
|
53
|
+
export type TBatchUpdateRequest = {
|
|
40
54
|
fee?: uint64;
|
|
41
|
-
changelist:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
55
|
+
changelist: BatchUpdateChange[];
|
|
56
|
+
id: str;
|
|
57
|
+
submit_on_chain?: bool;
|
|
58
|
+
};
|
|
59
|
+
export type TBatchUpdateResponse = {
|
|
60
|
+
tx_id?: bytes32;
|
|
61
|
+
};
|
|
62
|
+
export type WsBatchUpdateMessage = GetMessageType<chia_data_layer_service, batch_update_command, TBatchUpdateResponse>;
|
|
63
|
+
export declare function batch_update<T extends TRPCAgent | TDaemon>(agent: T, params: TBatchUpdateRequest): Promise<ResType<T, TBatchUpdateResponse, WsBatchUpdateMessage>>;
|
|
64
|
+
export declare const multistore_batch_update_command = "multistore_batch_update";
|
|
65
|
+
export type multistore_batch_update_command = typeof multistore_batch_update_command;
|
|
66
|
+
export type TMultistoreBatchUpdateRequest = {
|
|
67
|
+
fee?: uint64;
|
|
68
|
+
store_updates: Array<{
|
|
69
|
+
store_id: str;
|
|
70
|
+
changelist: BatchUpdateChange[];
|
|
46
71
|
}>;
|
|
72
|
+
submit_on_chain?: bool;
|
|
73
|
+
};
|
|
74
|
+
export type TMultistoreBatchUpdateResponse = {
|
|
75
|
+
tx_id?: bytes32[];
|
|
76
|
+
};
|
|
77
|
+
export type WsMultistoreBatchUpdateMessage = GetMessageType<chia_data_layer_service, multistore_batch_update_command, TMultistoreBatchUpdateResponse>;
|
|
78
|
+
export declare function multistore_batch_update<T extends TRPCAgent | TDaemon>(agent: T, params: TMultistoreBatchUpdateRequest): Promise<ResType<T, TMultistoreBatchUpdateResponse, WsMultistoreBatchUpdateMessage>>;
|
|
79
|
+
export declare const submit_pending_root_command = "submit_pending_root";
|
|
80
|
+
export type submit_pending_root_command = typeof submit_pending_root_command;
|
|
81
|
+
export type TSubmitPendingRootRequest = {
|
|
47
82
|
id: str;
|
|
83
|
+
fee?: uint64;
|
|
48
84
|
};
|
|
49
|
-
export
|
|
85
|
+
export type TSubmitPendingRootResponse = {
|
|
50
86
|
tx_id: bytes32;
|
|
51
87
|
};
|
|
52
|
-
export
|
|
53
|
-
export declare function
|
|
88
|
+
export type WsSubmitPendingRootMessage = GetMessageType<chia_data_layer_service, submit_pending_root_command, TSubmitPendingRootResponse>;
|
|
89
|
+
export declare function submit_pending_root<T extends TRPCAgent | TDaemon>(agent: T, params: TSubmitPendingRootRequest): Promise<ResType<T, TSubmitPendingRootResponse, WsSubmitPendingRootMessage>>;
|
|
90
|
+
export declare const submit_all_pending_roots_command = "submit_all_pending_roots";
|
|
91
|
+
export type submit_all_pending_roots_command = typeof submit_all_pending_roots_command;
|
|
92
|
+
export type TSubmitAllPendingRootsRequest = {
|
|
93
|
+
fee?: uint64;
|
|
94
|
+
};
|
|
95
|
+
export type TSubmitAllPendingRootsResponse = {
|
|
96
|
+
tx_id: bytes32[];
|
|
97
|
+
};
|
|
98
|
+
export type WsSubmitAllPendingRootsMessage = GetMessageType<chia_data_layer_service, submit_all_pending_roots_command, TSubmitAllPendingRootsResponse>;
|
|
99
|
+
export declare function submit_all_pending_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TSubmitAllPendingRootsRequest): Promise<ResType<T, TSubmitAllPendingRootsResponse, WsSubmitAllPendingRootsMessage>>;
|
|
54
100
|
export declare const get_value_command = "get_value";
|
|
55
|
-
export
|
|
56
|
-
export
|
|
101
|
+
export type get_value_command = typeof get_value_command;
|
|
102
|
+
export type TGetValueRequest = {
|
|
57
103
|
id: str;
|
|
58
104
|
key: str;
|
|
59
105
|
root_hash?: str;
|
|
60
106
|
};
|
|
61
|
-
export
|
|
107
|
+
export type TGetValueResponse = {
|
|
62
108
|
value: str | None;
|
|
63
109
|
};
|
|
64
|
-
export
|
|
110
|
+
export type WsGetValueMessage = GetMessageType<chia_data_layer_service, get_value_command, TGetValueResponse>;
|
|
65
111
|
export declare function get_value<T extends TRPCAgent | TDaemon>(agent: T, params: TGetValueRequest): Promise<ResType<T, TGetValueResponse, WsGetValueMessage>>;
|
|
66
112
|
export declare const get_keys_command = "get_keys";
|
|
67
|
-
export
|
|
68
|
-
export
|
|
113
|
+
export type get_keys_command = typeof get_keys_command;
|
|
114
|
+
export type TGetKeysRequest = {
|
|
69
115
|
id: str;
|
|
70
116
|
root_hash?: str;
|
|
117
|
+
page?: int;
|
|
118
|
+
max_page_size?: int;
|
|
71
119
|
};
|
|
72
|
-
export
|
|
120
|
+
export type TGetKeysResponse = {
|
|
73
121
|
keys: str[];
|
|
122
|
+
} | {
|
|
123
|
+
keys: str[];
|
|
124
|
+
total_pages: int;
|
|
125
|
+
total_bytes: int;
|
|
126
|
+
root_hash: Optional<bytes32>;
|
|
74
127
|
};
|
|
75
|
-
export
|
|
128
|
+
export type WsGetKeysMessage = GetMessageType<chia_data_layer_service, get_keys_command, TGetKeysResponse>;
|
|
76
129
|
export declare function get_keys<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysRequest): Promise<ResType<T, TGetKeysResponse, WsGetKeysMessage>>;
|
|
77
130
|
export declare const get_keys_values_command = "get_keys_values";
|
|
78
|
-
export
|
|
79
|
-
export
|
|
131
|
+
export type get_keys_values_command = typeof get_keys_values_command;
|
|
132
|
+
export type TGetKeysValuesRequest = {
|
|
80
133
|
id: str;
|
|
81
134
|
root_hash?: str;
|
|
135
|
+
page?: int;
|
|
136
|
+
max_page_size?: int;
|
|
82
137
|
};
|
|
83
|
-
export
|
|
138
|
+
export type TGetKeysValuesResponse = {
|
|
84
139
|
keys_values: Array<{
|
|
85
140
|
hash: str;
|
|
86
141
|
key: str;
|
|
87
142
|
value: str;
|
|
88
143
|
}>;
|
|
144
|
+
} | {
|
|
145
|
+
keys_values: Array<{
|
|
146
|
+
hash: str;
|
|
147
|
+
key: str;
|
|
148
|
+
value: str;
|
|
149
|
+
}>;
|
|
150
|
+
total_pages: int;
|
|
151
|
+
total_bytes: int;
|
|
152
|
+
root_hash: Optional<bytes32>;
|
|
89
153
|
};
|
|
90
|
-
export
|
|
154
|
+
export type WsGetKeysValuesMessage = GetMessageType<chia_data_layer_service, get_keys_values_command, TGetKeysValuesResponse>;
|
|
91
155
|
export declare function get_keys_values<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKeysValuesRequest): Promise<ResType<T, TGetKeysValuesResponse, WsGetKeysValuesMessage>>;
|
|
92
156
|
export declare const get_ancestors_command = "get_ancestors";
|
|
93
|
-
export
|
|
94
|
-
export
|
|
157
|
+
export type get_ancestors_command = typeof get_ancestors_command;
|
|
158
|
+
export type TGetAncestorsRequest = {
|
|
95
159
|
id: str;
|
|
96
160
|
hash: str;
|
|
97
161
|
};
|
|
98
|
-
export
|
|
162
|
+
export type TGetAncestorsResponse = {
|
|
99
163
|
ancestors: Array<{
|
|
100
164
|
hash: bytes32;
|
|
101
165
|
left_hash: bytes32;
|
|
102
166
|
right_hash: bytes32;
|
|
103
167
|
}>;
|
|
104
168
|
};
|
|
105
|
-
export
|
|
169
|
+
export type WsGetAncestorsMessage = GetMessageType<chia_data_layer_service, get_ancestors_command, TGetAncestorsResponse>;
|
|
106
170
|
export declare function get_ancestors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetAncestorsRequest): Promise<ResType<T, TGetAncestorsResponse, WsGetAncestorsMessage>>;
|
|
107
171
|
export declare const get_root_command = "get_root";
|
|
108
|
-
export
|
|
109
|
-
export
|
|
172
|
+
export type get_root_command = typeof get_root_command;
|
|
173
|
+
export type TGetRootRequest = {
|
|
110
174
|
id: str;
|
|
111
175
|
};
|
|
112
|
-
export
|
|
176
|
+
export type TGetRootResponse = {
|
|
113
177
|
hash: bytes32;
|
|
114
178
|
confirmed: bool;
|
|
115
179
|
timestamp: uint64;
|
|
116
180
|
};
|
|
117
|
-
export
|
|
181
|
+
export type WsGetRootMessage = GetMessageType<chia_data_layer_service, get_root_command, TGetRootResponse>;
|
|
118
182
|
export declare function get_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootRequest): Promise<ResType<T, TGetRootResponse, WsGetRootMessage>>;
|
|
119
183
|
export declare const get_local_root_command = "get_local_root";
|
|
120
|
-
export
|
|
121
|
-
export
|
|
184
|
+
export type get_local_root_command = typeof get_local_root_command;
|
|
185
|
+
export type TGetLocalRootRequest = {
|
|
122
186
|
id: str;
|
|
123
187
|
};
|
|
124
|
-
export
|
|
188
|
+
export type TGetLocalRootResponse = {
|
|
125
189
|
hash: bytes32 | None;
|
|
126
190
|
};
|
|
127
|
-
export
|
|
191
|
+
export type WsGetLocalRootMessage = GetMessageType<chia_data_layer_service, get_local_root_command, TGetLocalRootResponse>;
|
|
128
192
|
export declare function get_local_root<T extends TRPCAgent | TDaemon>(agent: T, params: TGetLocalRootRequest): Promise<ResType<T, TGetLocalRootResponse, WsGetLocalRootMessage>>;
|
|
129
193
|
export declare const get_roots_command = "get_roots";
|
|
130
|
-
export
|
|
131
|
-
export
|
|
194
|
+
export type get_roots_command = typeof get_roots_command;
|
|
195
|
+
export type TGetRootsRequest = {
|
|
132
196
|
ids: str[];
|
|
133
197
|
};
|
|
134
|
-
export
|
|
198
|
+
export type TGetRootsResponse = {
|
|
135
199
|
root_hashes: Array<{
|
|
136
200
|
id: bytes32;
|
|
137
201
|
hash: bytes32;
|
|
@@ -139,77 +203,77 @@ export declare type TGetRootsResponse = {
|
|
|
139
203
|
timestamp: uint64;
|
|
140
204
|
}>;
|
|
141
205
|
};
|
|
142
|
-
export
|
|
206
|
+
export type WsGetRootsMessage = GetMessageType<chia_data_layer_service, get_roots_command, TGetRootsResponse>;
|
|
143
207
|
export declare function get_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootsRequest): Promise<ResType<T, TGetRootsResponse, WsGetRootsMessage>>;
|
|
144
208
|
export declare const delete_key_command = "delete_key";
|
|
145
|
-
export
|
|
146
|
-
export
|
|
209
|
+
export type delete_key_command = typeof delete_key_command;
|
|
210
|
+
export type TDeleteKeyRequest = {
|
|
147
211
|
fee?: uint64;
|
|
148
212
|
key: str;
|
|
149
213
|
id: str;
|
|
150
214
|
};
|
|
151
|
-
export
|
|
215
|
+
export type TDeleteKeyResponse = {
|
|
152
216
|
tx_id: bytes32;
|
|
153
217
|
};
|
|
154
|
-
export
|
|
218
|
+
export type WsDeleteKeyMessage = GetMessageType<chia_data_layer_service, delete_key_command, TDeleteKeyResponse>;
|
|
155
219
|
export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteKeyRequest): Promise<ResType<T, TDeleteKeyResponse, WsDeleteKeyMessage>>;
|
|
156
220
|
export declare const insert_command = "insert";
|
|
157
|
-
export
|
|
158
|
-
export
|
|
221
|
+
export type insert_command = typeof insert_command;
|
|
222
|
+
export type TInsertRequest = {
|
|
159
223
|
fee?: uint64;
|
|
160
224
|
key: str;
|
|
161
225
|
value: str;
|
|
162
226
|
id: str;
|
|
163
227
|
};
|
|
164
|
-
export
|
|
228
|
+
export type TInsertResponse = {
|
|
165
229
|
tx_id: bytes32;
|
|
166
230
|
};
|
|
167
|
-
export
|
|
231
|
+
export type WsInsertMessage = GetMessageType<chia_data_layer_service, insert_command, TInsertResponse>;
|
|
168
232
|
export declare function insert<T extends TRPCAgent | TDaemon>(agent: T, params: TInsertRequest): Promise<ResType<T, TInsertResponse, WsInsertMessage>>;
|
|
169
233
|
export declare const subscribe_command = "subscribe";
|
|
170
|
-
export
|
|
171
|
-
export
|
|
234
|
+
export type subscribe_command = typeof subscribe_command;
|
|
235
|
+
export type TSubscribeRequest = {
|
|
172
236
|
id: str;
|
|
173
237
|
urls: str[];
|
|
174
238
|
};
|
|
175
|
-
export
|
|
176
|
-
export
|
|
239
|
+
export type TSubscribeResponse = Record<string, never>;
|
|
240
|
+
export type WsSubscribeMessage = GetMessageType<chia_data_layer_service, subscribe_command, TSubscribeResponse>;
|
|
177
241
|
export declare function subscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TSubscribeRequest): Promise<ResType<T, TSubscribeResponse, WsSubscribeMessage>>;
|
|
178
242
|
export declare const unsubscribe_command = "unsubscribe";
|
|
179
|
-
export
|
|
180
|
-
export
|
|
243
|
+
export type unsubscribe_command = typeof unsubscribe_command;
|
|
244
|
+
export type TUnsubscribeRequest = {
|
|
181
245
|
id: str;
|
|
182
246
|
retain?: bool;
|
|
183
247
|
};
|
|
184
|
-
export
|
|
185
|
-
export
|
|
248
|
+
export type TUnsubscribeResponse = Record<string, never>;
|
|
249
|
+
export type WsUnsubscribeMessage = GetMessageType<chia_data_layer_service, unsubscribe_command, TUnsubscribeResponse>;
|
|
186
250
|
export declare function unsubscribe<T extends TRPCAgent | TDaemon>(agent: T, params: TUnsubscribeRequest): Promise<ResType<T, TUnsubscribeResponse, WsUnsubscribeMessage>>;
|
|
187
251
|
export declare const add_mirror_command = "add_mirror";
|
|
188
|
-
export
|
|
189
|
-
export
|
|
252
|
+
export type add_mirror_command = typeof add_mirror_command;
|
|
253
|
+
export type TAddMirrorRequest = {
|
|
190
254
|
id: str;
|
|
191
255
|
urls: str[];
|
|
192
256
|
amount: uint64;
|
|
193
257
|
fee?: uint64;
|
|
194
258
|
};
|
|
195
|
-
export
|
|
196
|
-
export
|
|
259
|
+
export type TAddMirrorResponse = Record<string, never>;
|
|
260
|
+
export type WsAddMirrorMessage = GetMessageType<chia_data_layer_service, add_mirror_command, TAddMirrorResponse>;
|
|
197
261
|
export declare function add_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMirrorRequest): Promise<ResType<T, TAddMirrorResponse, WsAddMirrorMessage>>;
|
|
198
262
|
export declare const delete_mirror_command = "delete_mirror";
|
|
199
|
-
export
|
|
200
|
-
export
|
|
263
|
+
export type delete_mirror_command = typeof delete_mirror_command;
|
|
264
|
+
export type TDeleteMirrorRequest = {
|
|
201
265
|
coin_id: str;
|
|
202
266
|
fee?: uint64;
|
|
203
267
|
};
|
|
204
|
-
export
|
|
205
|
-
export
|
|
268
|
+
export type TDeleteMirrorResponse = Record<string, never>;
|
|
269
|
+
export type WsDeleteMirrorMessage = GetMessageType<chia_data_layer_service, delete_mirror_command, TDeleteMirrorResponse>;
|
|
206
270
|
export declare function delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, params: TDeleteMirrorRequest): Promise<ResType<T, TDeleteMirrorResponse, WsDeleteMirrorMessage>>;
|
|
207
271
|
export declare const get_mirrors_command = "get_mirrors";
|
|
208
|
-
export
|
|
209
|
-
export
|
|
272
|
+
export type get_mirrors_command = typeof get_mirrors_command;
|
|
273
|
+
export type TGetMirrorsRequest = {
|
|
210
274
|
id: str;
|
|
211
275
|
};
|
|
212
|
-
export
|
|
276
|
+
export type TGetMirrorsResponse = {
|
|
213
277
|
mirrors: Array<{
|
|
214
278
|
coin_id: str;
|
|
215
279
|
launcher_id: str;
|
|
@@ -218,158 +282,168 @@ export declare type TGetMirrorsResponse = {
|
|
|
218
282
|
ours: bool;
|
|
219
283
|
}>;
|
|
220
284
|
};
|
|
221
|
-
export
|
|
285
|
+
export type WsGetMirrorsMessage = GetMessageType<chia_data_layer_service, get_mirrors_command, TGetMirrorsResponse>;
|
|
222
286
|
export declare function get_mirrors<T extends TRPCAgent | TDaemon>(agent: T, params: TGetMirrorsRequest): Promise<ResType<T, TGetMirrorsResponse, WsGetMirrorsMessage>>;
|
|
223
287
|
export declare const remove_subscriptions_command = "remove_subscriptions";
|
|
224
|
-
export
|
|
225
|
-
export
|
|
288
|
+
export type remove_subscriptions_command = typeof remove_subscriptions_command;
|
|
289
|
+
export type TRemoveSubscriptionsRequest = {
|
|
226
290
|
id: str;
|
|
227
291
|
urls: str[];
|
|
228
292
|
};
|
|
229
|
-
export
|
|
230
|
-
export
|
|
293
|
+
export type TRemoveSubscriptionsResponse = Record<string, never>;
|
|
294
|
+
export type WsRemoveSubscriptionsMessage = GetMessageType<chia_data_layer_service, remove_subscriptions_command, TRemoveSubscriptionsResponse>;
|
|
231
295
|
export declare function remove_subscriptions<T extends TRPCAgent | TDaemon>(agent: T, params: TRemoveSubscriptionsRequest): Promise<ResType<T, TRemoveSubscriptionsResponse, WsRemoveSubscriptionsMessage>>;
|
|
232
296
|
export declare const subscriptions_command = "subscriptions";
|
|
233
|
-
export
|
|
234
|
-
export
|
|
297
|
+
export type subscriptions_command = typeof subscriptions_command;
|
|
298
|
+
export type TSubscriptionsResponse = {
|
|
235
299
|
store_ids: str[];
|
|
236
300
|
};
|
|
237
|
-
export
|
|
301
|
+
export type WsSubscriptionsMessage = GetMessageType<chia_data_layer_service, subscriptions_command, TSubscriptionsResponse>;
|
|
238
302
|
export declare function subscriptions<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TSubscriptionsResponse, WsSubscriptionsMessage>>;
|
|
239
303
|
export declare const get_kv_diff_command = "get_kv_diff";
|
|
240
|
-
export
|
|
241
|
-
export
|
|
304
|
+
export type get_kv_diff_command = typeof get_kv_diff_command;
|
|
305
|
+
export type TGetKvDiffRequest = {
|
|
242
306
|
id: str;
|
|
243
307
|
hash_1: str;
|
|
244
308
|
hash_2: str;
|
|
309
|
+
page?: int;
|
|
310
|
+
max_page_size?: int;
|
|
245
311
|
};
|
|
246
|
-
export
|
|
312
|
+
export type TGetKvDiffResponse = {
|
|
313
|
+
diff: Array<{
|
|
314
|
+
type: str;
|
|
315
|
+
key: str;
|
|
316
|
+
value: str;
|
|
317
|
+
}>;
|
|
318
|
+
} | {
|
|
247
319
|
diff: Array<{
|
|
248
320
|
type: str;
|
|
249
321
|
key: str;
|
|
250
322
|
value: str;
|
|
251
323
|
}>;
|
|
324
|
+
total_pages: int;
|
|
325
|
+
total_bytes: int;
|
|
252
326
|
};
|
|
253
|
-
export
|
|
327
|
+
export type WsGetKvDiffMessage = GetMessageType<chia_data_layer_service, get_kv_diff_command, TGetKvDiffResponse>;
|
|
254
328
|
export declare function get_kv_diff<T extends TRPCAgent | TDaemon>(agent: T, params: TGetKvDiffRequest): Promise<ResType<T, TGetKvDiffResponse, WsGetKvDiffMessage>>;
|
|
255
329
|
export declare const get_root_history_command = "get_root_history";
|
|
256
|
-
export
|
|
257
|
-
export
|
|
330
|
+
export type get_root_history_command = typeof get_root_history_command;
|
|
331
|
+
export type TGetRootHistoryRequest = {
|
|
258
332
|
id: str;
|
|
259
333
|
};
|
|
260
|
-
export
|
|
334
|
+
export type TGetRootHistoryResponse = {
|
|
261
335
|
root_history: Array<{
|
|
262
336
|
root_hash: bytes32;
|
|
263
337
|
confirmed: bool;
|
|
264
338
|
timestamp: uint64;
|
|
265
339
|
}>;
|
|
266
340
|
};
|
|
267
|
-
export
|
|
341
|
+
export type WsGetRootHistoryMessage = GetMessageType<chia_data_layer_service, get_root_history_command, TGetRootHistoryResponse>;
|
|
268
342
|
export declare function get_root_history<T extends TRPCAgent | TDaemon>(agent: T, params: TGetRootHistoryRequest): Promise<ResType<T, TGetRootHistoryResponse, WsGetRootHistoryMessage>>;
|
|
269
343
|
export declare const add_missing_files_command = "add_missing_files";
|
|
270
|
-
export
|
|
271
|
-
export
|
|
344
|
+
export type add_missing_files_command = typeof add_missing_files_command;
|
|
345
|
+
export type TAddMissingFilesRequest = {
|
|
272
346
|
ids?: str[];
|
|
273
347
|
overwrite?: bool;
|
|
274
348
|
foldername?: str;
|
|
275
349
|
};
|
|
276
|
-
export
|
|
277
|
-
export
|
|
350
|
+
export type TAddMissingFilesResponse = Record<string, never>;
|
|
351
|
+
export type WsAddMissingFilesMessage = GetMessageType<chia_data_layer_service, add_missing_files_command, TAddMissingFilesResponse>;
|
|
278
352
|
export declare function add_missing_files<T extends TRPCAgent | TDaemon>(agent: T, params: TAddMissingFilesRequest): Promise<ResType<T, TAddMissingFilesResponse, WsAddMissingFilesMessage>>;
|
|
279
353
|
export declare const make_offer_command = "make_offer";
|
|
280
|
-
export
|
|
281
|
-
export
|
|
354
|
+
export type make_offer_command = typeof make_offer_command;
|
|
355
|
+
export type TMakeOfferRequest = {
|
|
282
356
|
fee?: uint64;
|
|
283
357
|
maker: OfferStoreMarshalled;
|
|
284
358
|
taker: OfferStoreMarshalled;
|
|
285
359
|
};
|
|
286
|
-
export
|
|
360
|
+
export type TMakeOfferResponse = {
|
|
287
361
|
success: bool;
|
|
288
362
|
offer: OfferMarshalled;
|
|
289
363
|
};
|
|
290
|
-
export
|
|
364
|
+
export type WsMakeOfferMessage = GetMessageType<chia_data_layer_service, make_offer_command, TMakeOfferResponse>;
|
|
291
365
|
export declare function make_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TMakeOfferRequest): Promise<ResType<T, TMakeOfferResponse, WsMakeOfferMessage>>;
|
|
292
366
|
export declare const take_offer_command = "take_offer";
|
|
293
|
-
export
|
|
294
|
-
export
|
|
367
|
+
export type take_offer_command = typeof take_offer_command;
|
|
368
|
+
export type TTakeOfferRequest = {
|
|
295
369
|
fee?: uint64;
|
|
296
370
|
offer: OfferMarshalled;
|
|
297
371
|
};
|
|
298
|
-
export
|
|
372
|
+
export type TTakeOfferResponse = {
|
|
299
373
|
success: bool;
|
|
300
374
|
trade_id: str;
|
|
301
375
|
};
|
|
302
|
-
export
|
|
376
|
+
export type WsTakeOfferMessage = GetMessageType<chia_data_layer_service, take_offer_command, TTakeOfferResponse>;
|
|
303
377
|
export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TTakeOfferRequest): Promise<ResType<T, TTakeOfferResponse, WsTakeOfferMessage>>;
|
|
304
378
|
export declare const verify_offer_command = "verify_offer";
|
|
305
|
-
export
|
|
306
|
-
export
|
|
379
|
+
export type verify_offer_command = typeof verify_offer_command;
|
|
380
|
+
export type TVerifyOfferRequest = {
|
|
307
381
|
fee?: uint64;
|
|
308
382
|
offer: OfferMarshalled;
|
|
309
383
|
};
|
|
310
|
-
export
|
|
384
|
+
export type TVerifyOfferResponse = {
|
|
311
385
|
success: bool;
|
|
312
386
|
valid: bool;
|
|
313
387
|
error: Optional<str>;
|
|
314
388
|
fee: Optional<uint64>;
|
|
315
389
|
};
|
|
316
|
-
export
|
|
390
|
+
export type WsVerifyOfferMessage = GetMessageType<chia_data_layer_service, verify_offer_command, TVerifyOfferResponse>;
|
|
317
391
|
export declare function verify_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TVerifyOfferRequest): Promise<ResType<T, TVerifyOfferResponse, WsVerifyOfferMessage>>;
|
|
318
392
|
export declare const cancel_offer_command = "cancel_offer";
|
|
319
|
-
export
|
|
320
|
-
export
|
|
393
|
+
export type cancel_offer_command = typeof cancel_offer_command;
|
|
394
|
+
export type TCancelOfferRequest = {
|
|
321
395
|
trade_id: str;
|
|
322
396
|
secure: bool;
|
|
323
397
|
fee?: uint64;
|
|
324
398
|
};
|
|
325
|
-
export
|
|
399
|
+
export type TCancelOfferResponse = {
|
|
326
400
|
success: bool;
|
|
327
401
|
};
|
|
328
|
-
export
|
|
402
|
+
export type WsCancelOfferMessage = GetMessageType<chia_data_layer_service, cancel_offer_command, TCancelOfferResponse>;
|
|
329
403
|
export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, params: TCancelOfferRequest): Promise<ResType<T, TCancelOfferResponse, WsCancelOfferMessage>>;
|
|
330
404
|
export declare const get_sync_status_command = "get_sync_status";
|
|
331
|
-
export
|
|
332
|
-
export
|
|
405
|
+
export type get_sync_status_command = typeof get_sync_status_command;
|
|
406
|
+
export type TGetSyncStatusRequest = {
|
|
333
407
|
id: str;
|
|
334
408
|
};
|
|
335
|
-
export
|
|
409
|
+
export type TGetSyncStatusResponse = {
|
|
336
410
|
sync_status: SyncStatus;
|
|
337
411
|
};
|
|
338
|
-
export
|
|
412
|
+
export type WsGetSyncStatusMessage = GetMessageType<chia_data_layer_service, get_sync_status_command, TGetSyncStatusResponse>;
|
|
339
413
|
export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T, params: TGetSyncStatusRequest): Promise<ResType<T, TGetSyncStatusResponse, WsGetSyncStatusMessage>>;
|
|
340
414
|
export declare const check_plugins_command = "check_plugins";
|
|
341
|
-
export
|
|
342
|
-
export
|
|
343
|
-
export
|
|
415
|
+
export type check_plugins_command = typeof check_plugins_command;
|
|
416
|
+
export type TCheckPluginsResponse = PluginStatusMarshalled;
|
|
417
|
+
export type WsCheckPluginsMessage = GetMessageType<chia_data_layer_service, check_plugins_command, TCheckPluginsResponse>;
|
|
344
418
|
export declare function check_plugins<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, PluginStatusMarshalled, WsCheckPluginsMessage>>;
|
|
345
419
|
export declare const clear_pending_roots_command = "clear_pending_roots";
|
|
346
|
-
export
|
|
347
|
-
export
|
|
420
|
+
export type clear_pending_roots_command = typeof clear_pending_roots_command;
|
|
421
|
+
export type TClearPendingRootsRequest = {
|
|
348
422
|
store_id: str;
|
|
349
423
|
};
|
|
350
|
-
export
|
|
424
|
+
export type TClearPendingRootsResponse = {
|
|
351
425
|
success: bool;
|
|
352
426
|
root: Optional<RootMarshalled>;
|
|
353
427
|
};
|
|
354
|
-
export
|
|
428
|
+
export type WsClearPendingRootsMessage = GetMessageType<chia_data_layer_service, clear_pending_roots_command, TClearPendingRootsResponse>;
|
|
355
429
|
export declare function clear_pending_roots<T extends TRPCAgent | TDaemon>(agent: T, params: TClearPendingRootsRequest): Promise<ResType<T, TClearPendingRootsResponse, WsClearPendingRootsMessage>>;
|
|
356
430
|
export declare const get_proof_command = "get_proof";
|
|
357
|
-
export
|
|
358
|
-
export
|
|
431
|
+
export type get_proof_command = typeof get_proof_command;
|
|
432
|
+
export type TGetProofRequest = {
|
|
359
433
|
store_id: bytes32;
|
|
360
434
|
keys: bytes[];
|
|
361
435
|
};
|
|
362
|
-
export
|
|
436
|
+
export type TGetProofResponse = {
|
|
363
437
|
proof: DLProof;
|
|
364
438
|
success: bool;
|
|
365
439
|
};
|
|
366
|
-
export
|
|
440
|
+
export type WsGetProofMessage = GetMessageType<chia_data_layer_service, get_proof_command, TGetProofResponse>;
|
|
367
441
|
export declare function get_proof<T extends TRPCAgent | TDaemon>(agent: T, params: TGetProofRequest): Promise<ResType<T, TGetProofResponse, WsGetProofMessage>>;
|
|
368
442
|
export declare const verify_proof_command = "verify_proof";
|
|
369
|
-
export
|
|
370
|
-
export
|
|
371
|
-
export
|
|
372
|
-
export
|
|
443
|
+
export type verify_proof_command = typeof verify_proof_command;
|
|
444
|
+
export type TVerifyProofRequest = DLProof;
|
|
445
|
+
export type TVerifyProofResponse = VerifyProofResponse;
|
|
446
|
+
export type WsVerifyProofMessage = GetMessageType<chia_data_layer_service, verify_proof_command, TVerifyProofResponse>;
|
|
373
447
|
export declare function verify_proof<T extends TRPCAgent | TDaemon>(agent: T, params: TVerifyProofRequest): Promise<ResType<T, VerifyProofResponse, WsVerifyProofMessage>>;
|
|
374
|
-
export
|
|
375
|
-
export
|
|
448
|
+
export type RpcDataLayerMessage = TWalletLogInResponse | TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TMultistoreBatchUpdateResponse | TSubmitPendingRootResponse | TSubmitAllPendingRootsRequest | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponse | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponse | TVerifyOfferResponse | TCancelOfferResponse | TGetSyncStatusResponse | TCheckPluginsResponse | TClearPendingRootsResponse | TGetProofResponse | TVerifyProofResponse;
|
|
449
|
+
export type RpcDataLayerMessageOnWs = WsWalletLogInMessage | WsCreateDataStoreMessage | WsGetOwnedStoresMessage | WsBatchUpdateMessage | WsMultistoreBatchUpdateMessage | WsSubmitPendingRootMessage | WsSubmitAllPendingRootsMessage | WsGetValueMessage | WsGetKeysMessage | WsGetKeysValuesMessage | WsGetAncestorsMessage | WsGetRootMessage | WsGetLocalRootMessage | WsGetRootsMessage | WsDeleteKeyMessage | WsInsertMessage | WsSubscribeMessage | WsUnsubscribeMessage | WsAddMirrorMessage | WsDeleteMirrorMessage | WsGetMirrorsMessage | WsRemoveSubscriptionsMessage | WsSubscriptionsMessage | WsGetKvDiffMessage | WsGetRootHistoryMessage | WsAddMissingFilesMessage | WsMakeOfferMessage | WsTakeOfferMessage | WsVerifyOfferMessage | WsCancelOfferMessage | WsGetSyncStatusMessage | WsCheckPluginsMessage | WsClearPendingRootsMessage | WsGetProofMessage | WsVerifyProofMessage;
|
|
@@ -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.verify_proof = exports.verify_proof_command = exports.get_proof = exports.get_proof_command = exports.clear_pending_roots = exports.clear_pending_roots_command = exports.check_plugins = exports.check_plugins_command = exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = exports.verify_offer_command = exports.take_offer = void 0;
|
|
12
|
+
exports.get_root_history_command = exports.get_kv_diff = exports.get_kv_diff_command = exports.subscriptions = exports.subscriptions_command = exports.remove_subscriptions = exports.remove_subscriptions_command = exports.get_mirrors = exports.get_mirrors_command = exports.delete_mirror = exports.delete_mirror_command = exports.add_mirror = exports.add_mirror_command = exports.unsubscribe = exports.unsubscribe_command = exports.subscribe = exports.subscribe_command = exports.insert = exports.insert_command = exports.delete_key = exports.delete_key_command = exports.get_roots = exports.get_roots_command = exports.get_local_root = exports.get_local_root_command = exports.get_root = exports.get_root_command = exports.get_ancestors = exports.get_ancestors_command = exports.get_keys_values = exports.get_keys_values_command = exports.get_keys = exports.get_keys_command = exports.get_value = exports.get_value_command = exports.submit_all_pending_roots = exports.submit_all_pending_roots_command = exports.submit_pending_root = exports.submit_pending_root_command = exports.multistore_batch_update = exports.multistore_batch_update_command = exports.batch_update = exports.batch_update_command = exports.get_owned_stores = exports.get_owned_stores_command = exports.create_data_store = exports.create_data_store_command = exports.wallet_log_in = exports.wallet_log_in_command = exports.chia_data_layer_service = void 0;
|
|
13
|
+
exports.verify_proof = exports.verify_proof_command = exports.get_proof = exports.get_proof_command = exports.clear_pending_roots = exports.clear_pending_roots_command = exports.check_plugins = exports.check_plugins_command = exports.get_sync_status = exports.get_sync_status_command = exports.cancel_offer = exports.cancel_offer_command = exports.verify_offer = exports.verify_offer_command = exports.take_offer = exports.take_offer_command = exports.make_offer = exports.make_offer_command = exports.add_missing_files = exports.add_missing_files_command = exports.get_root_history = void 0;
|
|
14
14
|
exports.chia_data_layer_service = "chia_data_layer";
|
|
15
15
|
exports.wallet_log_in_command = "wallet_log_in";
|
|
16
16
|
function wallet_log_in(agent, params) {
|
|
@@ -40,6 +40,27 @@ function batch_update(agent, params) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
exports.batch_update = batch_update;
|
|
43
|
+
exports.multistore_batch_update_command = "multistore_batch_update";
|
|
44
|
+
function multistore_batch_update(agent, params) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.multistore_batch_update_command, params);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
exports.multistore_batch_update = multistore_batch_update;
|
|
50
|
+
exports.submit_pending_root_command = "submit_pending_root";
|
|
51
|
+
function submit_pending_root(agent, params) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.submit_pending_root_command, params);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.submit_pending_root = submit_pending_root;
|
|
57
|
+
exports.submit_all_pending_roots_command = "submit_all_pending_roots";
|
|
58
|
+
function submit_all_pending_roots(agent, params) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return agent.sendMessage(exports.chia_data_layer_service, exports.submit_all_pending_roots_command, params);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
exports.submit_all_pending_roots = submit_all_pending_roots;
|
|
43
64
|
exports.get_value_command = "get_value";
|
|
44
65
|
function get_value(agent, params) {
|
|
45
66
|
return __awaiter(this, void 0, void 0, function* () {
|