@dashevo/dapi-grpc 1.0.0-dev.4 → 1.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +3 -1
- package/build.rs +39 -17
- package/clients/core/v0/rust/core_example.rs +1 -1
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +78 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +3000 -1060
- package/clients/platform/v0/nodejs/platform_protoc.js +2609 -748
- package/clients/platform/v0/rust/platform_example.rs +1 -1
- package/clients/platform/v0/web/PlatformPromiseClient.js +28 -0
- package/clients/platform/v0/web/platform_pb.d.ts +253 -0
- package/clients/platform/v0/web/platform_pb.js +2609 -748
- package/clients/platform/v0/web/platform_pb_service.d.ts +38 -0
- package/clients/platform/v0/web/platform_pb_service.js +80 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +51 -0
- package/src/core/proto/org.dash.platform.dapi.v0.rs +55 -0
- package/src/lib.rs +6 -0
- package/src/mock.rs +68 -0
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +337 -0
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +22 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2
2
|
#[serde(rename_all = "snake_case")]
|
|
3
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
3
4
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
4
5
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5
6
|
pub struct Proof {
|
|
@@ -22,6 +23,7 @@ pub struct Proof {
|
|
|
22
23
|
}
|
|
23
24
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
24
25
|
#[serde(rename_all = "snake_case")]
|
|
26
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
25
27
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
26
28
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
27
29
|
pub struct ResponseMetadata {
|
|
@@ -42,6 +44,7 @@ pub struct ResponseMetadata {
|
|
|
42
44
|
}
|
|
43
45
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
44
46
|
#[serde(rename_all = "snake_case")]
|
|
47
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
45
48
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
46
49
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
47
50
|
pub struct StateTransitionBroadcastError {
|
|
@@ -54,6 +57,7 @@ pub struct StateTransitionBroadcastError {
|
|
|
54
57
|
}
|
|
55
58
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
56
59
|
#[serde(rename_all = "snake_case")]
|
|
60
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
57
61
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
58
62
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
59
63
|
pub struct BroadcastStateTransitionRequest {
|
|
@@ -62,6 +66,7 @@ pub struct BroadcastStateTransitionRequest {
|
|
|
62
66
|
}
|
|
63
67
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
64
68
|
#[serde(rename_all = "snake_case")]
|
|
69
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
65
70
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
66
71
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
67
72
|
pub struct BroadcastStateTransitionResponse {}
|
|
@@ -69,6 +74,7 @@ pub struct BroadcastStateTransitionResponse {}
|
|
|
69
74
|
#[serde(rename_all = "snake_case")]
|
|
70
75
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
71
76
|
#[grpc_versions(0)]
|
|
77
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
72
78
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
73
79
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
74
80
|
pub struct GetIdentityRequest {
|
|
@@ -79,6 +85,7 @@ pub struct GetIdentityRequest {
|
|
|
79
85
|
pub mod get_identity_request {
|
|
80
86
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
81
87
|
#[serde(rename_all = "snake_case")]
|
|
88
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
82
89
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
83
90
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
84
91
|
pub struct GetIdentityRequestV0 {
|
|
@@ -101,6 +108,77 @@ pub mod get_identity_request {
|
|
|
101
108
|
#[serde(rename_all = "snake_case")]
|
|
102
109
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
103
110
|
#[grpc_versions(0)]
|
|
111
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
112
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
113
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
114
|
+
pub struct GetIdentityNonceRequest {
|
|
115
|
+
#[prost(oneof = "get_identity_nonce_request::Version", tags = "1")]
|
|
116
|
+
pub version: ::core::option::Option<get_identity_nonce_request::Version>,
|
|
117
|
+
}
|
|
118
|
+
/// Nested message and enum types in `GetIdentityNonceRequest`.
|
|
119
|
+
pub mod get_identity_nonce_request {
|
|
120
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
121
|
+
#[serde(rename_all = "snake_case")]
|
|
122
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
123
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
124
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
125
|
+
pub struct GetIdentityNonceRequestV0 {
|
|
126
|
+
#[prost(bytes = "vec", tag = "1")]
|
|
127
|
+
#[serde(with = "serde_bytes")]
|
|
128
|
+
pub identity_id: ::prost::alloc::vec::Vec<u8>,
|
|
129
|
+
#[prost(bool, tag = "2")]
|
|
130
|
+
pub prove: bool,
|
|
131
|
+
}
|
|
132
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
133
|
+
#[serde(rename_all = "snake_case")]
|
|
134
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
135
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
136
|
+
pub enum Version {
|
|
137
|
+
#[prost(message, tag = "1")]
|
|
138
|
+
V0(GetIdentityNonceRequestV0),
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
142
|
+
#[serde(rename_all = "snake_case")]
|
|
143
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
144
|
+
#[grpc_versions(0)]
|
|
145
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
146
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
147
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
148
|
+
pub struct GetIdentityContractNonceRequest {
|
|
149
|
+
#[prost(oneof = "get_identity_contract_nonce_request::Version", tags = "1")]
|
|
150
|
+
pub version: ::core::option::Option<get_identity_contract_nonce_request::Version>,
|
|
151
|
+
}
|
|
152
|
+
/// Nested message and enum types in `GetIdentityContractNonceRequest`.
|
|
153
|
+
pub mod get_identity_contract_nonce_request {
|
|
154
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
155
|
+
#[serde(rename_all = "snake_case")]
|
|
156
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
157
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
158
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
159
|
+
pub struct GetIdentityContractNonceRequestV0 {
|
|
160
|
+
#[prost(bytes = "vec", tag = "1")]
|
|
161
|
+
#[serde(with = "serde_bytes")]
|
|
162
|
+
pub identity_id: ::prost::alloc::vec::Vec<u8>,
|
|
163
|
+
#[prost(bytes = "vec", tag = "2")]
|
|
164
|
+
pub contract_id: ::prost::alloc::vec::Vec<u8>,
|
|
165
|
+
#[prost(bool, tag = "3")]
|
|
166
|
+
pub prove: bool,
|
|
167
|
+
}
|
|
168
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
169
|
+
#[serde(rename_all = "snake_case")]
|
|
170
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
171
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
172
|
+
pub enum Version {
|
|
173
|
+
#[prost(message, tag = "1")]
|
|
174
|
+
V0(GetIdentityContractNonceRequestV0),
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
178
|
+
#[serde(rename_all = "snake_case")]
|
|
179
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
180
|
+
#[grpc_versions(0)]
|
|
181
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
104
182
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
105
183
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
106
184
|
pub struct GetIdentityBalanceRequest {
|
|
@@ -111,6 +189,7 @@ pub struct GetIdentityBalanceRequest {
|
|
|
111
189
|
pub mod get_identity_balance_request {
|
|
112
190
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
113
191
|
#[serde(rename_all = "snake_case")]
|
|
192
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
114
193
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
115
194
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
116
195
|
pub struct GetIdentityBalanceRequestV0 {
|
|
@@ -133,6 +212,7 @@ pub mod get_identity_balance_request {
|
|
|
133
212
|
#[serde(rename_all = "snake_case")]
|
|
134
213
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
135
214
|
#[grpc_versions(0)]
|
|
215
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
136
216
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
137
217
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
138
218
|
pub struct GetIdentityBalanceAndRevisionRequest {
|
|
@@ -145,6 +225,7 @@ pub struct GetIdentityBalanceAndRevisionRequest {
|
|
|
145
225
|
pub mod get_identity_balance_and_revision_request {
|
|
146
226
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
147
227
|
#[serde(rename_all = "snake_case")]
|
|
228
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
148
229
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
149
230
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
150
231
|
pub struct GetIdentityBalanceAndRevisionRequestV0 {
|
|
@@ -170,6 +251,7 @@ pub mod get_identity_balance_and_revision_request {
|
|
|
170
251
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
171
252
|
)]
|
|
172
253
|
#[grpc_versions(0)]
|
|
254
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
173
255
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
174
256
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
175
257
|
pub struct GetIdentityResponse {
|
|
@@ -180,6 +262,7 @@ pub struct GetIdentityResponse {
|
|
|
180
262
|
pub mod get_identity_response {
|
|
181
263
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
182
264
|
#[serde(rename_all = "snake_case")]
|
|
265
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
183
266
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
184
267
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
185
268
|
pub struct GetIdentityResponseV0 {
|
|
@@ -214,6 +297,7 @@ pub mod get_identity_response {
|
|
|
214
297
|
#[serde(rename_all = "snake_case")]
|
|
215
298
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
216
299
|
#[grpc_versions(0)]
|
|
300
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
217
301
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
218
302
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
219
303
|
pub struct GetIdentitiesRequest {
|
|
@@ -224,6 +308,7 @@ pub struct GetIdentitiesRequest {
|
|
|
224
308
|
pub mod get_identities_request {
|
|
225
309
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
226
310
|
#[serde(rename_all = "snake_case")]
|
|
311
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
227
312
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
228
313
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
229
314
|
pub struct GetIdentitiesRequestV0 {
|
|
@@ -249,6 +334,7 @@ pub mod get_identities_request {
|
|
|
249
334
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
250
335
|
)]
|
|
251
336
|
#[grpc_versions(0)]
|
|
337
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
252
338
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
253
339
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
254
340
|
pub struct GetIdentitiesResponse {
|
|
@@ -259,6 +345,7 @@ pub struct GetIdentitiesResponse {
|
|
|
259
345
|
pub mod get_identities_response {
|
|
260
346
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
261
347
|
#[serde(rename_all = "snake_case")]
|
|
348
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
262
349
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
263
350
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
264
351
|
pub struct IdentityValue {
|
|
@@ -267,6 +354,7 @@ pub mod get_identities_response {
|
|
|
267
354
|
}
|
|
268
355
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
269
356
|
#[serde(rename_all = "snake_case")]
|
|
357
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
270
358
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
271
359
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
272
360
|
pub struct IdentityEntry {
|
|
@@ -277,6 +365,7 @@ pub mod get_identities_response {
|
|
|
277
365
|
}
|
|
278
366
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
279
367
|
#[serde(rename_all = "snake_case")]
|
|
368
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
280
369
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
281
370
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
282
371
|
pub struct Identities {
|
|
@@ -285,6 +374,7 @@ pub mod get_identities_response {
|
|
|
285
374
|
}
|
|
286
375
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
287
376
|
#[serde(rename_all = "snake_case")]
|
|
377
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
288
378
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
289
379
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
290
380
|
pub struct GetIdentitiesResponseV0 {
|
|
@@ -322,6 +412,110 @@ pub mod get_identities_response {
|
|
|
322
412
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
323
413
|
)]
|
|
324
414
|
#[grpc_versions(0)]
|
|
415
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
416
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
417
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
418
|
+
pub struct GetIdentityNonceResponse {
|
|
419
|
+
#[prost(oneof = "get_identity_nonce_response::Version", tags = "1")]
|
|
420
|
+
pub version: ::core::option::Option<get_identity_nonce_response::Version>,
|
|
421
|
+
}
|
|
422
|
+
/// Nested message and enum types in `GetIdentityNonceResponse`.
|
|
423
|
+
pub mod get_identity_nonce_response {
|
|
424
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
425
|
+
#[serde(rename_all = "snake_case")]
|
|
426
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
427
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
428
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
429
|
+
pub struct GetIdentityNonceResponseV0 {
|
|
430
|
+
#[prost(message, optional, tag = "3")]
|
|
431
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
432
|
+
#[prost(oneof = "get_identity_nonce_response_v0::Result", tags = "1, 2")]
|
|
433
|
+
pub result: ::core::option::Option<get_identity_nonce_response_v0::Result>,
|
|
434
|
+
}
|
|
435
|
+
/// Nested message and enum types in `GetIdentityNonceResponseV0`.
|
|
436
|
+
pub mod get_identity_nonce_response_v0 {
|
|
437
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
438
|
+
#[serde(rename_all = "snake_case")]
|
|
439
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
440
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
441
|
+
pub enum Result {
|
|
442
|
+
#[prost(uint64, tag = "1")]
|
|
443
|
+
IdentityNonce(u64),
|
|
444
|
+
#[prost(message, tag = "2")]
|
|
445
|
+
Proof(super::super::Proof),
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
449
|
+
#[serde(rename_all = "snake_case")]
|
|
450
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
451
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
452
|
+
pub enum Version {
|
|
453
|
+
#[prost(message, tag = "1")]
|
|
454
|
+
V0(GetIdentityNonceResponseV0),
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
458
|
+
#[serde(rename_all = "snake_case")]
|
|
459
|
+
#[derive(
|
|
460
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
461
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
462
|
+
)]
|
|
463
|
+
#[grpc_versions(0)]
|
|
464
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
465
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
466
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
467
|
+
pub struct GetIdentityContractNonceResponse {
|
|
468
|
+
#[prost(oneof = "get_identity_contract_nonce_response::Version", tags = "1")]
|
|
469
|
+
pub version: ::core::option::Option<get_identity_contract_nonce_response::Version>,
|
|
470
|
+
}
|
|
471
|
+
/// Nested message and enum types in `GetIdentityContractNonceResponse`.
|
|
472
|
+
pub mod get_identity_contract_nonce_response {
|
|
473
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
474
|
+
#[serde(rename_all = "snake_case")]
|
|
475
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
476
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
477
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
478
|
+
pub struct GetIdentityContractNonceResponseV0 {
|
|
479
|
+
#[prost(message, optional, tag = "3")]
|
|
480
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
481
|
+
#[prost(
|
|
482
|
+
oneof = "get_identity_contract_nonce_response_v0::Result",
|
|
483
|
+
tags = "1, 2"
|
|
484
|
+
)]
|
|
485
|
+
pub result: ::core::option::Option<
|
|
486
|
+
get_identity_contract_nonce_response_v0::Result,
|
|
487
|
+
>,
|
|
488
|
+
}
|
|
489
|
+
/// Nested message and enum types in `GetIdentityContractNonceResponseV0`.
|
|
490
|
+
pub mod get_identity_contract_nonce_response_v0 {
|
|
491
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
492
|
+
#[serde(rename_all = "snake_case")]
|
|
493
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
494
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
495
|
+
pub enum Result {
|
|
496
|
+
#[prost(uint64, tag = "1")]
|
|
497
|
+
IdentityContractNonce(u64),
|
|
498
|
+
#[prost(message, tag = "2")]
|
|
499
|
+
Proof(super::super::Proof),
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
503
|
+
#[serde(rename_all = "snake_case")]
|
|
504
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
505
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
506
|
+
pub enum Version {
|
|
507
|
+
#[prost(message, tag = "1")]
|
|
508
|
+
V0(GetIdentityContractNonceResponseV0),
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
512
|
+
#[serde(rename_all = "snake_case")]
|
|
513
|
+
#[derive(
|
|
514
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
515
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
516
|
+
)]
|
|
517
|
+
#[grpc_versions(0)]
|
|
518
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
325
519
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
326
520
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
327
521
|
pub struct GetIdentityBalanceResponse {
|
|
@@ -332,6 +526,7 @@ pub struct GetIdentityBalanceResponse {
|
|
|
332
526
|
pub mod get_identity_balance_response {
|
|
333
527
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
334
528
|
#[serde(rename_all = "snake_case")]
|
|
529
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
335
530
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
336
531
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
337
532
|
pub struct GetIdentityBalanceResponseV0 {
|
|
@@ -369,6 +564,7 @@ pub mod get_identity_balance_response {
|
|
|
369
564
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
370
565
|
)]
|
|
371
566
|
#[grpc_versions(0)]
|
|
567
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
372
568
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
373
569
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
374
570
|
pub struct GetIdentityBalanceAndRevisionResponse {
|
|
@@ -381,6 +577,7 @@ pub struct GetIdentityBalanceAndRevisionResponse {
|
|
|
381
577
|
pub mod get_identity_balance_and_revision_response {
|
|
382
578
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
383
579
|
#[serde(rename_all = "snake_case")]
|
|
580
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
384
581
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
385
582
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
386
583
|
pub struct GetIdentityBalanceAndRevisionResponseV0 {
|
|
@@ -398,6 +595,7 @@ pub mod get_identity_balance_and_revision_response {
|
|
|
398
595
|
pub mod get_identity_balance_and_revision_response_v0 {
|
|
399
596
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
400
597
|
#[serde(rename_all = "snake_case")]
|
|
598
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
401
599
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
402
600
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
403
601
|
pub struct BalanceAndRevision {
|
|
@@ -428,6 +626,7 @@ pub mod get_identity_balance_and_revision_response {
|
|
|
428
626
|
}
|
|
429
627
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
430
628
|
#[serde(rename_all = "snake_case")]
|
|
629
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
431
630
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
432
631
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
433
632
|
pub struct KeyRequestType {
|
|
@@ -451,11 +650,13 @@ pub mod key_request_type {
|
|
|
451
650
|
}
|
|
452
651
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
453
652
|
#[serde(rename_all = "snake_case")]
|
|
653
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
454
654
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
455
655
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
456
656
|
pub struct AllKeys {}
|
|
457
657
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
458
658
|
#[serde(rename_all = "snake_case")]
|
|
659
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
459
660
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
460
661
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
461
662
|
pub struct SpecificKeys {
|
|
@@ -464,6 +665,7 @@ pub struct SpecificKeys {
|
|
|
464
665
|
}
|
|
465
666
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
466
667
|
#[serde(rename_all = "snake_case")]
|
|
668
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
467
669
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
468
670
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
469
671
|
pub struct SearchKey {
|
|
@@ -472,6 +674,7 @@ pub struct SearchKey {
|
|
|
472
674
|
}
|
|
473
675
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
474
676
|
#[serde(rename_all = "snake_case")]
|
|
677
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
475
678
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
476
679
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
477
680
|
pub struct SecurityLevelMap {
|
|
@@ -528,6 +731,7 @@ pub mod security_level_map {
|
|
|
528
731
|
#[serde(rename_all = "snake_case")]
|
|
529
732
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
530
733
|
#[grpc_versions(0)]
|
|
734
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
531
735
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
532
736
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
533
737
|
pub struct GetIdentityKeysRequest {
|
|
@@ -538,6 +742,7 @@ pub struct GetIdentityKeysRequest {
|
|
|
538
742
|
pub mod get_identity_keys_request {
|
|
539
743
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
540
744
|
#[serde(rename_all = "snake_case")]
|
|
745
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
541
746
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
542
747
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
543
748
|
pub struct GetIdentityKeysRequestV0 {
|
|
@@ -569,6 +774,7 @@ pub mod get_identity_keys_request {
|
|
|
569
774
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
570
775
|
)]
|
|
571
776
|
#[grpc_versions(0)]
|
|
777
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
572
778
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
573
779
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
574
780
|
pub struct GetIdentityKeysResponse {
|
|
@@ -579,6 +785,7 @@ pub struct GetIdentityKeysResponse {
|
|
|
579
785
|
pub mod get_identity_keys_response {
|
|
580
786
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
581
787
|
#[serde(rename_all = "snake_case")]
|
|
788
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
582
789
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
583
790
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
584
791
|
pub struct GetIdentityKeysResponseV0 {
|
|
@@ -591,6 +798,7 @@ pub mod get_identity_keys_response {
|
|
|
591
798
|
pub mod get_identity_keys_response_v0 {
|
|
592
799
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
593
800
|
#[serde(rename_all = "snake_case")]
|
|
801
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
594
802
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
595
803
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
596
804
|
pub struct Keys {
|
|
@@ -621,6 +829,7 @@ pub mod get_identity_keys_response {
|
|
|
621
829
|
#[serde(rename_all = "snake_case")]
|
|
622
830
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
623
831
|
#[grpc_versions(0)]
|
|
832
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
624
833
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
625
834
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
626
835
|
pub struct GetProofsRequest {
|
|
@@ -631,6 +840,7 @@ pub struct GetProofsRequest {
|
|
|
631
840
|
pub mod get_proofs_request {
|
|
632
841
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
633
842
|
#[serde(rename_all = "snake_case")]
|
|
843
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
634
844
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
635
845
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
636
846
|
pub struct GetProofsRequestV0 {
|
|
@@ -645,6 +855,7 @@ pub mod get_proofs_request {
|
|
|
645
855
|
pub mod get_proofs_request_v0 {
|
|
646
856
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
647
857
|
#[serde(rename_all = "snake_case")]
|
|
858
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
648
859
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
649
860
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
650
861
|
pub struct DocumentRequest {
|
|
@@ -659,6 +870,7 @@ pub mod get_proofs_request {
|
|
|
659
870
|
}
|
|
660
871
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
661
872
|
#[serde(rename_all = "snake_case")]
|
|
873
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
662
874
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
663
875
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
664
876
|
pub struct IdentityRequest {
|
|
@@ -688,6 +900,7 @@ pub mod get_proofs_request {
|
|
|
688
900
|
FullIdentity = 0,
|
|
689
901
|
Balance = 1,
|
|
690
902
|
Keys = 2,
|
|
903
|
+
Revision = 3,
|
|
691
904
|
}
|
|
692
905
|
impl Type {
|
|
693
906
|
/// String value of the enum field names used in the ProtoBuf definition.
|
|
@@ -699,6 +912,7 @@ pub mod get_proofs_request {
|
|
|
699
912
|
Type::FullIdentity => "FULL_IDENTITY",
|
|
700
913
|
Type::Balance => "BALANCE",
|
|
701
914
|
Type::Keys => "KEYS",
|
|
915
|
+
Type::Revision => "REVISION",
|
|
702
916
|
}
|
|
703
917
|
}
|
|
704
918
|
/// Creates an enum from field names used in the ProtoBuf definition.
|
|
@@ -707,6 +921,7 @@ pub mod get_proofs_request {
|
|
|
707
921
|
"FULL_IDENTITY" => Some(Self::FullIdentity),
|
|
708
922
|
"BALANCE" => Some(Self::Balance),
|
|
709
923
|
"KEYS" => Some(Self::Keys),
|
|
924
|
+
"REVISION" => Some(Self::Revision),
|
|
710
925
|
_ => None,
|
|
711
926
|
}
|
|
712
927
|
}
|
|
@@ -714,6 +929,7 @@ pub mod get_proofs_request {
|
|
|
714
929
|
}
|
|
715
930
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
716
931
|
#[serde(rename_all = "snake_case")]
|
|
932
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
717
933
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
718
934
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
719
935
|
pub struct ContractRequest {
|
|
@@ -737,6 +953,7 @@ pub mod get_proofs_request {
|
|
|
737
953
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
738
954
|
)]
|
|
739
955
|
#[grpc_versions(0)]
|
|
956
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
740
957
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
741
958
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
742
959
|
pub struct GetProofsResponse {
|
|
@@ -747,6 +964,7 @@ pub struct GetProofsResponse {
|
|
|
747
964
|
pub mod get_proofs_response {
|
|
748
965
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
749
966
|
#[serde(rename_all = "snake_case")]
|
|
967
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
750
968
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
751
969
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
752
970
|
pub struct GetProofsResponseV0 {
|
|
@@ -779,6 +997,7 @@ pub mod get_proofs_response {
|
|
|
779
997
|
#[serde(rename_all = "snake_case")]
|
|
780
998
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
781
999
|
#[grpc_versions(0)]
|
|
1000
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
782
1001
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
783
1002
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
784
1003
|
pub struct GetDataContractRequest {
|
|
@@ -789,6 +1008,7 @@ pub struct GetDataContractRequest {
|
|
|
789
1008
|
pub mod get_data_contract_request {
|
|
790
1009
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
791
1010
|
#[serde(rename_all = "snake_case")]
|
|
1011
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
792
1012
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
793
1013
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
794
1014
|
pub struct GetDataContractRequestV0 {
|
|
@@ -814,6 +1034,7 @@ pub mod get_data_contract_request {
|
|
|
814
1034
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
815
1035
|
)]
|
|
816
1036
|
#[grpc_versions(0)]
|
|
1037
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
817
1038
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
818
1039
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
819
1040
|
pub struct GetDataContractResponse {
|
|
@@ -824,6 +1045,7 @@ pub struct GetDataContractResponse {
|
|
|
824
1045
|
pub mod get_data_contract_response {
|
|
825
1046
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
826
1047
|
#[serde(rename_all = "snake_case")]
|
|
1048
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
827
1049
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
828
1050
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
829
1051
|
pub struct GetDataContractResponseV0 {
|
|
@@ -858,6 +1080,7 @@ pub mod get_data_contract_response {
|
|
|
858
1080
|
#[serde(rename_all = "snake_case")]
|
|
859
1081
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
860
1082
|
#[grpc_versions(0)]
|
|
1083
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
861
1084
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
862
1085
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
863
1086
|
pub struct GetDataContractsRequest {
|
|
@@ -868,6 +1091,7 @@ pub struct GetDataContractsRequest {
|
|
|
868
1091
|
pub mod get_data_contracts_request {
|
|
869
1092
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
870
1093
|
#[serde(rename_all = "snake_case")]
|
|
1094
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
871
1095
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
872
1096
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
873
1097
|
pub struct GetDataContractsRequestV0 {
|
|
@@ -893,6 +1117,7 @@ pub mod get_data_contracts_request {
|
|
|
893
1117
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
894
1118
|
)]
|
|
895
1119
|
#[grpc_versions(0)]
|
|
1120
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
896
1121
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
897
1122
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
898
1123
|
pub struct GetDataContractsResponse {
|
|
@@ -903,6 +1128,7 @@ pub struct GetDataContractsResponse {
|
|
|
903
1128
|
pub mod get_data_contracts_response {
|
|
904
1129
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
905
1130
|
#[serde(rename_all = "snake_case")]
|
|
1131
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
906
1132
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
907
1133
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
908
1134
|
pub struct DataContractEntry {
|
|
@@ -913,6 +1139,7 @@ pub mod get_data_contracts_response {
|
|
|
913
1139
|
}
|
|
914
1140
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
915
1141
|
#[serde(rename_all = "snake_case")]
|
|
1142
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
916
1143
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
917
1144
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
918
1145
|
pub struct DataContracts {
|
|
@@ -921,6 +1148,7 @@ pub mod get_data_contracts_response {
|
|
|
921
1148
|
}
|
|
922
1149
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
923
1150
|
#[serde(rename_all = "snake_case")]
|
|
1151
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
924
1152
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
925
1153
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
926
1154
|
pub struct GetDataContractsResponseV0 {
|
|
@@ -955,6 +1183,7 @@ pub mod get_data_contracts_response {
|
|
|
955
1183
|
#[serde(rename_all = "snake_case")]
|
|
956
1184
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
957
1185
|
#[grpc_versions(0)]
|
|
1186
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
958
1187
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
959
1188
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
960
1189
|
pub struct GetDataContractHistoryRequest {
|
|
@@ -965,6 +1194,7 @@ pub struct GetDataContractHistoryRequest {
|
|
|
965
1194
|
pub mod get_data_contract_history_request {
|
|
966
1195
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
967
1196
|
#[serde(rename_all = "snake_case")]
|
|
1197
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
968
1198
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
969
1199
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
970
1200
|
pub struct GetDataContractHistoryRequestV0 {
|
|
@@ -997,6 +1227,7 @@ pub mod get_data_contract_history_request {
|
|
|
997
1227
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
998
1228
|
)]
|
|
999
1229
|
#[grpc_versions(0)]
|
|
1230
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1000
1231
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1001
1232
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1002
1233
|
pub struct GetDataContractHistoryResponse {
|
|
@@ -1007,6 +1238,7 @@ pub struct GetDataContractHistoryResponse {
|
|
|
1007
1238
|
pub mod get_data_contract_history_response {
|
|
1008
1239
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1009
1240
|
#[serde(rename_all = "snake_case")]
|
|
1241
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1010
1242
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1011
1243
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1012
1244
|
pub struct GetDataContractHistoryResponseV0 {
|
|
@@ -1021,6 +1253,7 @@ pub mod get_data_contract_history_response {
|
|
|
1021
1253
|
pub mod get_data_contract_history_response_v0 {
|
|
1022
1254
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1023
1255
|
#[serde(rename_all = "snake_case")]
|
|
1256
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1024
1257
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1025
1258
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1026
1259
|
pub struct DataContractHistoryEntry {
|
|
@@ -1031,6 +1264,7 @@ pub mod get_data_contract_history_response {
|
|
|
1031
1264
|
}
|
|
1032
1265
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1033
1266
|
#[serde(rename_all = "snake_case")]
|
|
1267
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1034
1268
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1035
1269
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1036
1270
|
pub struct DataContractHistory {
|
|
@@ -1063,6 +1297,7 @@ pub mod get_data_contract_history_response {
|
|
|
1063
1297
|
#[serde(rename_all = "snake_case")]
|
|
1064
1298
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1065
1299
|
#[grpc_versions(0)]
|
|
1300
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1066
1301
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1067
1302
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1068
1303
|
pub struct GetDocumentsRequest {
|
|
@@ -1073,6 +1308,7 @@ pub struct GetDocumentsRequest {
|
|
|
1073
1308
|
pub mod get_documents_request {
|
|
1074
1309
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1075
1310
|
#[serde(rename_all = "snake_case")]
|
|
1311
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1076
1312
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1077
1313
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1078
1314
|
pub struct GetDocumentsRequestV0 {
|
|
@@ -1123,6 +1359,7 @@ pub mod get_documents_request {
|
|
|
1123
1359
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1124
1360
|
)]
|
|
1125
1361
|
#[grpc_versions(0)]
|
|
1362
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1126
1363
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1127
1364
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1128
1365
|
pub struct GetDocumentsResponse {
|
|
@@ -1133,6 +1370,7 @@ pub struct GetDocumentsResponse {
|
|
|
1133
1370
|
pub mod get_documents_response {
|
|
1134
1371
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1135
1372
|
#[serde(rename_all = "snake_case")]
|
|
1373
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1136
1374
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1137
1375
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1138
1376
|
pub struct GetDocumentsResponseV0 {
|
|
@@ -1145,6 +1383,7 @@ pub mod get_documents_response {
|
|
|
1145
1383
|
pub mod get_documents_response_v0 {
|
|
1146
1384
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1147
1385
|
#[serde(rename_all = "snake_case")]
|
|
1386
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1148
1387
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1149
1388
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1150
1389
|
pub struct Documents {
|
|
@@ -1175,6 +1414,7 @@ pub mod get_documents_response {
|
|
|
1175
1414
|
#[serde(rename_all = "snake_case")]
|
|
1176
1415
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1177
1416
|
#[grpc_versions(0)]
|
|
1417
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1178
1418
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1179
1419
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1180
1420
|
pub struct GetIdentitiesByPublicKeyHashesRequest {
|
|
@@ -1187,6 +1427,7 @@ pub struct GetIdentitiesByPublicKeyHashesRequest {
|
|
|
1187
1427
|
pub mod get_identities_by_public_key_hashes_request {
|
|
1188
1428
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1189
1429
|
#[serde(rename_all = "snake_case")]
|
|
1430
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1190
1431
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1191
1432
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1192
1433
|
pub struct GetIdentitiesByPublicKeyHashesRequestV0 {
|
|
@@ -1212,6 +1453,7 @@ pub mod get_identities_by_public_key_hashes_request {
|
|
|
1212
1453
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1213
1454
|
)]
|
|
1214
1455
|
#[grpc_versions(0)]
|
|
1456
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1215
1457
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1216
1458
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1217
1459
|
pub struct GetIdentitiesByPublicKeyHashesResponse {
|
|
@@ -1224,6 +1466,7 @@ pub struct GetIdentitiesByPublicKeyHashesResponse {
|
|
|
1224
1466
|
pub mod get_identities_by_public_key_hashes_response {
|
|
1225
1467
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1226
1468
|
#[serde(rename_all = "snake_case")]
|
|
1469
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1227
1470
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1228
1471
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1229
1472
|
pub struct PublicKeyHashIdentityEntry {
|
|
@@ -1235,6 +1478,7 @@ pub mod get_identities_by_public_key_hashes_response {
|
|
|
1235
1478
|
}
|
|
1236
1479
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1237
1480
|
#[serde(rename_all = "snake_case")]
|
|
1481
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1238
1482
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1239
1483
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1240
1484
|
pub struct IdentitiesByPublicKeyHashes {
|
|
@@ -1243,6 +1487,7 @@ pub mod get_identities_by_public_key_hashes_response {
|
|
|
1243
1487
|
}
|
|
1244
1488
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1245
1489
|
#[serde(rename_all = "snake_case")]
|
|
1490
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1246
1491
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1247
1492
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1248
1493
|
pub struct GetIdentitiesByPublicKeyHashesResponseV0 {
|
|
@@ -1282,6 +1527,7 @@ pub mod get_identities_by_public_key_hashes_response {
|
|
|
1282
1527
|
#[serde(rename_all = "snake_case")]
|
|
1283
1528
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1284
1529
|
#[grpc_versions(0)]
|
|
1530
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1285
1531
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1286
1532
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1287
1533
|
pub struct GetIdentityByPublicKeyHashRequest {
|
|
@@ -1294,6 +1540,7 @@ pub struct GetIdentityByPublicKeyHashRequest {
|
|
|
1294
1540
|
pub mod get_identity_by_public_key_hash_request {
|
|
1295
1541
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1296
1542
|
#[serde(rename_all = "snake_case")]
|
|
1543
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1297
1544
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1298
1545
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1299
1546
|
pub struct GetIdentityByPublicKeyHashRequestV0 {
|
|
@@ -1319,6 +1566,7 @@ pub mod get_identity_by_public_key_hash_request {
|
|
|
1319
1566
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1320
1567
|
)]
|
|
1321
1568
|
#[grpc_versions(0)]
|
|
1569
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1322
1570
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1323
1571
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1324
1572
|
pub struct GetIdentityByPublicKeyHashResponse {
|
|
@@ -1331,6 +1579,7 @@ pub struct GetIdentityByPublicKeyHashResponse {
|
|
|
1331
1579
|
pub mod get_identity_by_public_key_hash_response {
|
|
1332
1580
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1333
1581
|
#[serde(rename_all = "snake_case")]
|
|
1582
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1334
1583
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1335
1584
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1336
1585
|
pub struct GetIdentityByPublicKeyHashResponseV0 {
|
|
@@ -1370,6 +1619,7 @@ pub mod get_identity_by_public_key_hash_response {
|
|
|
1370
1619
|
#[serde(rename_all = "snake_case")]
|
|
1371
1620
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1372
1621
|
#[grpc_versions(0)]
|
|
1622
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1373
1623
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1374
1624
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1375
1625
|
pub struct WaitForStateTransitionResultRequest {
|
|
@@ -1382,6 +1632,7 @@ pub struct WaitForStateTransitionResultRequest {
|
|
|
1382
1632
|
pub mod wait_for_state_transition_result_request {
|
|
1383
1633
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1384
1634
|
#[serde(rename_all = "snake_case")]
|
|
1635
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1385
1636
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1386
1637
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1387
1638
|
pub struct WaitForStateTransitionResultRequestV0 {
|
|
@@ -1406,6 +1657,7 @@ pub mod wait_for_state_transition_result_request {
|
|
|
1406
1657
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1407
1658
|
)]
|
|
1408
1659
|
#[grpc_versions(0)]
|
|
1660
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1409
1661
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1410
1662
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1411
1663
|
pub struct WaitForStateTransitionResultResponse {
|
|
@@ -1418,6 +1670,7 @@ pub struct WaitForStateTransitionResultResponse {
|
|
|
1418
1670
|
pub mod wait_for_state_transition_result_response {
|
|
1419
1671
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1420
1672
|
#[serde(rename_all = "snake_case")]
|
|
1673
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1421
1674
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1422
1675
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1423
1676
|
pub struct WaitForStateTransitionResultResponseV0 {
|
|
@@ -1455,6 +1708,7 @@ pub mod wait_for_state_transition_result_response {
|
|
|
1455
1708
|
}
|
|
1456
1709
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1457
1710
|
#[serde(rename_all = "snake_case")]
|
|
1711
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1458
1712
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1459
1713
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1460
1714
|
pub struct GetConsensusParamsRequest {
|
|
@@ -1465,6 +1719,7 @@ pub struct GetConsensusParamsRequest {
|
|
|
1465
1719
|
pub mod get_consensus_params_request {
|
|
1466
1720
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1467
1721
|
#[serde(rename_all = "snake_case")]
|
|
1722
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1468
1723
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1469
1724
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1470
1725
|
pub struct GetConsensusParamsRequestV0 {
|
|
@@ -1484,6 +1739,7 @@ pub mod get_consensus_params_request {
|
|
|
1484
1739
|
}
|
|
1485
1740
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1486
1741
|
#[serde(rename_all = "snake_case")]
|
|
1742
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1487
1743
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1488
1744
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1489
1745
|
pub struct GetConsensusParamsResponse {
|
|
@@ -1494,6 +1750,7 @@ pub struct GetConsensusParamsResponse {
|
|
|
1494
1750
|
pub mod get_consensus_params_response {
|
|
1495
1751
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1496
1752
|
#[serde(rename_all = "snake_case")]
|
|
1753
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1497
1754
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1498
1755
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1499
1756
|
pub struct ConsensusParamsBlock {
|
|
@@ -1506,6 +1763,7 @@ pub mod get_consensus_params_response {
|
|
|
1506
1763
|
}
|
|
1507
1764
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1508
1765
|
#[serde(rename_all = "snake_case")]
|
|
1766
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1509
1767
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1510
1768
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1511
1769
|
pub struct ConsensusParamsEvidence {
|
|
@@ -1518,6 +1776,7 @@ pub mod get_consensus_params_response {
|
|
|
1518
1776
|
}
|
|
1519
1777
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1520
1778
|
#[serde(rename_all = "snake_case")]
|
|
1779
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1521
1780
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1522
1781
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1523
1782
|
pub struct GetConsensusParamsResponseV0 {
|
|
@@ -1539,6 +1798,7 @@ pub mod get_consensus_params_response {
|
|
|
1539
1798
|
#[serde(rename_all = "snake_case")]
|
|
1540
1799
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1541
1800
|
#[grpc_versions(0)]
|
|
1801
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1542
1802
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1543
1803
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1544
1804
|
pub struct GetProtocolVersionUpgradeStateRequest {
|
|
@@ -1551,6 +1811,7 @@ pub struct GetProtocolVersionUpgradeStateRequest {
|
|
|
1551
1811
|
pub mod get_protocol_version_upgrade_state_request {
|
|
1552
1812
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1553
1813
|
#[serde(rename_all = "snake_case")]
|
|
1814
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1554
1815
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1555
1816
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1556
1817
|
pub struct GetProtocolVersionUpgradeStateRequestV0 {
|
|
@@ -1573,6 +1834,7 @@ pub mod get_protocol_version_upgrade_state_request {
|
|
|
1573
1834
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1574
1835
|
)]
|
|
1575
1836
|
#[grpc_versions(0)]
|
|
1837
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1576
1838
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1577
1839
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1578
1840
|
pub struct GetProtocolVersionUpgradeStateResponse {
|
|
@@ -1585,6 +1847,7 @@ pub struct GetProtocolVersionUpgradeStateResponse {
|
|
|
1585
1847
|
pub mod get_protocol_version_upgrade_state_response {
|
|
1586
1848
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1587
1849
|
#[serde(rename_all = "snake_case")]
|
|
1850
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1588
1851
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1589
1852
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1590
1853
|
pub struct GetProtocolVersionUpgradeStateResponseV0 {
|
|
@@ -1602,6 +1865,7 @@ pub mod get_protocol_version_upgrade_state_response {
|
|
|
1602
1865
|
pub mod get_protocol_version_upgrade_state_response_v0 {
|
|
1603
1866
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1604
1867
|
#[serde(rename_all = "snake_case")]
|
|
1868
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1605
1869
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1606
1870
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1607
1871
|
pub struct Versions {
|
|
@@ -1610,6 +1874,7 @@ pub mod get_protocol_version_upgrade_state_response {
|
|
|
1610
1874
|
}
|
|
1611
1875
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1612
1876
|
#[serde(rename_all = "snake_case")]
|
|
1877
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1613
1878
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1614
1879
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1615
1880
|
pub struct VersionEntry {
|
|
@@ -1642,6 +1907,7 @@ pub mod get_protocol_version_upgrade_state_response {
|
|
|
1642
1907
|
#[serde(rename_all = "snake_case")]
|
|
1643
1908
|
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1644
1909
|
#[grpc_versions(0)]
|
|
1910
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1645
1911
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1646
1912
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1647
1913
|
pub struct GetProtocolVersionUpgradeVoteStatusRequest {
|
|
@@ -1657,6 +1923,7 @@ pub struct GetProtocolVersionUpgradeVoteStatusRequest {
|
|
|
1657
1923
|
pub mod get_protocol_version_upgrade_vote_status_request {
|
|
1658
1924
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1659
1925
|
#[serde(rename_all = "snake_case")]
|
|
1926
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1660
1927
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1661
1928
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1662
1929
|
pub struct GetProtocolVersionUpgradeVoteStatusRequestV0 {
|
|
@@ -1683,6 +1950,7 @@ pub mod get_protocol_version_upgrade_vote_status_request {
|
|
|
1683
1950
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1684
1951
|
)]
|
|
1685
1952
|
#[grpc_versions(0)]
|
|
1953
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1686
1954
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1687
1955
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1688
1956
|
pub struct GetProtocolVersionUpgradeVoteStatusResponse {
|
|
@@ -1698,6 +1966,7 @@ pub struct GetProtocolVersionUpgradeVoteStatusResponse {
|
|
|
1698
1966
|
pub mod get_protocol_version_upgrade_vote_status_response {
|
|
1699
1967
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1700
1968
|
#[serde(rename_all = "snake_case")]
|
|
1969
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1701
1970
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1702
1971
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1703
1972
|
pub struct GetProtocolVersionUpgradeVoteStatusResponseV0 {
|
|
@@ -1715,6 +1984,7 @@ pub mod get_protocol_version_upgrade_vote_status_response {
|
|
|
1715
1984
|
pub mod get_protocol_version_upgrade_vote_status_response_v0 {
|
|
1716
1985
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1717
1986
|
#[serde(rename_all = "snake_case")]
|
|
1987
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1718
1988
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1719
1989
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1720
1990
|
pub struct VersionSignals {
|
|
@@ -1723,6 +1993,7 @@ pub mod get_protocol_version_upgrade_vote_status_response {
|
|
|
1723
1993
|
}
|
|
1724
1994
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1725
1995
|
#[serde(rename_all = "snake_case")]
|
|
1996
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1726
1997
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1727
1998
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1728
1999
|
pub struct VersionSignal {
|
|
@@ -1753,6 +2024,7 @@ pub mod get_protocol_version_upgrade_vote_status_response {
|
|
|
1753
2024
|
}
|
|
1754
2025
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1755
2026
|
#[serde(rename_all = "snake_case")]
|
|
2027
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1756
2028
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1757
2029
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1758
2030
|
pub struct GetEpochsInfoRequest {
|
|
@@ -1763,6 +2035,7 @@ pub struct GetEpochsInfoRequest {
|
|
|
1763
2035
|
pub mod get_epochs_info_request {
|
|
1764
2036
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1765
2037
|
#[serde(rename_all = "snake_case")]
|
|
2038
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1766
2039
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1767
2040
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1768
2041
|
pub struct GetEpochsInfoRequestV0 {
|
|
@@ -1791,6 +2064,7 @@ pub mod get_epochs_info_request {
|
|
|
1791
2064
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1792
2065
|
)]
|
|
1793
2066
|
#[grpc_versions(0)]
|
|
2067
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1794
2068
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1795
2069
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1796
2070
|
pub struct GetEpochsInfoResponse {
|
|
@@ -1801,6 +2075,7 @@ pub struct GetEpochsInfoResponse {
|
|
|
1801
2075
|
pub mod get_epochs_info_response {
|
|
1802
2076
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1803
2077
|
#[serde(rename_all = "snake_case")]
|
|
2078
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1804
2079
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1805
2080
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1806
2081
|
pub struct GetEpochsInfoResponseV0 {
|
|
@@ -1813,6 +2088,7 @@ pub mod get_epochs_info_response {
|
|
|
1813
2088
|
pub mod get_epochs_info_response_v0 {
|
|
1814
2089
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1815
2090
|
#[serde(rename_all = "snake_case")]
|
|
2091
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1816
2092
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1817
2093
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1818
2094
|
pub struct EpochInfos {
|
|
@@ -1821,6 +2097,7 @@ pub mod get_epochs_info_response {
|
|
|
1821
2097
|
}
|
|
1822
2098
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1823
2099
|
#[serde(rename_all = "snake_case")]
|
|
2100
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1824
2101
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1825
2102
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1826
2103
|
pub struct EpochInfo {
|
|
@@ -2057,6 +2334,66 @@ pub mod platform_client {
|
|
|
2057
2334
|
);
|
|
2058
2335
|
self.inner.unary(req, path, codec).await
|
|
2059
2336
|
}
|
|
2337
|
+
pub async fn get_identity_nonce(
|
|
2338
|
+
&mut self,
|
|
2339
|
+
request: impl tonic::IntoRequest<super::GetIdentityNonceRequest>,
|
|
2340
|
+
) -> std::result::Result<
|
|
2341
|
+
tonic::Response<super::GetIdentityNonceResponse>,
|
|
2342
|
+
tonic::Status,
|
|
2343
|
+
> {
|
|
2344
|
+
self.inner
|
|
2345
|
+
.ready()
|
|
2346
|
+
.await
|
|
2347
|
+
.map_err(|e| {
|
|
2348
|
+
tonic::Status::new(
|
|
2349
|
+
tonic::Code::Unknown,
|
|
2350
|
+
format!("Service was not ready: {}", e.into()),
|
|
2351
|
+
)
|
|
2352
|
+
})?;
|
|
2353
|
+
let codec = tonic::codec::ProstCodec::default();
|
|
2354
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
2355
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentityNonce",
|
|
2356
|
+
);
|
|
2357
|
+
let mut req = request.into_request();
|
|
2358
|
+
req.extensions_mut()
|
|
2359
|
+
.insert(
|
|
2360
|
+
GrpcMethod::new(
|
|
2361
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
2362
|
+
"getIdentityNonce",
|
|
2363
|
+
),
|
|
2364
|
+
);
|
|
2365
|
+
self.inner.unary(req, path, codec).await
|
|
2366
|
+
}
|
|
2367
|
+
pub async fn get_identity_contract_nonce(
|
|
2368
|
+
&mut self,
|
|
2369
|
+
request: impl tonic::IntoRequest<super::GetIdentityContractNonceRequest>,
|
|
2370
|
+
) -> std::result::Result<
|
|
2371
|
+
tonic::Response<super::GetIdentityContractNonceResponse>,
|
|
2372
|
+
tonic::Status,
|
|
2373
|
+
> {
|
|
2374
|
+
self.inner
|
|
2375
|
+
.ready()
|
|
2376
|
+
.await
|
|
2377
|
+
.map_err(|e| {
|
|
2378
|
+
tonic::Status::new(
|
|
2379
|
+
tonic::Code::Unknown,
|
|
2380
|
+
format!("Service was not ready: {}", e.into()),
|
|
2381
|
+
)
|
|
2382
|
+
})?;
|
|
2383
|
+
let codec = tonic::codec::ProstCodec::default();
|
|
2384
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
2385
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentityContractNonce",
|
|
2386
|
+
);
|
|
2387
|
+
let mut req = request.into_request();
|
|
2388
|
+
req.extensions_mut()
|
|
2389
|
+
.insert(
|
|
2390
|
+
GrpcMethod::new(
|
|
2391
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
2392
|
+
"getIdentityContractNonce",
|
|
2393
|
+
),
|
|
2394
|
+
);
|
|
2395
|
+
self.inner.unary(req, path, codec).await
|
|
2396
|
+
}
|
|
2060
2397
|
pub async fn get_identity_balance(
|
|
2061
2398
|
&mut self,
|
|
2062
2399
|
request: impl tonic::IntoRequest<super::GetIdentityBalanceRequest>,
|