@dashevo/dapi-grpc 0.25.22 → 1.0.0-beta.1
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 +35 -16
- package/build.rs +139 -56
- package/clients/core/v0/nodejs/CorePromiseClient.js +124 -13
- package/clients/core/v0/nodejs/core_pbjs.js +1922 -987
- package/clients/core/v0/nodejs/core_protoc.js +1291 -645
- package/clients/core/v0/rust/core_example.rs +1 -1
- package/clients/core/v0/web/CorePromiseClient.js +49 -5
- package/clients/core/v0/web/core_pb.d.ts +173 -89
- package/clients/core/v0/web/core_pb.js +1291 -645
- package/clients/core/v0/web/core_pb_service.d.ts +59 -10
- package/clients/core/v0/web/core_pb_service.js +134 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +208 -14
- package/clients/platform/v0/nodejs/platform_pbjs.js +22951 -9938
- package/clients/platform/v0/nodejs/platform_protoc.js +22332 -9091
- package/clients/platform/v0/rust/platform_example.rs +1 -1
- package/clients/platform/v0/web/PlatformPromiseClient.js +64 -8
- package/clients/platform/v0/web/platform_pb.d.ts +2057 -302
- package/clients/platform/v0/web/platform_pb.js +22332 -9091
- package/clients/platform/v0/web/platform_pb_service.d.ts +187 -35
- package/clients/platform/v0/web/platform_pb_service.js +355 -35
- package/package.json +2 -2
- package/protos/core/v0/core.proto +45 -23
- package/protos/platform/v0/platform.proto +429 -50
- package/src/lib.rs +26 -2
- package/src/mock/serde_mockable.rs +105 -0
- package/src/mock.rs +130 -0
- package/test/unit/clients/core/v0/nodejs/CorePromiseClient.spec.js +27 -6
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +55 -1
- package/test/unit/getCoreDefinition.spec.js +5 -2
- package/src/core/proto/org.dash.platform.dapi.v0.rs +0 -666
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +0 -2481
|
@@ -1,2481 +0,0 @@
|
|
|
1
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2
|
-
#[serde(rename_all = "snake_case")]
|
|
3
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
4
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5
|
-
pub struct Proof {
|
|
6
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
7
|
-
#[serde(with = "serde_bytes")]
|
|
8
|
-
pub grovedb_proof: ::prost::alloc::vec::Vec<u8>,
|
|
9
|
-
#[prost(bytes = "vec", tag = "2")]
|
|
10
|
-
#[serde(with = "serde_bytes")]
|
|
11
|
-
pub quorum_hash: ::prost::alloc::vec::Vec<u8>,
|
|
12
|
-
#[prost(bytes = "vec", tag = "3")]
|
|
13
|
-
#[serde(with = "serde_bytes")]
|
|
14
|
-
pub signature: ::prost::alloc::vec::Vec<u8>,
|
|
15
|
-
#[prost(uint32, tag = "4")]
|
|
16
|
-
pub round: u32,
|
|
17
|
-
#[prost(bytes = "vec", tag = "5")]
|
|
18
|
-
#[serde(with = "serde_bytes")]
|
|
19
|
-
pub block_id_hash: ::prost::alloc::vec::Vec<u8>,
|
|
20
|
-
#[prost(uint32, tag = "6")]
|
|
21
|
-
pub quorum_type: u32,
|
|
22
|
-
}
|
|
23
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
24
|
-
#[serde(rename_all = "snake_case")]
|
|
25
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
26
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
27
|
-
pub struct ResponseMetadata {
|
|
28
|
-
#[prost(uint64, tag = "1")]
|
|
29
|
-
#[serde(with = "crate::deserialization::from_to_string")]
|
|
30
|
-
pub height: u64,
|
|
31
|
-
#[prost(uint32, tag = "2")]
|
|
32
|
-
pub core_chain_locked_height: u32,
|
|
33
|
-
#[prost(uint32, tag = "3")]
|
|
34
|
-
pub epoch: u32,
|
|
35
|
-
#[prost(uint64, tag = "4")]
|
|
36
|
-
#[serde(with = "crate::deserialization::from_to_string")]
|
|
37
|
-
pub time_ms: u64,
|
|
38
|
-
#[prost(uint32, tag = "5")]
|
|
39
|
-
pub protocol_version: u32,
|
|
40
|
-
#[prost(string, tag = "6")]
|
|
41
|
-
pub chain_id: ::prost::alloc::string::String,
|
|
42
|
-
}
|
|
43
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
44
|
-
#[serde(rename_all = "snake_case")]
|
|
45
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
46
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
47
|
-
pub struct StateTransitionBroadcastError {
|
|
48
|
-
#[prost(uint32, tag = "1")]
|
|
49
|
-
pub code: u32,
|
|
50
|
-
#[prost(string, tag = "2")]
|
|
51
|
-
pub message: ::prost::alloc::string::String,
|
|
52
|
-
#[prost(bytes = "vec", tag = "3")]
|
|
53
|
-
pub data: ::prost::alloc::vec::Vec<u8>,
|
|
54
|
-
}
|
|
55
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
56
|
-
#[serde(rename_all = "snake_case")]
|
|
57
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
58
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
59
|
-
pub struct BroadcastStateTransitionRequest {
|
|
60
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
61
|
-
pub state_transition: ::prost::alloc::vec::Vec<u8>,
|
|
62
|
-
}
|
|
63
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
64
|
-
#[serde(rename_all = "snake_case")]
|
|
65
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
66
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
67
|
-
pub struct BroadcastStateTransitionResponse {}
|
|
68
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
69
|
-
#[serde(rename_all = "snake_case")]
|
|
70
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
71
|
-
#[grpc_versions(0)]
|
|
72
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
73
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
74
|
-
pub struct GetIdentityRequest {
|
|
75
|
-
#[prost(oneof = "get_identity_request::Version", tags = "1")]
|
|
76
|
-
pub version: ::core::option::Option<get_identity_request::Version>,
|
|
77
|
-
}
|
|
78
|
-
/// Nested message and enum types in `GetIdentityRequest`.
|
|
79
|
-
pub mod get_identity_request {
|
|
80
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
81
|
-
#[serde(rename_all = "snake_case")]
|
|
82
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
83
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
84
|
-
pub struct GetIdentityRequestV0 {
|
|
85
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
86
|
-
#[serde(with = "serde_bytes")]
|
|
87
|
-
pub id: ::prost::alloc::vec::Vec<u8>,
|
|
88
|
-
#[prost(bool, tag = "2")]
|
|
89
|
-
pub prove: bool,
|
|
90
|
-
}
|
|
91
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
92
|
-
#[serde(rename_all = "snake_case")]
|
|
93
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
94
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
95
|
-
pub enum Version {
|
|
96
|
-
#[prost(message, tag = "1")]
|
|
97
|
-
V0(GetIdentityRequestV0),
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
101
|
-
#[serde(rename_all = "snake_case")]
|
|
102
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
103
|
-
#[grpc_versions(0)]
|
|
104
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
105
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
106
|
-
pub struct GetIdentityBalanceRequest {
|
|
107
|
-
#[prost(oneof = "get_identity_balance_request::Version", tags = "1")]
|
|
108
|
-
pub version: ::core::option::Option<get_identity_balance_request::Version>,
|
|
109
|
-
}
|
|
110
|
-
/// Nested message and enum types in `GetIdentityBalanceRequest`.
|
|
111
|
-
pub mod get_identity_balance_request {
|
|
112
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
113
|
-
#[serde(rename_all = "snake_case")]
|
|
114
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
115
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
116
|
-
pub struct GetIdentityBalanceRequestV0 {
|
|
117
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
118
|
-
#[serde(with = "serde_bytes")]
|
|
119
|
-
pub id: ::prost::alloc::vec::Vec<u8>,
|
|
120
|
-
#[prost(bool, tag = "2")]
|
|
121
|
-
pub prove: bool,
|
|
122
|
-
}
|
|
123
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
124
|
-
#[serde(rename_all = "snake_case")]
|
|
125
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
126
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
127
|
-
pub enum Version {
|
|
128
|
-
#[prost(message, tag = "1")]
|
|
129
|
-
V0(GetIdentityBalanceRequestV0),
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
133
|
-
#[serde(rename_all = "snake_case")]
|
|
134
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
135
|
-
#[grpc_versions(0)]
|
|
136
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
137
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
138
|
-
pub struct GetIdentityBalanceAndRevisionRequest {
|
|
139
|
-
#[prost(oneof = "get_identity_balance_and_revision_request::Version", tags = "1")]
|
|
140
|
-
pub version: ::core::option::Option<
|
|
141
|
-
get_identity_balance_and_revision_request::Version,
|
|
142
|
-
>,
|
|
143
|
-
}
|
|
144
|
-
/// Nested message and enum types in `GetIdentityBalanceAndRevisionRequest`.
|
|
145
|
-
pub mod get_identity_balance_and_revision_request {
|
|
146
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
147
|
-
#[serde(rename_all = "snake_case")]
|
|
148
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
149
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
150
|
-
pub struct GetIdentityBalanceAndRevisionRequestV0 {
|
|
151
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
152
|
-
#[serde(with = "serde_bytes")]
|
|
153
|
-
pub id: ::prost::alloc::vec::Vec<u8>,
|
|
154
|
-
#[prost(bool, tag = "2")]
|
|
155
|
-
pub prove: bool,
|
|
156
|
-
}
|
|
157
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
158
|
-
#[serde(rename_all = "snake_case")]
|
|
159
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
160
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
161
|
-
pub enum Version {
|
|
162
|
-
#[prost(message, tag = "1")]
|
|
163
|
-
V0(GetIdentityBalanceAndRevisionRequestV0),
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
167
|
-
#[serde(rename_all = "snake_case")]
|
|
168
|
-
#[derive(
|
|
169
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
170
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
171
|
-
)]
|
|
172
|
-
#[grpc_versions(0)]
|
|
173
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
174
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
175
|
-
pub struct GetIdentityResponse {
|
|
176
|
-
#[prost(oneof = "get_identity_response::Version", tags = "1")]
|
|
177
|
-
pub version: ::core::option::Option<get_identity_response::Version>,
|
|
178
|
-
}
|
|
179
|
-
/// Nested message and enum types in `GetIdentityResponse`.
|
|
180
|
-
pub mod get_identity_response {
|
|
181
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
182
|
-
#[serde(rename_all = "snake_case")]
|
|
183
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
184
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
185
|
-
pub struct GetIdentityResponseV0 {
|
|
186
|
-
#[prost(message, optional, tag = "3")]
|
|
187
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
188
|
-
#[prost(oneof = "get_identity_response_v0::Result", tags = "1, 2")]
|
|
189
|
-
pub result: ::core::option::Option<get_identity_response_v0::Result>,
|
|
190
|
-
}
|
|
191
|
-
/// Nested message and enum types in `GetIdentityResponseV0`.
|
|
192
|
-
pub mod get_identity_response_v0 {
|
|
193
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
194
|
-
#[serde(rename_all = "snake_case")]
|
|
195
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
196
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
197
|
-
pub enum Result {
|
|
198
|
-
#[prost(bytes, tag = "1")]
|
|
199
|
-
Identity(::prost::alloc::vec::Vec<u8>),
|
|
200
|
-
#[prost(message, tag = "2")]
|
|
201
|
-
Proof(super::super::Proof),
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
205
|
-
#[serde(rename_all = "snake_case")]
|
|
206
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
207
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
208
|
-
pub enum Version {
|
|
209
|
-
#[prost(message, tag = "1")]
|
|
210
|
-
V0(GetIdentityResponseV0),
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
214
|
-
#[serde(rename_all = "snake_case")]
|
|
215
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
216
|
-
#[grpc_versions(0)]
|
|
217
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
218
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
219
|
-
pub struct GetIdentitiesRequest {
|
|
220
|
-
#[prost(oneof = "get_identities_request::Version", tags = "1")]
|
|
221
|
-
pub version: ::core::option::Option<get_identities_request::Version>,
|
|
222
|
-
}
|
|
223
|
-
/// Nested message and enum types in `GetIdentitiesRequest`.
|
|
224
|
-
pub mod get_identities_request {
|
|
225
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
226
|
-
#[serde(rename_all = "snake_case")]
|
|
227
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
228
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
229
|
-
pub struct GetIdentitiesRequestV0 {
|
|
230
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
231
|
-
#[serde(with = "crate::deserialization::vec_base64string")]
|
|
232
|
-
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
233
|
-
#[prost(bool, tag = "2")]
|
|
234
|
-
pub prove: bool,
|
|
235
|
-
}
|
|
236
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
237
|
-
#[serde(rename_all = "snake_case")]
|
|
238
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
239
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
240
|
-
pub enum Version {
|
|
241
|
-
#[prost(message, tag = "1")]
|
|
242
|
-
V0(GetIdentitiesRequestV0),
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
246
|
-
#[serde(rename_all = "snake_case")]
|
|
247
|
-
#[derive(
|
|
248
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
249
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
250
|
-
)]
|
|
251
|
-
#[grpc_versions(0)]
|
|
252
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
253
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
254
|
-
pub struct GetIdentitiesResponse {
|
|
255
|
-
#[prost(oneof = "get_identities_response::Version", tags = "1")]
|
|
256
|
-
pub version: ::core::option::Option<get_identities_response::Version>,
|
|
257
|
-
}
|
|
258
|
-
/// Nested message and enum types in `GetIdentitiesResponse`.
|
|
259
|
-
pub mod get_identities_response {
|
|
260
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
261
|
-
#[serde(rename_all = "snake_case")]
|
|
262
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
263
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
264
|
-
pub struct IdentityValue {
|
|
265
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
266
|
-
pub value: ::prost::alloc::vec::Vec<u8>,
|
|
267
|
-
}
|
|
268
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
269
|
-
#[serde(rename_all = "snake_case")]
|
|
270
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
271
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
272
|
-
pub struct IdentityEntry {
|
|
273
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
274
|
-
pub key: ::prost::alloc::vec::Vec<u8>,
|
|
275
|
-
#[prost(message, optional, tag = "2")]
|
|
276
|
-
pub value: ::core::option::Option<IdentityValue>,
|
|
277
|
-
}
|
|
278
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
279
|
-
#[serde(rename_all = "snake_case")]
|
|
280
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
281
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
282
|
-
pub struct Identities {
|
|
283
|
-
#[prost(message, repeated, tag = "1")]
|
|
284
|
-
pub identity_entries: ::prost::alloc::vec::Vec<IdentityEntry>,
|
|
285
|
-
}
|
|
286
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
287
|
-
#[serde(rename_all = "snake_case")]
|
|
288
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
289
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
290
|
-
pub struct GetIdentitiesResponseV0 {
|
|
291
|
-
#[prost(message, optional, tag = "3")]
|
|
292
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
293
|
-
#[prost(oneof = "get_identities_response_v0::Result", tags = "1, 2")]
|
|
294
|
-
pub result: ::core::option::Option<get_identities_response_v0::Result>,
|
|
295
|
-
}
|
|
296
|
-
/// Nested message and enum types in `GetIdentitiesResponseV0`.
|
|
297
|
-
pub mod get_identities_response_v0 {
|
|
298
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
299
|
-
#[serde(rename_all = "snake_case")]
|
|
300
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
301
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
302
|
-
pub enum Result {
|
|
303
|
-
#[prost(message, tag = "1")]
|
|
304
|
-
Identities(super::Identities),
|
|
305
|
-
#[prost(message, tag = "2")]
|
|
306
|
-
Proof(super::super::Proof),
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
310
|
-
#[serde(rename_all = "snake_case")]
|
|
311
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
312
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
313
|
-
pub enum Version {
|
|
314
|
-
#[prost(message, tag = "1")]
|
|
315
|
-
V0(GetIdentitiesResponseV0),
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
319
|
-
#[serde(rename_all = "snake_case")]
|
|
320
|
-
#[derive(
|
|
321
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
322
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
323
|
-
)]
|
|
324
|
-
#[grpc_versions(0)]
|
|
325
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
326
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
327
|
-
pub struct GetIdentityBalanceResponse {
|
|
328
|
-
#[prost(oneof = "get_identity_balance_response::Version", tags = "1")]
|
|
329
|
-
pub version: ::core::option::Option<get_identity_balance_response::Version>,
|
|
330
|
-
}
|
|
331
|
-
/// Nested message and enum types in `GetIdentityBalanceResponse`.
|
|
332
|
-
pub mod get_identity_balance_response {
|
|
333
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
334
|
-
#[serde(rename_all = "snake_case")]
|
|
335
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
336
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
337
|
-
pub struct GetIdentityBalanceResponseV0 {
|
|
338
|
-
#[prost(message, optional, tag = "3")]
|
|
339
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
340
|
-
#[prost(oneof = "get_identity_balance_response_v0::Result", tags = "1, 2")]
|
|
341
|
-
pub result: ::core::option::Option<get_identity_balance_response_v0::Result>,
|
|
342
|
-
}
|
|
343
|
-
/// Nested message and enum types in `GetIdentityBalanceResponseV0`.
|
|
344
|
-
pub mod get_identity_balance_response_v0 {
|
|
345
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
346
|
-
#[serde(rename_all = "snake_case")]
|
|
347
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
348
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
349
|
-
pub enum Result {
|
|
350
|
-
#[prost(uint64, tag = "1")]
|
|
351
|
-
Balance(u64),
|
|
352
|
-
#[prost(message, tag = "2")]
|
|
353
|
-
Proof(super::super::Proof),
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
357
|
-
#[serde(rename_all = "snake_case")]
|
|
358
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
359
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
360
|
-
pub enum Version {
|
|
361
|
-
#[prost(message, tag = "1")]
|
|
362
|
-
V0(GetIdentityBalanceResponseV0),
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
366
|
-
#[serde(rename_all = "snake_case")]
|
|
367
|
-
#[derive(
|
|
368
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
369
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
370
|
-
)]
|
|
371
|
-
#[grpc_versions(0)]
|
|
372
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
373
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
374
|
-
pub struct GetIdentityBalanceAndRevisionResponse {
|
|
375
|
-
#[prost(oneof = "get_identity_balance_and_revision_response::Version", tags = "1")]
|
|
376
|
-
pub version: ::core::option::Option<
|
|
377
|
-
get_identity_balance_and_revision_response::Version,
|
|
378
|
-
>,
|
|
379
|
-
}
|
|
380
|
-
/// Nested message and enum types in `GetIdentityBalanceAndRevisionResponse`.
|
|
381
|
-
pub mod get_identity_balance_and_revision_response {
|
|
382
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
383
|
-
#[serde(rename_all = "snake_case")]
|
|
384
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
385
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
386
|
-
pub struct GetIdentityBalanceAndRevisionResponseV0 {
|
|
387
|
-
#[prost(message, optional, tag = "3")]
|
|
388
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
389
|
-
#[prost(
|
|
390
|
-
oneof = "get_identity_balance_and_revision_response_v0::Result",
|
|
391
|
-
tags = "1, 2"
|
|
392
|
-
)]
|
|
393
|
-
pub result: ::core::option::Option<
|
|
394
|
-
get_identity_balance_and_revision_response_v0::Result,
|
|
395
|
-
>,
|
|
396
|
-
}
|
|
397
|
-
/// Nested message and enum types in `GetIdentityBalanceAndRevisionResponseV0`.
|
|
398
|
-
pub mod get_identity_balance_and_revision_response_v0 {
|
|
399
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
400
|
-
#[serde(rename_all = "snake_case")]
|
|
401
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
402
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
403
|
-
pub struct BalanceAndRevision {
|
|
404
|
-
#[prost(uint64, tag = "1")]
|
|
405
|
-
pub balance: u64,
|
|
406
|
-
#[prost(uint64, tag = "2")]
|
|
407
|
-
pub revision: u64,
|
|
408
|
-
}
|
|
409
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
410
|
-
#[serde(rename_all = "snake_case")]
|
|
411
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
412
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
413
|
-
pub enum Result {
|
|
414
|
-
#[prost(message, tag = "1")]
|
|
415
|
-
BalanceAndRevision(BalanceAndRevision),
|
|
416
|
-
#[prost(message, tag = "2")]
|
|
417
|
-
Proof(super::super::Proof),
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
421
|
-
#[serde(rename_all = "snake_case")]
|
|
422
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
423
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
424
|
-
pub enum Version {
|
|
425
|
-
#[prost(message, tag = "1")]
|
|
426
|
-
V0(GetIdentityBalanceAndRevisionResponseV0),
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
430
|
-
#[serde(rename_all = "snake_case")]
|
|
431
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
432
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
433
|
-
pub struct KeyRequestType {
|
|
434
|
-
#[prost(oneof = "key_request_type::Request", tags = "1, 2, 3")]
|
|
435
|
-
pub request: ::core::option::Option<key_request_type::Request>,
|
|
436
|
-
}
|
|
437
|
-
/// Nested message and enum types in `KeyRequestType`.
|
|
438
|
-
pub mod key_request_type {
|
|
439
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
440
|
-
#[serde(rename_all = "snake_case")]
|
|
441
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
442
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
443
|
-
pub enum Request {
|
|
444
|
-
#[prost(message, tag = "1")]
|
|
445
|
-
AllKeys(super::AllKeys),
|
|
446
|
-
#[prost(message, tag = "2")]
|
|
447
|
-
SpecificKeys(super::SpecificKeys),
|
|
448
|
-
#[prost(message, tag = "3")]
|
|
449
|
-
SearchKey(super::SearchKey),
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
453
|
-
#[serde(rename_all = "snake_case")]
|
|
454
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
455
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
456
|
-
pub struct AllKeys {}
|
|
457
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
458
|
-
#[serde(rename_all = "snake_case")]
|
|
459
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
460
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
461
|
-
pub struct SpecificKeys {
|
|
462
|
-
#[prost(uint32, repeated, tag = "1")]
|
|
463
|
-
pub key_ids: ::prost::alloc::vec::Vec<u32>,
|
|
464
|
-
}
|
|
465
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
466
|
-
#[serde(rename_all = "snake_case")]
|
|
467
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
468
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
469
|
-
pub struct SearchKey {
|
|
470
|
-
#[prost(map = "uint32, message", tag = "1")]
|
|
471
|
-
pub purpose_map: ::std::collections::HashMap<u32, SecurityLevelMap>,
|
|
472
|
-
}
|
|
473
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
474
|
-
#[serde(rename_all = "snake_case")]
|
|
475
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
476
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
477
|
-
pub struct SecurityLevelMap {
|
|
478
|
-
#[prost(
|
|
479
|
-
map = "uint32, enumeration(security_level_map::KeyKindRequestType)",
|
|
480
|
-
tag = "1"
|
|
481
|
-
)]
|
|
482
|
-
pub security_level_map: ::std::collections::HashMap<u32, i32>,
|
|
483
|
-
}
|
|
484
|
-
/// Nested message and enum types in `SecurityLevelMap`.
|
|
485
|
-
pub mod security_level_map {
|
|
486
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
487
|
-
#[serde(rename_all = "snake_case")]
|
|
488
|
-
#[derive(
|
|
489
|
-
Clone,
|
|
490
|
-
Copy,
|
|
491
|
-
Debug,
|
|
492
|
-
PartialEq,
|
|
493
|
-
Eq,
|
|
494
|
-
Hash,
|
|
495
|
-
PartialOrd,
|
|
496
|
-
Ord,
|
|
497
|
-
::prost::Enumeration
|
|
498
|
-
)]
|
|
499
|
-
#[repr(i32)]
|
|
500
|
-
pub enum KeyKindRequestType {
|
|
501
|
-
CurrentKeyOfKindRequest = 0,
|
|
502
|
-
AllKeysOfKindRequest = 1,
|
|
503
|
-
}
|
|
504
|
-
impl KeyKindRequestType {
|
|
505
|
-
/// String value of the enum field names used in the ProtoBuf definition.
|
|
506
|
-
///
|
|
507
|
-
/// The values are not transformed in any way and thus are considered stable
|
|
508
|
-
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
|
|
509
|
-
pub fn as_str_name(&self) -> &'static str {
|
|
510
|
-
match self {
|
|
511
|
-
KeyKindRequestType::CurrentKeyOfKindRequest => {
|
|
512
|
-
"CURRENT_KEY_OF_KIND_REQUEST"
|
|
513
|
-
}
|
|
514
|
-
KeyKindRequestType::AllKeysOfKindRequest => "ALL_KEYS_OF_KIND_REQUEST",
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
/// Creates an enum from field names used in the ProtoBuf definition.
|
|
518
|
-
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
|
|
519
|
-
match value {
|
|
520
|
-
"CURRENT_KEY_OF_KIND_REQUEST" => Some(Self::CurrentKeyOfKindRequest),
|
|
521
|
-
"ALL_KEYS_OF_KIND_REQUEST" => Some(Self::AllKeysOfKindRequest),
|
|
522
|
-
_ => None,
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
528
|
-
#[serde(rename_all = "snake_case")]
|
|
529
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
530
|
-
#[grpc_versions(0)]
|
|
531
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
532
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
533
|
-
pub struct GetIdentityKeysRequest {
|
|
534
|
-
#[prost(oneof = "get_identity_keys_request::Version", tags = "1")]
|
|
535
|
-
pub version: ::core::option::Option<get_identity_keys_request::Version>,
|
|
536
|
-
}
|
|
537
|
-
/// Nested message and enum types in `GetIdentityKeysRequest`.
|
|
538
|
-
pub mod get_identity_keys_request {
|
|
539
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
540
|
-
#[serde(rename_all = "snake_case")]
|
|
541
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
542
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
543
|
-
pub struct GetIdentityKeysRequestV0 {
|
|
544
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
545
|
-
#[serde(with = "serde_bytes")]
|
|
546
|
-
pub identity_id: ::prost::alloc::vec::Vec<u8>,
|
|
547
|
-
#[prost(message, optional, tag = "2")]
|
|
548
|
-
pub request_type: ::core::option::Option<super::KeyRequestType>,
|
|
549
|
-
#[prost(message, optional, tag = "3")]
|
|
550
|
-
pub limit: ::core::option::Option<u32>,
|
|
551
|
-
#[prost(message, optional, tag = "4")]
|
|
552
|
-
pub offset: ::core::option::Option<u32>,
|
|
553
|
-
#[prost(bool, tag = "5")]
|
|
554
|
-
pub prove: bool,
|
|
555
|
-
}
|
|
556
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
557
|
-
#[serde(rename_all = "snake_case")]
|
|
558
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
559
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
560
|
-
pub enum Version {
|
|
561
|
-
#[prost(message, tag = "1")]
|
|
562
|
-
V0(GetIdentityKeysRequestV0),
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
566
|
-
#[serde(rename_all = "snake_case")]
|
|
567
|
-
#[derive(
|
|
568
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
569
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
570
|
-
)]
|
|
571
|
-
#[grpc_versions(0)]
|
|
572
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
573
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
574
|
-
pub struct GetIdentityKeysResponse {
|
|
575
|
-
#[prost(oneof = "get_identity_keys_response::Version", tags = "1")]
|
|
576
|
-
pub version: ::core::option::Option<get_identity_keys_response::Version>,
|
|
577
|
-
}
|
|
578
|
-
/// Nested message and enum types in `GetIdentityKeysResponse`.
|
|
579
|
-
pub mod get_identity_keys_response {
|
|
580
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
581
|
-
#[serde(rename_all = "snake_case")]
|
|
582
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
583
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
584
|
-
pub struct GetIdentityKeysResponseV0 {
|
|
585
|
-
#[prost(message, optional, tag = "3")]
|
|
586
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
587
|
-
#[prost(oneof = "get_identity_keys_response_v0::Result", tags = "1, 2")]
|
|
588
|
-
pub result: ::core::option::Option<get_identity_keys_response_v0::Result>,
|
|
589
|
-
}
|
|
590
|
-
/// Nested message and enum types in `GetIdentityKeysResponseV0`.
|
|
591
|
-
pub mod get_identity_keys_response_v0 {
|
|
592
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
593
|
-
#[serde(rename_all = "snake_case")]
|
|
594
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
595
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
596
|
-
pub struct Keys {
|
|
597
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
598
|
-
pub keys_bytes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
599
|
-
}
|
|
600
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
601
|
-
#[serde(rename_all = "snake_case")]
|
|
602
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
603
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
604
|
-
pub enum Result {
|
|
605
|
-
#[prost(message, tag = "1")]
|
|
606
|
-
Keys(Keys),
|
|
607
|
-
#[prost(message, tag = "2")]
|
|
608
|
-
Proof(super::super::Proof),
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
612
|
-
#[serde(rename_all = "snake_case")]
|
|
613
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
614
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
615
|
-
pub enum Version {
|
|
616
|
-
#[prost(message, tag = "1")]
|
|
617
|
-
V0(GetIdentityKeysResponseV0),
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
621
|
-
#[serde(rename_all = "snake_case")]
|
|
622
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
623
|
-
#[grpc_versions(0)]
|
|
624
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
625
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
626
|
-
pub struct GetProofsRequest {
|
|
627
|
-
#[prost(oneof = "get_proofs_request::Version", tags = "1")]
|
|
628
|
-
pub version: ::core::option::Option<get_proofs_request::Version>,
|
|
629
|
-
}
|
|
630
|
-
/// Nested message and enum types in `GetProofsRequest`.
|
|
631
|
-
pub mod get_proofs_request {
|
|
632
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
633
|
-
#[serde(rename_all = "snake_case")]
|
|
634
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
635
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
636
|
-
pub struct GetProofsRequestV0 {
|
|
637
|
-
#[prost(message, repeated, tag = "1")]
|
|
638
|
-
pub identities: ::prost::alloc::vec::Vec<get_proofs_request_v0::IdentityRequest>,
|
|
639
|
-
#[prost(message, repeated, tag = "2")]
|
|
640
|
-
pub contracts: ::prost::alloc::vec::Vec<get_proofs_request_v0::ContractRequest>,
|
|
641
|
-
#[prost(message, repeated, tag = "3")]
|
|
642
|
-
pub documents: ::prost::alloc::vec::Vec<get_proofs_request_v0::DocumentRequest>,
|
|
643
|
-
}
|
|
644
|
-
/// Nested message and enum types in `GetProofsRequestV0`.
|
|
645
|
-
pub mod get_proofs_request_v0 {
|
|
646
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
647
|
-
#[serde(rename_all = "snake_case")]
|
|
648
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
649
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
650
|
-
pub struct DocumentRequest {
|
|
651
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
652
|
-
pub contract_id: ::prost::alloc::vec::Vec<u8>,
|
|
653
|
-
#[prost(string, tag = "2")]
|
|
654
|
-
pub document_type: ::prost::alloc::string::String,
|
|
655
|
-
#[prost(bool, tag = "3")]
|
|
656
|
-
pub document_type_keeps_history: bool,
|
|
657
|
-
#[prost(bytes = "vec", tag = "4")]
|
|
658
|
-
pub document_id: ::prost::alloc::vec::Vec<u8>,
|
|
659
|
-
}
|
|
660
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
661
|
-
#[serde(rename_all = "snake_case")]
|
|
662
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
663
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
664
|
-
pub struct IdentityRequest {
|
|
665
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
666
|
-
#[serde(with = "serde_bytes")]
|
|
667
|
-
pub identity_id: ::prost::alloc::vec::Vec<u8>,
|
|
668
|
-
#[prost(enumeration = "identity_request::Type", tag = "2")]
|
|
669
|
-
pub request_type: i32,
|
|
670
|
-
}
|
|
671
|
-
/// Nested message and enum types in `IdentityRequest`.
|
|
672
|
-
pub mod identity_request {
|
|
673
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
674
|
-
#[serde(rename_all = "snake_case")]
|
|
675
|
-
#[derive(
|
|
676
|
-
Clone,
|
|
677
|
-
Copy,
|
|
678
|
-
Debug,
|
|
679
|
-
PartialEq,
|
|
680
|
-
Eq,
|
|
681
|
-
Hash,
|
|
682
|
-
PartialOrd,
|
|
683
|
-
Ord,
|
|
684
|
-
::prost::Enumeration
|
|
685
|
-
)]
|
|
686
|
-
#[repr(i32)]
|
|
687
|
-
pub enum Type {
|
|
688
|
-
FullIdentity = 0,
|
|
689
|
-
Balance = 1,
|
|
690
|
-
Keys = 2,
|
|
691
|
-
}
|
|
692
|
-
impl Type {
|
|
693
|
-
/// String value of the enum field names used in the ProtoBuf definition.
|
|
694
|
-
///
|
|
695
|
-
/// The values are not transformed in any way and thus are considered stable
|
|
696
|
-
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
|
|
697
|
-
pub fn as_str_name(&self) -> &'static str {
|
|
698
|
-
match self {
|
|
699
|
-
Type::FullIdentity => "FULL_IDENTITY",
|
|
700
|
-
Type::Balance => "BALANCE",
|
|
701
|
-
Type::Keys => "KEYS",
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
/// Creates an enum from field names used in the ProtoBuf definition.
|
|
705
|
-
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
|
|
706
|
-
match value {
|
|
707
|
-
"FULL_IDENTITY" => Some(Self::FullIdentity),
|
|
708
|
-
"BALANCE" => Some(Self::Balance),
|
|
709
|
-
"KEYS" => Some(Self::Keys),
|
|
710
|
-
_ => None,
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
716
|
-
#[serde(rename_all = "snake_case")]
|
|
717
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
718
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
719
|
-
pub struct ContractRequest {
|
|
720
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
721
|
-
pub contract_id: ::prost::alloc::vec::Vec<u8>,
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
725
|
-
#[serde(rename_all = "snake_case")]
|
|
726
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
727
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
728
|
-
pub enum Version {
|
|
729
|
-
#[prost(message, tag = "1")]
|
|
730
|
-
V0(GetProofsRequestV0),
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
734
|
-
#[serde(rename_all = "snake_case")]
|
|
735
|
-
#[derive(
|
|
736
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
737
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
738
|
-
)]
|
|
739
|
-
#[grpc_versions(0)]
|
|
740
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
741
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
742
|
-
pub struct GetProofsResponse {
|
|
743
|
-
#[prost(oneof = "get_proofs_response::Version", tags = "1")]
|
|
744
|
-
pub version: ::core::option::Option<get_proofs_response::Version>,
|
|
745
|
-
}
|
|
746
|
-
/// Nested message and enum types in `GetProofsResponse`.
|
|
747
|
-
pub mod get_proofs_response {
|
|
748
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
749
|
-
#[serde(rename_all = "snake_case")]
|
|
750
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
751
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
752
|
-
pub struct GetProofsResponseV0 {
|
|
753
|
-
#[prost(message, optional, tag = "2")]
|
|
754
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
755
|
-
#[prost(oneof = "get_proofs_response_v0::Result", tags = "1")]
|
|
756
|
-
pub result: ::core::option::Option<get_proofs_response_v0::Result>,
|
|
757
|
-
}
|
|
758
|
-
/// Nested message and enum types in `GetProofsResponseV0`.
|
|
759
|
-
pub mod get_proofs_response_v0 {
|
|
760
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
761
|
-
#[serde(rename_all = "snake_case")]
|
|
762
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
763
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
764
|
-
pub enum Result {
|
|
765
|
-
#[prost(message, tag = "1")]
|
|
766
|
-
Proof(super::super::Proof),
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
770
|
-
#[serde(rename_all = "snake_case")]
|
|
771
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
772
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
773
|
-
pub enum Version {
|
|
774
|
-
#[prost(message, tag = "1")]
|
|
775
|
-
V0(GetProofsResponseV0),
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
779
|
-
#[serde(rename_all = "snake_case")]
|
|
780
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
781
|
-
#[grpc_versions(0)]
|
|
782
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
783
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
784
|
-
pub struct GetDataContractRequest {
|
|
785
|
-
#[prost(oneof = "get_data_contract_request::Version", tags = "1")]
|
|
786
|
-
pub version: ::core::option::Option<get_data_contract_request::Version>,
|
|
787
|
-
}
|
|
788
|
-
/// Nested message and enum types in `GetDataContractRequest`.
|
|
789
|
-
pub mod get_data_contract_request {
|
|
790
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
791
|
-
#[serde(rename_all = "snake_case")]
|
|
792
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
793
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
794
|
-
pub struct GetDataContractRequestV0 {
|
|
795
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
796
|
-
#[serde(with = "serde_bytes")]
|
|
797
|
-
pub id: ::prost::alloc::vec::Vec<u8>,
|
|
798
|
-
#[prost(bool, tag = "2")]
|
|
799
|
-
pub prove: bool,
|
|
800
|
-
}
|
|
801
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
802
|
-
#[serde(rename_all = "snake_case")]
|
|
803
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
804
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
805
|
-
pub enum Version {
|
|
806
|
-
#[prost(message, tag = "1")]
|
|
807
|
-
V0(GetDataContractRequestV0),
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
811
|
-
#[serde(rename_all = "snake_case")]
|
|
812
|
-
#[derive(
|
|
813
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
814
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
815
|
-
)]
|
|
816
|
-
#[grpc_versions(0)]
|
|
817
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
818
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
819
|
-
pub struct GetDataContractResponse {
|
|
820
|
-
#[prost(oneof = "get_data_contract_response::Version", tags = "1")]
|
|
821
|
-
pub version: ::core::option::Option<get_data_contract_response::Version>,
|
|
822
|
-
}
|
|
823
|
-
/// Nested message and enum types in `GetDataContractResponse`.
|
|
824
|
-
pub mod get_data_contract_response {
|
|
825
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
826
|
-
#[serde(rename_all = "snake_case")]
|
|
827
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
828
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
829
|
-
pub struct GetDataContractResponseV0 {
|
|
830
|
-
#[prost(message, optional, tag = "3")]
|
|
831
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
832
|
-
#[prost(oneof = "get_data_contract_response_v0::Result", tags = "1, 2")]
|
|
833
|
-
pub result: ::core::option::Option<get_data_contract_response_v0::Result>,
|
|
834
|
-
}
|
|
835
|
-
/// Nested message and enum types in `GetDataContractResponseV0`.
|
|
836
|
-
pub mod get_data_contract_response_v0 {
|
|
837
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
838
|
-
#[serde(rename_all = "snake_case")]
|
|
839
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
840
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
841
|
-
pub enum Result {
|
|
842
|
-
#[prost(bytes, tag = "1")]
|
|
843
|
-
DataContract(::prost::alloc::vec::Vec<u8>),
|
|
844
|
-
#[prost(message, tag = "2")]
|
|
845
|
-
Proof(super::super::Proof),
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
849
|
-
#[serde(rename_all = "snake_case")]
|
|
850
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
851
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
852
|
-
pub enum Version {
|
|
853
|
-
#[prost(message, tag = "1")]
|
|
854
|
-
V0(GetDataContractResponseV0),
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
858
|
-
#[serde(rename_all = "snake_case")]
|
|
859
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
860
|
-
#[grpc_versions(0)]
|
|
861
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
862
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
863
|
-
pub struct GetDataContractsRequest {
|
|
864
|
-
#[prost(oneof = "get_data_contracts_request::Version", tags = "1")]
|
|
865
|
-
pub version: ::core::option::Option<get_data_contracts_request::Version>,
|
|
866
|
-
}
|
|
867
|
-
/// Nested message and enum types in `GetDataContractsRequest`.
|
|
868
|
-
pub mod get_data_contracts_request {
|
|
869
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
870
|
-
#[serde(rename_all = "snake_case")]
|
|
871
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
872
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
873
|
-
pub struct GetDataContractsRequestV0 {
|
|
874
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
875
|
-
#[serde(with = "crate::deserialization::vec_base64string")]
|
|
876
|
-
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
877
|
-
#[prost(bool, tag = "2")]
|
|
878
|
-
pub prove: bool,
|
|
879
|
-
}
|
|
880
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
881
|
-
#[serde(rename_all = "snake_case")]
|
|
882
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
883
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
884
|
-
pub enum Version {
|
|
885
|
-
#[prost(message, tag = "1")]
|
|
886
|
-
V0(GetDataContractsRequestV0),
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
890
|
-
#[serde(rename_all = "snake_case")]
|
|
891
|
-
#[derive(
|
|
892
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
893
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
894
|
-
)]
|
|
895
|
-
#[grpc_versions(0)]
|
|
896
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
897
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
898
|
-
pub struct GetDataContractsResponse {
|
|
899
|
-
#[prost(oneof = "get_data_contracts_response::Version", tags = "1")]
|
|
900
|
-
pub version: ::core::option::Option<get_data_contracts_response::Version>,
|
|
901
|
-
}
|
|
902
|
-
/// Nested message and enum types in `GetDataContractsResponse`.
|
|
903
|
-
pub mod get_data_contracts_response {
|
|
904
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
905
|
-
#[serde(rename_all = "snake_case")]
|
|
906
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
907
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
908
|
-
pub struct DataContractEntry {
|
|
909
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
910
|
-
pub identifier: ::prost::alloc::vec::Vec<u8>,
|
|
911
|
-
#[prost(message, optional, tag = "2")]
|
|
912
|
-
pub data_contract: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
|
|
913
|
-
}
|
|
914
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
915
|
-
#[serde(rename_all = "snake_case")]
|
|
916
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
917
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
918
|
-
pub struct DataContracts {
|
|
919
|
-
#[prost(message, repeated, tag = "1")]
|
|
920
|
-
pub data_contract_entries: ::prost::alloc::vec::Vec<DataContractEntry>,
|
|
921
|
-
}
|
|
922
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
923
|
-
#[serde(rename_all = "snake_case")]
|
|
924
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
925
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
926
|
-
pub struct GetDataContractsResponseV0 {
|
|
927
|
-
#[prost(message, optional, tag = "3")]
|
|
928
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
929
|
-
#[prost(oneof = "get_data_contracts_response_v0::Result", tags = "1, 2")]
|
|
930
|
-
pub result: ::core::option::Option<get_data_contracts_response_v0::Result>,
|
|
931
|
-
}
|
|
932
|
-
/// Nested message and enum types in `GetDataContractsResponseV0`.
|
|
933
|
-
pub mod get_data_contracts_response_v0 {
|
|
934
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
935
|
-
#[serde(rename_all = "snake_case")]
|
|
936
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
937
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
938
|
-
pub enum Result {
|
|
939
|
-
#[prost(message, tag = "1")]
|
|
940
|
-
DataContracts(super::DataContracts),
|
|
941
|
-
#[prost(message, tag = "2")]
|
|
942
|
-
Proof(super::super::Proof),
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
946
|
-
#[serde(rename_all = "snake_case")]
|
|
947
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
948
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
949
|
-
pub enum Version {
|
|
950
|
-
#[prost(message, tag = "1")]
|
|
951
|
-
V0(GetDataContractsResponseV0),
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
955
|
-
#[serde(rename_all = "snake_case")]
|
|
956
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
957
|
-
#[grpc_versions(0)]
|
|
958
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
959
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
960
|
-
pub struct GetDataContractHistoryRequest {
|
|
961
|
-
#[prost(oneof = "get_data_contract_history_request::Version", tags = "1")]
|
|
962
|
-
pub version: ::core::option::Option<get_data_contract_history_request::Version>,
|
|
963
|
-
}
|
|
964
|
-
/// Nested message and enum types in `GetDataContractHistoryRequest`.
|
|
965
|
-
pub mod get_data_contract_history_request {
|
|
966
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
967
|
-
#[serde(rename_all = "snake_case")]
|
|
968
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
969
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
970
|
-
pub struct GetDataContractHistoryRequestV0 {
|
|
971
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
972
|
-
#[serde(with = "serde_bytes")]
|
|
973
|
-
pub id: ::prost::alloc::vec::Vec<u8>,
|
|
974
|
-
#[prost(message, optional, tag = "2")]
|
|
975
|
-
pub limit: ::core::option::Option<u32>,
|
|
976
|
-
#[prost(message, optional, tag = "3")]
|
|
977
|
-
pub offset: ::core::option::Option<u32>,
|
|
978
|
-
#[prost(uint64, tag = "4")]
|
|
979
|
-
#[serde(with = "crate::deserialization::from_to_string")]
|
|
980
|
-
pub start_at_ms: u64,
|
|
981
|
-
#[prost(bool, tag = "5")]
|
|
982
|
-
pub prove: bool,
|
|
983
|
-
}
|
|
984
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
985
|
-
#[serde(rename_all = "snake_case")]
|
|
986
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
987
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
988
|
-
pub enum Version {
|
|
989
|
-
#[prost(message, tag = "1")]
|
|
990
|
-
V0(GetDataContractHistoryRequestV0),
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
994
|
-
#[serde(rename_all = "snake_case")]
|
|
995
|
-
#[derive(
|
|
996
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
997
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
998
|
-
)]
|
|
999
|
-
#[grpc_versions(0)]
|
|
1000
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1001
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1002
|
-
pub struct GetDataContractHistoryResponse {
|
|
1003
|
-
#[prost(oneof = "get_data_contract_history_response::Version", tags = "1")]
|
|
1004
|
-
pub version: ::core::option::Option<get_data_contract_history_response::Version>,
|
|
1005
|
-
}
|
|
1006
|
-
/// Nested message and enum types in `GetDataContractHistoryResponse`.
|
|
1007
|
-
pub mod get_data_contract_history_response {
|
|
1008
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1009
|
-
#[serde(rename_all = "snake_case")]
|
|
1010
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1011
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1012
|
-
pub struct GetDataContractHistoryResponseV0 {
|
|
1013
|
-
#[prost(message, optional, tag = "3")]
|
|
1014
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1015
|
-
#[prost(oneof = "get_data_contract_history_response_v0::Result", tags = "1, 2")]
|
|
1016
|
-
pub result: ::core::option::Option<
|
|
1017
|
-
get_data_contract_history_response_v0::Result,
|
|
1018
|
-
>,
|
|
1019
|
-
}
|
|
1020
|
-
/// Nested message and enum types in `GetDataContractHistoryResponseV0`.
|
|
1021
|
-
pub mod get_data_contract_history_response_v0 {
|
|
1022
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1023
|
-
#[serde(rename_all = "snake_case")]
|
|
1024
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1025
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1026
|
-
pub struct DataContractHistoryEntry {
|
|
1027
|
-
#[prost(uint64, tag = "1")]
|
|
1028
|
-
pub date: u64,
|
|
1029
|
-
#[prost(bytes = "vec", tag = "2")]
|
|
1030
|
-
pub value: ::prost::alloc::vec::Vec<u8>,
|
|
1031
|
-
}
|
|
1032
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1033
|
-
#[serde(rename_all = "snake_case")]
|
|
1034
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1035
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1036
|
-
pub struct DataContractHistory {
|
|
1037
|
-
#[prost(message, repeated, tag = "1")]
|
|
1038
|
-
pub data_contract_entries: ::prost::alloc::vec::Vec<
|
|
1039
|
-
DataContractHistoryEntry,
|
|
1040
|
-
>,
|
|
1041
|
-
}
|
|
1042
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1043
|
-
#[serde(rename_all = "snake_case")]
|
|
1044
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1045
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1046
|
-
pub enum Result {
|
|
1047
|
-
#[prost(message, tag = "1")]
|
|
1048
|
-
DataContractHistory(DataContractHistory),
|
|
1049
|
-
#[prost(message, tag = "2")]
|
|
1050
|
-
Proof(super::super::Proof),
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1054
|
-
#[serde(rename_all = "snake_case")]
|
|
1055
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1056
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1057
|
-
pub enum Version {
|
|
1058
|
-
#[prost(message, tag = "1")]
|
|
1059
|
-
V0(GetDataContractHistoryResponseV0),
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1063
|
-
#[serde(rename_all = "snake_case")]
|
|
1064
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1065
|
-
#[grpc_versions(0)]
|
|
1066
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1067
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1068
|
-
pub struct GetDocumentsRequest {
|
|
1069
|
-
#[prost(oneof = "get_documents_request::Version", tags = "1")]
|
|
1070
|
-
pub version: ::core::option::Option<get_documents_request::Version>,
|
|
1071
|
-
}
|
|
1072
|
-
/// Nested message and enum types in `GetDocumentsRequest`.
|
|
1073
|
-
pub mod get_documents_request {
|
|
1074
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1075
|
-
#[serde(rename_all = "snake_case")]
|
|
1076
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1077
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1078
|
-
pub struct GetDocumentsRequestV0 {
|
|
1079
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1080
|
-
#[serde(with = "serde_bytes")]
|
|
1081
|
-
pub data_contract_id: ::prost::alloc::vec::Vec<u8>,
|
|
1082
|
-
#[prost(string, tag = "2")]
|
|
1083
|
-
pub document_type: ::prost::alloc::string::String,
|
|
1084
|
-
#[prost(bytes = "vec", tag = "3")]
|
|
1085
|
-
#[serde(with = "serde_bytes")]
|
|
1086
|
-
pub r#where: ::prost::alloc::vec::Vec<u8>,
|
|
1087
|
-
#[prost(bytes = "vec", tag = "4")]
|
|
1088
|
-
#[serde(with = "serde_bytes")]
|
|
1089
|
-
pub order_by: ::prost::alloc::vec::Vec<u8>,
|
|
1090
|
-
#[prost(uint32, tag = "5")]
|
|
1091
|
-
pub limit: u32,
|
|
1092
|
-
#[prost(bool, tag = "8")]
|
|
1093
|
-
pub prove: bool,
|
|
1094
|
-
#[prost(oneof = "get_documents_request_v0::Start", tags = "6, 7")]
|
|
1095
|
-
pub start: ::core::option::Option<get_documents_request_v0::Start>,
|
|
1096
|
-
}
|
|
1097
|
-
/// Nested message and enum types in `GetDocumentsRequestV0`.
|
|
1098
|
-
pub mod get_documents_request_v0 {
|
|
1099
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1100
|
-
#[serde(rename_all = "snake_case")]
|
|
1101
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1102
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1103
|
-
pub enum Start {
|
|
1104
|
-
#[prost(bytes, tag = "6")]
|
|
1105
|
-
StartAfter(::prost::alloc::vec::Vec<u8>),
|
|
1106
|
-
#[prost(bytes, tag = "7")]
|
|
1107
|
-
StartAt(::prost::alloc::vec::Vec<u8>),
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1111
|
-
#[serde(rename_all = "snake_case")]
|
|
1112
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1113
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1114
|
-
pub enum Version {
|
|
1115
|
-
#[prost(message, tag = "1")]
|
|
1116
|
-
V0(GetDocumentsRequestV0),
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1120
|
-
#[serde(rename_all = "snake_case")]
|
|
1121
|
-
#[derive(
|
|
1122
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1123
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1124
|
-
)]
|
|
1125
|
-
#[grpc_versions(0)]
|
|
1126
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1127
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1128
|
-
pub struct GetDocumentsResponse {
|
|
1129
|
-
#[prost(oneof = "get_documents_response::Version", tags = "1")]
|
|
1130
|
-
pub version: ::core::option::Option<get_documents_response::Version>,
|
|
1131
|
-
}
|
|
1132
|
-
/// Nested message and enum types in `GetDocumentsResponse`.
|
|
1133
|
-
pub mod get_documents_response {
|
|
1134
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1135
|
-
#[serde(rename_all = "snake_case")]
|
|
1136
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1137
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1138
|
-
pub struct GetDocumentsResponseV0 {
|
|
1139
|
-
#[prost(message, optional, tag = "3")]
|
|
1140
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1141
|
-
#[prost(oneof = "get_documents_response_v0::Result", tags = "1, 2")]
|
|
1142
|
-
pub result: ::core::option::Option<get_documents_response_v0::Result>,
|
|
1143
|
-
}
|
|
1144
|
-
/// Nested message and enum types in `GetDocumentsResponseV0`.
|
|
1145
|
-
pub mod get_documents_response_v0 {
|
|
1146
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1147
|
-
#[serde(rename_all = "snake_case")]
|
|
1148
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1149
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1150
|
-
pub struct Documents {
|
|
1151
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
1152
|
-
pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
1153
|
-
}
|
|
1154
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1155
|
-
#[serde(rename_all = "snake_case")]
|
|
1156
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1157
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1158
|
-
pub enum Result {
|
|
1159
|
-
#[prost(message, tag = "1")]
|
|
1160
|
-
Documents(Documents),
|
|
1161
|
-
#[prost(message, tag = "2")]
|
|
1162
|
-
Proof(super::super::Proof),
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1166
|
-
#[serde(rename_all = "snake_case")]
|
|
1167
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1168
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1169
|
-
pub enum Version {
|
|
1170
|
-
#[prost(message, tag = "1")]
|
|
1171
|
-
V0(GetDocumentsResponseV0),
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1175
|
-
#[serde(rename_all = "snake_case")]
|
|
1176
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1177
|
-
#[grpc_versions(0)]
|
|
1178
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1179
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1180
|
-
pub struct GetIdentitiesByPublicKeyHashesRequest {
|
|
1181
|
-
#[prost(oneof = "get_identities_by_public_key_hashes_request::Version", tags = "1")]
|
|
1182
|
-
pub version: ::core::option::Option<
|
|
1183
|
-
get_identities_by_public_key_hashes_request::Version,
|
|
1184
|
-
>,
|
|
1185
|
-
}
|
|
1186
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesRequest`.
|
|
1187
|
-
pub mod get_identities_by_public_key_hashes_request {
|
|
1188
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1189
|
-
#[serde(rename_all = "snake_case")]
|
|
1190
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1191
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1192
|
-
pub struct GetIdentitiesByPublicKeyHashesRequestV0 {
|
|
1193
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
1194
|
-
#[serde(with = "crate::deserialization::vec_base64string")]
|
|
1195
|
-
pub public_key_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
1196
|
-
#[prost(bool, tag = "2")]
|
|
1197
|
-
pub prove: bool,
|
|
1198
|
-
}
|
|
1199
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1200
|
-
#[serde(rename_all = "snake_case")]
|
|
1201
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1202
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1203
|
-
pub enum Version {
|
|
1204
|
-
#[prost(message, tag = "1")]
|
|
1205
|
-
V0(GetIdentitiesByPublicKeyHashesRequestV0),
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1209
|
-
#[serde(rename_all = "snake_case")]
|
|
1210
|
-
#[derive(
|
|
1211
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1212
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1213
|
-
)]
|
|
1214
|
-
#[grpc_versions(0)]
|
|
1215
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1216
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1217
|
-
pub struct GetIdentitiesByPublicKeyHashesResponse {
|
|
1218
|
-
#[prost(oneof = "get_identities_by_public_key_hashes_response::Version", tags = "1")]
|
|
1219
|
-
pub version: ::core::option::Option<
|
|
1220
|
-
get_identities_by_public_key_hashes_response::Version,
|
|
1221
|
-
>,
|
|
1222
|
-
}
|
|
1223
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponse`.
|
|
1224
|
-
pub mod get_identities_by_public_key_hashes_response {
|
|
1225
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1226
|
-
#[serde(rename_all = "snake_case")]
|
|
1227
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1228
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1229
|
-
pub struct PublicKeyHashIdentityEntry {
|
|
1230
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1231
|
-
#[serde(with = "serde_bytes")]
|
|
1232
|
-
pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1233
|
-
#[prost(message, optional, tag = "2")]
|
|
1234
|
-
pub value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
|
|
1235
|
-
}
|
|
1236
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1237
|
-
#[serde(rename_all = "snake_case")]
|
|
1238
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1239
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1240
|
-
pub struct IdentitiesByPublicKeyHashes {
|
|
1241
|
-
#[prost(message, repeated, tag = "1")]
|
|
1242
|
-
pub identity_entries: ::prost::alloc::vec::Vec<PublicKeyHashIdentityEntry>,
|
|
1243
|
-
}
|
|
1244
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1245
|
-
#[serde(rename_all = "snake_case")]
|
|
1246
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1247
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1248
|
-
pub struct GetIdentitiesByPublicKeyHashesResponseV0 {
|
|
1249
|
-
#[prost(message, optional, tag = "3")]
|
|
1250
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1251
|
-
#[prost(
|
|
1252
|
-
oneof = "get_identities_by_public_key_hashes_response_v0::Result",
|
|
1253
|
-
tags = "1, 2"
|
|
1254
|
-
)]
|
|
1255
|
-
pub result: ::core::option::Option<
|
|
1256
|
-
get_identities_by_public_key_hashes_response_v0::Result,
|
|
1257
|
-
>,
|
|
1258
|
-
}
|
|
1259
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponseV0`.
|
|
1260
|
-
pub mod get_identities_by_public_key_hashes_response_v0 {
|
|
1261
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1262
|
-
#[serde(rename_all = "snake_case")]
|
|
1263
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1264
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1265
|
-
pub enum Result {
|
|
1266
|
-
#[prost(message, tag = "1")]
|
|
1267
|
-
Identities(super::IdentitiesByPublicKeyHashes),
|
|
1268
|
-
#[prost(message, tag = "2")]
|
|
1269
|
-
Proof(super::super::Proof),
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1273
|
-
#[serde(rename_all = "snake_case")]
|
|
1274
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1275
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1276
|
-
pub enum Version {
|
|
1277
|
-
#[prost(message, tag = "1")]
|
|
1278
|
-
V0(GetIdentitiesByPublicKeyHashesResponseV0),
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1282
|
-
#[serde(rename_all = "snake_case")]
|
|
1283
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1284
|
-
#[grpc_versions(0)]
|
|
1285
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1286
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1287
|
-
pub struct GetIdentityByPublicKeyHashRequest {
|
|
1288
|
-
#[prost(oneof = "get_identity_by_public_key_hash_request::Version", tags = "1")]
|
|
1289
|
-
pub version: ::core::option::Option<
|
|
1290
|
-
get_identity_by_public_key_hash_request::Version,
|
|
1291
|
-
>,
|
|
1292
|
-
}
|
|
1293
|
-
/// Nested message and enum types in `GetIdentityByPublicKeyHashRequest`.
|
|
1294
|
-
pub mod get_identity_by_public_key_hash_request {
|
|
1295
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1296
|
-
#[serde(rename_all = "snake_case")]
|
|
1297
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1298
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1299
|
-
pub struct GetIdentityByPublicKeyHashRequestV0 {
|
|
1300
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1301
|
-
#[serde(with = "serde_bytes")]
|
|
1302
|
-
pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1303
|
-
#[prost(bool, tag = "2")]
|
|
1304
|
-
pub prove: bool,
|
|
1305
|
-
}
|
|
1306
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1307
|
-
#[serde(rename_all = "snake_case")]
|
|
1308
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1309
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1310
|
-
pub enum Version {
|
|
1311
|
-
#[prost(message, tag = "1")]
|
|
1312
|
-
V0(GetIdentityByPublicKeyHashRequestV0),
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1316
|
-
#[serde(rename_all = "snake_case")]
|
|
1317
|
-
#[derive(
|
|
1318
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1319
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1320
|
-
)]
|
|
1321
|
-
#[grpc_versions(0)]
|
|
1322
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1323
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1324
|
-
pub struct GetIdentityByPublicKeyHashResponse {
|
|
1325
|
-
#[prost(oneof = "get_identity_by_public_key_hash_response::Version", tags = "1")]
|
|
1326
|
-
pub version: ::core::option::Option<
|
|
1327
|
-
get_identity_by_public_key_hash_response::Version,
|
|
1328
|
-
>,
|
|
1329
|
-
}
|
|
1330
|
-
/// Nested message and enum types in `GetIdentityByPublicKeyHashResponse`.
|
|
1331
|
-
pub mod get_identity_by_public_key_hash_response {
|
|
1332
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1333
|
-
#[serde(rename_all = "snake_case")]
|
|
1334
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1335
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1336
|
-
pub struct GetIdentityByPublicKeyHashResponseV0 {
|
|
1337
|
-
#[prost(message, optional, tag = "3")]
|
|
1338
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1339
|
-
#[prost(
|
|
1340
|
-
oneof = "get_identity_by_public_key_hash_response_v0::Result",
|
|
1341
|
-
tags = "1, 2"
|
|
1342
|
-
)]
|
|
1343
|
-
pub result: ::core::option::Option<
|
|
1344
|
-
get_identity_by_public_key_hash_response_v0::Result,
|
|
1345
|
-
>,
|
|
1346
|
-
}
|
|
1347
|
-
/// Nested message and enum types in `GetIdentityByPublicKeyHashResponseV0`.
|
|
1348
|
-
pub mod get_identity_by_public_key_hash_response_v0 {
|
|
1349
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1350
|
-
#[serde(rename_all = "snake_case")]
|
|
1351
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1352
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1353
|
-
pub enum Result {
|
|
1354
|
-
#[prost(bytes, tag = "1")]
|
|
1355
|
-
Identity(::prost::alloc::vec::Vec<u8>),
|
|
1356
|
-
#[prost(message, tag = "2")]
|
|
1357
|
-
Proof(super::super::Proof),
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1361
|
-
#[serde(rename_all = "snake_case")]
|
|
1362
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1363
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1364
|
-
pub enum Version {
|
|
1365
|
-
#[prost(message, tag = "1")]
|
|
1366
|
-
V0(GetIdentityByPublicKeyHashResponseV0),
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1370
|
-
#[serde(rename_all = "snake_case")]
|
|
1371
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1372
|
-
#[grpc_versions(0)]
|
|
1373
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1374
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1375
|
-
pub struct WaitForStateTransitionResultRequest {
|
|
1376
|
-
#[prost(oneof = "wait_for_state_transition_result_request::Version", tags = "1")]
|
|
1377
|
-
pub version: ::core::option::Option<
|
|
1378
|
-
wait_for_state_transition_result_request::Version,
|
|
1379
|
-
>,
|
|
1380
|
-
}
|
|
1381
|
-
/// Nested message and enum types in `WaitForStateTransitionResultRequest`.
|
|
1382
|
-
pub mod wait_for_state_transition_result_request {
|
|
1383
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1384
|
-
#[serde(rename_all = "snake_case")]
|
|
1385
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1386
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1387
|
-
pub struct WaitForStateTransitionResultRequestV0 {
|
|
1388
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1389
|
-
pub state_transition_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1390
|
-
#[prost(bool, tag = "2")]
|
|
1391
|
-
pub prove: bool,
|
|
1392
|
-
}
|
|
1393
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1394
|
-
#[serde(rename_all = "snake_case")]
|
|
1395
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1396
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1397
|
-
pub enum Version {
|
|
1398
|
-
#[prost(message, tag = "1")]
|
|
1399
|
-
V0(WaitForStateTransitionResultRequestV0),
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1403
|
-
#[serde(rename_all = "snake_case")]
|
|
1404
|
-
#[derive(
|
|
1405
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1406
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1407
|
-
)]
|
|
1408
|
-
#[grpc_versions(0)]
|
|
1409
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1410
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1411
|
-
pub struct WaitForStateTransitionResultResponse {
|
|
1412
|
-
#[prost(oneof = "wait_for_state_transition_result_response::Version", tags = "1")]
|
|
1413
|
-
pub version: ::core::option::Option<
|
|
1414
|
-
wait_for_state_transition_result_response::Version,
|
|
1415
|
-
>,
|
|
1416
|
-
}
|
|
1417
|
-
/// Nested message and enum types in `WaitForStateTransitionResultResponse`.
|
|
1418
|
-
pub mod wait_for_state_transition_result_response {
|
|
1419
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1420
|
-
#[serde(rename_all = "snake_case")]
|
|
1421
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1422
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1423
|
-
pub struct WaitForStateTransitionResultResponseV0 {
|
|
1424
|
-
#[prost(message, optional, tag = "3")]
|
|
1425
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1426
|
-
#[prost(
|
|
1427
|
-
oneof = "wait_for_state_transition_result_response_v0::Result",
|
|
1428
|
-
tags = "1, 2"
|
|
1429
|
-
)]
|
|
1430
|
-
pub result: ::core::option::Option<
|
|
1431
|
-
wait_for_state_transition_result_response_v0::Result,
|
|
1432
|
-
>,
|
|
1433
|
-
}
|
|
1434
|
-
/// Nested message and enum types in `WaitForStateTransitionResultResponseV0`.
|
|
1435
|
-
pub mod wait_for_state_transition_result_response_v0 {
|
|
1436
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1437
|
-
#[serde(rename_all = "snake_case")]
|
|
1438
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1439
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1440
|
-
pub enum Result {
|
|
1441
|
-
#[prost(message, tag = "1")]
|
|
1442
|
-
Error(super::super::StateTransitionBroadcastError),
|
|
1443
|
-
#[prost(message, tag = "2")]
|
|
1444
|
-
Proof(super::super::Proof),
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1448
|
-
#[serde(rename_all = "snake_case")]
|
|
1449
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1450
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1451
|
-
pub enum Version {
|
|
1452
|
-
#[prost(message, tag = "1")]
|
|
1453
|
-
V0(WaitForStateTransitionResultResponseV0),
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1457
|
-
#[serde(rename_all = "snake_case")]
|
|
1458
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1459
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1460
|
-
pub struct GetConsensusParamsRequest {
|
|
1461
|
-
#[prost(oneof = "get_consensus_params_request::Version", tags = "1")]
|
|
1462
|
-
pub version: ::core::option::Option<get_consensus_params_request::Version>,
|
|
1463
|
-
}
|
|
1464
|
-
/// Nested message and enum types in `GetConsensusParamsRequest`.
|
|
1465
|
-
pub mod get_consensus_params_request {
|
|
1466
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1467
|
-
#[serde(rename_all = "snake_case")]
|
|
1468
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1469
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1470
|
-
pub struct GetConsensusParamsRequestV0 {
|
|
1471
|
-
#[prost(int32, tag = "1")]
|
|
1472
|
-
pub height: i32,
|
|
1473
|
-
#[prost(bool, tag = "2")]
|
|
1474
|
-
pub prove: bool,
|
|
1475
|
-
}
|
|
1476
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1477
|
-
#[serde(rename_all = "snake_case")]
|
|
1478
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1479
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1480
|
-
pub enum Version {
|
|
1481
|
-
#[prost(message, tag = "1")]
|
|
1482
|
-
V0(GetConsensusParamsRequestV0),
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1486
|
-
#[serde(rename_all = "snake_case")]
|
|
1487
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1488
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1489
|
-
pub struct GetConsensusParamsResponse {
|
|
1490
|
-
#[prost(oneof = "get_consensus_params_response::Version", tags = "1")]
|
|
1491
|
-
pub version: ::core::option::Option<get_consensus_params_response::Version>,
|
|
1492
|
-
}
|
|
1493
|
-
/// Nested message and enum types in `GetConsensusParamsResponse`.
|
|
1494
|
-
pub mod get_consensus_params_response {
|
|
1495
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1496
|
-
#[serde(rename_all = "snake_case")]
|
|
1497
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1498
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1499
|
-
pub struct ConsensusParamsBlock {
|
|
1500
|
-
#[prost(string, tag = "1")]
|
|
1501
|
-
pub max_bytes: ::prost::alloc::string::String,
|
|
1502
|
-
#[prost(string, tag = "2")]
|
|
1503
|
-
pub max_gas: ::prost::alloc::string::String,
|
|
1504
|
-
#[prost(string, tag = "3")]
|
|
1505
|
-
pub time_iota_ms: ::prost::alloc::string::String,
|
|
1506
|
-
}
|
|
1507
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1508
|
-
#[serde(rename_all = "snake_case")]
|
|
1509
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1510
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1511
|
-
pub struct ConsensusParamsEvidence {
|
|
1512
|
-
#[prost(string, tag = "1")]
|
|
1513
|
-
pub max_age_num_blocks: ::prost::alloc::string::String,
|
|
1514
|
-
#[prost(string, tag = "2")]
|
|
1515
|
-
pub max_age_duration: ::prost::alloc::string::String,
|
|
1516
|
-
#[prost(string, tag = "3")]
|
|
1517
|
-
pub max_bytes: ::prost::alloc::string::String,
|
|
1518
|
-
}
|
|
1519
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1520
|
-
#[serde(rename_all = "snake_case")]
|
|
1521
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1522
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1523
|
-
pub struct GetConsensusParamsResponseV0 {
|
|
1524
|
-
#[prost(message, optional, tag = "1")]
|
|
1525
|
-
pub block: ::core::option::Option<ConsensusParamsBlock>,
|
|
1526
|
-
#[prost(message, optional, tag = "2")]
|
|
1527
|
-
pub evidence: ::core::option::Option<ConsensusParamsEvidence>,
|
|
1528
|
-
}
|
|
1529
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1530
|
-
#[serde(rename_all = "snake_case")]
|
|
1531
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1532
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1533
|
-
pub enum Version {
|
|
1534
|
-
#[prost(message, tag = "1")]
|
|
1535
|
-
V0(GetConsensusParamsResponseV0),
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1539
|
-
#[serde(rename_all = "snake_case")]
|
|
1540
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1541
|
-
#[grpc_versions(0)]
|
|
1542
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1543
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1544
|
-
pub struct GetProtocolVersionUpgradeStateRequest {
|
|
1545
|
-
#[prost(oneof = "get_protocol_version_upgrade_state_request::Version", tags = "1")]
|
|
1546
|
-
pub version: ::core::option::Option<
|
|
1547
|
-
get_protocol_version_upgrade_state_request::Version,
|
|
1548
|
-
>,
|
|
1549
|
-
}
|
|
1550
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeStateRequest`.
|
|
1551
|
-
pub mod get_protocol_version_upgrade_state_request {
|
|
1552
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1553
|
-
#[serde(rename_all = "snake_case")]
|
|
1554
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1555
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1556
|
-
pub struct GetProtocolVersionUpgradeStateRequestV0 {
|
|
1557
|
-
#[prost(bool, tag = "1")]
|
|
1558
|
-
pub prove: bool,
|
|
1559
|
-
}
|
|
1560
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1561
|
-
#[serde(rename_all = "snake_case")]
|
|
1562
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1563
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1564
|
-
pub enum Version {
|
|
1565
|
-
#[prost(message, tag = "1")]
|
|
1566
|
-
V0(GetProtocolVersionUpgradeStateRequestV0),
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1570
|
-
#[serde(rename_all = "snake_case")]
|
|
1571
|
-
#[derive(
|
|
1572
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1573
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1574
|
-
)]
|
|
1575
|
-
#[grpc_versions(0)]
|
|
1576
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1577
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1578
|
-
pub struct GetProtocolVersionUpgradeStateResponse {
|
|
1579
|
-
#[prost(oneof = "get_protocol_version_upgrade_state_response::Version", tags = "1")]
|
|
1580
|
-
pub version: ::core::option::Option<
|
|
1581
|
-
get_protocol_version_upgrade_state_response::Version,
|
|
1582
|
-
>,
|
|
1583
|
-
}
|
|
1584
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeStateResponse`.
|
|
1585
|
-
pub mod get_protocol_version_upgrade_state_response {
|
|
1586
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1587
|
-
#[serde(rename_all = "snake_case")]
|
|
1588
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1589
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1590
|
-
pub struct GetProtocolVersionUpgradeStateResponseV0 {
|
|
1591
|
-
#[prost(message, optional, tag = "3")]
|
|
1592
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1593
|
-
#[prost(
|
|
1594
|
-
oneof = "get_protocol_version_upgrade_state_response_v0::Result",
|
|
1595
|
-
tags = "1, 2"
|
|
1596
|
-
)]
|
|
1597
|
-
pub result: ::core::option::Option<
|
|
1598
|
-
get_protocol_version_upgrade_state_response_v0::Result,
|
|
1599
|
-
>,
|
|
1600
|
-
}
|
|
1601
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeStateResponseV0`.
|
|
1602
|
-
pub mod get_protocol_version_upgrade_state_response_v0 {
|
|
1603
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1604
|
-
#[serde(rename_all = "snake_case")]
|
|
1605
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1606
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1607
|
-
pub struct Versions {
|
|
1608
|
-
#[prost(message, repeated, tag = "1")]
|
|
1609
|
-
pub versions: ::prost::alloc::vec::Vec<VersionEntry>,
|
|
1610
|
-
}
|
|
1611
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1612
|
-
#[serde(rename_all = "snake_case")]
|
|
1613
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1614
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1615
|
-
pub struct VersionEntry {
|
|
1616
|
-
#[prost(uint32, tag = "1")]
|
|
1617
|
-
pub version_number: u32,
|
|
1618
|
-
#[prost(uint32, tag = "2")]
|
|
1619
|
-
pub vote_count: u32,
|
|
1620
|
-
}
|
|
1621
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1622
|
-
#[serde(rename_all = "snake_case")]
|
|
1623
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1624
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1625
|
-
pub enum Result {
|
|
1626
|
-
#[prost(message, tag = "1")]
|
|
1627
|
-
Versions(Versions),
|
|
1628
|
-
#[prost(message, tag = "2")]
|
|
1629
|
-
Proof(super::super::Proof),
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1633
|
-
#[serde(rename_all = "snake_case")]
|
|
1634
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1635
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1636
|
-
pub enum Version {
|
|
1637
|
-
#[prost(message, tag = "1")]
|
|
1638
|
-
V0(GetProtocolVersionUpgradeStateResponseV0),
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1642
|
-
#[serde(rename_all = "snake_case")]
|
|
1643
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1644
|
-
#[grpc_versions(0)]
|
|
1645
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1646
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1647
|
-
pub struct GetProtocolVersionUpgradeVoteStatusRequest {
|
|
1648
|
-
#[prost(
|
|
1649
|
-
oneof = "get_protocol_version_upgrade_vote_status_request::Version",
|
|
1650
|
-
tags = "1"
|
|
1651
|
-
)]
|
|
1652
|
-
pub version: ::core::option::Option<
|
|
1653
|
-
get_protocol_version_upgrade_vote_status_request::Version,
|
|
1654
|
-
>,
|
|
1655
|
-
}
|
|
1656
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusRequest`.
|
|
1657
|
-
pub mod get_protocol_version_upgrade_vote_status_request {
|
|
1658
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1659
|
-
#[serde(rename_all = "snake_case")]
|
|
1660
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1661
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1662
|
-
pub struct GetProtocolVersionUpgradeVoteStatusRequestV0 {
|
|
1663
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1664
|
-
pub start_pro_tx_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1665
|
-
#[prost(uint32, tag = "2")]
|
|
1666
|
-
pub count: u32,
|
|
1667
|
-
#[prost(bool, tag = "3")]
|
|
1668
|
-
pub prove: bool,
|
|
1669
|
-
}
|
|
1670
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1671
|
-
#[serde(rename_all = "snake_case")]
|
|
1672
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1673
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1674
|
-
pub enum Version {
|
|
1675
|
-
#[prost(message, tag = "1")]
|
|
1676
|
-
V0(GetProtocolVersionUpgradeVoteStatusRequestV0),
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1680
|
-
#[serde(rename_all = "snake_case")]
|
|
1681
|
-
#[derive(
|
|
1682
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1683
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1684
|
-
)]
|
|
1685
|
-
#[grpc_versions(0)]
|
|
1686
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1687
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1688
|
-
pub struct GetProtocolVersionUpgradeVoteStatusResponse {
|
|
1689
|
-
#[prost(
|
|
1690
|
-
oneof = "get_protocol_version_upgrade_vote_status_response::Version",
|
|
1691
|
-
tags = "1"
|
|
1692
|
-
)]
|
|
1693
|
-
pub version: ::core::option::Option<
|
|
1694
|
-
get_protocol_version_upgrade_vote_status_response::Version,
|
|
1695
|
-
>,
|
|
1696
|
-
}
|
|
1697
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponse`.
|
|
1698
|
-
pub mod get_protocol_version_upgrade_vote_status_response {
|
|
1699
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1700
|
-
#[serde(rename_all = "snake_case")]
|
|
1701
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1702
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1703
|
-
pub struct GetProtocolVersionUpgradeVoteStatusResponseV0 {
|
|
1704
|
-
#[prost(message, optional, tag = "3")]
|
|
1705
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1706
|
-
#[prost(
|
|
1707
|
-
oneof = "get_protocol_version_upgrade_vote_status_response_v0::Result",
|
|
1708
|
-
tags = "1, 2"
|
|
1709
|
-
)]
|
|
1710
|
-
pub result: ::core::option::Option<
|
|
1711
|
-
get_protocol_version_upgrade_vote_status_response_v0::Result,
|
|
1712
|
-
>,
|
|
1713
|
-
}
|
|
1714
|
-
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponseV0`.
|
|
1715
|
-
pub mod get_protocol_version_upgrade_vote_status_response_v0 {
|
|
1716
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1717
|
-
#[serde(rename_all = "snake_case")]
|
|
1718
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1719
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1720
|
-
pub struct VersionSignals {
|
|
1721
|
-
#[prost(message, repeated, tag = "1")]
|
|
1722
|
-
pub version_signals: ::prost::alloc::vec::Vec<VersionSignal>,
|
|
1723
|
-
}
|
|
1724
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1725
|
-
#[serde(rename_all = "snake_case")]
|
|
1726
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1727
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1728
|
-
pub struct VersionSignal {
|
|
1729
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1730
|
-
pub pro_tx_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1731
|
-
#[prost(uint32, tag = "2")]
|
|
1732
|
-
pub version: u32,
|
|
1733
|
-
}
|
|
1734
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1735
|
-
#[serde(rename_all = "snake_case")]
|
|
1736
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1737
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1738
|
-
pub enum Result {
|
|
1739
|
-
#[prost(message, tag = "1")]
|
|
1740
|
-
Versions(VersionSignals),
|
|
1741
|
-
#[prost(message, tag = "2")]
|
|
1742
|
-
Proof(super::super::Proof),
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1746
|
-
#[serde(rename_all = "snake_case")]
|
|
1747
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1748
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1749
|
-
pub enum Version {
|
|
1750
|
-
#[prost(message, tag = "1")]
|
|
1751
|
-
V0(GetProtocolVersionUpgradeVoteStatusResponseV0),
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1755
|
-
#[serde(rename_all = "snake_case")]
|
|
1756
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1757
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1758
|
-
pub struct GetEpochsInfoRequest {
|
|
1759
|
-
#[prost(oneof = "get_epochs_info_request::Version", tags = "1")]
|
|
1760
|
-
pub version: ::core::option::Option<get_epochs_info_request::Version>,
|
|
1761
|
-
}
|
|
1762
|
-
/// Nested message and enum types in `GetEpochsInfoRequest`.
|
|
1763
|
-
pub mod get_epochs_info_request {
|
|
1764
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1765
|
-
#[serde(rename_all = "snake_case")]
|
|
1766
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1767
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1768
|
-
pub struct GetEpochsInfoRequestV0 {
|
|
1769
|
-
#[prost(message, optional, tag = "1")]
|
|
1770
|
-
pub start_epoch: ::core::option::Option<u32>,
|
|
1771
|
-
#[prost(uint32, tag = "2")]
|
|
1772
|
-
pub count: u32,
|
|
1773
|
-
#[prost(bool, tag = "3")]
|
|
1774
|
-
pub ascending: bool,
|
|
1775
|
-
#[prost(bool, tag = "4")]
|
|
1776
|
-
pub prove: bool,
|
|
1777
|
-
}
|
|
1778
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1779
|
-
#[serde(rename_all = "snake_case")]
|
|
1780
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1781
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1782
|
-
pub enum Version {
|
|
1783
|
-
#[prost(message, tag = "1")]
|
|
1784
|
-
V0(GetEpochsInfoRequestV0),
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1788
|
-
#[serde(rename_all = "snake_case")]
|
|
1789
|
-
#[derive(
|
|
1790
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1791
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1792
|
-
)]
|
|
1793
|
-
#[grpc_versions(0)]
|
|
1794
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1795
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1796
|
-
pub struct GetEpochsInfoResponse {
|
|
1797
|
-
#[prost(oneof = "get_epochs_info_response::Version", tags = "1")]
|
|
1798
|
-
pub version: ::core::option::Option<get_epochs_info_response::Version>,
|
|
1799
|
-
}
|
|
1800
|
-
/// Nested message and enum types in `GetEpochsInfoResponse`.
|
|
1801
|
-
pub mod get_epochs_info_response {
|
|
1802
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1803
|
-
#[serde(rename_all = "snake_case")]
|
|
1804
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1805
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1806
|
-
pub struct GetEpochsInfoResponseV0 {
|
|
1807
|
-
#[prost(message, optional, tag = "3")]
|
|
1808
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1809
|
-
#[prost(oneof = "get_epochs_info_response_v0::Result", tags = "1, 2")]
|
|
1810
|
-
pub result: ::core::option::Option<get_epochs_info_response_v0::Result>,
|
|
1811
|
-
}
|
|
1812
|
-
/// Nested message and enum types in `GetEpochsInfoResponseV0`.
|
|
1813
|
-
pub mod get_epochs_info_response_v0 {
|
|
1814
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1815
|
-
#[serde(rename_all = "snake_case")]
|
|
1816
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1817
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1818
|
-
pub struct EpochInfos {
|
|
1819
|
-
#[prost(message, repeated, tag = "1")]
|
|
1820
|
-
pub epoch_infos: ::prost::alloc::vec::Vec<EpochInfo>,
|
|
1821
|
-
}
|
|
1822
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1823
|
-
#[serde(rename_all = "snake_case")]
|
|
1824
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1825
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1826
|
-
pub struct EpochInfo {
|
|
1827
|
-
#[prost(uint32, tag = "1")]
|
|
1828
|
-
pub number: u32,
|
|
1829
|
-
#[prost(uint64, tag = "2")]
|
|
1830
|
-
pub first_block_height: u64,
|
|
1831
|
-
#[prost(uint32, tag = "3")]
|
|
1832
|
-
pub first_core_block_height: u32,
|
|
1833
|
-
#[prost(uint64, tag = "4")]
|
|
1834
|
-
pub start_time: u64,
|
|
1835
|
-
#[prost(double, tag = "5")]
|
|
1836
|
-
pub fee_multiplier: f64,
|
|
1837
|
-
}
|
|
1838
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1839
|
-
#[serde(rename_all = "snake_case")]
|
|
1840
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1841
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1842
|
-
pub enum Result {
|
|
1843
|
-
#[prost(message, tag = "1")]
|
|
1844
|
-
Epochs(EpochInfos),
|
|
1845
|
-
#[prost(message, tag = "2")]
|
|
1846
|
-
Proof(super::super::Proof),
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1850
|
-
#[serde(rename_all = "snake_case")]
|
|
1851
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1852
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1853
|
-
pub enum Version {
|
|
1854
|
-
#[prost(message, tag = "1")]
|
|
1855
|
-
V0(GetEpochsInfoResponseV0),
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
/// Generated client implementations.
|
|
1859
|
-
pub mod platform_client {
|
|
1860
|
-
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
|
|
1861
|
-
use tonic::codegen::*;
|
|
1862
|
-
use tonic::codegen::http::Uri;
|
|
1863
|
-
#[derive(Debug, Clone)]
|
|
1864
|
-
pub struct PlatformClient<T> {
|
|
1865
|
-
inner: tonic::client::Grpc<T>,
|
|
1866
|
-
}
|
|
1867
|
-
impl PlatformClient<tonic::transport::Channel> {
|
|
1868
|
-
/// Attempt to create a new client by connecting to a given endpoint.
|
|
1869
|
-
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
|
|
1870
|
-
where
|
|
1871
|
-
D: TryInto<tonic::transport::Endpoint>,
|
|
1872
|
-
D::Error: Into<StdError>,
|
|
1873
|
-
{
|
|
1874
|
-
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
|
|
1875
|
-
Ok(Self::new(conn))
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
impl<T> PlatformClient<T>
|
|
1879
|
-
where
|
|
1880
|
-
T: tonic::client::GrpcService<tonic::body::BoxBody>,
|
|
1881
|
-
T::Error: Into<StdError>,
|
|
1882
|
-
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
|
|
1883
|
-
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
|
|
1884
|
-
{
|
|
1885
|
-
pub fn new(inner: T) -> Self {
|
|
1886
|
-
let inner = tonic::client::Grpc::new(inner);
|
|
1887
|
-
Self { inner }
|
|
1888
|
-
}
|
|
1889
|
-
pub fn with_origin(inner: T, origin: Uri) -> Self {
|
|
1890
|
-
let inner = tonic::client::Grpc::with_origin(inner, origin);
|
|
1891
|
-
Self { inner }
|
|
1892
|
-
}
|
|
1893
|
-
pub fn with_interceptor<F>(
|
|
1894
|
-
inner: T,
|
|
1895
|
-
interceptor: F,
|
|
1896
|
-
) -> PlatformClient<InterceptedService<T, F>>
|
|
1897
|
-
where
|
|
1898
|
-
F: tonic::service::Interceptor,
|
|
1899
|
-
T::ResponseBody: Default,
|
|
1900
|
-
T: tonic::codegen::Service<
|
|
1901
|
-
http::Request<tonic::body::BoxBody>,
|
|
1902
|
-
Response = http::Response<
|
|
1903
|
-
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
|
|
1904
|
-
>,
|
|
1905
|
-
>,
|
|
1906
|
-
<T as tonic::codegen::Service<
|
|
1907
|
-
http::Request<tonic::body::BoxBody>,
|
|
1908
|
-
>>::Error: Into<StdError> + Send + Sync,
|
|
1909
|
-
{
|
|
1910
|
-
PlatformClient::new(InterceptedService::new(inner, interceptor))
|
|
1911
|
-
}
|
|
1912
|
-
/// Compress requests with the given encoding.
|
|
1913
|
-
///
|
|
1914
|
-
/// This requires the server to support it otherwise it might respond with an
|
|
1915
|
-
/// error.
|
|
1916
|
-
#[must_use]
|
|
1917
|
-
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
|
|
1918
|
-
self.inner = self.inner.send_compressed(encoding);
|
|
1919
|
-
self
|
|
1920
|
-
}
|
|
1921
|
-
/// Enable decompressing responses.
|
|
1922
|
-
#[must_use]
|
|
1923
|
-
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
|
|
1924
|
-
self.inner = self.inner.accept_compressed(encoding);
|
|
1925
|
-
self
|
|
1926
|
-
}
|
|
1927
|
-
/// Limits the maximum size of a decoded message.
|
|
1928
|
-
///
|
|
1929
|
-
/// Default: `4MB`
|
|
1930
|
-
#[must_use]
|
|
1931
|
-
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
|
|
1932
|
-
self.inner = self.inner.max_decoding_message_size(limit);
|
|
1933
|
-
self
|
|
1934
|
-
}
|
|
1935
|
-
/// Limits the maximum size of an encoded message.
|
|
1936
|
-
///
|
|
1937
|
-
/// Default: `usize::MAX`
|
|
1938
|
-
#[must_use]
|
|
1939
|
-
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
|
|
1940
|
-
self.inner = self.inner.max_encoding_message_size(limit);
|
|
1941
|
-
self
|
|
1942
|
-
}
|
|
1943
|
-
pub async fn broadcast_state_transition(
|
|
1944
|
-
&mut self,
|
|
1945
|
-
request: impl tonic::IntoRequest<super::BroadcastStateTransitionRequest>,
|
|
1946
|
-
) -> std::result::Result<
|
|
1947
|
-
tonic::Response<super::BroadcastStateTransitionResponse>,
|
|
1948
|
-
tonic::Status,
|
|
1949
|
-
> {
|
|
1950
|
-
self.inner
|
|
1951
|
-
.ready()
|
|
1952
|
-
.await
|
|
1953
|
-
.map_err(|e| {
|
|
1954
|
-
tonic::Status::new(
|
|
1955
|
-
tonic::Code::Unknown,
|
|
1956
|
-
format!("Service was not ready: {}", e.into()),
|
|
1957
|
-
)
|
|
1958
|
-
})?;
|
|
1959
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
1960
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
1961
|
-
"/org.dash.platform.dapi.v0.Platform/broadcastStateTransition",
|
|
1962
|
-
);
|
|
1963
|
-
let mut req = request.into_request();
|
|
1964
|
-
req.extensions_mut()
|
|
1965
|
-
.insert(
|
|
1966
|
-
GrpcMethod::new(
|
|
1967
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
1968
|
-
"broadcastStateTransition",
|
|
1969
|
-
),
|
|
1970
|
-
);
|
|
1971
|
-
self.inner.unary(req, path, codec).await
|
|
1972
|
-
}
|
|
1973
|
-
pub async fn get_identity(
|
|
1974
|
-
&mut self,
|
|
1975
|
-
request: impl tonic::IntoRequest<super::GetIdentityRequest>,
|
|
1976
|
-
) -> std::result::Result<
|
|
1977
|
-
tonic::Response<super::GetIdentityResponse>,
|
|
1978
|
-
tonic::Status,
|
|
1979
|
-
> {
|
|
1980
|
-
self.inner
|
|
1981
|
-
.ready()
|
|
1982
|
-
.await
|
|
1983
|
-
.map_err(|e| {
|
|
1984
|
-
tonic::Status::new(
|
|
1985
|
-
tonic::Code::Unknown,
|
|
1986
|
-
format!("Service was not ready: {}", e.into()),
|
|
1987
|
-
)
|
|
1988
|
-
})?;
|
|
1989
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
1990
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
1991
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentity",
|
|
1992
|
-
);
|
|
1993
|
-
let mut req = request.into_request();
|
|
1994
|
-
req.extensions_mut()
|
|
1995
|
-
.insert(
|
|
1996
|
-
GrpcMethod::new("org.dash.platform.dapi.v0.Platform", "getIdentity"),
|
|
1997
|
-
);
|
|
1998
|
-
self.inner.unary(req, path, codec).await
|
|
1999
|
-
}
|
|
2000
|
-
pub async fn get_identities(
|
|
2001
|
-
&mut self,
|
|
2002
|
-
request: impl tonic::IntoRequest<super::GetIdentitiesRequest>,
|
|
2003
|
-
) -> std::result::Result<
|
|
2004
|
-
tonic::Response<super::GetIdentitiesResponse>,
|
|
2005
|
-
tonic::Status,
|
|
2006
|
-
> {
|
|
2007
|
-
self.inner
|
|
2008
|
-
.ready()
|
|
2009
|
-
.await
|
|
2010
|
-
.map_err(|e| {
|
|
2011
|
-
tonic::Status::new(
|
|
2012
|
-
tonic::Code::Unknown,
|
|
2013
|
-
format!("Service was not ready: {}", e.into()),
|
|
2014
|
-
)
|
|
2015
|
-
})?;
|
|
2016
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2017
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2018
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentities",
|
|
2019
|
-
);
|
|
2020
|
-
let mut req = request.into_request();
|
|
2021
|
-
req.extensions_mut()
|
|
2022
|
-
.insert(
|
|
2023
|
-
GrpcMethod::new(
|
|
2024
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2025
|
-
"getIdentities",
|
|
2026
|
-
),
|
|
2027
|
-
);
|
|
2028
|
-
self.inner.unary(req, path, codec).await
|
|
2029
|
-
}
|
|
2030
|
-
pub async fn get_identity_keys(
|
|
2031
|
-
&mut self,
|
|
2032
|
-
request: impl tonic::IntoRequest<super::GetIdentityKeysRequest>,
|
|
2033
|
-
) -> std::result::Result<
|
|
2034
|
-
tonic::Response<super::GetIdentityKeysResponse>,
|
|
2035
|
-
tonic::Status,
|
|
2036
|
-
> {
|
|
2037
|
-
self.inner
|
|
2038
|
-
.ready()
|
|
2039
|
-
.await
|
|
2040
|
-
.map_err(|e| {
|
|
2041
|
-
tonic::Status::new(
|
|
2042
|
-
tonic::Code::Unknown,
|
|
2043
|
-
format!("Service was not ready: {}", e.into()),
|
|
2044
|
-
)
|
|
2045
|
-
})?;
|
|
2046
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2047
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2048
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentityKeys",
|
|
2049
|
-
);
|
|
2050
|
-
let mut req = request.into_request();
|
|
2051
|
-
req.extensions_mut()
|
|
2052
|
-
.insert(
|
|
2053
|
-
GrpcMethod::new(
|
|
2054
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2055
|
-
"getIdentityKeys",
|
|
2056
|
-
),
|
|
2057
|
-
);
|
|
2058
|
-
self.inner.unary(req, path, codec).await
|
|
2059
|
-
}
|
|
2060
|
-
pub async fn get_identity_balance(
|
|
2061
|
-
&mut self,
|
|
2062
|
-
request: impl tonic::IntoRequest<super::GetIdentityBalanceRequest>,
|
|
2063
|
-
) -> std::result::Result<
|
|
2064
|
-
tonic::Response<super::GetIdentityBalanceResponse>,
|
|
2065
|
-
tonic::Status,
|
|
2066
|
-
> {
|
|
2067
|
-
self.inner
|
|
2068
|
-
.ready()
|
|
2069
|
-
.await
|
|
2070
|
-
.map_err(|e| {
|
|
2071
|
-
tonic::Status::new(
|
|
2072
|
-
tonic::Code::Unknown,
|
|
2073
|
-
format!("Service was not ready: {}", e.into()),
|
|
2074
|
-
)
|
|
2075
|
-
})?;
|
|
2076
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2077
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2078
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentityBalance",
|
|
2079
|
-
);
|
|
2080
|
-
let mut req = request.into_request();
|
|
2081
|
-
req.extensions_mut()
|
|
2082
|
-
.insert(
|
|
2083
|
-
GrpcMethod::new(
|
|
2084
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2085
|
-
"getIdentityBalance",
|
|
2086
|
-
),
|
|
2087
|
-
);
|
|
2088
|
-
self.inner.unary(req, path, codec).await
|
|
2089
|
-
}
|
|
2090
|
-
pub async fn get_identity_balance_and_revision(
|
|
2091
|
-
&mut self,
|
|
2092
|
-
request: impl tonic::IntoRequest<super::GetIdentityBalanceAndRevisionRequest>,
|
|
2093
|
-
) -> std::result::Result<
|
|
2094
|
-
tonic::Response<super::GetIdentityBalanceAndRevisionResponse>,
|
|
2095
|
-
tonic::Status,
|
|
2096
|
-
> {
|
|
2097
|
-
self.inner
|
|
2098
|
-
.ready()
|
|
2099
|
-
.await
|
|
2100
|
-
.map_err(|e| {
|
|
2101
|
-
tonic::Status::new(
|
|
2102
|
-
tonic::Code::Unknown,
|
|
2103
|
-
format!("Service was not ready: {}", e.into()),
|
|
2104
|
-
)
|
|
2105
|
-
})?;
|
|
2106
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2107
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2108
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentityBalanceAndRevision",
|
|
2109
|
-
);
|
|
2110
|
-
let mut req = request.into_request();
|
|
2111
|
-
req.extensions_mut()
|
|
2112
|
-
.insert(
|
|
2113
|
-
GrpcMethod::new(
|
|
2114
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2115
|
-
"getIdentityBalanceAndRevision",
|
|
2116
|
-
),
|
|
2117
|
-
);
|
|
2118
|
-
self.inner.unary(req, path, codec).await
|
|
2119
|
-
}
|
|
2120
|
-
pub async fn get_proofs(
|
|
2121
|
-
&mut self,
|
|
2122
|
-
request: impl tonic::IntoRequest<super::GetProofsRequest>,
|
|
2123
|
-
) -> std::result::Result<
|
|
2124
|
-
tonic::Response<super::GetProofsResponse>,
|
|
2125
|
-
tonic::Status,
|
|
2126
|
-
> {
|
|
2127
|
-
self.inner
|
|
2128
|
-
.ready()
|
|
2129
|
-
.await
|
|
2130
|
-
.map_err(|e| {
|
|
2131
|
-
tonic::Status::new(
|
|
2132
|
-
tonic::Code::Unknown,
|
|
2133
|
-
format!("Service was not ready: {}", e.into()),
|
|
2134
|
-
)
|
|
2135
|
-
})?;
|
|
2136
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2137
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2138
|
-
"/org.dash.platform.dapi.v0.Platform/getProofs",
|
|
2139
|
-
);
|
|
2140
|
-
let mut req = request.into_request();
|
|
2141
|
-
req.extensions_mut()
|
|
2142
|
-
.insert(
|
|
2143
|
-
GrpcMethod::new("org.dash.platform.dapi.v0.Platform", "getProofs"),
|
|
2144
|
-
);
|
|
2145
|
-
self.inner.unary(req, path, codec).await
|
|
2146
|
-
}
|
|
2147
|
-
pub async fn get_data_contract(
|
|
2148
|
-
&mut self,
|
|
2149
|
-
request: impl tonic::IntoRequest<super::GetDataContractRequest>,
|
|
2150
|
-
) -> std::result::Result<
|
|
2151
|
-
tonic::Response<super::GetDataContractResponse>,
|
|
2152
|
-
tonic::Status,
|
|
2153
|
-
> {
|
|
2154
|
-
self.inner
|
|
2155
|
-
.ready()
|
|
2156
|
-
.await
|
|
2157
|
-
.map_err(|e| {
|
|
2158
|
-
tonic::Status::new(
|
|
2159
|
-
tonic::Code::Unknown,
|
|
2160
|
-
format!("Service was not ready: {}", e.into()),
|
|
2161
|
-
)
|
|
2162
|
-
})?;
|
|
2163
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2164
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2165
|
-
"/org.dash.platform.dapi.v0.Platform/getDataContract",
|
|
2166
|
-
);
|
|
2167
|
-
let mut req = request.into_request();
|
|
2168
|
-
req.extensions_mut()
|
|
2169
|
-
.insert(
|
|
2170
|
-
GrpcMethod::new(
|
|
2171
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2172
|
-
"getDataContract",
|
|
2173
|
-
),
|
|
2174
|
-
);
|
|
2175
|
-
self.inner.unary(req, path, codec).await
|
|
2176
|
-
}
|
|
2177
|
-
pub async fn get_data_contract_history(
|
|
2178
|
-
&mut self,
|
|
2179
|
-
request: impl tonic::IntoRequest<super::GetDataContractHistoryRequest>,
|
|
2180
|
-
) -> std::result::Result<
|
|
2181
|
-
tonic::Response<super::GetDataContractHistoryResponse>,
|
|
2182
|
-
tonic::Status,
|
|
2183
|
-
> {
|
|
2184
|
-
self.inner
|
|
2185
|
-
.ready()
|
|
2186
|
-
.await
|
|
2187
|
-
.map_err(|e| {
|
|
2188
|
-
tonic::Status::new(
|
|
2189
|
-
tonic::Code::Unknown,
|
|
2190
|
-
format!("Service was not ready: {}", e.into()),
|
|
2191
|
-
)
|
|
2192
|
-
})?;
|
|
2193
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2194
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2195
|
-
"/org.dash.platform.dapi.v0.Platform/getDataContractHistory",
|
|
2196
|
-
);
|
|
2197
|
-
let mut req = request.into_request();
|
|
2198
|
-
req.extensions_mut()
|
|
2199
|
-
.insert(
|
|
2200
|
-
GrpcMethod::new(
|
|
2201
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2202
|
-
"getDataContractHistory",
|
|
2203
|
-
),
|
|
2204
|
-
);
|
|
2205
|
-
self.inner.unary(req, path, codec).await
|
|
2206
|
-
}
|
|
2207
|
-
pub async fn get_data_contracts(
|
|
2208
|
-
&mut self,
|
|
2209
|
-
request: impl tonic::IntoRequest<super::GetDataContractsRequest>,
|
|
2210
|
-
) -> std::result::Result<
|
|
2211
|
-
tonic::Response<super::GetDataContractsResponse>,
|
|
2212
|
-
tonic::Status,
|
|
2213
|
-
> {
|
|
2214
|
-
self.inner
|
|
2215
|
-
.ready()
|
|
2216
|
-
.await
|
|
2217
|
-
.map_err(|e| {
|
|
2218
|
-
tonic::Status::new(
|
|
2219
|
-
tonic::Code::Unknown,
|
|
2220
|
-
format!("Service was not ready: {}", e.into()),
|
|
2221
|
-
)
|
|
2222
|
-
})?;
|
|
2223
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2224
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2225
|
-
"/org.dash.platform.dapi.v0.Platform/getDataContracts",
|
|
2226
|
-
);
|
|
2227
|
-
let mut req = request.into_request();
|
|
2228
|
-
req.extensions_mut()
|
|
2229
|
-
.insert(
|
|
2230
|
-
GrpcMethod::new(
|
|
2231
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2232
|
-
"getDataContracts",
|
|
2233
|
-
),
|
|
2234
|
-
);
|
|
2235
|
-
self.inner.unary(req, path, codec).await
|
|
2236
|
-
}
|
|
2237
|
-
pub async fn get_documents(
|
|
2238
|
-
&mut self,
|
|
2239
|
-
request: impl tonic::IntoRequest<super::GetDocumentsRequest>,
|
|
2240
|
-
) -> std::result::Result<
|
|
2241
|
-
tonic::Response<super::GetDocumentsResponse>,
|
|
2242
|
-
tonic::Status,
|
|
2243
|
-
> {
|
|
2244
|
-
self.inner
|
|
2245
|
-
.ready()
|
|
2246
|
-
.await
|
|
2247
|
-
.map_err(|e| {
|
|
2248
|
-
tonic::Status::new(
|
|
2249
|
-
tonic::Code::Unknown,
|
|
2250
|
-
format!("Service was not ready: {}", e.into()),
|
|
2251
|
-
)
|
|
2252
|
-
})?;
|
|
2253
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2254
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2255
|
-
"/org.dash.platform.dapi.v0.Platform/getDocuments",
|
|
2256
|
-
);
|
|
2257
|
-
let mut req = request.into_request();
|
|
2258
|
-
req.extensions_mut()
|
|
2259
|
-
.insert(
|
|
2260
|
-
GrpcMethod::new("org.dash.platform.dapi.v0.Platform", "getDocuments"),
|
|
2261
|
-
);
|
|
2262
|
-
self.inner.unary(req, path, codec).await
|
|
2263
|
-
}
|
|
2264
|
-
pub async fn get_identities_by_public_key_hashes(
|
|
2265
|
-
&mut self,
|
|
2266
|
-
request: impl tonic::IntoRequest<
|
|
2267
|
-
super::GetIdentitiesByPublicKeyHashesRequest,
|
|
2268
|
-
>,
|
|
2269
|
-
) -> std::result::Result<
|
|
2270
|
-
tonic::Response<super::GetIdentitiesByPublicKeyHashesResponse>,
|
|
2271
|
-
tonic::Status,
|
|
2272
|
-
> {
|
|
2273
|
-
self.inner
|
|
2274
|
-
.ready()
|
|
2275
|
-
.await
|
|
2276
|
-
.map_err(|e| {
|
|
2277
|
-
tonic::Status::new(
|
|
2278
|
-
tonic::Code::Unknown,
|
|
2279
|
-
format!("Service was not ready: {}", e.into()),
|
|
2280
|
-
)
|
|
2281
|
-
})?;
|
|
2282
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2283
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2284
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes",
|
|
2285
|
-
);
|
|
2286
|
-
let mut req = request.into_request();
|
|
2287
|
-
req.extensions_mut()
|
|
2288
|
-
.insert(
|
|
2289
|
-
GrpcMethod::new(
|
|
2290
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2291
|
-
"getIdentitiesByPublicKeyHashes",
|
|
2292
|
-
),
|
|
2293
|
-
);
|
|
2294
|
-
self.inner.unary(req, path, codec).await
|
|
2295
|
-
}
|
|
2296
|
-
pub async fn get_identity_by_public_key_hash(
|
|
2297
|
-
&mut self,
|
|
2298
|
-
request: impl tonic::IntoRequest<super::GetIdentityByPublicKeyHashRequest>,
|
|
2299
|
-
) -> std::result::Result<
|
|
2300
|
-
tonic::Response<super::GetIdentityByPublicKeyHashResponse>,
|
|
2301
|
-
tonic::Status,
|
|
2302
|
-
> {
|
|
2303
|
-
self.inner
|
|
2304
|
-
.ready()
|
|
2305
|
-
.await
|
|
2306
|
-
.map_err(|e| {
|
|
2307
|
-
tonic::Status::new(
|
|
2308
|
-
tonic::Code::Unknown,
|
|
2309
|
-
format!("Service was not ready: {}", e.into()),
|
|
2310
|
-
)
|
|
2311
|
-
})?;
|
|
2312
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2313
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2314
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentityByPublicKeyHash",
|
|
2315
|
-
);
|
|
2316
|
-
let mut req = request.into_request();
|
|
2317
|
-
req.extensions_mut()
|
|
2318
|
-
.insert(
|
|
2319
|
-
GrpcMethod::new(
|
|
2320
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2321
|
-
"getIdentityByPublicKeyHash",
|
|
2322
|
-
),
|
|
2323
|
-
);
|
|
2324
|
-
self.inner.unary(req, path, codec).await
|
|
2325
|
-
}
|
|
2326
|
-
pub async fn wait_for_state_transition_result(
|
|
2327
|
-
&mut self,
|
|
2328
|
-
request: impl tonic::IntoRequest<super::WaitForStateTransitionResultRequest>,
|
|
2329
|
-
) -> std::result::Result<
|
|
2330
|
-
tonic::Response<super::WaitForStateTransitionResultResponse>,
|
|
2331
|
-
tonic::Status,
|
|
2332
|
-
> {
|
|
2333
|
-
self.inner
|
|
2334
|
-
.ready()
|
|
2335
|
-
.await
|
|
2336
|
-
.map_err(|e| {
|
|
2337
|
-
tonic::Status::new(
|
|
2338
|
-
tonic::Code::Unknown,
|
|
2339
|
-
format!("Service was not ready: {}", e.into()),
|
|
2340
|
-
)
|
|
2341
|
-
})?;
|
|
2342
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2343
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2344
|
-
"/org.dash.platform.dapi.v0.Platform/waitForStateTransitionResult",
|
|
2345
|
-
);
|
|
2346
|
-
let mut req = request.into_request();
|
|
2347
|
-
req.extensions_mut()
|
|
2348
|
-
.insert(
|
|
2349
|
-
GrpcMethod::new(
|
|
2350
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2351
|
-
"waitForStateTransitionResult",
|
|
2352
|
-
),
|
|
2353
|
-
);
|
|
2354
|
-
self.inner.unary(req, path, codec).await
|
|
2355
|
-
}
|
|
2356
|
-
pub async fn get_consensus_params(
|
|
2357
|
-
&mut self,
|
|
2358
|
-
request: impl tonic::IntoRequest<super::GetConsensusParamsRequest>,
|
|
2359
|
-
) -> std::result::Result<
|
|
2360
|
-
tonic::Response<super::GetConsensusParamsResponse>,
|
|
2361
|
-
tonic::Status,
|
|
2362
|
-
> {
|
|
2363
|
-
self.inner
|
|
2364
|
-
.ready()
|
|
2365
|
-
.await
|
|
2366
|
-
.map_err(|e| {
|
|
2367
|
-
tonic::Status::new(
|
|
2368
|
-
tonic::Code::Unknown,
|
|
2369
|
-
format!("Service was not ready: {}", e.into()),
|
|
2370
|
-
)
|
|
2371
|
-
})?;
|
|
2372
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2373
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2374
|
-
"/org.dash.platform.dapi.v0.Platform/getConsensusParams",
|
|
2375
|
-
);
|
|
2376
|
-
let mut req = request.into_request();
|
|
2377
|
-
req.extensions_mut()
|
|
2378
|
-
.insert(
|
|
2379
|
-
GrpcMethod::new(
|
|
2380
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2381
|
-
"getConsensusParams",
|
|
2382
|
-
),
|
|
2383
|
-
);
|
|
2384
|
-
self.inner.unary(req, path, codec).await
|
|
2385
|
-
}
|
|
2386
|
-
pub async fn get_protocol_version_upgrade_state(
|
|
2387
|
-
&mut self,
|
|
2388
|
-
request: impl tonic::IntoRequest<
|
|
2389
|
-
super::GetProtocolVersionUpgradeStateRequest,
|
|
2390
|
-
>,
|
|
2391
|
-
) -> std::result::Result<
|
|
2392
|
-
tonic::Response<super::GetProtocolVersionUpgradeStateResponse>,
|
|
2393
|
-
tonic::Status,
|
|
2394
|
-
> {
|
|
2395
|
-
self.inner
|
|
2396
|
-
.ready()
|
|
2397
|
-
.await
|
|
2398
|
-
.map_err(|e| {
|
|
2399
|
-
tonic::Status::new(
|
|
2400
|
-
tonic::Code::Unknown,
|
|
2401
|
-
format!("Service was not ready: {}", e.into()),
|
|
2402
|
-
)
|
|
2403
|
-
})?;
|
|
2404
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2405
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2406
|
-
"/org.dash.platform.dapi.v0.Platform/getProtocolVersionUpgradeState",
|
|
2407
|
-
);
|
|
2408
|
-
let mut req = request.into_request();
|
|
2409
|
-
req.extensions_mut()
|
|
2410
|
-
.insert(
|
|
2411
|
-
GrpcMethod::new(
|
|
2412
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2413
|
-
"getProtocolVersionUpgradeState",
|
|
2414
|
-
),
|
|
2415
|
-
);
|
|
2416
|
-
self.inner.unary(req, path, codec).await
|
|
2417
|
-
}
|
|
2418
|
-
pub async fn get_protocol_version_upgrade_vote_status(
|
|
2419
|
-
&mut self,
|
|
2420
|
-
request: impl tonic::IntoRequest<
|
|
2421
|
-
super::GetProtocolVersionUpgradeVoteStatusRequest,
|
|
2422
|
-
>,
|
|
2423
|
-
) -> std::result::Result<
|
|
2424
|
-
tonic::Response<super::GetProtocolVersionUpgradeVoteStatusResponse>,
|
|
2425
|
-
tonic::Status,
|
|
2426
|
-
> {
|
|
2427
|
-
self.inner
|
|
2428
|
-
.ready()
|
|
2429
|
-
.await
|
|
2430
|
-
.map_err(|e| {
|
|
2431
|
-
tonic::Status::new(
|
|
2432
|
-
tonic::Code::Unknown,
|
|
2433
|
-
format!("Service was not ready: {}", e.into()),
|
|
2434
|
-
)
|
|
2435
|
-
})?;
|
|
2436
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2437
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2438
|
-
"/org.dash.platform.dapi.v0.Platform/getProtocolVersionUpgradeVoteStatus",
|
|
2439
|
-
);
|
|
2440
|
-
let mut req = request.into_request();
|
|
2441
|
-
req.extensions_mut()
|
|
2442
|
-
.insert(
|
|
2443
|
-
GrpcMethod::new(
|
|
2444
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2445
|
-
"getProtocolVersionUpgradeVoteStatus",
|
|
2446
|
-
),
|
|
2447
|
-
);
|
|
2448
|
-
self.inner.unary(req, path, codec).await
|
|
2449
|
-
}
|
|
2450
|
-
pub async fn get_epochs_info(
|
|
2451
|
-
&mut self,
|
|
2452
|
-
request: impl tonic::IntoRequest<super::GetEpochsInfoRequest>,
|
|
2453
|
-
) -> std::result::Result<
|
|
2454
|
-
tonic::Response<super::GetEpochsInfoResponse>,
|
|
2455
|
-
tonic::Status,
|
|
2456
|
-
> {
|
|
2457
|
-
self.inner
|
|
2458
|
-
.ready()
|
|
2459
|
-
.await
|
|
2460
|
-
.map_err(|e| {
|
|
2461
|
-
tonic::Status::new(
|
|
2462
|
-
tonic::Code::Unknown,
|
|
2463
|
-
format!("Service was not ready: {}", e.into()),
|
|
2464
|
-
)
|
|
2465
|
-
})?;
|
|
2466
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2467
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2468
|
-
"/org.dash.platform.dapi.v0.Platform/getEpochsInfo",
|
|
2469
|
-
);
|
|
2470
|
-
let mut req = request.into_request();
|
|
2471
|
-
req.extensions_mut()
|
|
2472
|
-
.insert(
|
|
2473
|
-
GrpcMethod::new(
|
|
2474
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2475
|
-
"getEpochsInfo",
|
|
2476
|
-
),
|
|
2477
|
-
);
|
|
2478
|
-
self.inner.unary(req, path, codec).await
|
|
2479
|
-
}
|
|
2480
|
-
}
|
|
2481
|
-
}
|