@dashevo/dapi-grpc 0.25.12 → 0.25.15

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.
@@ -1,35 +1,47 @@
1
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
2
+ #[serde(rename_all = "snake_case")]
1
3
  #[allow(clippy::derive_partial_eq_without_eq)]
2
4
  #[derive(Clone, PartialEq, ::prost::Message)]
3
5
  pub struct Proof {
4
6
  #[prost(bytes = "vec", tag = "1")]
7
+ #[serde(with = "serde_bytes")]
5
8
  pub grovedb_proof: ::prost::alloc::vec::Vec<u8>,
6
9
  #[prost(bytes = "vec", tag = "2")]
10
+ #[serde(with = "serde_bytes")]
7
11
  pub quorum_hash: ::prost::alloc::vec::Vec<u8>,
8
12
  #[prost(bytes = "vec", tag = "3")]
13
+ #[serde(with = "serde_bytes")]
9
14
  pub signature: ::prost::alloc::vec::Vec<u8>,
10
15
  #[prost(uint32, tag = "4")]
11
16
  pub round: u32,
12
17
  #[prost(bytes = "vec", tag = "5")]
18
+ #[serde(with = "serde_bytes")]
13
19
  pub block_id_hash: ::prost::alloc::vec::Vec<u8>,
14
20
  #[prost(uint32, tag = "6")]
15
21
  pub quorum_type: u32,
16
22
  }
23
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
24
+ #[serde(rename_all = "snake_case")]
17
25
  #[allow(clippy::derive_partial_eq_without_eq)]
18
26
  #[derive(Clone, PartialEq, ::prost::Message)]
19
27
  pub struct ResponseMetadata {
20
28
  #[prost(uint64, tag = "1")]
29
+ #[serde(with = "crate::deserialization::from_to_string")]
21
30
  pub height: u64,
22
31
  #[prost(uint32, tag = "2")]
23
32
  pub core_chain_locked_height: u32,
24
33
  #[prost(uint32, tag = "3")]
25
34
  pub epoch: u32,
26
35
  #[prost(uint64, tag = "4")]
36
+ #[serde(with = "crate::deserialization::from_to_string")]
27
37
  pub time_ms: u64,
28
38
  #[prost(uint32, tag = "5")]
29
39
  pub protocol_version: u32,
30
40
  #[prost(string, tag = "6")]
31
41
  pub chain_id: ::prost::alloc::string::String,
32
42
  }
43
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
44
+ #[serde(rename_all = "snake_case")]
33
45
  #[allow(clippy::derive_partial_eq_without_eq)]
34
46
  #[derive(Clone, PartialEq, ::prost::Message)]
