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