@dashevo/dapi-grpc 0.25.6 → 0.25.9

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.
@@ -21,11 +21,13 @@ pub struct ResponseMetadata {
21
21
  pub height: u64,
22
22
  #[prost(uint32, tag = "2")]
23
23
  pub core_chain_locked_height: u32,
24
- #[prost(uint64, tag = "3")]
24
+ #[prost(uint32, tag = "3")]
25
+ pub epoch: u32,
26
+ #[prost(uint64, tag = "4")]
25
27
  pub time_ms: u64,
26
- #[prost(uint32, tag = "4")]
28
+ #[prost(uint32, tag = "5")]
27
29
  pub protocol_version: u32,
28
- #[prost(string, tag = "5")]
30
+ #[prost(string, tag = "6")]
29
31
  pub chain_id: ::prost::alloc::string::String,
30
32
  }
31
33
  #[allow(clippy::derive_partial_eq_without_eq)]
@@ -50,45 +52,136 @@ pub struct BroadcastStateTransitionResponse {}
50
52
  #[allow(clippy::derive_partial_eq_without_eq)]
51
53
  #[derive(Clone, PartialEq, ::prost::Message)]
52
54
  pub struct GetIdentityRequest {
53
- #[prost(bytes = "vec", tag = "1")]
54
- pub id: ::prost::alloc::vec::Vec<u8>,
55
- #[prost(bool, tag = "2")]
56
- pub prove: bool,
55
+ #[prost(oneof = "get_identity_request::Version", tags = "1")]
56
+ pub version: ::core::option::Option<get_identity_request::Version>,
57
+ }
58
+ /// Nested message and enum types in `GetIdentityRequest`.
59
+ pub mod get_identity_request {
60
+ #[allow(clippy::derive_partial_eq_without_eq)]
61
+ #[derive(Clone, PartialEq, ::prost::Message)]
62
+ pub struct GetIdentityRequestV0 {
63
+ #[prost(bytes = "vec", tag = "1")]
64
+ pub id: ::prost::alloc::vec::Vec<u8>,
65
+ #[prost(bool, tag = "2")]
66
+ pub prove: bool,
67
+ }
68
+ #[allow(clippy::derive_partial_eq_without_eq)]
69
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
70
+ pub enum Version {
71
+ #[prost(message, tag = "1")]
72
+ V0(GetIdentityRequestV0),
73
+ }
74
+ }
75
+ #[allow(clippy::derive_partial_eq_without_eq)]
76
+ #[derive(Clone, PartialEq, ::prost::Message)]
77
+ pub struct GetIdentityBalanceRequest {
78
+ #[prost(oneof = "get_identity_balance_request::Version", tags = "1")]
79
+ pub version: ::core::option::Option<get_identity_balance_request::Version>,
80
+ }
81
+ /// Nested message and enum types in `GetIdentityBalanceRequest`.
82
+ pub mod get_identity_balance_request {
83
+ #[allow(clippy::derive_partial_eq_without_eq)]
84
+ #[derive(Clone, PartialEq, ::prost::Message)]
85
+ pub struct GetIdentityBalanceRequestV0 {
86
+ #[prost(bytes = "vec", tag = "1")]
87
+ pub id: ::prost::alloc::vec::Vec<u8>,
88
+ #[prost(bool, tag = "2")]
89
+ pub prove: bool,
90
+ }
91
+ #[allow(clippy::derive_partial_eq_without_eq)]
92
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
93
+ pub enum Version {
94
+ #[prost(message, tag = "1")]
95
+ V0(GetIdentityBalanceRequestV0),
96
+ }
97
+ }
98
+ #[allow(clippy::derive_partial_eq_without_eq)]
99
+ #[derive(Clone, PartialEq, ::prost::Message)]
100
+ pub struct GetIdentityBalanceAndRevisionRequest {
101
+ #[prost(oneof = "get_identity_balance_and_revision_request::Version", tags = "1")]
102
+ pub version: ::core::option::Option<
103
+ get_identity_balance_and_revision_request::Version,
104
+ >,
105
+ }
106
+ /// Nested message and enum types in `GetIdentityBalanceAndRevisionRequest`.
107
+ pub mod get_identity_balance_and_revision_request {
108
+ #[allow(clippy::derive_partial_eq_without_eq)]
109
+ #[derive(Clone, PartialEq, ::prost::Message)]
110
+ pub struct GetIdentityBalanceAndRevisionRequestV0 {
111
+ #[prost(bytes = "vec", tag = "1")]
112
+ pub id: ::prost::alloc::vec::Vec<u8>,
113
+ #[prost(bool, tag = "2")]
114
+ pub prove: bool,
115
+ }
116
+ #[allow(clippy::derive_partial_eq_without_eq)]
117
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
118
+ pub enum Version {
119
+ #[prost(message, tag = "1")]
120
+ V0(GetIdentityBalanceAndRevisionRequestV0),
121
+ }
57
122
  }
58
123
  #[allow(clippy::derive_partial_eq_without_eq)]
59
124
  #[derive(Clone, PartialEq, ::prost::Message)]
60
125
  pub struct GetIdentityResponse {
61
- #[prost(message, optional, tag = "3")]
62
- pub metadata: ::core::option::Option<ResponseMetadata>,
63
- #[prost(oneof = "get_identity_response::Result", tags = "1, 2")]
64
- pub result: ::core::option::Option<get_identity_response::Result>,
126
+ #[prost(oneof = "get_identity_response::Version", tags = "1")]
127
+ pub version: ::core::option::Option<get_identity_response::Version>,
65
128
  }
66
129
  /// Nested message and enum types in `GetIdentityResponse`.