35
47
  pub struct StateTransitionBroadcastError {
@@ -40,15 +52,21 @@ pub struct StateTransitionBroadcastError {
40
52
  #[prost(bytes = "vec", tag = "3")]
41
53
  pub data: ::prost::alloc::vec::Vec<u8>,
42
54
  }
55
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
56
+ #[serde(rename_all = "snake_case")]
43
57
  #[allow(clippy::derive_partial_eq_without_eq)]
44
58
  #[derive(Clone, PartialEq, ::prost::Message)]
45
59
  pub struct BroadcastStateTransitionRequest {
46
60
  #[prost(bytes = "vec", tag = "1")]
47
61
  pub state_transition: ::prost::alloc::vec::Vec<u8>,
48
62
  }
63
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
64
+ #[serde(rename_all = "snake_case")]
49
65
  #[allow(clippy::derive_partial_eq_without_eq)]
50
66
  #[derive(Clone, PartialEq, ::prost::Message)]
51
67
  pub struct BroadcastStateTransitionResponse {}
68
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
69
+ #[serde(rename_all = "snake_case")]
52
70
  #[allow(clippy::derive_partial_eq_without_eq)]
53
71
  #[derive(Clone, PartialEq, ::prost::Message)]
54
72
  pub struct GetIdentityRequest {
@@ -57,14 +75,19 @@ pub struct GetIdentityRequest {
57
75
  }
58
76
  /// Nested message and enum types in `GetIdentityRequest`.
59
77
  pub mod get_identity_request {
78
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
79
+ #[serde(rename_all = "snake_case")]
60
80
  #[allow(clippy::derive_partial_eq_without_eq)]
61
81
  #[derive(Clone, PartialEq, ::prost::Message)]
62
82
  pub struct GetIdentityRequestV0 {
63
83
  #[prost(bytes = "vec", tag = "1")]
84
+ #[serde(with = "serde_bytes")]
64
85
  pub id: ::prost::alloc::vec::Vec<u8>,
65
86
  #[prost(bool, tag = "2")]
66
87
  pub prove: bool,
67
88
  }
89
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
90
+ #[serde(rename_all = "snake_case")]
68
91
  #[allow(clippy::derive_partial_eq_without_eq)]
69
92
  #[derive(Clone, PartialEq, ::prost::Oneof)]
70
93
  pub enum Version {
@@ -72,6 +95,8 @@ pub mod get_identity_request {
72
95
  V0(GetIdentityRequestV0),
73
96
  }
74
97
  }
98
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
99
+ #[serde(rename_all = "snake_case")]
75
100
  #[allow(clippy::derive_partial_eq_without_eq)]
76
101
  #[derive(Clone, PartialEq, ::prost::Message)]
77
102
  pub struct GetIdentityBalanceRequest {
@@ -80,14 +105,19 @@ pub struct GetIdentityBalanceRequest {
80
105
  }
81
106
  /// Nested message and enum types in `GetIdentityBalanceRequest`.
82
107
  pub mod get_identity_balance_request {
108
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
109
+ #[serde(rename_all = "snake_case")]
83
110
  #[allow(clippy::derive_partial_eq_without_eq)]
84
111
  #[derive(Clone, PartialEq, ::prost::Message)]
85
112
  pub struct GetIdentityBalanceRequestV0 {
86
113
  #[prost(bytes = "vec", tag = "1")]
114
+ #[serde(with = "serde_bytes")]
87
115
  pub id: ::prost::alloc::vec::Vec<u8>,
88
116
  #[prost(bool, tag = "2")]
89
117
  pub prove: bool,
90
118
  }
119
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
120
+ #[serde(rename_all = "snake_case")]
91
121
  #[allow(clippy::derive_partial_eq_without_eq)]
92
122
  #[derive(Clone, PartialEq, ::prost::Oneof)]
93
123
  pub enum Version {
@@ -95,6 +125,8 @@ pub mod get_identity_balance_request {
95
125
  V0(GetIdentityBalanceRequestV0),
96
126
  }
97
127
  }
128
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
129
+ #[serde(rename_all = "snake_case")]
98
130
  #[allow(clippy::derive_partial_eq_without_eq)]
99
131
  #[derive(Clone, PartialEq, ::prost::Message)]
100
132
  pub struct GetIdentityBalanceAndRevisionRequest {
@@ -105,14 +137,19 @@ pub struct GetIdentityBalanceAndRevisionRequest {
105
137
  }
106
138
  /// Nested message and enum types in `GetIdentityBalanceAndRevisionRequest`.
107
139
  pub mod get_identity_balance_and_revision_request {
140
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
141
+ #[serde(rename_all = "snake_case")]
108
142
  #[allow(clippy::derive_partial_eq_without_eq)]
109
143
  #[derive(Clone, PartialEq, ::prost::Message)]
110
144
  pub struct GetIdentityBalanceAndRevisionRequestV0 {
111
145
  #[prost(bytes = "vec", tag = "1")]
146
+ #[serde(with = "serde_bytes")]
112
147
  pub id: ::prost::alloc::vec::Vec<u8>,
113
148
  #[prost(bool, tag = "2")]
114
149
  pub prove: bool,
115
150
  }
151
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
152
+ #[serde(rename_all = "snake_case")]
116
153
  #[allow(clippy::derive_partial_eq_without_eq)]
117
154
  #[derive(Clone, PartialEq, ::prost::Oneof)]
118
155
  pub enum Version {
@@ -120,6 +157,10 @@ pub mod get_identity_balance_and_revision_request {
120
157
  V0(GetIdentityBalanceAndRevisionRequestV0),
121
158
  }
122
159
  }
160
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
161
+ #[serde(rename_all = "snake_case")]
162
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
163
+ #[grpc_versions(0)]
123
164
  #[allow(clippy::derive_partial_eq_without_eq)]
124
165
  #[derive(Clone, PartialEq, ::prost::Message)]
125
166
  pub struct GetIdentityResponse {
@@ -128,6 +169,8 @@ pub struct GetIdentityResponse {
128
169
  }
129
170
  /// Nested message and enum types in `GetIdentityResponse`.
130
171
  pub mod get_identity_response {
172
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
173
+ #[serde(rename_all = "snake_case")]
131
174
  #[allow(clippy::derive_partial_eq_without_eq)]
132
175
  #[derive(Clone, PartialEq, ::prost::Message)]
133
176
  pub struct GetIdentityResponseV0 {
@@ -138,6 +181,8 @@ pub mod get_identity_response {
138
181
  }
139
182
  /// Nested message and enum types in `GetIdentityResponseV0`.
140
183
  pub mod get_identity_response_v0 {
184
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
185
+ #[serde(rename_all = "snake_case")]
141
186
  #[allow(clippy::derive_partial_eq_without_eq)]
142
187
  #[derive(Clone, PartialEq, ::prost::Oneof)]
143
188
  pub enum Result {
@@ -147,6 +192,8 @@ pub mod get_identity_response {
147
192
  Proof(super::super::Proof),
148
193
  }
149
194
  }
195
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
196
+ #[serde(rename_all = "snake_case")]
150
197
  #[allow(clippy::derive_partial_eq_without_eq)]
151
198
  #[derive(Clone, PartialEq, ::prost::Oneof)]
152
199
  pub enum Version {
@@ -154,6 +201,8 @@ pub mod get_identity_response {
154
201
  V0(GetIdentityResponseV0),
155
202
  }
156
203
  }
204
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
205
+ #[serde(rename_all = "snake_case")]
157
206
  #[allow(clippy::derive_partial_eq_without_eq)]
158
207
  #[derive(Clone, PartialEq, ::prost::Message)]
159
208
  pub struct GetIdentitiesRequest {
@@ -162,14 +211,19 @@ pub struct GetIdentitiesRequest {
162
211
  }
163
212
  /// Nested message and enum types in `GetIdentitiesRequest`.
164
213
  pub mod get_identities_request {
214
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
215
+ #[serde(rename_all = "snake_case")]
165
216
  #[allow(clippy::derive_partial_eq_without_eq)]
166
217
  #[derive(Clone, PartialEq, ::prost::Message)]
167
218
  pub struct GetIdentitiesRequestV0 {
168
219
  #[prost(bytes = "vec", repeated, tag = "1")]
220
+ #[serde(with = "crate::deserialization::vec_base64string")]
169
221
  pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
170
222
  #[prost(bool, tag = "2")]
171
223
  pub prove: bool,
172
224
  }
225
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
226
+ #[serde(rename_all = "snake_case")]
173
227
  #[allow(clippy::derive_partial_eq_without_eq)]
174
228
  #[derive(Clone, PartialEq, ::prost::Oneof)]
175
229
  pub enum Version {
@@ -177,6 +231,10 @@ pub mod get_identities_request {
177
231
  V0(GetIdentitiesRequestV0),
178
232
  }
179
233
  }
234
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
235
+ #[serde(rename_all = "snake_case")]
236
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
237
+ #[grpc_versions(0)]
180
238
  #[allow(clippy::derive_partial_eq_without_eq)]
181
239
  #[derive(Clone, PartialEq, ::prost::Message)]
182
240
  pub struct GetIdentitiesResponse {
@@ -185,12 +243,16 @@ pub struct GetIdentitiesResponse {
185
243
  }
186
244
  /// Nested message and enum types in `GetIdentitiesResponse`.
187
245
  pub mod get_identities_response {
246
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
247
+ #[serde(rename_all = "snake_case")]
188
248
  #[allow(clippy::derive_partial_eq_without_eq)]
189
249
  #[derive(Clone, PartialEq, ::prost::Message)]
190
250
  pub struct IdentityValue {
191
251
  #[prost(bytes = "vec", tag = "1")]
192
252
  pub value: ::prost::alloc::vec::Vec<u8>,
193
253
  }
254
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
255
+ #[serde(rename_all = "snake_case")]
194
256
  #[allow(clippy::derive_partial_eq_without_eq)]
195
257
  #[derive(Clone, PartialEq, ::prost::Message)]
196
258
  pub struct IdentityEntry {
@@ -199,12 +261,16 @@ pub mod get_identities_response {
199
261
  #[prost(message, optional, tag = "2")]
200
262
  pub value: ::core::option::Option<IdentityValue>,
201
263
  }
264
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
265
+ #[serde(rename_all = "snake_case")]
202
266
  #[allow(clippy::derive_partial_eq_without_eq)]
203
267
  #[derive(Clone, PartialEq, ::prost::Message)]
204
268
  pub struct Identities {
205
269
  #[prost(message, repeated, tag = "1")]
206
270
  pub identity_entries: ::prost::alloc::vec::Vec<IdentityEntry>,
207
271
  }
272
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
273
+ #[serde(rename_all = "snake_case")]
208
274
  #[allow(clippy::derive_partial_eq_without_eq)]
209
275
  #[derive(Clone, PartialEq, ::prost::Message)]
210
276
  pub struct GetIdentitiesResponseV0 {
@@ -215,6 +281,8 @@ pub mod get_identities_response {
215
281
  }
216
282
  /// Nested message and enum types in `GetIdentitiesResponseV0`.
217
283
  pub mod get_identities_response_v0 {
284
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
285
+ #[serde(rename_all = "snake_case")]
218
286
  #[allow(clippy::derive_partial_eq_without_eq)]
219
287
  #[derive(Clone, PartialEq, ::prost::Oneof)]
220
288
  pub enum Result {
@@ -224,6 +292,8 @@ pub mod get_identities_response {
224
292
  Proof(super::super::Proof),
225
293
  }
226
294
  }
295
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
296
+ #[serde(rename_all = "snake_case")]
227
297
  #[allow(clippy::derive_partial_eq_without_eq)]
228
298
  #[derive(Clone, PartialEq, ::prost::Oneof)]
229
299
  pub enum Version {
@@ -231,6 +301,10 @@ pub mod get_identities_response {
231
301
  V0(GetIdentitiesResponseV0),
232
302
  }
233
303
  }
304
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
305
+ #[serde(rename_all = "snake_case")]
306
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
307
+ #[grpc_versions(0)]
234
308
  #[allow(clippy::derive_partial_eq_without_eq)]
235
309
  #[derive(Clone, PartialEq, ::prost::Message)]
236
310
  pub struct GetIdentityBalanceResponse {
@@ -239,6 +313,8 @@ pub struct GetIdentityBalanceResponse {
239
313
  }
240
314
  /// Nested message and enum types in `GetIdentityBalanceResponse`.
241
315
  pub mod get_identity_balance_response {
316
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
317
+ #[serde(rename_all = "snake_case")]
242
318
  #[allow(clippy::derive_partial_eq_without_eq)]
243
319
  #[derive(Clone, PartialEq, ::prost::Message)]
244
320
  pub struct GetIdentityBalanceResponseV0 {
@@ -249,6 +325,8 @@ pub mod get_identity_balance_response {
249
325
  }
250
326
  /// Nested message and enum types in `GetIdentityBalanceResponseV0`.
251
327
  pub mod get_identity_balance_response_v0 {
328
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
329
+ #[serde(rename_all = "snake_case")]
252
330
  #[allow(clippy::derive_partial_eq_without_eq)]
253
331
  #[derive(Clone, PartialEq, ::prost::Oneof)]
254
332
  pub enum Result {
@@ -258,6 +336,8 @@ pub mod get_identity_balance_response {
258
336
  Proof(super::super::Proof),
259
337
  }
260
338
  }
339
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
340
+ #[serde(rename_all = "snake_case")]
261
341
  #[allow(clippy::derive_partial_eq_without_eq)]
262
342
  #[derive(Clone, PartialEq, ::prost::Oneof)]
263
343
  pub enum Version {
@@ -265,6 +345,10 @@ pub mod get_identity_balance_response {
265
345
  V0(GetIdentityBalanceResponseV0),
266
346
  }
267
347
  }
348
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
349
+ #[serde(rename_all = "snake_case")]
350
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
351
+ #[grpc_versions(0)]
268
352
  #[allow(clippy::derive_partial_eq_without_eq)]
269
353
  #[derive(Clone, PartialEq, ::prost::Message)]
270
354
  pub struct GetIdentityBalanceAndRevisionResponse {
@@ -275,6 +359,8 @@ pub struct GetIdentityBalanceAndRevisionResponse {
275
359
  }
276
360
  /// Nested message and enum types in `GetIdentityBalanceAndRevisionResponse`.
277
361
  pub mod get_identity_balance_and_revision_response {
362
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
363
+ #[serde(rename_all = "snake_case")]
278
364
  #[allow(clippy::derive_partial_eq_without_eq)]
279
365
  #[derive(Clone, PartialEq, ::prost::Message)]
280
366
  pub struct GetIdentityBalanceAndRevisionResponseV0 {
@@ -290,6 +376,8 @@ pub mod get_identity_balance_and_revision_response {
290
376
  }
291
377
  /// Nested message and enum types in `GetIdentityBalanceAndRevisionResponseV0`.
292
378
  pub mod get_identity_balance_and_revision_response_v0 {
379
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
380
+ #[serde(rename_all = "snake_case")]
293
381
  #[allow(clippy::derive_partial_eq_without_eq)]
294
382
  #[derive(Clone, PartialEq, ::prost::Message)]
295
383
  pub struct BalanceAndRevision {
@@ -298,6 +386,8 @@ pub mod get_identity_balance_and_revision_response {
298
386
  #[prost(uint64, tag = "2")]
299
387
  pub revision: u64,
300
388
  }
389
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
390
+ #[serde(rename_all = "snake_case")]
301
391
  #[allow(clippy::derive_partial_eq_without_eq)]
302
392
  #[derive(Clone, PartialEq, ::prost::Oneof)]
303
393
  pub enum Result {
@@ -307,6 +397,8 @@ pub mod get_identity_balance_and_revision_response {
307
397
  Proof(super::super::Proof),
308
398
  }
309
399
  }
400
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
401
+ #[serde(rename_all = "snake_case")]
310
402
  #[allow(clippy::derive_partial_eq_without_eq)]
311
403
  #[derive(Clone, PartialEq, ::prost::Oneof)]
312
404
  pub enum Version {
@@ -314,6 +406,8 @@ pub mod get_identity_balance_and_revision_response {
314
406
  V0(GetIdentityBalanceAndRevisionResponseV0),
315
407
  }
316
408
  }
409
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
410
+ #[serde(rename_all = "snake_case")]
317
411
  #[allow(clippy::derive_partial_eq_without_eq)]
318
412
  #[derive(Clone, PartialEq, ::prost::Message)]
319
413
  pub struct KeyRequestType {
@@ -322,6 +416,8 @@ pub struct KeyRequestType {
322
416
  }
323
417
  /// Nested message and enum types in `KeyRequestType`.
324
418
  pub mod key_request_type {
419
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
420
+ #[serde(rename_all = "snake_case")]
325
421
  #[allow(clippy::derive_partial_eq_without_eq)]
326
422
  #[derive(Clone, PartialEq, ::prost::Oneof)]
327
423
  pub enum Request {
@@ -333,21 +429,29 @@ pub mod key_request_type {
333
429
  SearchKey(super::SearchKey),
334
430
  }
335
431
  }
432
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
433
+ #[serde(rename_all = "snake_case")]
336
434
  #[allow(clippy::derive_partial_eq_without_eq)]
337
435
  #[derive(Clone, PartialEq, ::prost::Message)]
338
436
  pub struct AllKeys {}
437
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
438
+ #[serde(rename_all = "snake_case")]
339
439
  #[allow(clippy::derive_partial_eq_without_eq)]
340
440
  #[derive(Clone, PartialEq, ::prost::Message)]
341
441
  pub struct SpecificKeys {
342
442
  #[prost(uint32, repeated, tag = "1")]
343
443
  pub key_ids: ::prost::alloc::vec::Vec<u32>,
344
444
  }
445
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
446
+ #[serde(rename_all = "snake_case")]
345
447
  #[allow(clippy::derive_partial_eq_without_eq)]
346
448
  #[derive(Clone, PartialEq, ::prost::Message)]
347
449
  pub struct SearchKey {
348
450
  #[prost(map = "uint32, message", tag = "1")]
349
451
  pub purpose_map: ::std::collections::HashMap<u32, SecurityLevelMap>,
350
452
  }
453
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
454
+ #[serde(rename_all = "snake_case")]
351
455
  #[allow(clippy::derive_partial_eq_without_eq)]
352
456
  #[derive(Clone, PartialEq, ::prost::Message)]
353
457
  pub struct SecurityLevelMap {
@@ -359,6 +463,8 @@ pub struct SecurityLevelMap {
359
463
  }
360
464
  /// Nested message and enum types in `SecurityLevelMap`.
361
465
  pub mod security_level_map {
466
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
467
+ #[serde(rename_all = "snake_case")]
362
468
  #[derive(
363
469
  Clone,
364
470
  Copy,
@@ -398,6 +504,8 @@ pub mod security_level_map {
398
504
  }
399
505
  }
400
506
  }
507
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
508
+ #[serde(rename_all = "snake_case")]
401
509
  #[allow(clippy::derive_partial_eq_without_eq)]
402
510
  #[derive(Clone, PartialEq, ::prost::Message)]
403
511
  pub struct GetIdentityKeysRequest {
@@ -406,10 +514,13 @@ pub struct GetIdentityKeysRequest {
406
514
  }
407
515
  /// Nested message and enum types in `GetIdentityKeysRequest`.
408
516
  pub mod get_identity_keys_request {
517
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
518
+ #[serde(rename_all = "snake_case")]
409
519
  #[allow(clippy::derive_partial_eq_without_eq)]
410
520
  #[derive(Clone, PartialEq, ::prost::Message)]
411
521
  pub struct GetIdentityKeysRequestV0 {
412
522
  #[prost(bytes = "vec", tag = "1")]
523
+ #[serde(with = "serde_bytes")]
413
524
  pub identity_id: ::prost::alloc::vec::Vec<u8>,
414
525
  #[prost(message, optional, tag = "2")]
415
526
  pub request_type: ::core::option::Option<super::KeyRequestType>,
@@ -420,6 +531,8 @@ pub mod get_identity_keys_request {
420
531
  #[prost(bool, tag = "5")]
421
532
  pub prove: bool,
422
533
  }
534
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
535
+ #[serde(rename_all = "snake_case")]
423
536
  #[allow(clippy::derive_partial_eq_without_eq)]
424
537
  #[derive(Clone, PartialEq, ::prost::Oneof)]
425
538
  pub enum Version {
@@ -427,6 +540,10 @@ pub mod get_identity_keys_request {
427
540
  V0(GetIdentityKeysRequestV0),
428
541
  }
429
542
  }
543
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
544
+ #[serde(rename_all = "snake_case")]
545
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
546
+ #[grpc_versions(0)]
430
547
  #[allow(clippy::derive_partial_eq_without_eq)]
431
548
  #[derive(Clone, PartialEq, ::prost::Message)]
432
549
  pub struct GetIdentityKeysResponse {
@@ -435,6 +552,8 @@ pub struct GetIdentityKeysResponse {
435
552
  }
436
553
  /// Nested message and enum types in `GetIdentityKeysResponse`.
437
554
  pub mod get_identity_keys_response {
555
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
556
+ #[serde(rename_all = "snake_case")]
438
557
  #[allow(clippy::derive_partial_eq_without_eq)]
439
558
  #[derive(Clone, PartialEq, ::prost::Message)]
440
559
  pub struct GetIdentityKeysResponseV0 {
@@ -445,12 +564,16 @@ pub mod get_identity_keys_response {
445
564
  }
446
565
  /// Nested message and enum types in `GetIdentityKeysResponseV0`.
447
566
  pub mod get_identity_keys_response_v0 {
567
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
568
+ #[serde(rename_all = "snake_case")]
448
569
  #[allow(clippy::derive_partial_eq_without_eq)]
449
570
  #[derive(Clone, PartialEq, ::prost::Message)]
450
571
  pub struct Keys {
451
572
  #[prost(bytes = "vec", repeated, tag = "1")]
452
573
  pub keys_bytes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
453
574
  }
575
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
576
+ #[serde(rename_all = "snake_case")]
454
577
  #[allow(clippy::derive_partial_eq_without_eq)]
455
578
  #[derive(Clone, PartialEq, ::prost::Oneof)]
456
579
  pub enum Result {
@@ -460,6 +583,8 @@ pub mod get_identity_keys_response {
460
583
  Proof(super::super::Proof),
461
584
  }
462
585
  }
586
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
587
+ #[serde(rename_all = "snake_case")]
463
588
  #[allow(clippy::derive_partial_eq_without_eq)]
464
589
  #[derive(Clone, PartialEq, ::prost::Oneof)]
465
590
  pub enum Version {
@@ -467,6 +592,8 @@ pub mod get_identity_keys_response {
467
592
  V0(GetIdentityKeysResponseV0),
468
593
  }
469
594
  }
595
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
596
+ #[serde(rename_all = "snake_case")]
470
597
  #[allow(clippy::derive_partial_eq_without_eq)]
471
598
  #[derive(Clone, PartialEq, ::prost::Message)]
472
599
  pub struct GetProofsRequest {
@@ -475,6 +602,8 @@ pub struct GetProofsRequest {
475
602
  }
476
603
  /// Nested message and enum types in `GetProofsRequest`.
477
604
  pub mod get_proofs_request {
605
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
606
+ #[serde(rename_all = "snake_case")]
478
607
  #[allow(clippy::derive_partial_eq_without_eq)]
479
608
  #[derive(Clone, PartialEq, ::prost::Message)]
480
609
  pub struct GetProofsRequestV0 {
@@ -487,6 +616,8 @@ pub mod get_proofs_request {
487
616
  }
488
617
  /// Nested message and enum types in `GetProofsRequestV0`.
489
618
  pub mod get_proofs_request_v0 {
619
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
620
+ #[serde(rename_all = "snake_case")]
490
621
  #[allow(clippy::derive_partial_eq_without_eq)]
491
622
  #[derive(Clone, PartialEq, ::prost::Message)]
492
623
  pub struct DocumentRequest {
@@ -499,16 +630,21 @@ pub mod get_proofs_request {
499
630
  #[prost(bytes = "vec", tag = "4")]
500
631
  pub document_id: ::prost::alloc::vec::Vec<u8>,
501
632
  }
633
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
634
+ #[serde(rename_all = "snake_case")]
502
635
  #[allow(clippy::derive_partial_eq_without_eq)]
503
636
  #[derive(Clone, PartialEq, ::prost::Message)]
504
637
  pub struct IdentityRequest {
505
638
  #[prost(bytes = "vec", tag = "1")]
639
+ #[serde(with = "serde_bytes")]
506
640
  pub identity_id: ::prost::alloc::vec::Vec<u8>,
507
641
  #[prost(enumeration = "identity_request::Type", tag = "2")]
508
642
  pub request_type: i32,
509
643
  }
510
644
  /// Nested message and enum types in `IdentityRequest`.
511
645
  pub mod identity_request {
646
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
647
+ #[serde(rename_all = "snake_case")]
512
648
  #[derive(
513
649
  Clone,
514
650
  Copy,
@@ -549,6 +685,8 @@ pub mod get_proofs_request {
549
685
  }
550
686
  }
551
687
  }
688
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
689
+ #[serde(rename_all = "snake_case")]
552
690
  #[allow(clippy::derive_partial_eq_without_eq)]
553
691
  #[derive(Clone, PartialEq, ::prost::Message)]
554
692
  pub struct ContractRequest {
@@ -556,6 +694,8 @@ pub mod get_proofs_request {
556
694
  pub contract_id: ::prost::alloc::vec::Vec<u8>,
557
695
  }
558
696
  }
697
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
698
+ #[serde(rename_all = "snake_case")]
559
699
  #[allow(clippy::derive_partial_eq_without_eq)]
560
700
  #[derive(Clone, PartialEq, ::prost::Oneof)]
561
701
  pub enum Version {
@@ -563,6 +703,10 @@ pub mod get_proofs_request {
563
703
  V0(GetProofsRequestV0),
564
704
  }
565
705
  }
706
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
707
+ #[serde(rename_all = "snake_case")]
708
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
709
+ #[grpc_versions(0)]
566
710
  #[allow(clippy::derive_partial_eq_without_eq)]
567
711
  #[derive(Clone, PartialEq, ::prost::Message)]
568
712
  pub struct GetProofsResponse {
@@ -571,14 +715,29 @@ pub struct GetProofsResponse {
571
715
  }
572
716
  /// Nested message and enum types in `GetProofsResponse`.
573
717
  pub mod get_proofs_response {
718
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
719
+ #[serde(rename_all = "snake_case")]
574
720
  #[allow(clippy::derive_partial_eq_without_eq)]
575
721
  #[derive(Clone, PartialEq, ::prost::Message)]
576
722
  pub struct GetProofsResponseV0 {
577
- #[prost(message, optional, tag = "1")]
578
- pub proof: ::core::option::Option<super::Proof>,
579
723
  #[prost(message, optional, tag = "2")]
580
724
  pub metadata: ::core::option::Option<super::ResponseMetadata>,
725
+ #[prost(oneof = "get_proofs_response_v0::Result", tags = "1")]
726
+ pub result: ::core::option::Option<get_proofs_response_v0::Result>,
727
+ }
728
+ /// Nested message and enum types in `GetProofsResponseV0`.
729
+ pub mod get_proofs_response_v0 {
730
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
731
+ #[serde(rename_all = "snake_case")]
732
+ #[allow(clippy::derive_partial_eq_without_eq)]
733
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
734
+ pub enum Result {
735
+ #[prost(message, tag = "1")]
736
+ Proof(super::super::Proof),
737
+ }
581
738
  }
739
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
740
+ #[serde(rename_all = "snake_case")]
582
741
  #[allow(clippy::derive_partial_eq_without_eq)]
583
742
  #[derive(Clone, PartialEq, ::prost::Oneof)]
584
743
  pub enum Version {
@@ -586,6 +745,8 @@ pub mod get_proofs_response {
586
745
  V0(GetProofsResponseV0),
587
746
  }
588
747
  }
748
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
749
+ #[serde(rename_all = "snake_case")]
589
750
  #[allow(clippy::derive_partial_eq_without_eq)]
590
751
  #[derive(Clone, PartialEq, ::prost::Message)]
591
752
  pub struct GetDataContractRequest {
@@ -594,14 +755,19 @@ pub struct GetDataContractRequest {
594
755
  }
595
756
  /// Nested message and enum types in `GetDataContractRequest`.
596
757
  pub mod get_data_contract_request {
758
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
759
+ #[serde(rename_all = "snake_case")]
597
760
  #[allow(clippy::derive_partial_eq_without_eq)]
598
761
  #[derive(Clone, PartialEq, ::prost::Message)]
599
762
  pub struct GetDataContractRequestV0 {
600
763
  #[prost(bytes = "vec", tag = "1")]
764
+ #[serde(with = "serde_bytes")]
601
765
  pub id: ::prost::alloc::vec::Vec<u8>,
602
766
  #[prost(bool, tag = "2")]
603
767
  pub prove: bool,
604
768
  }
769
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
770
+ #[serde(rename_all = "snake_case")]
605
771
  #[allow(clippy::derive_partial_eq_without_eq)]
606
772
  #[derive(Clone, PartialEq, ::prost::Oneof)]
607
773
  pub enum Version {
@@ -609,6 +775,10 @@ pub mod get_data_contract_request {
609
775
  V0(GetDataContractRequestV0),
610
776
  }
611
777
  }
778
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
779
+ #[serde(rename_all = "snake_case")]
780
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
781
+ #[grpc_versions(0)]
612
782
  #[allow(clippy::derive_partial_eq_without_eq)]
613
783
  #[derive(Clone, PartialEq, ::prost::Message)]
614
784
  pub struct GetDataContractResponse {
@@ -617,6 +787,8 @@ pub struct GetDataContractResponse {
617
787
  }
618
788
  /// Nested message and enum types in `GetDataContractResponse`.
619
789
  pub mod get_data_contract_response {
790
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
791
+ #[serde(rename_all = "snake_case")]
620
792
  #[allow(clippy::derive_partial_eq_without_eq)]
621
793
  #[derive(Clone, PartialEq, ::prost::Message)]
622
794
  pub struct GetDataContractResponseV0 {
@@ -627,6 +799,8 @@ pub mod get_data_contract_response {
627
799
  }
628
800
  /// Nested message and enum types in `GetDataContractResponseV0`.
629
801
  pub mod get_data_contract_response_v0 {
802
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
803
+ #[serde(rename_all = "snake_case")]
630
804
  #[allow(clippy::derive_partial_eq_without_eq)]
631
805
  #[derive(Clone, PartialEq, ::prost::Oneof)]
632
806
  pub enum Result {
@@ -636,6 +810,8 @@ pub mod get_data_contract_response {
636
810
  Proof(super::super::Proof),
637
811
  }
638
812
  }
813
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
814
+ #[serde(rename_all = "snake_case")]
639
815
  #[allow(clippy::derive_partial_eq_without_eq)]
640
816
  #[derive(Clone, PartialEq, ::prost::Oneof)]
641
817
  pub enum Version {
@@ -643,6 +819,8 @@ pub mod get_data_contract_response {
643
819
  V0(GetDataContractResponseV0),
644
820
  }
645
821
  }
822
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
823
+ #[serde(rename_all = "snake_case")]
646
824
  #[allow(clippy::derive_partial_eq_without_eq)]
647
825
  #[derive(Clone, PartialEq, ::prost::Message)]
648
826
  pub struct GetDataContractsRequest {
@@ -651,14 +829,19 @@ pub struct GetDataContractsRequest {
651
829
  }
652
830
  /// Nested message and enum types in `GetDataContractsRequest`.
653
831
  pub mod get_data_contracts_request {
832
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
833
+ #[serde(rename_all = "snake_case")]
654
834
  #[allow(clippy::derive_partial_eq_without_eq)]
655
835
  #[derive(Clone, PartialEq, ::prost::Message)]
656
836
  pub struct GetDataContractsRequestV0 {
657
837
  #[prost(bytes = "vec", repeated, tag = "1")]
838
+ #[serde(with = "crate::deserialization::vec_base64string")]
658
839
  pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
659
840
  #[prost(bool, tag = "2")]
660
841
  pub prove: bool,
661
842
  }
843
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
844
+ #[serde(rename_all = "snake_case")]
662
845
  #[allow(clippy::derive_partial_eq_without_eq)]
663
846
  #[derive(Clone, PartialEq, ::prost::Oneof)]
664
847
  pub enum Version {
@@ -666,6 +849,10 @@ pub mod get_data_contracts_request {
666
849
  V0(GetDataContractsRequestV0),
667
850
  }
668
851
  }
852
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
853
+ #[serde(rename_all = "snake_case")]
854
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
855
+ #[grpc_versions(0)]
669
856
  #[allow(clippy::derive_partial_eq_without_eq)]
670
857
  #[derive(Clone, PartialEq, ::prost::Message)]
671
858
  pub struct GetDataContractsResponse {
@@ -674,6 +861,8 @@ pub struct GetDataContractsResponse {
674
861
  }
675
862
  /// Nested message and enum types in `GetDataContractsResponse`.
676
863
  pub mod get_data_contracts_response {
864
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
865
+ #[serde(rename_all = "snake_case")]
677
866
  #[allow(clippy::derive_partial_eq_without_eq)]
678
867
  #[derive(Clone, PartialEq, ::prost::Message)]
679
868
  pub struct DataContractEntry {
@@ -682,12 +871,16 @@ pub mod get_data_contracts_response {
682
871
  #[prost(message, optional, tag = "2")]
683
872
  pub data_contract: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
684
873
  }
874
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
875
+ #[serde(rename_all = "snake_case")]
685
876
  #[allow(clippy::derive_partial_eq_without_eq)]
686
877
  #[derive(Clone, PartialEq, ::prost::Message)]
687
878
  pub struct DataContracts {
688
879
  #[prost(message, repeated, tag = "1")]
689
880
  pub data_contract_entries: ::prost::alloc::vec::Vec<DataContractEntry>,
690
881
  }
882
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
883
+ #[serde(rename_all = "snake_case")]
691
884
  #[allow(clippy::derive_partial_eq_without_eq)]
692
885
  #[derive(Clone, PartialEq, ::prost::Message)]
693
886
  pub struct GetDataContractsResponseV0 {
@@ -698,6 +891,8 @@ pub mod get_data_contracts_response {
698
891
  }
699
892
  /// Nested message and enum types in `GetDataContractsResponseV0`.
700
893
  pub mod get_data_contracts_response_v0 {
894
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
895
+ #[serde(rename_all = "snake_case")]
701
896
  #[allow(clippy::derive_partial_eq_without_eq)]
702
897
  #[derive(Clone, PartialEq, ::prost::Oneof)]
703
898
  pub enum Result {
@@ -707,6 +902,8 @@ pub mod get_data_contracts_response {
707
902
  Proof(super::super::Proof),
708
903
  }
709
904
  }
905
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
906
+ #[serde(rename_all = "snake_case")]
710
907
  #[allow(clippy::derive_partial_eq_without_eq)]
711
908
  #[derive(Clone, PartialEq, ::prost::Oneof)]
712
909
  pub enum Version {
@@ -714,6 +911,8 @@ pub mod get_data_contracts_response {
714
911
  V0(GetDataContractsResponseV0),
715
912
  }
716
913
  }
914
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
915
+ #[serde(rename_all = "snake_case")]
717
916
  #[allow(clippy::derive_partial_eq_without_eq)]
718
917
  #[derive(Clone, PartialEq, ::prost::Message)]
719
918
  pub struct GetDataContractHistoryRequest {
@@ -722,20 +921,26 @@ pub struct GetDataContractHistoryRequest {
722
921
  }
723
922
  /// Nested message and enum types in `GetDataContractHistoryRequest`.
724
923
  pub mod get_data_contract_history_request {
924
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
925
+ #[serde(rename_all = "snake_case")]
725
926
  #[allow(clippy::derive_partial_eq_without_eq)]
726
927
  #[derive(Clone, PartialEq, ::prost::Message)]
727
928
  pub struct GetDataContractHistoryRequestV0 {
728
929
  #[prost(bytes = "vec", tag = "1")]
930
+ #[serde(with = "serde_bytes")]
729
931
  pub id: ::prost::alloc::vec::Vec<u8>,
730
932
  #[prost(message, optional, tag = "2")]
731
933
  pub limit: ::core::option::Option<u32>,
732
934
  #[prost(message, optional, tag = "3")]
733
935
  pub offset: ::core::option::Option<u32>,
734
936
  #[prost(uint64, tag = "4")]
937
+ #[serde(with = "crate::deserialization::from_to_string")]
735
938
  pub start_at_ms: u64,
736
939
  #[prost(bool, tag = "5")]
737
940
  pub prove: bool,
738
941
  }
942
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
943
+ #[serde(rename_all = "snake_case")]
739
944
  #[allow(clippy::derive_partial_eq_without_eq)]
740
945
  #[derive(Clone, PartialEq, ::prost::Oneof)]
741
946
  pub enum Version {
@@ -743,6 +948,10 @@ pub mod get_data_contract_history_request {
743
948
  V0(GetDataContractHistoryRequestV0),
744
949
  }
745
950
  }
951
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
952
+ #[serde(rename_all = "snake_case")]
953
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
954
+ #[grpc_versions(0)]
746
955
  #[allow(clippy::derive_partial_eq_without_eq)]
747
956
  #[derive(Clone, PartialEq, ::prost::Message)]
748
957
  pub struct GetDataContractHistoryResponse {
@@ -751,6 +960,8 @@ pub struct GetDataContractHistoryResponse {
751
960
  }
752
961
  /// Nested message and enum types in `GetDataContractHistoryResponse`.
753
962
  pub mod get_data_contract_history_response {
963
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
964
+ #[serde(rename_all = "snake_case")]
754
965
  #[allow(clippy::derive_partial_eq_without_eq)]
755
966
  #[derive(Clone, PartialEq, ::prost::Message)]
756
967
  pub struct GetDataContractHistoryResponseV0 {
@@ -763,6 +974,8 @@ pub mod get_data_contract_history_response {
763
974
  }
764
975
  /// Nested message and enum types in `GetDataContractHistoryResponseV0`.
765
976
  pub mod get_data_contract_history_response_v0 {
977
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
978
+ #[serde(rename_all = "snake_case")]
766
979
  #[allow(clippy::derive_partial_eq_without_eq)]
767
980
  #[derive(Clone, PartialEq, ::prost::Message)]
768
981
  pub struct DataContractHistoryEntry {
@@ -771,6 +984,8 @@ pub mod get_data_contract_history_response {
771
984
  #[prost(bytes = "vec", tag = "2")]
772
985
  pub value: ::prost::alloc::vec::Vec<u8>,
773
986
  }
987
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
988
+ #[serde(rename_all = "snake_case")]
774
989
  #[allow(clippy::derive_partial_eq_without_eq)]
775
990
  #[derive(Clone, PartialEq, ::prost::Message)]
776
991
  pub struct DataContractHistory {
@@ -779,6 +994,8 @@ pub mod get_data_contract_history_response {
779
994
  DataContractHistoryEntry,
780
995
  >,
781
996
  }
997
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
998
+ #[serde(rename_all = "snake_case")]
782
999
  #[allow(clippy::derive_partial_eq_without_eq)]
783
1000
  #[derive(Clone, PartialEq, ::prost::Oneof)]
784
1001
  pub enum Result {
@@ -788,6 +1005,8 @@ pub mod get_data_contract_history_response {
788
1005
  Proof(super::super::Proof),
789
1006
  }
790
1007
  }
1008
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1009
+ #[serde(rename_all = "snake_case")]
791
1010
  #[allow(clippy::derive_partial_eq_without_eq)]
792
1011
  #[derive(Clone, PartialEq, ::prost::Oneof)]
793
1012
  pub enum Version {
@@ -795,6 +1014,8 @@ pub mod get_data_contract_history_response {
795
1014
  V0(GetDataContractHistoryResponseV0),
796
1015
  }
797
1016
  }
1017
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1018
+ #[serde(rename_all = "snake_case")]
798
1019
  #[allow(clippy::derive_partial_eq_without_eq)]
799
1020
  #[derive(Clone, PartialEq, ::prost::Message)]
800
1021
  pub struct GetDocumentsRequest {
@@ -803,16 +1024,21 @@ pub struct GetDocumentsRequest {
803
1024
  }
804
1025
  /// Nested message and enum types in `GetDocumentsRequest`.
805
1026
  pub mod get_documents_request {
1027
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1028
+ #[serde(rename_all = "snake_case")]
806
1029
  #[allow(clippy::derive_partial_eq_without_eq)]
807
1030
  #[derive(Clone, PartialEq, ::prost::Message)]
808
1031
  pub struct GetDocumentsRequestV0 {
809
1032
  #[prost(bytes = "vec", tag = "1")]
1033
+ #[serde(with = "serde_bytes")]
810
1034
  pub data_contract_id: ::prost::alloc::vec::Vec<u8>,
811
1035
  #[prost(string, tag = "2")]
812
1036
  pub document_type: ::prost::alloc::string::String,
813
1037
  #[prost(bytes = "vec", tag = "3")]
1038
+ #[serde(with = "serde_bytes")]
814
1039
  pub r#where: ::prost::alloc::vec::Vec<u8>,
815
1040
  #[prost(bytes = "vec", tag = "4")]
1041
+ #[serde(with = "serde_bytes")]
816
1042
  pub order_by: ::prost::alloc::vec::Vec<u8>,
817
1043
  #[prost(uint32, tag = "5")]
818
1044
  pub limit: u32,
@@ -823,6 +1049,8 @@ pub mod get_documents_request {
823
1049
  }
824
1050
  /// Nested message and enum types in `GetDocumentsRequestV0`.
825
1051
  pub mod get_documents_request_v0 {
1052
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1053
+ #[serde(rename_all = "snake_case")]
826
1054
  #[allow(clippy::derive_partial_eq_without_eq)]
827
1055
  #[derive(Clone, PartialEq, ::prost::Oneof)]
828
1056
  pub enum Start {
@@ -832,6 +1060,8 @@ pub mod get_documents_request {
832
1060
  StartAt(::prost::alloc::vec::Vec<u8>),
833
1061
  }
834
1062
  }
1063
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1064
+ #[serde(rename_all = "snake_case")]
835
1065
  #[allow(clippy::derive_partial_eq_without_eq)]
836
1066
  #[derive(Clone, PartialEq, ::prost::Oneof)]
837
1067
  pub enum Version {
@@ -839,6 +1069,10 @@ pub mod get_documents_request {
839
1069
  V0(GetDocumentsRequestV0),
840
1070
  }
841
1071
  }
1072
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1073
+ #[serde(rename_all = "snake_case")]
1074
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
1075
+ #[grpc_versions(0)]
842
1076
  #[allow(clippy::derive_partial_eq_without_eq)]
843
1077
  #[derive(Clone, PartialEq, ::prost::Message)]
844
1078
  pub struct GetDocumentsResponse {
@@ -847,6 +1081,8 @@ pub struct GetDocumentsResponse {
847
1081
  }
848
1082
  /// Nested message and enum types in `GetDocumentsResponse`.
849
1083
  pub mod get_documents_response {
1084
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1085
+ #[serde(rename_all = "snake_case")]
850
1086
  #[allow(clippy::derive_partial_eq_without_eq)]
851
1087
  #[derive(Clone, PartialEq, ::prost::Message)]
852
1088
  pub struct GetDocumentsResponseV0 {
@@ -857,12 +1093,16 @@ pub mod get_documents_response {
857
1093
  }
858
1094
  /// Nested message and enum types in `GetDocumentsResponseV0`.
859
1095
  pub mod get_documents_response_v0 {
1096
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1097
+ #[serde(rename_all = "snake_case")]
860
1098
  #[allow(clippy::derive_partial_eq_without_eq)]
861
1099
  #[derive(Clone, PartialEq, ::prost::Message)]
862
1100
  pub struct Documents {
863
1101
  #[prost(bytes = "vec", repeated, tag = "1")]
864
1102
  pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
865
1103
  }
1104
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1105
+ #[serde(rename_all = "snake_case")]
866
1106
  #[allow(clippy::derive_partial_eq_without_eq)]
867
1107
  #[derive(Clone, PartialEq, ::prost::Oneof)]
868
1108
  pub enum Result {
@@ -872,6 +1112,8 @@ pub mod get_documents_response {
872
1112
  Proof(super::super::Proof),
873
1113
  }
874
1114
  }
1115
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1116
+ #[serde(rename_all = "snake_case")]
875
1117
  #[allow(clippy::derive_partial_eq_without_eq)]
876
1118
  #[derive(Clone, PartialEq, ::prost::Oneof)]
877
1119
  pub enum Version {
@@ -879,6 +1121,8 @@ pub mod get_documents_response {
879
1121
  V0(GetDocumentsResponseV0),
880
1122
  }
881
1123
  }
1124
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1125
+ #[serde(rename_all = "snake_case")]
882
1126
  #[allow(clippy::derive_partial_eq_without_eq)]
883
1127
  #[derive(Clone, PartialEq, ::prost::Message)]
884
1128
  pub struct GetIdentitiesByPublicKeyHashesRequest {
@@ -889,14 +1133,19 @@ pub struct GetIdentitiesByPublicKeyHashesRequest {
889
1133
  }
890
1134
  /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesRequest`.
891
1135
  pub mod get_identities_by_public_key_hashes_request {
1136
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1137
+ #[serde(rename_all = "snake_case")]
892
1138
  #[allow(clippy::derive_partial_eq_without_eq)]
893
1139
  #[derive(Clone, PartialEq, ::prost::Message)]
894
1140
  pub struct GetIdentitiesByPublicKeyHashesRequestV0 {
895
1141
  #[prost(bytes = "vec", repeated, tag = "1")]
1142
+ #[serde(with = "crate::deserialization::vec_base64string")]
896
1143
  pub public_key_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
897
1144
  #[prost(bool, tag = "2")]
898
1145
  pub prove: bool,
899
1146
  }
1147
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1148
+ #[serde(rename_all = "snake_case")]
900
1149
  #[allow(clippy::derive_partial_eq_without_eq)]
901
1150
  #[derive(Clone, PartialEq, ::prost::Oneof)]
902
1151
  pub enum Version {
@@ -904,6 +1153,10 @@ pub mod get_identities_by_public_key_hashes_request {
904
1153
  V0(GetIdentitiesByPublicKeyHashesRequestV0),
905
1154
  }
906
1155
  }
1156
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1157
+ #[serde(rename_all = "snake_case")]
1158
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
1159
+ #[grpc_versions(0)]
907
1160
  #[allow(clippy::derive_partial_eq_without_eq)]
908
1161
  #[derive(Clone, PartialEq, ::prost::Message)]
909
1162
  pub struct GetIdentitiesByPublicKeyHashesResponse {
@@ -914,20 +1167,27 @@ pub struct GetIdentitiesByPublicKeyHashesResponse {
914
1167
  }
915
1168
  /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponse`.
916
1169
  pub mod get_identities_by_public_key_hashes_response {
1170
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1171
+ #[serde(rename_all = "snake_case")]
917
1172
  #[allow(clippy::derive_partial_eq_without_eq)]
918
1173
  #[derive(Clone, PartialEq, ::prost::Message)]
919
1174
  pub struct PublicKeyHashIdentityEntry {
920
1175
  #[prost(bytes = "vec", tag = "1")]
1176
+ #[serde(with = "serde_bytes")]
921
1177
  pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
922
1178
  #[prost(message, optional, tag = "2")]
923
1179
  pub value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
924
1180
  }
1181
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1182
+ #[serde(rename_all = "snake_case")]
925
1183
  #[allow(clippy::derive_partial_eq_without_eq)]
926
1184
  #[derive(Clone, PartialEq, ::prost::Message)]
927
1185
  pub struct IdentitiesByPublicKeyHashes {
928
1186
  #[prost(message, repeated, tag = "1")]
929
1187
  pub identity_entries: ::prost::alloc::vec::Vec<PublicKeyHashIdentityEntry>,
930
1188
  }
1189
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1190
+ #[serde(rename_all = "snake_case")]
931
1191
  #[allow(clippy::derive_partial_eq_without_eq)]
932
1192
  #[derive(Clone, PartialEq, ::prost::Message)]
933
1193
  pub struct GetIdentitiesByPublicKeyHashesResponseV0 {
@@ -943,6 +1203,8 @@ pub mod get_identities_by_public_key_hashes_response {
943
1203
  }
944
1204
  /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponseV0`.
945
1205
  pub mod get_identities_by_public_key_hashes_response_v0 {
1206
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1207
+ #[serde(rename_all = "snake_case")]
946
1208
  #[allow(clippy::derive_partial_eq_without_eq)]
947
1209
  #[derive(Clone, PartialEq, ::prost::Oneof)]
948
1210
  pub enum Result {
@@ -952,6 +1214,8 @@ pub mod get_identities_by_public_key_hashes_response {
952
1214
  Proof(super::super::Proof),
953
1215
  }
954
1216
  }
1217
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1218
+ #[serde(rename_all = "snake_case")]
955
1219
  #[allow(clippy::derive_partial_eq_without_eq)]
956
1220
  #[derive(Clone, PartialEq, ::prost::Oneof)]
957
1221
  pub enum Version {
@@ -959,6 +1223,8 @@ pub mod get_identities_by_public_key_hashes_response {
959
1223
  V0(GetIdentitiesByPublicKeyHashesResponseV0),
960
1224
  }
961
1225
  }
1226
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1227
+ #[serde(rename_all = "snake_case")]
962
1228
  #[allow(clippy::derive_partial_eq_without_eq)]
963
1229
  #[derive(Clone, PartialEq, ::prost::Message)]
964
1230
  pub struct GetIdentityByPublicKeyHashRequest {
@@ -969,14 +1235,19 @@ pub struct GetIdentityByPublicKeyHashRequest {
969
1235
  }
970
1236
  /// Nested message and enum types in `GetIdentityByPublicKeyHashRequest`.
971
1237
  pub mod get_identity_by_public_key_hash_request {
1238
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1239
+ #[serde(rename_all = "snake_case")]
972
1240
  #[allow(clippy::derive_partial_eq_without_eq)]
973
1241
  #[derive(Clone, PartialEq, ::prost::Message)]
974
1242
  pub struct GetIdentityByPublicKeyHashRequestV0 {
975
1243
  #[prost(bytes = "vec", tag = "1")]
1244
+ #[serde(with = "serde_bytes")]
976
1245
  pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
977
1246
  #[prost(bool, tag = "2")]
978
1247
  pub prove: bool,
979
1248
  }
1249
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1250
+ #[serde(rename_all = "snake_case")]
980
1251
  #[allow(clippy::derive_partial_eq_without_eq)]
981
1252
  #[derive(Clone, PartialEq, ::prost::Oneof)]
982
1253
  pub enum Version {
@@ -984,6 +1255,10 @@ pub mod get_identity_by_public_key_hash_request {
984
1255
  V0(GetIdentityByPublicKeyHashRequestV0),
985
1256
  }
986
1257
  }
1258
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1259
+ #[serde(rename_all = "snake_case")]
1260
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
1261
+ #[grpc_versions(0)]
987
1262
  #[allow(clippy::derive_partial_eq_without_eq)]
988
1263
  #[derive(Clone, PartialEq, ::prost::Message)]
989
1264
  pub struct GetIdentityByPublicKeyHashResponse {
@@ -994,6 +1269,8 @@ pub struct GetIdentityByPublicKeyHashResponse {
994
1269
  }
995
1270
  /// Nested message and enum types in `GetIdentityByPublicKeyHashResponse`.
996
1271
  pub mod get_identity_by_public_key_hash_response {
1272
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1273
+ #[serde(rename_all = "snake_case")]
997
1274
  #[allow(clippy::derive_partial_eq_without_eq)]
998
1275
  #[derive(Clone, PartialEq, ::prost::Message)]
999
1276
  pub struct GetIdentityByPublicKeyHashResponseV0 {
@@ -1009,6 +1286,8 @@ pub mod get_identity_by_public_key_hash_response {
1009
1286
  }
1010
1287
  /// Nested message and enum types in `GetIdentityByPublicKeyHashResponseV0`.
1011
1288
  pub mod get_identity_by_public_key_hash_response_v0 {
1289
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1290
+ #[serde(rename_all = "snake_case")]
1012
1291
  #[allow(clippy::derive_partial_eq_without_eq)]
1013
1292
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1014
1293
  pub enum Result {
@@ -1018,6 +1297,8 @@ pub mod get_identity_by_public_key_hash_response {
1018
1297
  Proof(super::super::Proof),
1019
1298
  }
1020
1299
  }
1300
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1301
+ #[serde(rename_all = "snake_case")]
1021
1302
  #[allow(clippy::derive_partial_eq_without_eq)]
1022
1303
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1023
1304
  pub enum Version {
@@ -1025,6 +1306,8 @@ pub mod get_identity_by_public_key_hash_response {
1025
1306
  V0(GetIdentityByPublicKeyHashResponseV0),
1026
1307
  }
1027
1308
  }
1309
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1310
+ #[serde(rename_all = "snake_case")]
1028
1311
  #[allow(clippy::derive_partial_eq_without_eq)]
1029
1312
  #[derive(Clone, PartialEq, ::prost::Message)]
1030
1313
  pub struct WaitForStateTransitionResultRequest {
@@ -1035,6 +1318,8 @@ pub struct WaitForStateTransitionResultRequest {
1035
1318
  }
1036
1319
  /// Nested message and enum types in `WaitForStateTransitionResultRequest`.
1037
1320
  pub mod wait_for_state_transition_result_request {
1321
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1322
+ #[serde(rename_all = "snake_case")]
1038
1323
  #[allow(clippy::derive_partial_eq_without_eq)]
1039
1324
  #[derive(Clone, PartialEq, ::prost::Message)]
1040
1325
  pub struct WaitForStateTransitionResultRequestV0 {
@@ -1043,6 +1328,8 @@ pub mod wait_for_state_transition_result_request {
1043
1328
  #[prost(bool, tag = "2")]
1044
1329
  pub prove: bool,
1045
1330
  }
1331
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1332
+ #[serde(rename_all = "snake_case")]
1046
1333
  #[allow(clippy::derive_partial_eq_without_eq)]
1047
1334
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1048
1335
  pub enum Version {
@@ -1050,6 +1337,10 @@ pub mod wait_for_state_transition_result_request {
1050
1337
  V0(WaitForStateTransitionResultRequestV0),
1051
1338
  }
1052
1339
  }
1340
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1341
+ #[serde(rename_all = "snake_case")]
1342
+ #[derive(::dapi_grpc_macros::VersionedGrpcResponse)]
1343
+ #[grpc_versions(0)]
1053
1344
  #[allow(clippy::derive_partial_eq_without_eq)]
1054
1345
  #[derive(Clone, PartialEq, ::prost::Message)]
1055
1346
  pub struct WaitForStateTransitionResultResponse {
@@ -1060,6 +1351,8 @@ pub struct WaitForStateTransitionResultResponse {
1060
1351
  }
1061
1352
  /// Nested message and enum types in `WaitForStateTransitionResultResponse`.
1062
1353
  pub mod wait_for_state_transition_result_response {
1354
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1355
+ #[serde(rename_all = "snake_case")]
1063
1356
  #[allow(clippy::derive_partial_eq_without_eq)]
1064
1357
  #[derive(Clone, PartialEq, ::prost::Message)]
1065
1358
  pub struct WaitForStateTransitionResultResponseV0 {
@@ -1075,6 +1368,8 @@ pub mod wait_for_state_transition_result_response {
1075
1368
  }
1076
1369
  /// Nested message and enum types in `WaitForStateTransitionResultResponseV0`.
1077
1370
  pub mod wait_for_state_transition_result_response_v0 {
1371
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1372
+ #[serde(rename_all = "snake_case")]
1078
1373
  #[allow(clippy::derive_partial_eq_without_eq)]
1079
1374
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1080
1375
  pub enum Result {
@@ -1084,6 +1379,8 @@ pub mod wait_for_state_transition_result_response {
1084
1379
  Proof(super::super::Proof),
1085
1380
  }
1086
1381
  }
1382
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1383
+ #[serde(rename_all = "snake_case")]
1087
1384
  #[allow(clippy::derive_partial_eq_without_eq)]
1088
1385
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1089
1386
  pub enum Version {
@@ -1091,6 +1388,8 @@ pub mod wait_for_state_transition_result_response {
1091
1388
  V0(WaitForStateTransitionResultResponseV0),
1092
1389
  }
1093
1390
  }
1391
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1392
+ #[serde(rename_all = "snake_case")]
1094
1393
  #[allow(clippy::derive_partial_eq_without_eq)]
1095
1394
  #[derive(Clone, PartialEq, ::prost::Message)]
1096
1395
  pub struct GetConsensusParamsRequest {
@@ -1099,6 +1398,8 @@ pub struct GetConsensusParamsRequest {
1099
1398
  }
1100
1399
  /// Nested message and enum types in `GetConsensusParamsRequest`.
1101
1400
  pub mod get_consensus_params_request {
1401
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1402
+ #[serde(rename_all = "snake_case")]
1102
1403
  #[allow(clippy::derive_partial_eq_without_eq)]
1103
1404
  #[derive(Clone, PartialEq, ::prost::Message)]
1104
1405
  pub struct GetConsensusParamsRequestV0 {
@@ -1107,6 +1408,8 @@ pub mod get_consensus_params_request {
1107
1408
  #[prost(bool, tag = "2")]
1108
1409
  pub prove: bool,
1109
1410
  }
1411
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1412
+ #[serde(rename_all = "snake_case")]
1110
1413
  #[allow(clippy::derive_partial_eq_without_eq)]
1111
1414
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1112
1415
  pub enum Version {
@@ -1114,6 +1417,8 @@ pub mod get_consensus_params_request {
1114
1417
  V0(GetConsensusParamsRequestV0),
1115
1418
  }
1116
1419
  }
1420
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1421
+ #[serde(rename_all = "snake_case")]
1117
1422
  #[allow(clippy::derive_partial_eq_without_eq)]
1118
1423
  #[derive(Clone, PartialEq, ::prost::Message)]
1119
1424
  pub struct GetConsensusParamsResponse {
@@ -1122,6 +1427,8 @@ pub struct GetConsensusParamsResponse {
1122
1427
  }
1123
1428
  /// Nested message and enum types in `GetConsensusParamsResponse`.
1124
1429
  pub mod get_consensus_params_response {
1430
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1431
+ #[serde(rename_all = "snake_case")]
1125
1432
  #[allow(clippy::derive_partial_eq_without_eq)]
1126
1433
  #[derive(Clone, PartialEq, ::prost::Message)]
1127
1434
  pub struct ConsensusParamsBlock {
@@ -1132,6 +1439,8 @@ pub mod get_consensus_params_response {
1132
1439
  #[prost(string, tag = "3")]
1133
1440
  pub time_iota_ms: ::prost::alloc::string::String,
1134
1441
  }
1442
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1443
+ #[serde(rename_all = "snake_case")]
1135
1444
  #[allow(clippy::derive_partial_eq_without_eq)]
1136
1445
  #[derive(Clone, PartialEq, ::prost::Message)]
1137
1446
  pub struct ConsensusParamsEvidence {
@@ -1142,6 +1451,8 @@ pub mod get_consensus_params_response {
1142
1451
  #[prost(string, tag = "3")]
1143
1452
  pub max_bytes: ::prost::alloc::string::String,
1144
1453
  }
1454
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1455
+ #[serde(rename_all = "snake_case")]
1145
1456
  #[allow(clippy::derive_partial_eq_without_eq)]
1146
1457
  #[derive(Clone, PartialEq, ::prost::Message)]
1147
1458
  pub struct GetConsensusParamsResponseV0 {
@@ -1150,6 +1461,8 @@ pub mod get_consensus_params_response {
1150
1461
  #[prost(message, optional, tag = "2")]
1151
1462
  pub evidence: ::core::option::Option<ConsensusParamsEvidence>,
1152
1463
  }
1464
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1465
+ #[serde(rename_all = "snake_case")]
1153
1466
  #[allow(clippy::derive_partial_eq_without_eq)]
1154
1467
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1155
1468
  pub enum Version {
@@ -1157,6 +1470,8 @@ pub mod get_consensus_params_response {
1157
1470
  V0(GetConsensusParamsResponseV0),
1158
1471
  }
1159
1472
  }
1473
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1474
+ #[serde(rename_all = "snake_case")]
1160
1475
  #[allow(clippy::derive_partial_eq_without_eq)]
1161
1476
  #[derive(Clone, PartialEq, ::prost::Message)]
1162
1477
  pub struct GetProtocolVersionUpgradeStateRequest {
@@ -1167,12 +1482,16 @@ pub struct GetProtocolVersionUpgradeStateRequest {
1167
1482
  }
1168
1483
  /// Nested message and enum types in `GetProtocolVersionUpgradeStateRequest`.
1169
1484
  pub mod get_protocol_version_upgrade_state_request {
1485
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1486
+ #[serde(rename_all = "snake_case")]
1170
1487
  #[allow(clippy::derive_partial_eq_without_eq)]
1171
1488
  #[derive(Clone, PartialEq, ::prost::Message)]
1172
1489
  pub struct GetProtocolVersionUpgradeStateRequestV0 {
1173
1490
  #[prost(bool, tag = "1")]
1174
1491
  pub prove: bool,
1175
1492
  }
1493
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1494
+ #[serde(rename_all = "snake_case")]
1176
1495
  #[allow(clippy::derive_partial_eq_without_eq)]
1177
1496
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1178
1497
  pub enum Version {
@@ -1180,6 +1499,8 @@ pub mod get_protocol_version_upgrade_state_request {
1180
1499
  V0(GetProtocolVersionUpgradeStateRequestV0),
1181
1500
  }
1182
1501
  }
1502
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1503
+ #[serde(rename_all = "snake_case")]
1183
1504
  #[allow(clippy::derive_partial_eq_without_eq)]
1184
1505
  #[derive(Clone, PartialEq, ::prost::Message)]
1185
1506
  pub struct GetProtocolVersionUpgradeStateResponse {
@@ -1190,6 +1511,8 @@ pub struct GetProtocolVersionUpgradeStateResponse {
1190
1511
  }
1191
1512
  /// Nested message and enum types in `GetProtocolVersionUpgradeStateResponse`.
1192
1513
  pub mod get_protocol_version_upgrade_state_response {
1514
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1515
+ #[serde(rename_all = "snake_case")]
1193
1516
  #[allow(clippy::derive_partial_eq_without_eq)]
1194
1517
  #[derive(Clone, PartialEq, ::prost::Message)]
1195
1518
  pub struct GetProtocolVersionUpgradeStateResponseV0 {
@@ -1205,12 +1528,16 @@ pub mod get_protocol_version_upgrade_state_response {
1205
1528
  }
1206
1529
  /// Nested message and enum types in `GetProtocolVersionUpgradeStateResponseV0`.
1207
1530
  pub mod get_protocol_version_upgrade_state_response_v0 {
1531
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1532
+ #[serde(rename_all = "snake_case")]
1208
1533
  #[allow(clippy::derive_partial_eq_without_eq)]
1209
1534
  #[derive(Clone, PartialEq, ::prost::Message)]
1210
1535
  pub struct Versions {
1211
1536
  #[prost(message, repeated, tag = "1")]
1212
1537
  pub versions: ::prost::alloc::vec::Vec<VersionEntry>,
1213
1538
  }
1539
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1540
+ #[serde(rename_all = "snake_case")]
1214
1541
  #[allow(clippy::derive_partial_eq_without_eq)]
1215
1542
  #[derive(Clone, PartialEq, ::prost::Message)]
1216
1543
  pub struct VersionEntry {
@@ -1219,6 +1546,8 @@ pub mod get_protocol_version_upgrade_state_response {
1219
1546
  #[prost(uint32, tag = "2")]
1220
1547
  pub vote_count: u32,
1221
1548
  }
1549
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1550
+ #[serde(rename_all = "snake_case")]
1222
1551
  #[allow(clippy::derive_partial_eq_without_eq)]
1223
1552
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1224
1553
  pub enum Result {
@@ -1228,6 +1557,8 @@ pub mod get_protocol_version_upgrade_state_response {
1228
1557
  Proof(super::super::Proof),
1229
1558
  }
1230
1559
  }
1560
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1561
+ #[serde(rename_all = "snake_case")]
1231
1562
  #[allow(clippy::derive_partial_eq_without_eq)]
1232
1563
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1233
1564
  pub enum Version {
@@ -1235,6 +1566,8 @@ pub mod get_protocol_version_upgrade_state_response {
1235
1566
  V0(GetProtocolVersionUpgradeStateResponseV0),
1236
1567
  }
1237
1568
  }
1569
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1570
+ #[serde(rename_all = "snake_case")]
1238
1571
  #[allow(clippy::derive_partial_eq_without_eq)]
1239
1572
  #[derive(Clone, PartialEq, ::prost::Message)]
1240
1573
  pub struct GetProtocolVersionUpgradeVoteStatusRequest {
@@ -1248,6 +1581,8 @@ pub struct GetProtocolVersionUpgradeVoteStatusRequest {
1248
1581
  }
1249
1582
  /// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusRequest`.
1250
1583
  pub mod get_protocol_version_upgrade_vote_status_request {
1584
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1585
+ #[serde(rename_all = "snake_case")]
1251
1586
  #[allow(clippy::derive_partial_eq_without_eq)]
1252
1587
  #[derive(Clone, PartialEq, ::prost::Message)]
1253
1588
  pub struct GetProtocolVersionUpgradeVoteStatusRequestV0 {
@@ -1258,6 +1593,8 @@ pub mod get_protocol_version_upgrade_vote_status_request {
1258
1593
  #[prost(bool, tag = "3")]
1259
1594
  pub prove: bool,
1260
1595
  }
1596
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1597
+ #[serde(rename_all = "snake_case")]
1261
1598
  #[allow(clippy::derive_partial_eq_without_eq)]
1262
1599
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1263
1600
  pub enum Version {
@@ -1265,6 +1602,8 @@ pub mod get_protocol_version_upgrade_vote_status_request {
1265
1602
  V0(GetProtocolVersionUpgradeVoteStatusRequestV0),
1266
1603
  }
1267
1604
  }
1605
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1606
+ #[serde(rename_all = "snake_case")]
1268
1607
  #[allow(clippy::derive_partial_eq_without_eq)]
1269
1608
  #[derive(Clone, PartialEq, ::prost::Message)]
1270
1609
  pub struct GetProtocolVersionUpgradeVoteStatusResponse {
@@ -1278,6 +1617,8 @@ pub struct GetProtocolVersionUpgradeVoteStatusResponse {
1278
1617
  }
1279
1618
  /// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponse`.
1280
1619
  pub mod get_protocol_version_upgrade_vote_status_response {
1620
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1621
+ #[serde(rename_all = "snake_case")]
1281
1622
  #[allow(clippy::derive_partial_eq_without_eq)]
1282
1623
  #[derive(Clone, PartialEq, ::prost::Message)]
1283
1624
  pub struct GetProtocolVersionUpgradeVoteStatusResponseV0 {
@@ -1293,12 +1634,16 @@ pub mod get_protocol_version_upgrade_vote_status_response {
1293
1634
  }
1294
1635
  /// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponseV0`.
1295
1636
  pub mod get_protocol_version_upgrade_vote_status_response_v0 {
1637
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1638
+ #[serde(rename_all = "snake_case")]
1296
1639
  #[allow(clippy::derive_partial_eq_without_eq)]
1297
1640
  #[derive(Clone, PartialEq, ::prost::Message)]
1298
1641
  pub struct VersionSignals {
1299
1642
  #[prost(message, repeated, tag = "1")]
1300
1643
  pub version_signals: ::prost::alloc::vec::Vec<VersionSignal>,
1301
1644
  }
1645
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1646
+ #[serde(rename_all = "snake_case")]
1302
1647
  #[allow(clippy::derive_partial_eq_without_eq)]
1303
1648
  #[derive(Clone, PartialEq, ::prost::Message)]
1304
1649
  pub struct VersionSignal {
@@ -1307,6 +1652,8 @@ pub mod get_protocol_version_upgrade_vote_status_response {
1307
1652
  #[prost(uint32, tag = "2")]
1308
1653
  pub version: u32,
1309
1654
  }
1655
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1656
+ #[serde(rename_all = "snake_case")]
1310
1657
  #[allow(clippy::derive_partial_eq_without_eq)]
1311
1658
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1312
1659
  pub enum Result {
@@ -1316,6 +1663,8 @@ pub mod get_protocol_version_upgrade_vote_status_response {
1316
1663
  Proof(super::super::Proof),
1317
1664
  }
1318
1665
  }
1666
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1667
+ #[serde(rename_all = "snake_case")]
1319
1668
  #[allow(clippy::derive_partial_eq_without_eq)]
1320
1669
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1321
1670
  pub enum Version {
@@ -1323,6 +1672,8 @@ pub mod get_protocol_version_upgrade_vote_status_response {
1323
1672
  V0(GetProtocolVersionUpgradeVoteStatusResponseV0),
1324
1673
  }
1325
1674
  }
1675
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1676
+ #[serde(rename_all = "snake_case")]
1326
1677
  #[allow(clippy::derive_partial_eq_without_eq)]
1327
1678
  #[derive(Clone, PartialEq, ::prost::Message)]
1328
1679
  pub struct GetEpochsInfoRequest {
@@ -1331,6 +1682,8 @@ pub struct GetEpochsInfoRequest {
1331
1682
  }
1332
1683
  /// Nested message and enum types in `GetEpochsInfoRequest`.
1333
1684
  pub mod get_epochs_info_request {
1685
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1686
+ #[serde(rename_all = "snake_case")]
1334
1687
  #[allow(clippy::derive_partial_eq_without_eq)]
1335
1688
  #[derive(Clone, PartialEq, ::prost::Message)]
1336
1689
  pub struct GetEpochsInfoRequestV0 {
@@ -1343,6 +1696,8 @@ pub mod get_epochs_info_request {
1343
1696
  #[prost(bool, tag = "4")]
1344
1697
  pub prove: bool,
1345
1698
  }
1699
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1700
+ #[serde(rename_all = "snake_case")]
1346
1701
  #[allow(clippy::derive_partial_eq_without_eq)]
1347
1702
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1348
1703
  pub enum Version {
@@ -1350,6 +1705,8 @@ pub mod get_epochs_info_request {
1350
1705
  V0(GetEpochsInfoRequestV0),
1351
1706
  }
1352
1707
  }
1708
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1709
+ #[serde(rename_all = "snake_case")]
1353
1710
  #[allow(clippy::derive_partial_eq_without_eq)]
1354
1711
  #[derive(Clone, PartialEq, ::prost::Message)]
1355
1712
  pub struct GetEpochsInfoResponse {
@@ -1358,6 +1715,8 @@ pub struct GetEpochsInfoResponse {
1358
1715
  }
1359
1716
  /// Nested message and enum types in `GetEpochsInfoResponse`.
1360
1717
  pub mod get_epochs_info_response {
1718
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1719
+ #[serde(rename_all = "snake_case")]
1361
1720
  #[allow(clippy::derive_partial_eq_without_eq)]
1362
1721
  #[derive(Clone, PartialEq, ::prost::Message)]
1363
1722
  pub struct GetEpochsInfoResponseV0 {
@@ -1368,12 +1727,16 @@ pub mod get_epochs_info_response {
1368
1727
  }
1369
1728
  /// Nested message and enum types in `GetEpochsInfoResponseV0`.
1370
1729
  pub mod get_epochs_info_response_v0 {
1730
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1731
+ #[serde(rename_all = "snake_case")]
1371
1732
  #[allow(clippy::derive_partial_eq_without_eq)]
1372
1733
  #[derive(Clone, PartialEq, ::prost::Message)]
1373
1734
  pub struct EpochInfos {
1374
1735
  #[prost(message, repeated, tag = "1")]
1375
1736
  pub epoch_infos: ::prost::alloc::vec::Vec<EpochInfo>,
1376
1737
  }
1738
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1739
+ #[serde(rename_all = "snake_case")]
1377
1740
  #[allow(clippy::derive_partial_eq_without_eq)]
1378
1741
  #[derive(Clone, PartialEq, ::prost::Message)]
1379
1742
  pub struct EpochInfo {
@@ -1388,6 +1751,8 @@ pub mod get_epochs_info_response {
1388
1751
  #[prost(double, tag = "5")]
1389
1752
  pub fee_multiplier: f64,
1390
1753
  }
1754
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1755
+ #[serde(rename_all = "snake_case")]
1391
1756
  #[allow(clippy::derive_partial_eq_without_eq)]
1392
1757
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1393
1758
  pub enum Result {
@@ -1397,6 +1762,8 @@ pub mod get_epochs_info_response {
1397
1762
  Proof(super::super::Proof),
1398
1763
  }
1399
1764
  }
1765
+ #[derive(::serde::Serialize, ::serde::Deserialize)]
1766
+ #[serde(rename_all = "snake_case")]
1400
1767
  #[allow(clippy::derive_partial_eq_without_eq)]
1401
1768
  #[derive(Clone, PartialEq, ::prost::Oneof)]
1402
1769
  pub enum Version {