67
130
  pub mod get_identity_response {
131
+ #[allow(clippy::derive_partial_eq_without_eq)]
132
+ #[derive(Clone, PartialEq, ::prost::Message)]
133
+ pub struct GetIdentityResponseV0 {
134
+ #[prost(message, optional, tag = "3")]
135
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
136
+ #[prost(oneof = "get_identity_response_v0::Result", tags = "1, 2")]
137
+ pub result: ::core::option::Option<get_identity_response_v0::Result>,
138
+ }
139
+ /// Nested message and enum types in `GetIdentityResponseV0`.
140
+ pub mod get_identity_response_v0 {
141
+ #[allow(clippy::derive_partial_eq_without_eq)]
142
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
143
+ pub enum Result {
144
+ #[prost(bytes, tag = "1")]
145
+ Identity(::prost::alloc::vec::Vec<u8>),
146
+ #[prost(message, tag = "2")]
147
+ Proof(super::super::Proof),
148
+ }
149
+ }
68
150
  #[allow(clippy::derive_partial_eq_without_eq)]
69
151
  #[derive(Clone, PartialEq, ::prost::Oneof)]
70
- pub enum Result {
71
- #[prost(bytes, tag = "1")]
72
- Identity(::prost::alloc::vec::Vec<u8>),
73
- #[prost(message, tag = "2")]
74
- Proof(super::Proof),
152
+ pub enum Version {
153
+ #[prost(message, tag = "1")]
154
+ V0(GetIdentityResponseV0),
75
155
  }
76
156
  }
77
157
  #[allow(clippy::derive_partial_eq_without_eq)]
78
158
  #[derive(Clone, PartialEq, ::prost::Message)]
79
159
  pub struct GetIdentitiesRequest {
80
- #[prost(bytes = "vec", repeated, tag = "1")]
81
- pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
82
- #[prost(bool, tag = "2")]
83
- pub prove: bool,
160
+ #[prost(oneof = "get_identities_request::Version", tags = "1")]
161
+ pub version: ::core::option::Option<get_identities_request::Version>,
162
+ }
163
+ /// Nested message and enum types in `GetIdentitiesRequest`.
164
+ pub mod get_identities_request {
165
+ #[allow(clippy::derive_partial_eq_without_eq)]
166
+ #[derive(Clone, PartialEq, ::prost::Message)]
167
+ pub struct GetIdentitiesRequestV0 {
168
+ #[prost(bytes = "vec", repeated, tag = "1")]
169
+ pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
170
+ #[prost(bool, tag = "2")]
171
+ pub prove: bool,
172
+ }
173
+ #[allow(clippy::derive_partial_eq_without_eq)]
174
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
175
+ pub enum Version {
176
+ #[prost(message, tag = "1")]
177
+ V0(GetIdentitiesRequestV0),
178
+ }
84
179
  }
85
180
  #[allow(clippy::derive_partial_eq_without_eq)]
86
181
  #[derive(Clone, PartialEq, ::prost::Message)]
87
182
  pub struct GetIdentitiesResponse {
88
- #[prost(message, optional, tag = "3")]
89
- pub metadata: ::core::option::Option<ResponseMetadata>,
90
- #[prost(oneof = "get_identities_response::Result", tags = "1, 2")]
91
- pub result: ::core::option::Option<get_identities_response::Result>,
183
+ #[prost(oneof = "get_identities_response::Version", tags = "1")]
184
+ pub version: ::core::option::Option<get_identities_response::Version>,
92
185
  }
93
186
  /// Nested message and enum types in `GetIdentitiesResponse`.
94
187
  pub mod get_identities_response {
@@ -113,60 +206,112 @@ pub mod get_identities_response {
113
206
  pub identity_entries: ::prost::alloc::vec::Vec<IdentityEntry>,
114
207
  }
115
208
  #[allow(clippy::derive_partial_eq_without_eq)]
209
+ #[derive(Clone, PartialEq, ::prost::Message)]
210
+ pub struct GetIdentitiesResponseV0 {
211
+ #[prost(message, optional, tag = "3")]
212
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
213
+ #[prost(oneof = "get_identities_response_v0::Result", tags = "1, 2")]
214
+ pub result: ::core::option::Option<get_identities_response_v0::Result>,
215
+ }
216
+ /// Nested message and enum types in `GetIdentitiesResponseV0`.
217
+ pub mod get_identities_response_v0 {
218
+ #[allow(clippy::derive_partial_eq_without_eq)]
219
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
220
+ pub enum Result {
221
+ #[prost(message, tag = "1")]
222
+ Identities(super::Identities),
223
+ #[prost(message, tag = "2")]
224
+ Proof(super::super::Proof),
225
+ }
226
+ }
227
+ #[allow(clippy::derive_partial_eq_without_eq)]
116
228
  #[derive(Clone, PartialEq, ::prost::Oneof)]
117
- pub enum Result {
229
+ pub enum Version {
118
230
  #[prost(message, tag = "1")]
119
- Identities(Identities),
120
- #[prost(message, tag = "2")]
121
- Proof(super::Proof),
231
+ V0(GetIdentitiesResponseV0),
122
232
  }
123
233
  }
124
234
  #[allow(clippy::derive_partial_eq_without_eq)]
125
235
  #[derive(Clone, PartialEq, ::prost::Message)]
126
236
  pub struct GetIdentityBalanceResponse {
127
- #[prost(message, optional, tag = "3")]
128
- pub metadata: ::core::option::Option<ResponseMetadata>,
129
- #[prost(oneof = "get_identity_balance_response::Result", tags = "1, 2")]
130
- pub result: ::core::option::Option<get_identity_balance_response::Result>,
237
+ #[prost(oneof = "get_identity_balance_response::Version", tags = "1")]
238
+ pub version: ::core::option::Option<get_identity_balance_response::Version>,
131
239
  }
132
240
  /// Nested message and enum types in `GetIdentityBalanceResponse`.
133
241
  pub mod get_identity_balance_response {
242
+ #[allow(clippy::derive_partial_eq_without_eq)]
243
+ #[derive(Clone, PartialEq, ::prost::Message)]
244
+ pub struct GetIdentityBalanceResponseV0 {
245
+ #[prost(message, optional, tag = "3")]
246
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
247
+ #[prost(oneof = "get_identity_balance_response_v0::Result", tags = "1, 2")]
248
+ pub result: ::core::option::Option<get_identity_balance_response_v0::Result>,
249
+ }
250
+ /// Nested message and enum types in `GetIdentityBalanceResponseV0`.
251
+ pub mod get_identity_balance_response_v0 {
252
+ #[allow(clippy::derive_partial_eq_without_eq)]
253
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
254
+ pub enum Result {
255
+ #[prost(uint64, tag = "1")]
256
+ Balance(u64),
257
+ #[prost(message, tag = "2")]
258
+ Proof(super::super::Proof),
259
+ }
260
+ }
134
261
  #[allow(clippy::derive_partial_eq_without_eq)]
135
262
  #[derive(Clone, PartialEq, ::prost::Oneof)]
136
- pub enum Result {
263
+ pub enum Version {
137
264
  #[prost(message, tag = "1")]
138
- Balance(u64),
139
- #[prost(message, tag = "2")]
140
- Proof(super::Proof),
265
+ V0(GetIdentityBalanceResponseV0),
141
266
  }
142
267
  }
143
268
  #[allow(clippy::derive_partial_eq_without_eq)]
144
269
  #[derive(Clone, PartialEq, ::prost::Message)]
145
270
  pub struct GetIdentityBalanceAndRevisionResponse {
146
- #[prost(message, optional, tag = "3")]
147
- pub metadata: ::core::option::Option<ResponseMetadata>,
148
- #[prost(oneof = "get_identity_balance_and_revision_response::Result", tags = "1, 2")]
149
- pub result: ::core::option::Option<
150
- get_identity_balance_and_revision_response::Result,
271
+ #[prost(oneof = "get_identity_balance_and_revision_response::Version", tags = "1")]
272
+ pub version: ::core::option::Option<
273
+ get_identity_balance_and_revision_response::Version,
151
274
  >,
152
275
  }
153
276
  /// Nested message and enum types in `GetIdentityBalanceAndRevisionResponse`.
154
277
  pub mod get_identity_balance_and_revision_response {
155
278
  #[allow(clippy::derive_partial_eq_without_eq)]
156
279
  #[derive(Clone, PartialEq, ::prost::Message)]
157
- pub struct BalanceAndRevision {
158
- #[prost(message, optional, tag = "1")]
159
- pub balance: ::core::option::Option<u64>,
160
- #[prost(message, optional, tag = "2")]
161
- pub revision: ::core::option::Option<u64>,
280
+ pub struct GetIdentityBalanceAndRevisionResponseV0 {
281
+ #[prost(message, optional, tag = "3")]
282
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
283
+ #[prost(
284
+ oneof = "get_identity_balance_and_revision_response_v0::Result",
285
+ tags = "1, 2"
286
+ )]
287
+ pub result: ::core::option::Option<
288
+ get_identity_balance_and_revision_response_v0::Result,
289
+ >,
290
+ }
291
+ /// Nested message and enum types in `GetIdentityBalanceAndRevisionResponseV0`.
292
+ pub mod get_identity_balance_and_revision_response_v0 {
293
+ #[allow(clippy::derive_partial_eq_without_eq)]
294
+ #[derive(Clone, PartialEq, ::prost::Message)]
295
+ pub struct BalanceAndRevision {
296
+ #[prost(uint64, tag = "1")]
297
+ pub balance: u64,
298
+ #[prost(uint64, tag = "2")]
299
+ pub revision: u64,
300
+ }
301
+ #[allow(clippy::derive_partial_eq_without_eq)]
302
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
303
+ pub enum Result {
304
+ #[prost(message, tag = "1")]
305
+ BalanceAndRevision(BalanceAndRevision),
306
+ #[prost(message, tag = "2")]
307
+ Proof(super::super::Proof),
308
+ }
162
309
  }
163
310
  #[allow(clippy::derive_partial_eq_without_eq)]
164
311
  #[derive(Clone, PartialEq, ::prost::Oneof)]
165
- pub enum Result {
312
+ pub enum Version {
166
313
  #[prost(message, tag = "1")]
167
- BalanceAndRevision(BalanceAndRevision),
168
- #[prost(message, tag = "2")]
169
- Proof(super::Proof),
314
+ V0(GetIdentityBalanceAndRevisionResponseV0),
170
315
  }
171
316
  }
172
317
  #[allow(clippy::derive_partial_eq_without_eq)]
@@ -256,292 +401,286 @@ pub mod security_level_map {
256
401
  #[allow(clippy::derive_partial_eq_without_eq)]
257
402
  #[derive(Clone, PartialEq, ::prost::Message)]
258
403
  pub struct GetIdentityKeysRequest {
259
- #[prost(bytes = "vec", tag = "1")]
260
- pub identity_id: ::prost::alloc::vec::Vec<u8>,
261
- #[prost(message, optional, tag = "2")]
262
- pub request_type: ::core::option::Option<KeyRequestType>,
263
- #[prost(message, optional, tag = "3")]
264
- pub limit: ::core::option::Option<u32>,
265
- #[prost(message, optional, tag = "4")]
266
- pub offset: ::core::option::Option<u32>,
267
- #[prost(bool, tag = "5")]
268
- pub prove: bool,
404
+ #[prost(oneof = "get_identity_keys_request::Version", tags = "1")]
405
+ pub version: ::core::option::Option<get_identity_keys_request::Version>,
406
+ }
407
+ /// Nested message and enum types in `GetIdentityKeysRequest`.
408
+ pub mod get_identity_keys_request {
409
+ #[allow(clippy::derive_partial_eq_without_eq)]
410
+ #[derive(Clone, PartialEq, ::prost::Message)]
411
+ pub struct GetIdentityKeysRequestV0 {
412
+ #[prost(bytes = "vec", tag = "1")]
413
+ pub identity_id: ::prost::alloc::vec::Vec<u8>,
414
+ #[prost(message, optional, tag = "2")]
415
+ pub request_type: ::core::option::Option<super::KeyRequestType>,
416
+ #[prost(message, optional, tag = "3")]
417
+ pub limit: ::core::option::Option<u32>,
418
+ #[prost(message, optional, tag = "4")]
419
+ pub offset: ::core::option::Option<u32>,
420
+ #[prost(bool, tag = "5")]
421
+ pub prove: bool,
422
+ }
423
+ #[allow(clippy::derive_partial_eq_without_eq)]
424
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
425
+ pub enum Version {
426
+ #[prost(message, tag = "1")]
427
+ V0(GetIdentityKeysRequestV0),
428
+ }
269
429
  }
270
430
  #[allow(clippy::derive_partial_eq_without_eq)]
271
431
  #[derive(Clone, PartialEq, ::prost::Message)]
272
432
  pub struct GetIdentityKeysResponse {
273
- #[prost(message, optional, tag = "3")]
274
- pub metadata: ::core::option::Option<ResponseMetadata>,
275
- #[prost(oneof = "get_identity_keys_response::Result", tags = "1, 2")]
276
- pub result: ::core::option::Option<get_identity_keys_response::Result>,
433
+ #[prost(oneof = "get_identity_keys_response::Version", tags = "1")]
434
+ pub version: ::core::option::Option<get_identity_keys_response::Version>,
277
435
  }
278
436
  /// Nested message and enum types in `GetIdentityKeysResponse`.
279
437
  pub mod get_identity_keys_response {
280
438
  #[allow(clippy::derive_partial_eq_without_eq)]
281
439
  #[derive(Clone, PartialEq, ::prost::Message)]
282
- pub struct Keys {
283
- #[prost(bytes = "vec", repeated, tag = "1")]
284
- pub keys_bytes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
440
+ pub struct GetIdentityKeysResponseV0 {
441
+ #[prost(message, optional, tag = "3")]
442
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
443
+ #[prost(oneof = "get_identity_keys_response_v0::Result", tags = "1, 2")]
444
+ pub result: ::core::option::Option<get_identity_keys_response_v0::Result>,
445
+ }
446
+ /// Nested message and enum types in `GetIdentityKeysResponseV0`.
447
+ pub mod get_identity_keys_response_v0 {
448
+ #[allow(clippy::derive_partial_eq_without_eq)]
449
+ #[derive(Clone, PartialEq, ::prost::Message)]
450
+ pub struct Keys {
451
+ #[prost(bytes = "vec", repeated, tag = "1")]
452
+ pub keys_bytes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
453
+ }
454
+ #[allow(clippy::derive_partial_eq_without_eq)]
455
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
456
+ pub enum Result {
457
+ #[prost(message, tag = "1")]
458
+ Keys(Keys),
459
+ #[prost(message, tag = "2")]
460
+ Proof(super::super::Proof),
461
+ }
285
462
  }
286
463
  #[allow(clippy::derive_partial_eq_without_eq)]
287
464
  #[derive(Clone, PartialEq, ::prost::Oneof)]
288
- pub enum Result {
465
+ pub enum Version {
289
466
  #[prost(message, tag = "1")]
290
- Keys(Keys),
291
- #[prost(message, tag = "2")]
292
- Proof(super::Proof),
467
+ V0(GetIdentityKeysResponseV0),
293
468
  }
294
469
  }
295
470
  #[allow(clippy::derive_partial_eq_without_eq)]
296
471
  #[derive(Clone, PartialEq, ::prost::Message)]
297
- pub struct GetIdentitiesKeysRequest {
298
- #[prost(bytes = "vec", repeated, tag = "1")]
299
- pub identity_ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
300
- #[prost(message, optional, tag = "2")]
301
- pub request_type: ::core::option::Option<KeyRequestType>,
302
- #[prost(message, optional, tag = "3")]
303
- pub limit: ::core::option::Option<u32>,
304
- #[prost(message, optional, tag = "4")]
305
- pub offset: ::core::option::Option<u32>,
306
- #[prost(bool, tag = "5")]
307
- pub prove: bool,
308
- }
309
- /// Nested message and enum types in `GetIdentitiesKeysRequest`.
310
- pub mod get_identities_keys_request {
472
+ pub struct GetProofsRequest {
473
+ #[prost(oneof = "get_proofs_request::Version", tags = "1")]
474
+ pub version: ::core::option::Option<get_proofs_request::Version>,
475
+ }
476
+ /// Nested message and enum types in `GetProofsRequest`.
477
+ pub mod get_proofs_request {
311
478
  #[allow(clippy::derive_partial_eq_without_eq)]
312
479
  #[derive(Clone, PartialEq, ::prost::Message)]
313
- pub struct SecurityLevelMap {
314
- #[prost(
315
- map = "uint32, enumeration(security_level_map::KeyKindRequestType)",
316
- tag = "1"
317
- )]
318
- pub security_level_map: ::std::collections::HashMap<u32, i32>,
319
- }
320
- /// Nested message and enum types in `SecurityLevelMap`.
321
- pub mod security_level_map {
322
- #[derive(
323
- Clone,
324
- Copy,
325
- Debug,
326
- PartialEq,
327
- Eq,
328
- Hash,
329
- PartialOrd,
330
- Ord,
331
- ::prost::Enumeration
332
- )]
333
- #[repr(i32)]
334
- pub enum KeyKindRequestType {
335
- CurrentKeyOfKindRequest = 0,
480
+ pub struct GetProofsRequestV0 {
481
+ #[prost(message, repeated, tag = "1")]
482
+ pub identities: ::prost::alloc::vec::Vec<get_proofs_request_v0::IdentityRequest>,
483
+ #[prost(message, repeated, tag = "2")]
484
+ pub contracts: ::prost::alloc::vec::Vec<get_proofs_request_v0::ContractRequest>,
485
+ #[prost(message, repeated, tag = "3")]
486
+ pub documents: ::prost::alloc::vec::Vec<get_proofs_request_v0::DocumentRequest>,
487
+ }
488
+ /// Nested message and enum types in `GetProofsRequestV0`.
489
+ pub mod get_proofs_request_v0 {
490
+ #[allow(clippy::derive_partial_eq_without_eq)]
491
+ #[derive(Clone, PartialEq, ::prost::Message)]
492
+ pub struct DocumentRequest {
493
+ #[prost(bytes = "vec", tag = "1")]
494
+ pub contract_id: ::prost::alloc::vec::Vec<u8>,
495
+ #[prost(string, tag = "2")]
496
+ pub document_type: ::prost::alloc::string::String,
497
+ #[prost(bool, tag = "3")]
498
+ pub document_type_keeps_history: bool,
499
+ #[prost(bytes = "vec", tag = "4")]
500
+ pub document_id: ::prost::alloc::vec::Vec<u8>,
336
501
  }
337
- impl KeyKindRequestType {
338
- /// String value of the enum field names used in the ProtoBuf definition.
339
- ///
340
- /// The values are not transformed in any way and thus are considered stable
341
- /// (if the ProtoBuf definition does not change) and safe for programmatic use.
342
- pub fn as_str_name(&self) -> &'static str {
343
- match self {
344
- KeyKindRequestType::CurrentKeyOfKindRequest => {
345
- "CURRENT_KEY_OF_KIND_REQUEST"
502
+ #[allow(clippy::derive_partial_eq_without_eq)]
503
+ #[derive(Clone, PartialEq, ::prost::Message)]
504
+ pub struct IdentityRequest {
505
+ #[prost(bytes = "vec", tag = "1")]
506
+ pub identity_id: ::prost::alloc::vec::Vec<u8>,
507
+ #[prost(enumeration = "identity_request::Type", tag = "2")]
508
+ pub request_type: i32,
509
+ }
510
+ /// Nested message and enum types in `IdentityRequest`.
511
+ pub mod identity_request {
512
+ #[derive(
513
+ Clone,
514
+ Copy,
515
+ Debug,
516
+ PartialEq,
517
+ Eq,
518
+ Hash,
519
+ PartialOrd,
520
+ Ord,
521
+ ::prost::Enumeration
522
+ )]
523
+ #[repr(i32)]
524
+ pub enum Type {
525
+ FullIdentity = 0,
526
+ Balance = 1,
527
+ Keys = 2,
528
+ }
529
+ impl Type {
530
+ /// String value of the enum field names used in the ProtoBuf definition.
531
+ ///
532
+ /// The values are not transformed in any way and thus are considered stable
533
+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
534
+ pub fn as_str_name(&self) -> &'static str {
535
+ match self {
536
+ Type::FullIdentity => "FULL_IDENTITY",
537
+ Type::Balance => "BALANCE",
538
+ Type::Keys => "KEYS",
346
539
  }
347
540
  }
348
- }
349
- /// Creates an enum from field names used in the ProtoBuf definition.
350
- pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
351
- match value {
352
- "CURRENT_KEY_OF_KIND_REQUEST" => Some(Self::CurrentKeyOfKindRequest),
353
- _ => None,
541
+ /// Creates an enum from field names used in the ProtoBuf definition.
542
+ pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
543
+ match value {
544
+ "FULL_IDENTITY" => Some(Self::FullIdentity),
545
+ "BALANCE" => Some(Self::Balance),
546
+ "KEYS" => Some(Self::Keys),
547
+ _ => None,
548
+ }
354
549
  }
355
550
  }
356
551
  }
552
+ #[allow(clippy::derive_partial_eq_without_eq)]
553
+ #[derive(Clone, PartialEq, ::prost::Message)]
554
+ pub struct ContractRequest {
555
+ #[prost(bytes = "vec", tag = "1")]
556
+ pub contract_id: ::prost::alloc::vec::Vec<u8>,
557
+ }
558
+ }
559
+ #[allow(clippy::derive_partial_eq_without_eq)]
560
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
561
+ pub enum Version {
562
+ #[prost(message, tag = "1")]
563
+ V0(GetProofsRequestV0),
357
564
  }
358
565
  }
359
566
  #[allow(clippy::derive_partial_eq_without_eq)]
360
567
  #[derive(Clone, PartialEq, ::prost::Message)]
361
- pub struct GetIdentitiesKeysResponse {
362
- #[prost(message, optional, tag = "3")]
363
- pub metadata: ::core::option::Option<ResponseMetadata>,
364
- #[prost(oneof = "get_identities_keys_response::Result", tags = "1, 2")]
365
- pub result: ::core::option::Option<get_identities_keys_response::Result>,
568
+ pub struct GetProofsResponse {
569
+ #[prost(oneof = "get_proofs_response::Version", tags = "1")]
570
+ pub version: ::core::option::Option<get_proofs_response::Version>,
366
571
  }
367
- /// Nested message and enum types in `GetIdentitiesKeysResponse`.
368
- pub mod get_identities_keys_response {
572
+ /// Nested message and enum types in `GetProofsResponse`.
573
+ pub mod get_proofs_response {
369
574
  #[allow(clippy::derive_partial_eq_without_eq)]
370
575
  #[derive(Clone, PartialEq, ::prost::Message)]
371
- pub struct PublicKey {
372
- #[prost(bytes = "vec", tag = "1")]
373
- pub value: ::prost::alloc::vec::Vec<u8>,
374
- }
375
- #[allow(clippy::derive_partial_eq_without_eq)]
376
- #[derive(Clone, PartialEq, ::prost::Message)]
377
- pub struct PublicKeyEntry {
378
- #[prost(bytes = "vec", tag = "1")]
379
- pub key: ::prost::alloc::vec::Vec<u8>,
576
+ pub struct GetProofsResponseV0 {
577
+ #[prost(message, optional, tag = "1")]
578
+ pub proof: ::core::option::Option<super::Proof>,
380
579
  #[prost(message, optional, tag = "2")]
381
- pub value: ::core::option::Option<PublicKey>,
382
- }
383
- #[allow(clippy::derive_partial_eq_without_eq)]
384
- #[derive(Clone, PartialEq, ::prost::Message)]
385
- pub struct PublicKeyEntries {
386
- #[prost(message, repeated, tag = "1")]
387
- pub public_key_entries: ::prost::alloc::vec::Vec<PublicKeyEntry>,
580
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
388
581
  }
389
582
  #[allow(clippy::derive_partial_eq_without_eq)]
390
583
  #[derive(Clone, PartialEq, ::prost::Oneof)]
391
- pub enum Result {
584
+ pub enum Version {
392
585
  #[prost(message, tag = "1")]
393
- PublicKeys(PublicKeyEntries),
394
- #[prost(message, tag = "2")]
395
- Proof(super::Proof),
586
+ V0(GetProofsResponseV0),
396
587
  }
397
588
  }
398
589
  #[allow(clippy::derive_partial_eq_without_eq)]
399
590
  #[derive(Clone, PartialEq, ::prost::Message)]
400
- pub struct GetProofsRequest {
401
- #[prost(message, repeated, tag = "1")]
402
- pub identities: ::prost::alloc::vec::Vec<get_proofs_request::IdentityRequest>,
403
- #[prost(message, repeated, tag = "2")]
404
- pub contracts: ::prost::alloc::vec::Vec<get_proofs_request::ContractRequest>,
405
- #[prost(message, repeated, tag = "3")]
406
- pub documents: ::prost::alloc::vec::Vec<get_proofs_request::DocumentRequest>,
591
+ pub struct GetDataContractRequest {
592
+ #[prost(oneof = "get_data_contract_request::Version", tags = "1")]
593
+ pub version: ::core::option::Option<get_data_contract_request::Version>,
407
594
  }
408
- /// Nested message and enum types in `GetProofsRequest`.
409
- pub mod get_proofs_request {
410
- #[allow(clippy::derive_partial_eq_without_eq)]
411
- #[derive(Clone, PartialEq, ::prost::Message)]
412
- pub struct DocumentRequest {
413
- #[prost(bytes = "vec", tag = "1")]
414
- pub contract_id: ::prost::alloc::vec::Vec<u8>,
415
- #[prost(string, tag = "2")]
416
- pub document_type: ::prost::alloc::string::String,
417
- #[prost(bool, tag = "3")]
418
- pub document_type_keeps_history: bool,
419
- #[prost(bytes = "vec", tag = "4")]
420
- pub document_id: ::prost::alloc::vec::Vec<u8>,
421
- }
595
+ /// Nested message and enum types in `GetDataContractRequest`.
596
+ pub mod get_data_contract_request {
422
597
  #[allow(clippy::derive_partial_eq_without_eq)]
423
598
  #[derive(Clone, PartialEq, ::prost::Message)]
424
- pub struct IdentityRequest {
599
+ pub struct GetDataContractRequestV0 {
425
600
  #[prost(bytes = "vec", tag = "1")]
426
- pub identity_id: ::prost::alloc::vec::Vec<u8>,
427
- #[prost(enumeration = "identity_request::Type", tag = "2")]
428
- pub request_type: i32,
429
- }
430
- /// Nested message and enum types in `IdentityRequest`.
431
- pub mod identity_request {
432
- #[derive(
433
- Clone,
434
- Copy,
435
- Debug,
436
- PartialEq,
437
- Eq,
438
- Hash,
439
- PartialOrd,
440
- Ord,
441
- ::prost::Enumeration
442
- )]
443
- #[repr(i32)]
444
- pub enum Type {
445
- FullIdentity = 0,
446
- Balance = 1,
447
- Keys = 2,
448
- }
449
- impl Type {
450
- /// String value of the enum field names used in the ProtoBuf definition.
451
- ///
452
- /// The values are not transformed in any way and thus are considered stable
453
- /// (if the ProtoBuf definition does not change) and safe for programmatic use.
454
- pub fn as_str_name(&self) -> &'static str {
455
- match self {
456
- Type::FullIdentity => "FULL_IDENTITY",
457
- Type::Balance => "BALANCE",
458
- Type::Keys => "KEYS",
459
- }
460
- }
461
- /// Creates an enum from field names used in the ProtoBuf definition.
462
- pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
463
- match value {
464
- "FULL_IDENTITY" => Some(Self::FullIdentity),
465
- "BALANCE" => Some(Self::Balance),
466
- "KEYS" => Some(Self::Keys),
467
- _ => None,
468
- }
469
- }
470
- }
601
+ pub id: ::prost::alloc::vec::Vec<u8>,
602
+ #[prost(bool, tag = "2")]
603
+ pub prove: bool,
471
604
  }
472
605
  #[allow(clippy::derive_partial_eq_without_eq)]
473
- #[derive(Clone, PartialEq, ::prost::Message)]
474
- pub struct ContractRequest {
475
- #[prost(bytes = "vec", tag = "1")]
476
- pub contract_id: ::prost::alloc::vec::Vec<u8>,
606
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
607
+ pub enum Version {
608
+ #[prost(message, tag = "1")]
609
+ V0(GetDataContractRequestV0),
477
610
  }
478
611
  }
479
612
  #[allow(clippy::derive_partial_eq_without_eq)]
480
613
  #[derive(Clone, PartialEq, ::prost::Message)]
481
- pub struct GetProofsResponse {
482
- #[prost(message, optional, tag = "1")]
483
- pub proof: ::core::option::Option<Proof>,
484
- #[prost(message, optional, tag = "2")]
485
- pub metadata: ::core::option::Option<ResponseMetadata>,
486
- }
487
- #[allow(clippy::derive_partial_eq_without_eq)]
488
- #[derive(Clone, PartialEq, ::prost::Message)]
489
- pub struct GetDataContractRequest {
490
- #[prost(bytes = "vec", tag = "1")]
491
- pub id: ::prost::alloc::vec::Vec<u8>,
492
- #[prost(bool, tag = "2")]
493
- pub prove: bool,
494
- }
495
- #[allow(clippy::derive_partial_eq_without_eq)]
496
- #[derive(Clone, PartialEq, ::prost::Message)]
497
614
  pub struct GetDataContractResponse {
498
- #[prost(message, optional, tag = "3")]
499
- pub metadata: ::core::option::Option<ResponseMetadata>,
500
- #[prost(oneof = "get_data_contract_response::Result", tags = "1, 2")]
501
- pub result: ::core::option::Option<get_data_contract_response::Result>,
615
+ #[prost(oneof = "get_data_contract_response::Version", tags = "1")]
616
+ pub version: ::core::option::Option<get_data_contract_response::Version>,
502
617
  }
503
618
  /// Nested message and enum types in `GetDataContractResponse`.
504
619
  pub mod get_data_contract_response {
620
+ #[allow(clippy::derive_partial_eq_without_eq)]
621
+ #[derive(Clone, PartialEq, ::prost::Message)]
622
+ pub struct GetDataContractResponseV0 {
623
+ #[prost(message, optional, tag = "3")]
624
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
625
+ #[prost(oneof = "get_data_contract_response_v0::Result", tags = "1, 2")]
626
+ pub result: ::core::option::Option<get_data_contract_response_v0::Result>,
627
+ }
628
+ /// Nested message and enum types in `GetDataContractResponseV0`.
629
+ pub mod get_data_contract_response_v0 {
630
+ #[allow(clippy::derive_partial_eq_without_eq)]
631
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
632
+ pub enum Result {
633
+ #[prost(bytes, tag = "1")]
634
+ DataContract(::prost::alloc::vec::Vec<u8>),
635
+ #[prost(message, tag = "2")]
636
+ Proof(super::super::Proof),
637
+ }
638
+ }
505
639
  #[allow(clippy::derive_partial_eq_without_eq)]
506
640
  #[derive(Clone, PartialEq, ::prost::Oneof)]
507
- pub enum Result {
508
- #[prost(bytes, tag = "1")]
509
- DataContract(::prost::alloc::vec::Vec<u8>),
510
- #[prost(message, tag = "2")]
511
- Proof(super::Proof),
641
+ pub enum Version {
642
+ #[prost(message, tag = "1")]
643
+ V0(GetDataContractResponseV0),
512
644
  }
513
645
  }
514
646
  #[allow(clippy::derive_partial_eq_without_eq)]
515
647
  #[derive(Clone, PartialEq, ::prost::Message)]
516
648
  pub struct GetDataContractsRequest {
517
- #[prost(bytes = "vec", repeated, tag = "1")]
518
- pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
519
- #[prost(bool, tag = "2")]
520
- pub prove: bool,
649
+ #[prost(oneof = "get_data_contracts_request::Version", tags = "1")]
650
+ pub version: ::core::option::Option<get_data_contracts_request::Version>,
651
+ }
652
+ /// Nested message and enum types in `GetDataContractsRequest`.
653
+ pub mod get_data_contracts_request {
654
+ #[allow(clippy::derive_partial_eq_without_eq)]
655
+ #[derive(Clone, PartialEq, ::prost::Message)]
656
+ pub struct GetDataContractsRequestV0 {
657
+ #[prost(bytes = "vec", repeated, tag = "1")]
658
+ pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
659
+ #[prost(bool, tag = "2")]
660
+ pub prove: bool,
661
+ }
662
+ #[allow(clippy::derive_partial_eq_without_eq)]
663
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
664
+ pub enum Version {
665
+ #[prost(message, tag = "1")]
666
+ V0(GetDataContractsRequestV0),
667
+ }
521
668
  }
522
669
  #[allow(clippy::derive_partial_eq_without_eq)]
523
670
  #[derive(Clone, PartialEq, ::prost::Message)]
524
671
  pub struct GetDataContractsResponse {
525
- #[prost(message, optional, tag = "3")]
526
- pub metadata: ::core::option::Option<ResponseMetadata>,
527
- #[prost(oneof = "get_data_contracts_response::Result", tags = "1, 2")]
528
- pub result: ::core::option::Option<get_data_contracts_response::Result>,
672
+ #[prost(oneof = "get_data_contracts_response::Version", tags = "1")]
673
+ pub version: ::core::option::Option<get_data_contracts_response::Version>,
529
674
  }
530
675
  /// Nested message and enum types in `GetDataContractsResponse`.
531
676
  pub mod get_data_contracts_response {
532
- #[allow(clippy::derive_partial_eq_without_eq)]
533
- #[derive(Clone, PartialEq, ::prost::Message)]
534
- pub struct DataContractValue {
535
- #[prost(bytes = "vec", tag = "1")]
536
- pub value: ::prost::alloc::vec::Vec<u8>,
537
- }
538
677
  #[allow(clippy::derive_partial_eq_without_eq)]
539
678
  #[derive(Clone, PartialEq, ::prost::Message)]
540
679
  pub struct DataContractEntry {
541
680
  #[prost(bytes = "vec", tag = "1")]
542
- pub key: ::prost::alloc::vec::Vec<u8>,
681
+ pub identifier: ::prost::alloc::vec::Vec<u8>,
543
682
  #[prost(message, optional, tag = "2")]
544
- pub value: ::core::option::Option<DataContractValue>,
683
+ pub data_contract: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
545
684
  }
546
685
  #[allow(clippy::derive_partial_eq_without_eq)]
547
686
  #[derive(Clone, PartialEq, ::prost::Message)]
@@ -550,246 +689,707 @@ pub mod get_data_contracts_response {
550
689
  pub data_contract_entries: ::prost::alloc::vec::Vec<DataContractEntry>,
551
690
  }
552
691
  #[allow(clippy::derive_partial_eq_without_eq)]
692
+ #[derive(Clone, PartialEq, ::prost::Message)]
693
+ pub struct GetDataContractsResponseV0 {
694
+ #[prost(message, optional, tag = "3")]
695
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
696
+ #[prost(oneof = "get_data_contracts_response_v0::Result", tags = "1, 2")]
697
+ pub result: ::core::option::Option<get_data_contracts_response_v0::Result>,
698
+ }
699
+ /// Nested message and enum types in `GetDataContractsResponseV0`.
700
+ pub mod get_data_contracts_response_v0 {
701
+ #[allow(clippy::derive_partial_eq_without_eq)]
702
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
703
+ pub enum Result {
704
+ #[prost(message, tag = "1")]
705
+ DataContracts(super::DataContracts),
706
+ #[prost(message, tag = "2")]
707
+ Proof(super::super::Proof),
708
+ }
709
+ }
710
+ #[allow(clippy::derive_partial_eq_without_eq)]
553
711
  #[derive(Clone, PartialEq, ::prost::Oneof)]
554
- pub enum Result {
712
+ pub enum Version {
555
713
  #[prost(message, tag = "1")]
556
- DataContracts(DataContracts),
557
- #[prost(message, tag = "2")]
558
- Proof(super::Proof),
714
+ V0(GetDataContractsResponseV0),
559
715
  }
560
716
  }
561
717
  #[allow(clippy::derive_partial_eq_without_eq)]
562
718
  #[derive(Clone, PartialEq, ::prost::Message)]
563
719
  pub struct GetDataContractHistoryRequest {
564
- #[prost(bytes = "vec", tag = "1")]
565
- pub id: ::prost::alloc::vec::Vec<u8>,
566
- #[prost(message, optional, tag = "2")]
567
- pub limit: ::core::option::Option<u32>,
568
- #[prost(message, optional, tag = "3")]
569
- pub offset: ::core::option::Option<u32>,
570
- #[prost(uint64, tag = "4")]
571
- pub start_at_ms: u64,
572
- #[prost(bool, tag = "5")]
573
- pub prove: bool,
720
+ #[prost(oneof = "get_data_contract_history_request::Version", tags = "1")]
721
+ pub version: ::core::option::Option<get_data_contract_history_request::Version>,
722
+ }
723
+ /// Nested message and enum types in `GetDataContractHistoryRequest`.
724
+ pub mod get_data_contract_history_request {
725
+ #[allow(clippy::derive_partial_eq_without_eq)]
726
+ #[derive(Clone, PartialEq, ::prost::Message)]
727
+ pub struct GetDataContractHistoryRequestV0 {
728
+ #[prost(bytes = "vec", tag = "1")]
729
+ pub id: ::prost::alloc::vec::Vec<u8>,
730
+ #[prost(message, optional, tag = "2")]
731
+ pub limit: ::core::option::Option<u32>,
732
+ #[prost(message, optional, tag = "3")]
733
+ pub offset: ::core::option::Option<u32>,
734
+ #[prost(uint64, tag = "4")]
735
+ pub start_at_ms: u64,
736
+ #[prost(bool, tag = "5")]
737
+ pub prove: bool,
738
+ }
739
+ #[allow(clippy::derive_partial_eq_without_eq)]
740
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
741
+ pub enum Version {
742
+ #[prost(message, tag = "1")]
743
+ V0(GetDataContractHistoryRequestV0),
744
+ }
574
745
  }
575
746
  #[allow(clippy::derive_partial_eq_without_eq)]
576
747
  #[derive(Clone, PartialEq, ::prost::Message)]
577
748
  pub struct GetDataContractHistoryResponse {
578
- #[prost(message, optional, tag = "3")]
579
- pub metadata: ::core::option::Option<ResponseMetadata>,
580
- #[prost(oneof = "get_data_contract_history_response::Result", tags = "1, 2")]
581
- pub result: ::core::option::Option<get_data_contract_history_response::Result>,
749
+ #[prost(oneof = "get_data_contract_history_response::Version", tags = "1")]
750
+ pub version: ::core::option::Option<get_data_contract_history_response::Version>,
582
751
  }
583
752
  /// Nested message and enum types in `GetDataContractHistoryResponse`.
584
753
  pub mod get_data_contract_history_response {
585
754
  #[allow(clippy::derive_partial_eq_without_eq)]
586
755
  #[derive(Clone, PartialEq, ::prost::Message)]
587
- pub struct DataContractHistoryEntry {
588
- #[prost(uint64, tag = "1")]
589
- pub date: u64,
590
- #[prost(bytes = "vec", tag = "2")]
591
- pub value: ::prost::alloc::vec::Vec<u8>,
756
+ pub struct GetDataContractHistoryResponseV0 {
757
+ #[prost(message, optional, tag = "3")]
758
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
759
+ #[prost(oneof = "get_data_contract_history_response_v0::Result", tags = "1, 2")]
760
+ pub result: ::core::option::Option<
761
+ get_data_contract_history_response_v0::Result,
762
+ >,
592
763
  }
593
- #[allow(clippy::derive_partial_eq_without_eq)]
594
- #[derive(Clone, PartialEq, ::prost::Message)]
595
- pub struct DataContractHistory {
596
- #[prost(message, repeated, tag = "1")]
597
- pub data_contract_entries: ::prost::alloc::vec::Vec<DataContractHistoryEntry>,
764
+ /// Nested message and enum types in `GetDataContractHistoryResponseV0`.
765
+ pub mod get_data_contract_history_response_v0 {
766
+ #[allow(clippy::derive_partial_eq_without_eq)]
767
+ #[derive(Clone, PartialEq, ::prost::Message)]
768
+ pub struct DataContractHistoryEntry {
769
+ #[prost(uint64, tag = "1")]
770
+ pub date: u64,
771
+ #[prost(bytes = "vec", tag = "2")]
772
+ pub value: ::prost::alloc::vec::Vec<u8>,
773
+ }
774
+ #[allow(clippy::derive_partial_eq_without_eq)]
775
+ #[derive(Clone, PartialEq, ::prost::Message)]
776
+ pub struct DataContractHistory {
777
+ #[prost(message, repeated, tag = "1")]
778
+ pub data_contract_entries: ::prost::alloc::vec::Vec<
779
+ DataContractHistoryEntry,
780
+ >,
781
+ }
782
+ #[allow(clippy::derive_partial_eq_without_eq)]
783
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
784
+ pub enum Result {
785
+ #[prost(message, tag = "1")]
786
+ DataContractHistory(DataContractHistory),
787
+ #[prost(message, tag = "2")]
788
+ Proof(super::super::Proof),
789
+ }
598
790
  }
599
791
  #[allow(clippy::derive_partial_eq_without_eq)]
600
792
  #[derive(Clone, PartialEq, ::prost::Oneof)]
601
- pub enum Result {
793
+ pub enum Version {
602
794
  #[prost(message, tag = "1")]
603
- DataContractHistory(DataContractHistory),
604
- #[prost(message, tag = "2")]
605
- Proof(super::Proof),
795
+ V0(GetDataContractHistoryResponseV0),
606
796
  }
607
797
  }
608
798
  #[allow(clippy::derive_partial_eq_without_eq)]
609
799
  #[derive(Clone, PartialEq, ::prost::Message)]
610
800
  pub struct GetDocumentsRequest {
611
- #[prost(bytes = "vec", tag = "1")]
612
- pub data_contract_id: ::prost::alloc::vec::Vec<u8>,
613
- #[prost(string, tag = "2")]
614
- pub document_type: ::prost::alloc::string::String,
615
- #[prost(bytes = "vec", tag = "3")]
616
- pub r#where: ::prost::alloc::vec::Vec<u8>,
617
- #[prost(bytes = "vec", tag = "4")]
618
- pub order_by: ::prost::alloc::vec::Vec<u8>,
619
- #[prost(uint32, tag = "5")]
620
- pub limit: u32,
621
- #[prost(bool, tag = "8")]
622
- pub prove: bool,
623
- #[prost(oneof = "get_documents_request::Start", tags = "6, 7")]
624
- pub start: ::core::option::Option<get_documents_request::Start>,
801
+ #[prost(oneof = "get_documents_request::Version", tags = "1")]
802
+ pub version: ::core::option::Option<get_documents_request::Version>,
625
803
  }
626
804
  /// Nested message and enum types in `GetDocumentsRequest`.
627
805
  pub mod get_documents_request {
806
+ #[allow(clippy::derive_partial_eq_without_eq)]
807
+ #[derive(Clone, PartialEq, ::prost::Message)]
808
+ pub struct GetDocumentsRequestV0 {
809
+ #[prost(bytes = "vec", tag = "1")]
810
+ pub data_contract_id: ::prost::alloc::vec::Vec<u8>,
811
+ #[prost(string, tag = "2")]
812
+ pub document_type: ::prost::alloc::string::String,
813
+ #[prost(bytes = "vec", tag = "3")]
814
+ pub r#where: ::prost::alloc::vec::Vec<u8>,
815
+ #[prost(bytes = "vec", tag = "4")]
816
+ pub order_by: ::prost::alloc::vec::Vec<u8>,
817
+ #[prost(uint32, tag = "5")]
818
+ pub limit: u32,
819
+ #[prost(bool, tag = "8")]
820
+ pub prove: bool,
821
+ #[prost(oneof = "get_documents_request_v0::Start", tags = "6, 7")]
822
+ pub start: ::core::option::Option<get_documents_request_v0::Start>,
823
+ }
824
+ /// Nested message and enum types in `GetDocumentsRequestV0`.
825
+ pub mod get_documents_request_v0 {
826
+ #[allow(clippy::derive_partial_eq_without_eq)]
827
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
828
+ pub enum Start {
829
+ #[prost(bytes, tag = "6")]
830
+ StartAfter(::prost::alloc::vec::Vec<u8>),
831
+ #[prost(bytes, tag = "7")]
832
+ StartAt(::prost::alloc::vec::Vec<u8>),
833
+ }
834
+ }
628
835
  #[allow(clippy::derive_partial_eq_without_eq)]
629
836
  #[derive(Clone, PartialEq, ::prost::Oneof)]
630
- pub enum Start {
631
- #[prost(bytes, tag = "6")]
632
- StartAfter(::prost::alloc::vec::Vec<u8>),
633
- #[prost(bytes, tag = "7")]
634
- StartAt(::prost::alloc::vec::Vec<u8>),
837
+ pub enum Version {
838
+ #[prost(message, tag = "1")]
839
+ V0(GetDocumentsRequestV0),
635
840
  }
636
841
  }
637
842
  #[allow(clippy::derive_partial_eq_without_eq)]
638
843
  #[derive(Clone, PartialEq, ::prost::Message)]
639
844
  pub struct GetDocumentsResponse {
640
- #[prost(message, optional, tag = "3")]
641
- pub metadata: ::core::option::Option<ResponseMetadata>,
642
- #[prost(oneof = "get_documents_response::Result", tags = "1, 2")]
643
- pub result: ::core::option::Option<get_documents_response::Result>,
845
+ #[prost(oneof = "get_documents_response::Version", tags = "1")]
846
+ pub version: ::core::option::Option<get_documents_response::Version>,
644
847
  }
645
848
  /// Nested message and enum types in `GetDocumentsResponse`.
646
849
  pub mod get_documents_response {
647
850
  #[allow(clippy::derive_partial_eq_without_eq)]
648
851
  #[derive(Clone, PartialEq, ::prost::Message)]
649
- pub struct Documents {
650
- #[prost(bytes = "vec", repeated, tag = "1")]
651
- pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
852
+ pub struct GetDocumentsResponseV0 {
853
+ #[prost(message, optional, tag = "3")]
854
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
855
+ #[prost(oneof = "get_documents_response_v0::Result", tags = "1, 2")]
856
+ pub result: ::core::option::Option<get_documents_response_v0::Result>,
857
+ }
858
+ /// Nested message and enum types in `GetDocumentsResponseV0`.
859
+ pub mod get_documents_response_v0 {
860
+ #[allow(clippy::derive_partial_eq_without_eq)]
861
+ #[derive(Clone, PartialEq, ::prost::Message)]
862
+ pub struct Documents {
863
+ #[prost(bytes = "vec", repeated, tag = "1")]
864
+ pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
865
+ }
866
+ #[allow(clippy::derive_partial_eq_without_eq)]
867
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
868
+ pub enum Result {
869
+ #[prost(message, tag = "1")]
870
+ Documents(Documents),
871
+ #[prost(message, tag = "2")]
872
+ Proof(super::super::Proof),
873
+ }
652
874
  }
653
875
  #[allow(clippy::derive_partial_eq_without_eq)]
654
876
  #[derive(Clone, PartialEq, ::prost::Oneof)]
655
- pub enum Result {
877
+ pub enum Version {
656
878
  #[prost(message, tag = "1")]
657
- Documents(Documents),
658
- #[prost(message, tag = "2")]
659
- Proof(super::Proof),
879
+ V0(GetDocumentsResponseV0),
660
880
  }
661
881
  }
662
882
  #[allow(clippy::derive_partial_eq_without_eq)]
663
883
  #[derive(Clone, PartialEq, ::prost::Message)]
664
884
  pub struct GetIdentitiesByPublicKeyHashesRequest {
665
- #[prost(bytes = "vec", repeated, tag = "1")]
666
- pub public_key_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
667
- #[prost(bool, tag = "2")]
668
- pub prove: bool,
885
+ #[prost(oneof = "get_identities_by_public_key_hashes_request::Version", tags = "1")]
886
+ pub version: ::core::option::Option<
887
+ get_identities_by_public_key_hashes_request::Version,
888
+ >,
889
+ }
890
+ /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesRequest`.
891
+ pub mod get_identities_by_public_key_hashes_request {
892
+ #[allow(clippy::derive_partial_eq_without_eq)]
893
+ #[derive(Clone, PartialEq, ::prost::Message)]
894
+ pub struct GetIdentitiesByPublicKeyHashesRequestV0 {
895
+ #[prost(bytes = "vec", repeated, tag = "1")]
896
+ pub public_key_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
897
+ #[prost(bool, tag = "2")]
898
+ pub prove: bool,
899
+ }
900
+ #[allow(clippy::derive_partial_eq_without_eq)]
901
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
902
+ pub enum Version {
903
+ #[prost(message, tag = "1")]
904
+ V0(GetIdentitiesByPublicKeyHashesRequestV0),
905
+ }
669
906
  }
670
907
  #[allow(clippy::derive_partial_eq_without_eq)]
671
908
  #[derive(Clone, PartialEq, ::prost::Message)]
672
909
  pub struct GetIdentitiesByPublicKeyHashesResponse {
673
- #[prost(message, optional, tag = "3")]
674
- pub metadata: ::core::option::Option<ResponseMetadata>,
675
- #[prost(
676
- oneof = "get_identities_by_public_key_hashes_response::Result",
677
- tags = "1, 2"
678
- )]
679
- pub result: ::core::option::Option<
680
- get_identities_by_public_key_hashes_response::Result,
910
+ #[prost(oneof = "get_identities_by_public_key_hashes_response::Version", tags = "1")]
911
+ pub version: ::core::option::Option<
912
+ get_identities_by_public_key_hashes_response::Version,
681
913
  >,
682
914
  }
683
915
  /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponse`.
684
916
  pub mod get_identities_by_public_key_hashes_response {
685
917
  #[allow(clippy::derive_partial_eq_without_eq)]
686
918
  #[derive(Clone, PartialEq, ::prost::Message)]
687
- pub struct Identities {
688
- #[prost(bytes = "vec", repeated, tag = "1")]
689
- pub identities: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
919
+ pub struct PublicKeyHashIdentityEntry {
920
+ #[prost(bytes = "vec", tag = "1")]
921
+ pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
922
+ #[prost(message, optional, tag = "2")]
923
+ pub value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
924
+ }
925
+ #[allow(clippy::derive_partial_eq_without_eq)]
926
+ #[derive(Clone, PartialEq, ::prost::Message)]
927
+ pub struct IdentitiesByPublicKeyHashes {
928
+ #[prost(message, repeated, tag = "1")]
929
+ pub identity_entries: ::prost::alloc::vec::Vec<PublicKeyHashIdentityEntry>,
930
+ }
931
+ #[allow(clippy::derive_partial_eq_without_eq)]
932
+ #[derive(Clone, PartialEq, ::prost::Message)]
933
+ pub struct GetIdentitiesByPublicKeyHashesResponseV0 {
934
+ #[prost(message, optional, tag = "3")]
935
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
936
+ #[prost(
937
+ oneof = "get_identities_by_public_key_hashes_response_v0::Result",
938
+ tags = "1, 2"
939
+ )]
940
+ pub result: ::core::option::Option<
941
+ get_identities_by_public_key_hashes_response_v0::Result,
942
+ >,
943
+ }
944
+ /// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponseV0`.
945
+ pub mod get_identities_by_public_key_hashes_response_v0 {
946
+ #[allow(clippy::derive_partial_eq_without_eq)]
947
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
948
+ pub enum Result {
949
+ #[prost(message, tag = "1")]
950
+ Identities(super::IdentitiesByPublicKeyHashes),
951
+ #[prost(message, tag = "2")]
952
+ Proof(super::super::Proof),
953
+ }
690
954
  }
691
955
  #[allow(clippy::derive_partial_eq_without_eq)]
692
956
  #[derive(Clone, PartialEq, ::prost::Oneof)]
693
- pub enum Result {
957
+ pub enum Version {
694
958
  #[prost(message, tag = "1")]
695
- Identities(Identities),
696
- #[prost(message, tag = "2")]
697
- Proof(super::Proof),
959
+ V0(GetIdentitiesByPublicKeyHashesResponseV0),
698
960
  }
699
961
  }
700
962
  #[allow(clippy::derive_partial_eq_without_eq)]
701
963
  #[derive(Clone, PartialEq, ::prost::Message)]
702
- pub struct GetIdentityByPublicKeyHashesRequest {
703
- #[prost(bytes = "vec", tag = "1")]
704
- pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
705
- #[prost(bool, tag = "2")]
706
- pub prove: bool,
964
+ pub struct GetIdentityByPublicKeyHashRequest {
965
+ #[prost(oneof = "get_identity_by_public_key_hash_request::Version", tags = "1")]
966
+ pub version: ::core::option::Option<
967
+ get_identity_by_public_key_hash_request::Version,
968
+ >,
969
+ }
970
+ /// Nested message and enum types in `GetIdentityByPublicKeyHashRequest`.
971
+ pub mod get_identity_by_public_key_hash_request {
972
+ #[allow(clippy::derive_partial_eq_without_eq)]
973
+ #[derive(Clone, PartialEq, ::prost::Message)]
974
+ pub struct GetIdentityByPublicKeyHashRequestV0 {
975
+ #[prost(bytes = "vec", tag = "1")]
976
+ pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
977
+ #[prost(bool, tag = "2")]
978
+ pub prove: bool,
979
+ }
980
+ #[allow(clippy::derive_partial_eq_without_eq)]
981
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
982
+ pub enum Version {
983
+ #[prost(message, tag = "1")]
984
+ V0(GetIdentityByPublicKeyHashRequestV0),
985
+ }
707
986
  }
708
987
  #[allow(clippy::derive_partial_eq_without_eq)]
709
988
  #[derive(Clone, PartialEq, ::prost::Message)]
710
- pub struct GetIdentityByPublicKeyHashesResponse {
711
- #[prost(message, optional, tag = "3")]
712
- pub metadata: ::core::option::Option<ResponseMetadata>,
713
- #[prost(oneof = "get_identity_by_public_key_hashes_response::Result", tags = "1, 2")]
714
- pub result: ::core::option::Option<
715
- get_identity_by_public_key_hashes_response::Result,
989
+ pub struct GetIdentityByPublicKeyHashResponse {
990
+ #[prost(oneof = "get_identity_by_public_key_hash_response::Version", tags = "1")]
991
+ pub version: ::core::option::Option<
992
+ get_identity_by_public_key_hash_response::Version,
716
993
  >,
717
994
  }
718
- /// Nested message and enum types in `GetIdentityByPublicKeyHashesResponse`.
719
- pub mod get_identity_by_public_key_hashes_response {
995
+ /// Nested message and enum types in `GetIdentityByPublicKeyHashResponse`.
996
+ pub mod get_identity_by_public_key_hash_response {
997
+ #[allow(clippy::derive_partial_eq_without_eq)]
998
+ #[derive(Clone, PartialEq, ::prost::Message)]
999
+ pub struct GetIdentityByPublicKeyHashResponseV0 {
1000
+ #[prost(message, optional, tag = "3")]
1001
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
1002
+ #[prost(
1003
+ oneof = "get_identity_by_public_key_hash_response_v0::Result",
1004
+ tags = "1, 2"
1005
+ )]
1006
+ pub result: ::core::option::Option<
1007
+ get_identity_by_public_key_hash_response_v0::Result,
1008
+ >,
1009
+ }
1010
+ /// Nested message and enum types in `GetIdentityByPublicKeyHashResponseV0`.
1011
+ pub mod get_identity_by_public_key_hash_response_v0 {
1012
+ #[allow(clippy::derive_partial_eq_without_eq)]
1013
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1014
+ pub enum Result {
1015
+ #[prost(bytes, tag = "1")]
1016
+ Identity(::prost::alloc::vec::Vec<u8>),
1017
+ #[prost(message, tag = "2")]
1018
+ Proof(super::super::Proof),
1019
+ }
1020
+ }
720
1021
  #[allow(clippy::derive_partial_eq_without_eq)]
721
1022
  #[derive(Clone, PartialEq, ::prost::Oneof)]
722
- pub enum Result {
723
- #[prost(bytes, tag = "1")]
724
- Identity(::prost::alloc::vec::Vec<u8>),
725
- #[prost(message, tag = "2")]
726
- Proof(super::Proof),
1023
+ pub enum Version {
1024
+ #[prost(message, tag = "1")]
1025
+ V0(GetIdentityByPublicKeyHashResponseV0),
727
1026
  }
728
1027
  }
729
1028
  #[allow(clippy::derive_partial_eq_without_eq)]
730
1029
  #[derive(Clone, PartialEq, ::prost::Message)]
731
1030
  pub struct WaitForStateTransitionResultRequest {
732
- #[prost(bytes = "vec", tag = "1")]
733
- pub state_transition_hash: ::prost::alloc::vec::Vec<u8>,
734
- #[prost(bool, tag = "2")]
735
- pub prove: bool,
1031
+ #[prost(oneof = "wait_for_state_transition_result_request::Version", tags = "1")]
1032
+ pub version: ::core::option::Option<
1033
+ wait_for_state_transition_result_request::Version,
1034
+ >,
1035
+ }
1036
+ /// Nested message and enum types in `WaitForStateTransitionResultRequest`.
1037
+ pub mod wait_for_state_transition_result_request {
1038
+ #[allow(clippy::derive_partial_eq_without_eq)]
1039
+ #[derive(Clone, PartialEq, ::prost::Message)]
1040
+ pub struct WaitForStateTransitionResultRequestV0 {
1041
+ #[prost(bytes = "vec", tag = "1")]
1042
+ pub state_transition_hash: ::prost::alloc::vec::Vec<u8>,
1043
+ #[prost(bool, tag = "2")]
1044
+ pub prove: bool,
1045
+ }
1046
+ #[allow(clippy::derive_partial_eq_without_eq)]
1047
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1048
+ pub enum Version {
1049
+ #[prost(message, tag = "1")]
1050
+ V0(WaitForStateTransitionResultRequestV0),
1051
+ }
736
1052
  }
737
1053
  #[allow(clippy::derive_partial_eq_without_eq)]
738
1054
  #[derive(Clone, PartialEq, ::prost::Message)]
739
1055
  pub struct WaitForStateTransitionResultResponse {
740
- #[prost(message, optional, tag = "3")]
741
- pub metadata: ::core::option::Option<ResponseMetadata>,
742
- #[prost(oneof = "wait_for_state_transition_result_response::Result", tags = "1, 2")]
743
- pub result: ::core::option::Option<
744
- wait_for_state_transition_result_response::Result,
1056
+ #[prost(oneof = "wait_for_state_transition_result_response::Version", tags = "1")]
1057
+ pub version: ::core::option::Option<
1058
+ wait_for_state_transition_result_response::Version,
745
1059
  >,
746
1060
  }
747
1061
  /// Nested message and enum types in `WaitForStateTransitionResultResponse`.
748
1062
  pub mod wait_for_state_transition_result_response {
1063
+ #[allow(clippy::derive_partial_eq_without_eq)]
1064
+ #[derive(Clone, PartialEq, ::prost::Message)]
1065
+ pub struct WaitForStateTransitionResultResponseV0 {
1066
+ #[prost(message, optional, tag = "3")]
1067
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
1068
+ #[prost(
1069
+ oneof = "wait_for_state_transition_result_response_v0::Result",
1070
+ tags = "1, 2"
1071
+ )]
1072
+ pub result: ::core::option::Option<
1073
+ wait_for_state_transition_result_response_v0::Result,
1074
+ >,
1075
+ }
1076
+ /// Nested message and enum types in `WaitForStateTransitionResultResponseV0`.
1077
+ pub mod wait_for_state_transition_result_response_v0 {
1078
+ #[allow(clippy::derive_partial_eq_without_eq)]
1079
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1080
+ pub enum Result {
1081
+ #[prost(message, tag = "1")]
1082
+ Error(super::super::StateTransitionBroadcastError),
1083
+ #[prost(message, tag = "2")]
1084
+ Proof(super::super::Proof),
1085
+ }
1086
+ }
749
1087
  #[allow(clippy::derive_partial_eq_without_eq)]
750
1088
  #[derive(Clone, PartialEq, ::prost::Oneof)]
751
- pub enum Result {
1089
+ pub enum Version {
752
1090
  #[prost(message, tag = "1")]
753
- Error(super::StateTransitionBroadcastError),
754
- #[prost(message, tag = "2")]
755
- Proof(super::Proof),
1091
+ V0(WaitForStateTransitionResultResponseV0),
756
1092
  }
757
1093
  }
758
1094
  #[allow(clippy::derive_partial_eq_without_eq)]
759
1095
  #[derive(Clone, PartialEq, ::prost::Message)]
760
- pub struct ConsensusParamsBlock {
761
- #[prost(string, tag = "1")]
762
- pub max_bytes: ::prost::alloc::string::String,
763
- #[prost(string, tag = "2")]
764
- pub max_gas: ::prost::alloc::string::String,
765
- #[prost(string, tag = "3")]
766
- pub time_iota_ms: ::prost::alloc::string::String,
1096
+ pub struct GetConsensusParamsRequest {
1097
+ #[prost(oneof = "get_consensus_params_request::Version", tags = "1")]
1098
+ pub version: ::core::option::Option<get_consensus_params_request::Version>,
1099
+ }
1100
+ /// Nested message and enum types in `GetConsensusParamsRequest`.
1101
+ pub mod get_consensus_params_request {
1102
+ #[allow(clippy::derive_partial_eq_without_eq)]
1103
+ #[derive(Clone, PartialEq, ::prost::Message)]
1104
+ pub struct GetConsensusParamsRequestV0 {
1105
+ #[prost(int32, tag = "1")]
1106
+ pub height: i32,
1107
+ #[prost(bool, tag = "2")]
1108
+ pub prove: bool,
1109
+ }
1110
+ #[allow(clippy::derive_partial_eq_without_eq)]
1111
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1112
+ pub enum Version {
1113
+ #[prost(message, tag = "1")]
1114
+ V0(GetConsensusParamsRequestV0),
1115
+ }
767
1116
  }
768
1117
  #[allow(clippy::derive_partial_eq_without_eq)]
769
1118
  #[derive(Clone, PartialEq, ::prost::Message)]
770
- pub struct ConsensusParamsEvidence {
771
- #[prost(string, tag = "1")]
772
- pub max_age_num_blocks: ::prost::alloc::string::String,
773
- #[prost(string, tag = "2")]
774
- pub max_age_duration: ::prost::alloc::string::String,
775
- #[prost(string, tag = "3")]
776
- pub max_bytes: ::prost::alloc::string::String,
1119
+ pub struct GetConsensusParamsResponse {
1120
+ #[prost(oneof = "get_consensus_params_response::Version", tags = "1")]
1121
+ pub version: ::core::option::Option<get_consensus_params_response::Version>,
1122
+ }
1123
+ /// Nested message and enum types in `GetConsensusParamsResponse`.
1124
+ pub mod get_consensus_params_response {
1125
+ #[allow(clippy::derive_partial_eq_without_eq)]
1126
+ #[derive(Clone, PartialEq, ::prost::Message)]
1127
+ pub struct ConsensusParamsBlock {
1128
+ #[prost(string, tag = "1")]
1129
+ pub max_bytes: ::prost::alloc::string::String,
1130
+ #[prost(string, tag = "2")]
1131
+ pub max_gas: ::prost::alloc::string::String,
1132
+ #[prost(string, tag = "3")]
1133
+ pub time_iota_ms: ::prost::alloc::string::String,
1134
+ }
1135
+ #[allow(clippy::derive_partial_eq_without_eq)]
1136
+ #[derive(Clone, PartialEq, ::prost::Message)]
1137
+ pub struct ConsensusParamsEvidence {
1138
+ #[prost(string, tag = "1")]
1139
+ pub max_age_num_blocks: ::prost::alloc::string::String,
1140
+ #[prost(string, tag = "2")]
1141
+ pub max_age_duration: ::prost::alloc::string::String,
1142
+ #[prost(string, tag = "3")]
1143
+ pub max_bytes: ::prost::alloc::string::String,
1144
+ }
1145
+ #[allow(clippy::derive_partial_eq_without_eq)]
1146
+ #[derive(Clone, PartialEq, ::prost::Message)]
1147
+ pub struct GetConsensusParamsResponseV0 {
1148
+ #[prost(message, optional, tag = "1")]
1149
+ pub block: ::core::option::Option<ConsensusParamsBlock>,
1150
+ #[prost(message, optional, tag = "2")]
1151
+ pub evidence: ::core::option::Option<ConsensusParamsEvidence>,
1152
+ }
1153
+ #[allow(clippy::derive_partial_eq_without_eq)]
1154
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1155
+ pub enum Version {
1156
+ #[prost(message, tag = "1")]
1157
+ V0(GetConsensusParamsResponseV0),
1158
+ }
777
1159
  }
778
1160
  #[allow(clippy::derive_partial_eq_without_eq)]
779
1161
  #[derive(Clone, PartialEq, ::prost::Message)]
780
- pub struct GetConsensusParamsRequest {
781
- #[prost(int64, tag = "1")]
782
- pub height: i64,
783
- #[prost(bool, tag = "2")]
784
- pub prove: bool,
1162
+ pub struct GetVersionUpgradeStateRequest {
1163
+ #[prost(oneof = "get_version_upgrade_state_request::Version", tags = "1")]
1164
+ pub version: ::core::option::Option<get_version_upgrade_state_request::Version>,
1165
+ }
1166
+ /// Nested message and enum types in `GetVersionUpgradeStateRequest`.
1167
+ pub mod get_version_upgrade_state_request {
1168
+ #[allow(clippy::derive_partial_eq_without_eq)]
1169
+ #[derive(Clone, PartialEq, ::prost::Message)]
1170
+ pub struct GetVersionUpgradeStateRequestV0 {
1171
+ #[prost(bool, tag = "1")]
1172
+ pub prove: bool,
1173
+ }
1174
+ #[allow(clippy::derive_partial_eq_without_eq)]
1175
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1176
+ pub enum Version {
1177
+ #[prost(message, tag = "1")]
1178
+ V0(GetVersionUpgradeStateRequestV0),
1179
+ }
785
1180
  }
786
1181
  #[allow(clippy::derive_partial_eq_without_eq)]
787
1182
  #[derive(Clone, PartialEq, ::prost::Message)]
788
- pub struct GetConsensusParamsResponse {
789
- #[prost(message, optional, tag = "1")]
790
- pub block: ::core::option::Option<ConsensusParamsBlock>,
791
- #[prost(message, optional, tag = "2")]
792
- pub evidence: ::core::option::Option<ConsensusParamsEvidence>,
1183
+ pub struct GetVersionUpgradeStateResponse {
1184
+ #[prost(oneof = "get_version_upgrade_state_response::Version", tags = "1")]
1185
+ pub version: ::core::option::Option<get_version_upgrade_state_response::Version>,
1186
+ }
1187
+ /// Nested message and enum types in `GetVersionUpgradeStateResponse`.
1188
+ pub mod get_version_upgrade_state_response {
1189
+ #[allow(clippy::derive_partial_eq_without_eq)]
1190
+ #[derive(Clone, PartialEq, ::prost::Message)]
1191
+ pub struct GetVersionUpgradeStateResponseV0 {
1192
+ #[prost(message, optional, tag = "3")]
1193
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
1194
+ #[prost(oneof = "get_version_upgrade_state_response_v0::Result", tags = "1, 2")]
1195
+ pub result: ::core::option::Option<
1196
+ get_version_upgrade_state_response_v0::Result,
1197
+ >,
1198
+ }
1199
+ /// Nested message and enum types in `GetVersionUpgradeStateResponseV0`.
1200
+ pub mod get_version_upgrade_state_response_v0 {
1201
+ #[allow(clippy::derive_partial_eq_without_eq)]
1202
+ #[derive(Clone, PartialEq, ::prost::Message)]
1203
+ pub struct Versions {
1204
+ #[prost(message, repeated, tag = "1")]
1205
+ pub versions: ::prost::alloc::vec::Vec<VersionEntry>,
1206
+ }
1207
+ #[allow(clippy::derive_partial_eq_without_eq)]
1208
+ #[derive(Clone, PartialEq, ::prost::Message)]
1209
+ pub struct VersionEntry {
1210
+ #[prost(uint32, tag = "1")]
1211
+ pub version_number: u32,
1212
+ #[prost(uint32, tag = "2")]
1213
+ pub vote_count: u32,
1214
+ }
1215
+ #[allow(clippy::derive_partial_eq_without_eq)]
1216
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1217
+ pub enum Result {
1218
+ #[prost(message, tag = "1")]
1219
+ Versions(Versions),
1220
+ #[prost(message, tag = "2")]
1221
+ Proof(super::super::Proof),
1222
+ }
1223
+ }
1224
+ #[allow(clippy::derive_partial_eq_without_eq)]
1225
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1226
+ pub enum Version {
1227
+ #[prost(message, tag = "1")]
1228
+ V0(GetVersionUpgradeStateResponseV0),
1229
+ }
1230
+ }
1231
+ #[allow(clippy::derive_partial_eq_without_eq)]
1232
+ #[derive(Clone, PartialEq, ::prost::Message)]
1233
+ pub struct GetVersionUpgradeVoteStatusRequest {
1234
+ #[prost(oneof = "get_version_upgrade_vote_status_request::Version", tags = "1")]
1235
+ pub version: ::core::option::Option<
1236
+ get_version_upgrade_vote_status_request::Version,
1237
+ >,
1238
+ }
1239
+ /// Nested message and enum types in `GetVersionUpgradeVoteStatusRequest`.
1240
+ pub mod get_version_upgrade_vote_status_request {
1241
+ #[allow(clippy::derive_partial_eq_without_eq)]
1242
+ #[derive(Clone, PartialEq, ::prost::Message)]
1243
+ pub struct GetVersionUpgradeVoteStatusRequestV0 {
1244
+ #[prost(bytes = "vec", tag = "1")]
1245
+ pub start_pro_tx_hash: ::prost::alloc::vec::Vec<u8>,
1246
+ #[prost(uint32, tag = "2")]
1247
+ pub count: u32,
1248
+ #[prost(bool, tag = "3")]
1249
+ pub prove: bool,
1250
+ }
1251
+ #[allow(clippy::derive_partial_eq_without_eq)]
1252
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1253
+ pub enum Version {
1254
+ #[prost(message, tag = "1")]
1255
+ V0(GetVersionUpgradeVoteStatusRequestV0),
1256
+ }
1257
+ }
1258
+ #[allow(clippy::derive_partial_eq_without_eq)]
1259
+ #[derive(Clone, PartialEq, ::prost::Message)]
1260
+ pub struct GetVersionUpgradeVoteStatusResponse {
1261
+ #[prost(oneof = "get_version_upgrade_vote_status_response::Version", tags = "1")]
1262
+ pub version: ::core::option::Option<
1263
+ get_version_upgrade_vote_status_response::Version,
1264
+ >,
1265
+ }
1266
+ /// Nested message and enum types in `GetVersionUpgradeVoteStatusResponse`.
1267
+ pub mod get_version_upgrade_vote_status_response {
1268
+ #[allow(clippy::derive_partial_eq_without_eq)]
1269
+ #[derive(Clone, PartialEq, ::prost::Message)]
1270
+ pub struct GetVersionUpgradeVoteStatusResponseV0 {
1271
+ #[prost(message, optional, tag = "3")]
1272
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
1273
+ #[prost(
1274
+ oneof = "get_version_upgrade_vote_status_response_v0::Result",
1275
+ tags = "1, 2"
1276
+ )]
1277
+ pub result: ::core::option::Option<
1278
+ get_version_upgrade_vote_status_response_v0::Result,
1279
+ >,
1280
+ }
1281
+ /// Nested message and enum types in `GetVersionUpgradeVoteStatusResponseV0`.
1282
+ pub mod get_version_upgrade_vote_status_response_v0 {
1283
+ #[allow(clippy::derive_partial_eq_without_eq)]
1284
+ #[derive(Clone, PartialEq, ::prost::Message)]
1285
+ pub struct VersionSignals {
1286
+ #[prost(message, repeated, tag = "1")]
1287
+ pub version_signals: ::prost::alloc::vec::Vec<VersionSignal>,
1288
+ }
1289
+ #[allow(clippy::derive_partial_eq_without_eq)]
1290
+ #[derive(Clone, PartialEq, ::prost::Message)]
1291
+ pub struct VersionSignal {
1292
+ #[prost(bytes = "vec", tag = "1")]
1293
+ pub pro_tx_hash: ::prost::alloc::vec::Vec<u8>,
1294
+ #[prost(uint32, tag = "2")]
1295
+ pub version: u32,
1296
+ }
1297
+ #[allow(clippy::derive_partial_eq_without_eq)]
1298
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1299
+ pub enum Result {
1300
+ #[prost(message, tag = "1")]
1301
+ Versions(VersionSignals),
1302
+ #[prost(message, tag = "2")]
1303
+ Proof(super::super::Proof),
1304
+ }
1305
+ }
1306
+ #[allow(clippy::derive_partial_eq_without_eq)]
1307
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1308
+ pub enum Version {
1309
+ #[prost(message, tag = "1")]
1310
+ V0(GetVersionUpgradeVoteStatusResponseV0),
1311
+ }
1312
+ }
1313
+ #[allow(clippy::derive_partial_eq_without_eq)]
1314
+ #[derive(Clone, PartialEq, ::prost::Message)]
1315
+ pub struct GetEpochsInfoRequest {
1316
+ #[prost(oneof = "get_epochs_info_request::Version", tags = "1")]
1317
+ pub version: ::core::option::Option<get_epochs_info_request::Version>,
1318
+ }
1319
+ /// Nested message and enum types in `GetEpochsInfoRequest`.
1320
+ pub mod get_epochs_info_request {
1321
+ #[allow(clippy::derive_partial_eq_without_eq)]
1322
+ #[derive(Clone, PartialEq, ::prost::Message)]
1323
+ pub struct GetEpochsInfoRequestV0 {
1324
+ #[prost(message, optional, tag = "1")]
1325
+ pub start_epoch: ::core::option::Option<u32>,
1326
+ #[prost(uint32, tag = "2")]
1327
+ pub count: u32,
1328
+ #[prost(bool, tag = "3")]
1329
+ pub ascending: bool,
1330
+ #[prost(bool, tag = "4")]
1331
+ pub prove: bool,
1332
+ }
1333
+ #[allow(clippy::derive_partial_eq_without_eq)]
1334
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1335
+ pub enum Version {
1336
+ #[prost(message, tag = "1")]
1337
+ V0(GetEpochsInfoRequestV0),
1338
+ }
1339
+ }
1340
+ #[allow(clippy::derive_partial_eq_without_eq)]
1341
+ #[derive(Clone, PartialEq, ::prost::Message)]
1342
+ pub struct GetEpochsInfoResponse {
1343
+ #[prost(oneof = "get_epochs_info_response::Version", tags = "1")]
1344
+ pub version: ::core::option::Option<get_epochs_info_response::Version>,
1345
+ }
1346
+ /// Nested message and enum types in `GetEpochsInfoResponse`.
1347
+ pub mod get_epochs_info_response {
1348
+ #[allow(clippy::derive_partial_eq_without_eq)]
1349
+ #[derive(Clone, PartialEq, ::prost::Message)]
1350
+ pub struct GetEpochsInfoResponseV0 {
1351
+ #[prost(message, optional, tag = "3")]
1352
+ pub metadata: ::core::option::Option<super::ResponseMetadata>,
1353
+ #[prost(oneof = "get_epochs_info_response_v0::Result", tags = "1, 2")]
1354
+ pub result: ::core::option::Option<get_epochs_info_response_v0::Result>,
1355
+ }
1356
+ /// Nested message and enum types in `GetEpochsInfoResponseV0`.
1357
+ pub mod get_epochs_info_response_v0 {
1358
+ #[allow(clippy::derive_partial_eq_without_eq)]
1359
+ #[derive(Clone, PartialEq, ::prost::Message)]
1360
+ pub struct EpochInfos {
1361
+ #[prost(message, repeated, tag = "1")]
1362
+ pub epoch_infos: ::prost::alloc::vec::Vec<EpochInfo>,
1363
+ }
1364
+ #[allow(clippy::derive_partial_eq_without_eq)]
1365
+ #[derive(Clone, PartialEq, ::prost::Message)]
1366
+ pub struct EpochInfo {
1367
+ #[prost(uint32, tag = "1")]
1368
+ pub number: u32,
1369
+ #[prost(uint64, tag = "2")]
1370
+ pub first_block_height: u64,
1371
+ #[prost(uint32, tag = "3")]
1372
+ pub first_core_block_height: u32,
1373
+ #[prost(uint64, tag = "4")]
1374
+ pub start_time: u64,
1375
+ #[prost(double, tag = "5")]
1376
+ pub fee_multiplier: f64,
1377
+ }
1378
+ #[allow(clippy::derive_partial_eq_without_eq)]
1379
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1380
+ pub enum Result {
1381
+ #[prost(message, tag = "1")]
1382
+ Epochs(EpochInfos),
1383
+ #[prost(message, tag = "2")]
1384
+ Proof(super::super::Proof),
1385
+ }
1386
+ }
1387
+ #[allow(clippy::derive_partial_eq_without_eq)]
1388
+ #[derive(Clone, PartialEq, ::prost::Oneof)]
1389
+ pub enum Version {
1390
+ #[prost(message, tag = "1")]
1391
+ V0(GetEpochsInfoResponseV0),
1392
+ }
793
1393
  }
794
1394
  /// Generated client implementations.
795
1395
  pub mod platform_client {
@@ -993,10 +1593,9 @@ pub mod platform_client {
993
1593
  );
994
1594
  self.inner.unary(req, path, codec).await
995
1595
  }
996
- /// rpc getIdentitiesKeys (GetIdentitiesKeysRequest) returns (GetIdentitiesKeysResponse);
997
1596
  pub async fn get_identity_balance(
998
1597
  &mut self,
999
- request: impl tonic::IntoRequest<super::GetIdentityRequest>,
1598
+ request: impl tonic::IntoRequest<super::GetIdentityBalanceRequest>,
1000
1599
  ) -> std::result::Result<
1001
1600
  tonic::Response<super::GetIdentityBalanceResponse>,
1002
1601
  tonic::Status,
@@ -1026,7 +1625,7 @@ pub mod platform_client {
1026
1625
  }
1027
1626
  pub async fn get_identity_balance_and_revision(
1028
1627
  &mut self,
1029
- request: impl tonic::IntoRequest<super::GetIdentityRequest>,
1628
+ request: impl tonic::IntoRequest<super::GetIdentityBalanceAndRevisionRequest>,
1030
1629
  ) -> std::result::Result<
1031
1630
  tonic::Response<super::GetIdentityBalanceAndRevisionResponse>,
1032
1631
  tonic::Status,
@@ -1230,11 +1829,11 @@ pub mod platform_client {
1230
1829
  );
1231
1830
  self.inner.unary(req, path, codec).await
1232
1831
  }
1233
- pub async fn get_identity_by_public_key_hashes(
1832
+ pub async fn get_identity_by_public_key_hash(
1234
1833
  &mut self,
1235
- request: impl tonic::IntoRequest<super::GetIdentityByPublicKeyHashesRequest>,
1834
+ request: impl tonic::IntoRequest<super::GetIdentityByPublicKeyHashRequest>,
1236
1835
  ) -> std::result::Result<
1237
- tonic::Response<super::GetIdentityByPublicKeyHashesResponse>,
1836
+ tonic::Response<super::GetIdentityByPublicKeyHashResponse>,
1238
1837
  tonic::Status,
1239
1838
  > {
1240
1839
  self.inner
@@ -1248,14 +1847,14 @@ pub mod platform_client {
1248
1847
  })?;
1249
1848
  let codec = tonic::codec::ProstCodec::default();
1250
1849
  let path = http::uri::PathAndQuery::from_static(
1251
- "/org.dash.platform.dapi.v0.Platform/getIdentityByPublicKeyHashes",
1850
+ "/org.dash.platform.dapi.v0.Platform/getIdentityByPublicKeyHash",
1252
1851
  );
1253
1852
  let mut req = request.into_request();
1254
1853
  req.extensions_mut()
1255
1854
  .insert(
1256
1855
  GrpcMethod::new(
1257
1856
  "org.dash.platform.dapi.v0.Platform",
1258
- "getIdentityByPublicKeyHashes",
1857
+ "getIdentityByPublicKeyHash",
1259
1858
  ),
1260
1859
  );
1261
1860
  self.inner.unary(req, path, codec).await
@@ -1320,5 +1919,95 @@ pub mod platform_client {
1320
1919
  );
1321
1920
  self.inner.unary(req, path, codec).await
1322
1921
  }
1922
+ pub async fn get_version_upgrade_state(
1923
+ &mut self,
1924
+ request: impl tonic::IntoRequest<super::GetVersionUpgradeStateRequest>,
1925
+ ) -> std::result::Result<
1926
+ tonic::Response<super::GetVersionUpgradeStateResponse>,
1927
+ tonic::Status,
1928
+ > {
1929
+ self.inner
1930
+ .ready()
1931
+ .await
1932
+ .map_err(|e| {
1933
+ tonic::Status::new(
1934
+ tonic::Code::Unknown,
1935
+ format!("Service was not ready: {}", e.into()),
1936
+ )
1937
+ })?;
1938
+ let codec = tonic::codec::ProstCodec::default();
1939
+ let path = http::uri::PathAndQuery::from_static(
1940
+ "/org.dash.platform.dapi.v0.Platform/getVersionUpgradeState",
1941
+ );
1942
+ let mut req = request.into_request();
1943
+ req.extensions_mut()
1944
+ .insert(
1945
+ GrpcMethod::new(
1946
+ "org.dash.platform.dapi.v0.Platform",
1947
+ "getVersionUpgradeState",
1948
+ ),
1949
+ );
1950
+ self.inner.unary(req, path, codec).await
1951
+ }
1952
+ pub async fn get_version_upgrade_vote_status(
1953
+ &mut self,
1954
+ request: impl tonic::IntoRequest<super::GetVersionUpgradeVoteStatusRequest>,
1955
+ ) -> std::result::Result<
1956
+ tonic::Response<super::GetVersionUpgradeVoteStatusResponse>,
1957
+ tonic::Status,
1958
+ > {
1959
+ self.inner
1960
+ .ready()
1961
+ .await
1962
+ .map_err(|e| {
1963
+ tonic::Status::new(
1964
+ tonic::Code::Unknown,
1965
+ format!("Service was not ready: {}", e.into()),
1966
+ )
1967
+ })?;
1968
+ let codec = tonic::codec::ProstCodec::default();
1969
+ let path = http::uri::PathAndQuery::from_static(
1970
+ "/org.dash.platform.dapi.v0.Platform/getVersionUpgradeVoteStatus",
1971
+ );
1972
+ let mut req = request.into_request();
1973
+ req.extensions_mut()
1974
+ .insert(
1975
+ GrpcMethod::new(
1976
+ "org.dash.platform.dapi.v0.Platform",
1977
+ "getVersionUpgradeVoteStatus",
1978
+ ),
1979
+ );
1980
+ self.inner.unary(req, path, codec).await
1981
+ }
1982
+ pub async fn get_epochs_info(
1983
+ &mut self,
1984
+ request: impl tonic::IntoRequest<super::GetEpochsInfoRequest>,
1985
+ ) -> std::result::Result<
1986
+ tonic::Response<super::GetEpochsInfoResponse>,
1987
+ tonic::Status,
1988
+ > {
1989
+ self.inner
1990
+ .ready()
1991
+ .await
1992
+ .map_err(|e| {
1993
+ tonic::Status::new(
1994
+ tonic::Code::Unknown,
1995
+ format!("Service was not ready: {}", e.into()),
1996
+ )
1997
+ })?;
1998
+ let codec = tonic::codec::ProstCodec::default();
1999
+ let path = http::uri::PathAndQuery::from_static(
2000
+ "/org.dash.platform.dapi.v0.Platform/getEpochsInfo",
2001
+ );
2002
+ let mut req = request.into_request();
2003
+ req.extensions_mut()
2004
+ .insert(
2005
+ GrpcMethod::new(
2006
+ "org.dash.platform.dapi.v0.Platform",
2007
+ "getEpochsInfo",
2008
+ ),
2009
+ );
2010
+ self.inner.unary(req, path, codec).await
2011
+ }
1323
2012
  }
1324
2013
  }