@dashevo/dapi-grpc 1.0.0-dev.10 → 1.0.0-dev.12
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 +14 -8
- package/build.rs +6 -2
- package/clients/core/v0/nodejs/CorePromiseClient.js +51 -13
- package/clients/core/v0/nodejs/core_pbjs.js +869 -703
- package/clients/core/v0/nodejs/core_protoc.js +681 -609
- package/clients/core/v0/web/CorePromiseClient.js +19 -5
- package/clients/core/v0/web/core_pb.d.ts +99 -89
- package/clients/core/v0/web/core_pb.js +681 -609
- package/clients/core/v0/web/core_pb_service.d.ts +29 -10
- package/clients/core/v0/web/core_pb_service.js +46 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +55 -14
- package/clients/platform/v0/nodejs/platform_pbjs.js +7805 -7761
- package/clients/platform/v0/nodejs/platform_protoc.js +7845 -7749
- package/clients/platform/v0/web/PlatformPromiseClient.js +22 -8
- package/clients/platform/v0/web/platform_pb.d.ts +388 -372
- package/clients/platform/v0/web/platform_pb.js +7845 -7749
- package/clients/platform/v0/web/platform_pb_service.d.ts +35 -35
- package/clients/platform/v0/web/platform_pb_service.js +35 -35
- package/package.json +2 -2
- package/protos/core/v0/core.proto +27 -23
- package/protos/platform/v0/platform.proto +81 -64
- package/src/core/proto/org.dash.platform.dapi.v0.rs +196 -101
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +381 -353
- package/test/unit/clients/core/v0/nodejs/CorePromiseClient.spec.js +27 -6
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +21 -0
- package/test/unit/getCoreDefinition.spec.js +5 -2
|
@@ -295,118 +295,6 @@ pub mod get_identity_response {
|
|
|
295
295
|
}
|
|
296
296
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
297
297
|
#[serde(rename_all = "snake_case")]
|
|
298
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
299
|
-
#[grpc_versions(0)]
|
|
300
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
301
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
302
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
303
|
-
pub struct GetIdentitiesRequest {
|
|
304
|
-
#[prost(oneof = "get_identities_request::Version", tags = "1")]
|
|
305
|
-
pub version: ::core::option::Option<get_identities_request::Version>,
|
|
306
|
-
}
|
|
307
|
-
/// Nested message and enum types in `GetIdentitiesRequest`.
|
|
308
|
-
pub mod get_identities_request {
|
|
309
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
310
|
-
#[serde(rename_all = "snake_case")]
|
|
311
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
312
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
313
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
314
|
-
pub struct GetIdentitiesRequestV0 {
|
|
315
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
316
|
-
#[serde(with = "crate::deserialization::vec_base64string")]
|
|
317
|
-
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
318
|
-
#[prost(bool, tag = "2")]
|
|
319
|
-
pub prove: bool,
|
|
320
|
-
}
|
|
321
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
322
|
-
#[serde(rename_all = "snake_case")]
|
|
323
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
324
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
325
|
-
pub enum Version {
|
|
326
|
-
#[prost(message, tag = "1")]
|
|
327
|
-
V0(GetIdentitiesRequestV0),
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
331
|
-
#[serde(rename_all = "snake_case")]
|
|
332
|
-
#[derive(
|
|
333
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
334
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
335
|
-
)]
|
|
336
|
-
#[grpc_versions(0)]
|
|
337
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
338
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
339
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
340
|
-
pub struct GetIdentitiesResponse {
|
|
341
|
-
#[prost(oneof = "get_identities_response::Version", tags = "1")]
|
|
342
|
-
pub version: ::core::option::Option<get_identities_response::Version>,
|
|
343
|
-
}
|
|
344
|
-
/// Nested message and enum types in `GetIdentitiesResponse`.
|
|
345
|
-
pub mod get_identities_response {
|
|
346
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
347
|
-
#[serde(rename_all = "snake_case")]
|
|
348
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
349
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
350
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
351
|
-
pub struct IdentityValue {
|
|
352
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
353
|
-
pub value: ::prost::alloc::vec::Vec<u8>,
|
|
354
|
-
}
|
|
355
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
356
|
-
#[serde(rename_all = "snake_case")]
|
|
357
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
358
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
359
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
360
|
-
pub struct IdentityEntry {
|
|
361
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
362
|
-
pub key: ::prost::alloc::vec::Vec<u8>,
|
|
363
|
-
#[prost(message, optional, tag = "2")]
|
|
364
|
-
pub value: ::core::option::Option<IdentityValue>,
|
|
365
|
-
}
|
|
366
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
367
|
-
#[serde(rename_all = "snake_case")]
|
|
368
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
369
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
370
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
371
|
-
pub struct Identities {
|
|
372
|
-
#[prost(message, repeated, tag = "1")]
|
|
373
|
-
pub identity_entries: ::prost::alloc::vec::Vec<IdentityEntry>,
|
|
374
|
-
}
|
|
375
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
376
|
-
#[serde(rename_all = "snake_case")]
|
|
377
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
378
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
379
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
380
|
-
pub struct GetIdentitiesResponseV0 {
|
|
381
|
-
#[prost(message, optional, tag = "3")]
|
|
382
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
383
|
-
#[prost(oneof = "get_identities_response_v0::Result", tags = "1, 2")]
|
|
384
|
-
pub result: ::core::option::Option<get_identities_response_v0::Result>,
|
|
385
|
-
}
|
|
386
|
-
/// Nested message and enum types in `GetIdentitiesResponseV0`.
|
|
387
|
-
pub mod get_identities_response_v0 {
|
|
388
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
389
|
-
#[serde(rename_all = "snake_case")]
|
|
390
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
391
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
392
|
-
pub enum Result {
|
|
393
|
-
#[prost(message, tag = "1")]
|
|
394
|
-
Identities(super::Identities),
|
|
395
|
-
#[prost(message, tag = "2")]
|
|
396
|
-
Proof(super::super::Proof),
|
|
397
|
-
}
|
|
398
|
-
}
|
|
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::Oneof)]
|
|
403
|
-
pub enum Version {
|
|
404
|
-
#[prost(message, tag = "1")]
|
|
405
|
-
V0(GetIdentitiesResponseV0),
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
409
|
-
#[serde(rename_all = "snake_case")]
|
|
410
298
|
#[derive(
|
|
411
299
|
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
412
300
|
::dapi_grpc_macros::VersionedGrpcResponse
|
|
@@ -832,6 +720,131 @@ pub mod get_identity_keys_response {
|
|
|
832
720
|
#[derive(::dapi_grpc_macros::Mockable)]
|
|
833
721
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
834
722
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
723
|
+
pub struct GetIdentitiesContractKeysRequest {
|
|
724
|
+
#[prost(oneof = "get_identities_contract_keys_request::Version", tags = "1")]
|
|
725
|
+
pub version: ::core::option::Option<get_identities_contract_keys_request::Version>,
|
|
726
|
+
}
|
|
727
|
+
/// Nested message and enum types in `GetIdentitiesContractKeysRequest`.
|
|
728
|
+
pub mod get_identities_contract_keys_request {
|
|
729
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
730
|
+
#[serde(rename_all = "snake_case")]
|
|
731
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
732
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
733
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
734
|
+
pub struct GetIdentitiesContractKeysRequestV0 {
|
|
735
|
+
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
736
|
+
pub identities_ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
737
|
+
#[prost(bytes = "vec", tag = "2")]
|
|
738
|
+
pub contract_id: ::prost::alloc::vec::Vec<u8>,
|
|
739
|
+
#[prost(string, optional, tag = "3")]
|
|
740
|
+
pub document_type_name: ::core::option::Option<::prost::alloc::string::String>,
|
|
741
|
+
#[prost(enumeration = "super::KeyPurpose", repeated, tag = "4")]
|
|
742
|
+
pub purposes: ::prost::alloc::vec::Vec<i32>,
|
|
743
|
+
#[prost(bool, tag = "5")]
|
|
744
|
+
pub prove: bool,
|
|
745
|
+
}
|
|
746
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
747
|
+
#[serde(rename_all = "snake_case")]
|
|
748
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
749
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
750
|
+
pub enum Version {
|
|
751
|
+
#[prost(message, tag = "1")]
|
|
752
|
+
V0(GetIdentitiesContractKeysRequestV0),
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
756
|
+
#[serde(rename_all = "snake_case")]
|
|
757
|
+
#[derive(
|
|
758
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
759
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
760
|
+
)]
|
|
761
|
+
#[grpc_versions(0)]
|
|
762
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
763
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
764
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
765
|
+
pub struct GetIdentitiesContractKeysResponse {
|
|
766
|
+
#[prost(oneof = "get_identities_contract_keys_response::Version", tags = "1")]
|
|
767
|
+
pub version: ::core::option::Option<get_identities_contract_keys_response::Version>,
|
|
768
|
+
}
|
|
769
|
+
/// Nested message and enum types in `GetIdentitiesContractKeysResponse`.
|
|
770
|
+
pub mod get_identities_contract_keys_response {
|
|
771
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
772
|
+
#[serde(rename_all = "snake_case")]
|
|
773
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
774
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
775
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
776
|
+
pub struct GetIdentitiesContractKeysResponseV0 {
|
|
777
|
+
#[prost(message, optional, tag = "3")]
|
|
778
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
779
|
+
#[prost(
|
|
780
|
+
oneof = "get_identities_contract_keys_response_v0::Result",
|
|
781
|
+
tags = "1, 2"
|
|
782
|
+
)]
|
|
783
|
+
pub result: ::core::option::Option<
|
|
784
|
+
get_identities_contract_keys_response_v0::Result,
|
|
785
|
+
>,
|
|
786
|
+
}
|
|
787
|
+
/// Nested message and enum types in `GetIdentitiesContractKeysResponseV0`.
|
|
788
|
+
pub mod get_identities_contract_keys_response_v0 {
|
|
789
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
790
|
+
#[serde(rename_all = "snake_case")]
|
|
791
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
792
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
793
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
794
|
+
pub struct PurposeKeys {
|
|
795
|
+
#[prost(enumeration = "super::super::KeyPurpose", tag = "1")]
|
|
796
|
+
pub purpose: i32,
|
|
797
|
+
#[prost(bytes = "vec", repeated, tag = "2")]
|
|
798
|
+
pub keys_bytes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
799
|
+
}
|
|
800
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
801
|
+
#[serde(rename_all = "snake_case")]
|
|
802
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
803
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
804
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
805
|
+
pub struct IdentityKeys {
|
|
806
|
+
#[prost(bytes = "vec", tag = "1")]
|
|
807
|
+
#[serde(with = "serde_bytes")]
|
|
808
|
+
pub identity_id: ::prost::alloc::vec::Vec<u8>,
|
|
809
|
+
#[prost(message, repeated, tag = "2")]
|
|
810
|
+
pub keys: ::prost::alloc::vec::Vec<PurposeKeys>,
|
|
811
|
+
}
|
|
812
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
813
|
+
#[serde(rename_all = "snake_case")]
|
|
814
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
815
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
816
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
817
|
+
pub struct IdentitiesKeys {
|
|
818
|
+
#[prost(message, repeated, tag = "1")]
|
|
819
|
+
pub entries: ::prost::alloc::vec::Vec<IdentityKeys>,
|
|
820
|
+
}
|
|
821
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
822
|
+
#[serde(rename_all = "snake_case")]
|
|
823
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
824
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
825
|
+
pub enum Result {
|
|
826
|
+
#[prost(message, tag = "1")]
|
|
827
|
+
IdentitiesKeys(IdentitiesKeys),
|
|
828
|
+
#[prost(message, tag = "2")]
|
|
829
|
+
Proof(super::super::Proof),
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
833
|
+
#[serde(rename_all = "snake_case")]
|
|
834
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
835
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
836
|
+
pub enum Version {
|
|
837
|
+
#[prost(message, tag = "1")]
|
|
838
|
+
V0(GetIdentitiesContractKeysResponseV0),
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
842
|
+
#[serde(rename_all = "snake_case")]
|
|
843
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
844
|
+
#[grpc_versions(0)]
|
|
845
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
846
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
847
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
835
848
|
pub struct GetProofsRequest {
|
|
836
849
|
#[prost(oneof = "get_proofs_request::Version", tags = "1")]
|
|
837
850
|
pub version: ::core::option::Option<get_proofs_request::Version>,
|
|
@@ -1384,132 +1397,19 @@ pub mod get_documents_response {
|
|
|
1384
1397
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1385
1398
|
#[serde(rename_all = "snake_case")]
|
|
1386
1399
|
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1387
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1388
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1389
|
-
pub struct Documents {
|
|
1390
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
1391
|
-
pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
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 Result {
|
|
1398
|
-
#[prost(message, tag = "1")]
|
|
1399
|
-
Documents(Documents),
|
|
1400
|
-
#[prost(message, tag = "2")]
|
|
1401
|
-
Proof(super::super::Proof),
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1405
|
-
#[serde(rename_all = "snake_case")]
|
|
1406
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1407
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1408
|
-
pub enum Version {
|
|
1409
|
-
#[prost(message, tag = "1")]
|
|
1410
|
-
V0(GetDocumentsResponseV0),
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1414
|
-
#[serde(rename_all = "snake_case")]
|
|
1415
|
-
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1416
|
-
#[grpc_versions(0)]
|
|
1417
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1418
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1419
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1420
|
-
pub struct GetIdentitiesByPublicKeyHashesRequest {
|
|
1421
|
-
#[prost(oneof = "get_identities_by_public_key_hashes_request::Version", tags = "1")]
|
|
1422
|
-
pub version: ::core::option::Option<
|
|
1423
|
-
get_identities_by_public_key_hashes_request::Version,
|
|
1424
|
-
>,
|
|
1425
|
-
}
|
|
1426
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesRequest`.
|
|
1427
|
-
pub mod get_identities_by_public_key_hashes_request {
|
|
1428
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1429
|
-
#[serde(rename_all = "snake_case")]
|
|
1430
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1431
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1432
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1433
|
-
pub struct GetIdentitiesByPublicKeyHashesRequestV0 {
|
|
1434
|
-
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
1435
|
-
#[serde(with = "crate::deserialization::vec_base64string")]
|
|
1436
|
-
pub public_key_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
1437
|
-
#[prost(bool, tag = "2")]
|
|
1438
|
-
pub prove: bool,
|
|
1439
|
-
}
|
|
1440
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1441
|
-
#[serde(rename_all = "snake_case")]
|
|
1442
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1443
|
-
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1444
|
-
pub enum Version {
|
|
1445
|
-
#[prost(message, tag = "1")]
|
|
1446
|
-
V0(GetIdentitiesByPublicKeyHashesRequestV0),
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1450
|
-
#[serde(rename_all = "snake_case")]
|
|
1451
|
-
#[derive(
|
|
1452
|
-
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1453
|
-
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1454
|
-
)]
|
|
1455
|
-
#[grpc_versions(0)]
|
|
1456
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1457
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1458
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1459
|
-
pub struct GetIdentitiesByPublicKeyHashesResponse {
|
|
1460
|
-
#[prost(oneof = "get_identities_by_public_key_hashes_response::Version", tags = "1")]
|
|
1461
|
-
pub version: ::core::option::Option<
|
|
1462
|
-
get_identities_by_public_key_hashes_response::Version,
|
|
1463
|
-
>,
|
|
1464
|
-
}
|
|
1465
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponse`.
|
|
1466
|
-
pub mod get_identities_by_public_key_hashes_response {
|
|
1467
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1468
|
-
#[serde(rename_all = "snake_case")]
|
|
1469
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1470
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1471
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1472
|
-
pub struct PublicKeyHashIdentityEntry {
|
|
1473
|
-
#[prost(bytes = "vec", tag = "1")]
|
|
1474
|
-
#[serde(with = "serde_bytes")]
|
|
1475
|
-
pub public_key_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1476
|
-
#[prost(message, optional, tag = "2")]
|
|
1477
|
-
pub value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
|
|
1478
|
-
}
|
|
1479
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1480
|
-
#[serde(rename_all = "snake_case")]
|
|
1481
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1482
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1483
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1484
|
-
pub struct IdentitiesByPublicKeyHashes {
|
|
1485
|
-
#[prost(message, repeated, tag = "1")]
|
|
1486
|
-
pub identity_entries: ::prost::alloc::vec::Vec<PublicKeyHashIdentityEntry>,
|
|
1487
|
-
}
|
|
1488
|
-
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1489
|
-
#[serde(rename_all = "snake_case")]
|
|
1490
|
-
#[derive(::dapi_grpc_macros::Mockable)]
|
|
1491
|
-
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1492
|
-
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1493
|
-
pub struct GetIdentitiesByPublicKeyHashesResponseV0 {
|
|
1494
|
-
#[prost(message, optional, tag = "3")]
|
|
1495
|
-
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1496
|
-
#[prost(
|
|
1497
|
-
oneof = "get_identities_by_public_key_hashes_response_v0::Result",
|
|
1498
|
-
tags = "1, 2"
|
|
1499
|
-
)]
|
|
1500
|
-
pub result: ::core::option::Option<
|
|
1501
|
-
get_identities_by_public_key_hashes_response_v0::Result,
|
|
1502
|
-
>,
|
|
1503
|
-
}
|
|
1504
|
-
/// Nested message and enum types in `GetIdentitiesByPublicKeyHashesResponseV0`.
|
|
1505
|
-
pub mod get_identities_by_public_key_hashes_response_v0 {
|
|
1400
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1401
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1402
|
+
pub struct Documents {
|
|
1403
|
+
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
1404
|
+
pub documents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
1405
|
+
}
|
|
1506
1406
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1507
1407
|
#[serde(rename_all = "snake_case")]
|
|
1508
1408
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1509
1409
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1510
1410
|
pub enum Result {
|
|
1511
1411
|
#[prost(message, tag = "1")]
|
|
1512
|
-
|
|
1412
|
+
Documents(Documents),
|
|
1513
1413
|
#[prost(message, tag = "2")]
|
|
1514
1414
|
Proof(super::super::Proof),
|
|
1515
1415
|
}
|
|
@@ -1520,7 +1420,7 @@ pub mod get_identities_by_public_key_hashes_response {
|
|
|
1520
1420
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1521
1421
|
pub enum Version {
|
|
1522
1422
|
#[prost(message, tag = "1")]
|
|
1523
|
-
V0(
|
|
1423
|
+
V0(GetDocumentsResponseV0),
|
|
1524
1424
|
}
|
|
1525
1425
|
}
|
|
1526
1426
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
@@ -2134,6 +2034,136 @@ pub mod get_epochs_info_response {
|
|
|
2134
2034
|
V0(GetEpochsInfoResponseV0),
|
|
2135
2035
|
}
|
|
2136
2036
|
}
|
|
2037
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2038
|
+
#[serde(rename_all = "snake_case")]
|
|
2039
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
2040
|
+
#[grpc_versions(0)]
|
|
2041
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
2042
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2043
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
2044
|
+
pub struct GetPathElementsRequest {
|
|
2045
|
+
#[prost(oneof = "get_path_elements_request::Version", tags = "1")]
|
|
2046
|
+
pub version: ::core::option::Option<get_path_elements_request::Version>,
|
|
2047
|
+
}
|
|
2048
|
+
/// Nested message and enum types in `GetPathElementsRequest`.
|
|
2049
|
+
pub mod get_path_elements_request {
|
|
2050
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2051
|
+
#[serde(rename_all = "snake_case")]
|
|
2052
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
2053
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2054
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
2055
|
+
pub struct GetPathElementsRequestV0 {
|
|
2056
|
+
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
2057
|
+
pub path: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
2058
|
+
#[prost(bytes = "vec", repeated, tag = "2")]
|
|
2059
|
+
pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
2060
|
+
#[prost(bool, tag = "3")]
|
|
2061
|
+
pub prove: bool,
|
|
2062
|
+
}
|
|
2063
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2064
|
+
#[serde(rename_all = "snake_case")]
|
|
2065
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2066
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
2067
|
+
pub enum Version {
|
|
2068
|
+
#[prost(message, tag = "1")]
|
|
2069
|
+
V0(GetPathElementsRequestV0),
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2073
|
+
#[serde(rename_all = "snake_case")]
|
|
2074
|
+
#[derive(
|
|
2075
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
2076
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
2077
|
+
)]
|
|
2078
|
+
#[grpc_versions(0)]
|
|
2079
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
2080
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2081
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
2082
|
+
pub struct GetPathElementsResponse {
|
|
2083
|
+
#[prost(oneof = "get_path_elements_response::Version", tags = "1")]
|
|
2084
|
+
pub version: ::core::option::Option<get_path_elements_response::Version>,
|
|
2085
|
+
}
|
|
2086
|
+
/// Nested message and enum types in `GetPathElementsResponse`.
|
|
2087
|
+
pub mod get_path_elements_response {
|
|
2088
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2089
|
+
#[serde(rename_all = "snake_case")]
|
|
2090
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
2091
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2092
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
2093
|
+
pub struct GetPathElementsResponseV0 {
|
|
2094
|
+
#[prost(message, optional, tag = "3")]
|
|
2095
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
2096
|
+
#[prost(oneof = "get_path_elements_response_v0::Result", tags = "1, 2")]
|
|
2097
|
+
pub result: ::core::option::Option<get_path_elements_response_v0::Result>,
|
|
2098
|
+
}
|
|
2099
|
+
/// Nested message and enum types in `GetPathElementsResponseV0`.
|
|
2100
|
+
pub mod get_path_elements_response_v0 {
|
|
2101
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2102
|
+
#[serde(rename_all = "snake_case")]
|
|
2103
|
+
#[derive(::dapi_grpc_macros::Mockable)]
|
|
2104
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2105
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
2106
|
+
pub struct Elements {
|
|
2107
|
+
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
2108
|
+
pub elements: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
2109
|
+
}
|
|
2110
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2111
|
+
#[serde(rename_all = "snake_case")]
|
|
2112
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2113
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
2114
|
+
pub enum Result {
|
|
2115
|
+
#[prost(message, tag = "1")]
|
|
2116
|
+
Elements(Elements),
|
|
2117
|
+
#[prost(message, tag = "2")]
|
|
2118
|
+
Proof(super::super::Proof),
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2122
|
+
#[serde(rename_all = "snake_case")]
|
|
2123
|
+
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
2124
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
2125
|
+
pub enum Version {
|
|
2126
|
+
#[prost(message, tag = "1")]
|
|
2127
|
+
V0(GetPathElementsResponseV0),
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
2131
|
+
#[serde(rename_all = "snake_case")]
|
|
2132
|
+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
2133
|
+
#[repr(i32)]
|
|
2134
|
+
pub enum KeyPurpose {
|
|
2135
|
+
Authentication = 0,
|
|
2136
|
+
Encryption = 1,
|
|
2137
|
+
Decryption = 2,
|
|
2138
|
+
Transfer = 3,
|
|
2139
|
+
Voting = 5,
|
|
2140
|
+
}
|
|
2141
|
+
impl KeyPurpose {
|
|
2142
|
+
/// String value of the enum field names used in the ProtoBuf definition.
|
|
2143
|
+
///
|
|
2144
|
+
/// The values are not transformed in any way and thus are considered stable
|
|
2145
|
+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
|
|
2146
|
+
pub fn as_str_name(&self) -> &'static str {
|
|
2147
|
+
match self {
|
|
2148
|
+
KeyPurpose::Authentication => "AUTHENTICATION",
|
|
2149
|
+
KeyPurpose::Encryption => "ENCRYPTION",
|
|
2150
|
+
KeyPurpose::Decryption => "DECRYPTION",
|
|
2151
|
+
KeyPurpose::Transfer => "TRANSFER",
|
|
2152
|
+
KeyPurpose::Voting => "VOTING",
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
/// Creates an enum from field names used in the ProtoBuf definition.
|
|
2156
|
+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
|
|
2157
|
+
match value {
|
|
2158
|
+
"AUTHENTICATION" => Some(Self::Authentication),
|
|
2159
|
+
"ENCRYPTION" => Some(Self::Encryption),
|
|
2160
|
+
"DECRYPTION" => Some(Self::Decryption),
|
|
2161
|
+
"TRANSFER" => Some(Self::Transfer),
|
|
2162
|
+
"VOTING" => Some(Self::Voting),
|
|
2163
|
+
_ => None,
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2137
2167
|
/// Generated client implementations.
|
|
2138
2168
|
pub mod platform_client {
|
|
2139
2169
|
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
|
|
@@ -2276,11 +2306,11 @@ pub mod platform_client {
|
|
|
2276
2306
|
);
|
|
2277
2307
|
self.inner.unary(req, path, codec).await
|
|
2278
2308
|
}
|
|
2279
|
-
pub async fn
|
|
2309
|
+
pub async fn get_identity_keys(
|
|
2280
2310
|
&mut self,
|
|
2281
|
-
request: impl tonic::IntoRequest<super::
|
|
2311
|
+
request: impl tonic::IntoRequest<super::GetIdentityKeysRequest>,
|
|
2282
2312
|
) -> std::result::Result<
|
|
2283
|
-
tonic::Response<super::
|
|
2313
|
+
tonic::Response<super::GetIdentityKeysResponse>,
|
|
2284
2314
|
tonic::Status,
|
|
2285
2315
|
> {
|
|
2286
2316
|
self.inner
|
|
@@ -2294,23 +2324,23 @@ pub mod platform_client {
|
|
|
2294
2324
|
})?;
|
|
2295
2325
|
let codec = tonic::codec::ProstCodec::default();
|
|
2296
2326
|
let path = http::uri::PathAndQuery::from_static(
|
|
2297
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
2327
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentityKeys",
|
|
2298
2328
|
);
|
|
2299
2329
|
let mut req = request.into_request();
|
|
2300
2330
|
req.extensions_mut()
|
|
2301
2331
|
.insert(
|
|
2302
2332
|
GrpcMethod::new(
|
|
2303
2333
|
"org.dash.platform.dapi.v0.Platform",
|
|
2304
|
-
"
|
|
2334
|
+
"getIdentityKeys",
|
|
2305
2335
|
),
|
|
2306
2336
|
);
|
|
2307
2337
|
self.inner.unary(req, path, codec).await
|
|
2308
2338
|
}
|
|
2309
|
-
pub async fn
|
|
2339
|
+
pub async fn get_identities_contract_keys(
|
|
2310
2340
|
&mut self,
|
|
2311
|
-
request: impl tonic::IntoRequest<super::
|
|
2341
|
+
request: impl tonic::IntoRequest<super::GetIdentitiesContractKeysRequest>,
|
|
2312
2342
|
) -> std::result::Result<
|
|
2313
|
-
tonic::Response<super::
|
|
2343
|
+
tonic::Response<super::GetIdentitiesContractKeysResponse>,
|
|
2314
2344
|
tonic::Status,
|
|
2315
2345
|
> {
|
|
2316
2346
|
self.inner
|
|
@@ -2324,14 +2354,14 @@ pub mod platform_client {
|
|
|
2324
2354
|
})?;
|
|
2325
2355
|
let codec = tonic::codec::ProstCodec::default();
|
|
2326
2356
|
let path = http::uri::PathAndQuery::from_static(
|
|
2327
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
2357
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentitiesContractKeys",
|
|
2328
2358
|
);
|
|
2329
2359
|
let mut req = request.into_request();
|
|
2330
2360
|
req.extensions_mut()
|
|
2331
2361
|
.insert(
|
|
2332
2362
|
GrpcMethod::new(
|
|
2333
2363
|
"org.dash.platform.dapi.v0.Platform",
|
|
2334
|
-
"
|
|
2364
|
+
"getIdentitiesContractKeys",
|
|
2335
2365
|
),
|
|
2336
2366
|
);
|
|
2337
2367
|
self.inner.unary(req, path, codec).await
|
|
@@ -2600,38 +2630,6 @@ pub mod platform_client {
|
|
|
2600
2630
|
);
|
|
2601
2631
|
self.inner.unary(req, path, codec).await
|
|
2602
2632
|
}
|
|
2603
|
-
pub async fn get_identities_by_public_key_hashes(
|
|
2604
|
-
&mut self,
|
|
2605
|
-
request: impl tonic::IntoRequest<
|
|
2606
|
-
super::GetIdentitiesByPublicKeyHashesRequest,
|
|
2607
|
-
>,
|
|
2608
|
-
) -> std::result::Result<
|
|
2609
|
-
tonic::Response<super::GetIdentitiesByPublicKeyHashesResponse>,
|
|
2610
|
-
tonic::Status,
|
|
2611
|
-
> {
|
|
2612
|
-
self.inner
|
|
2613
|
-
.ready()
|
|
2614
|
-
.await
|
|
2615
|
-
.map_err(|e| {
|
|
2616
|
-
tonic::Status::new(
|
|
2617
|
-
tonic::Code::Unknown,
|
|
2618
|
-
format!("Service was not ready: {}", e.into()),
|
|
2619
|
-
)
|
|
2620
|
-
})?;
|
|
2621
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
2622
|
-
let path = http::uri::PathAndQuery::from_static(
|
|
2623
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes",
|
|
2624
|
-
);
|
|
2625
|
-
let mut req = request.into_request();
|
|
2626
|
-
req.extensions_mut()
|
|
2627
|
-
.insert(
|
|
2628
|
-
GrpcMethod::new(
|
|
2629
|
-
"org.dash.platform.dapi.v0.Platform",
|
|
2630
|
-
"getIdentitiesByPublicKeyHashes",
|
|
2631
|
-
),
|
|
2632
|
-
);
|
|
2633
|
-
self.inner.unary(req, path, codec).await
|
|
2634
|
-
}
|
|
2635
2633
|
pub async fn get_identity_by_public_key_hash(
|
|
2636
2634
|
&mut self,
|
|
2637
2635
|
request: impl tonic::IntoRequest<super::GetIdentityByPublicKeyHashRequest>,
|
|
@@ -2816,6 +2814,36 @@ pub mod platform_client {
|
|
|
2816
2814
|
);
|
|
2817
2815
|
self.inner.unary(req, path, codec).await
|
|
2818
2816
|
}
|
|
2817
|
+
pub async fn get_path_elements(
|
|
2818
|
+
&mut self,
|
|
2819
|
+
request: impl tonic::IntoRequest<super::GetPathElementsRequest>,
|
|
2820
|
+
) -> std::result::Result<
|
|
2821
|
+
tonic::Response<super::GetPathElementsResponse>,
|
|
2822
|
+
tonic::Status,
|
|
2823
|
+
> {
|
|
2824
|
+
self.inner
|
|
2825
|
+
.ready()
|
|
2826
|
+
.await
|
|
2827
|
+
.map_err(|e| {
|
|
2828
|
+
tonic::Status::new(
|
|
2829
|
+
tonic::Code::Unknown,
|
|
2830
|
+
format!("Service was not ready: {}", e.into()),
|
|
2831
|
+
)
|
|
2832
|
+
})?;
|
|
2833
|
+
let codec = tonic::codec::ProstCodec::default();
|
|
2834
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
2835
|
+
"/org.dash.platform.dapi.v0.Platform/getPathElements",
|
|
2836
|
+
);
|
|
2837
|
+
let mut req = request.into_request();
|
|
2838
|
+
req.extensions_mut()
|
|
2839
|
+
.insert(
|
|
2840
|
+
GrpcMethod::new(
|
|
2841
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
2842
|
+
"getPathElements",
|
|
2843
|
+
),
|
|
2844
|
+
);
|
|
2845
|
+
self.inner.unary(req, path, codec).await
|
|
2846
|
+
}
|
|
2819
2847
|
}
|
|
2820
2848
|
}
|
|
2821
2849
|
/// Generated server implementations.
|
|
@@ -2839,18 +2867,18 @@ pub mod platform_server {
|
|
|
2839
2867
|
tonic::Response<super::GetIdentityResponse>,
|
|
2840
2868
|
tonic::Status,
|
|
2841
2869
|
>;
|
|
2842
|
-
async fn
|
|
2870
|
+
async fn get_identity_keys(
|
|
2843
2871
|
&self,
|
|
2844
|
-
request: tonic::Request<super::
|
|
2872
|
+
request: tonic::Request<super::GetIdentityKeysRequest>,
|
|
2845
2873
|
) -> std::result::Result<
|
|
2846
|
-
tonic::Response<super::
|
|
2874
|
+
tonic::Response<super::GetIdentityKeysResponse>,
|
|
2847
2875
|
tonic::Status,
|
|
2848
2876
|
>;
|
|
2849
|
-
async fn
|
|
2877
|
+
async fn get_identities_contract_keys(
|
|
2850
2878
|
&self,
|
|
2851
|
-
request: tonic::Request<super::
|
|
2879
|
+
request: tonic::Request<super::GetIdentitiesContractKeysRequest>,
|
|
2852
2880
|
) -> std::result::Result<
|
|
2853
|
-
tonic::Response<super::
|
|
2881
|
+
tonic::Response<super::GetIdentitiesContractKeysResponse>,
|
|
2854
2882
|
tonic::Status,
|
|
2855
2883
|
>;
|
|
2856
2884
|
async fn get_identity_nonce(
|
|
@@ -2916,13 +2944,6 @@ pub mod platform_server {
|
|
|
2916
2944
|
tonic::Response<super::GetDocumentsResponse>,
|
|
2917
2945
|
tonic::Status,
|
|
2918
2946
|
>;
|
|
2919
|
-
async fn get_identities_by_public_key_hashes(
|
|
2920
|
-
&self,
|
|
2921
|
-
request: tonic::Request<super::GetIdentitiesByPublicKeyHashesRequest>,
|
|
2922
|
-
) -> std::result::Result<
|
|
2923
|
-
tonic::Response<super::GetIdentitiesByPublicKeyHashesResponse>,
|
|
2924
|
-
tonic::Status,
|
|
2925
|
-
>;
|
|
2926
2947
|
async fn get_identity_by_public_key_hash(
|
|
2927
2948
|
&self,
|
|
2928
2949
|
request: tonic::Request<super::GetIdentityByPublicKeyHashRequest>,
|
|
@@ -2965,6 +2986,13 @@ pub mod platform_server {
|
|
|
2965
2986
|
tonic::Response<super::GetEpochsInfoResponse>,
|
|
2966
2987
|
tonic::Status,
|
|
2967
2988
|
>;
|
|
2989
|
+
async fn get_path_elements(
|
|
2990
|
+
&self,
|
|
2991
|
+
request: tonic::Request<super::GetPathElementsRequest>,
|
|
2992
|
+
) -> std::result::Result<
|
|
2993
|
+
tonic::Response<super::GetPathElementsResponse>,
|
|
2994
|
+
tonic::Status,
|
|
2995
|
+
>;
|
|
2968
2996
|
}
|
|
2969
2997
|
#[derive(Debug)]
|
|
2970
2998
|
pub struct PlatformServer<T: Platform> {
|
|
@@ -3139,25 +3167,25 @@ pub mod platform_server {
|
|
|
3139
3167
|
};
|
|
3140
3168
|
Box::pin(fut)
|
|
3141
3169
|
}
|
|
3142
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
3170
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentityKeys" => {
|
|
3143
3171
|
#[allow(non_camel_case_types)]
|
|
3144
|
-
struct
|
|
3172
|
+
struct getIdentityKeysSvc<T: Platform>(pub Arc<T>);
|
|
3145
3173
|
impl<
|
|
3146
3174
|
T: Platform,
|
|
3147
|
-
> tonic::server::UnaryService<super::
|
|
3148
|
-
for
|
|
3149
|
-
type Response = super::
|
|
3175
|
+
> tonic::server::UnaryService<super::GetIdentityKeysRequest>
|
|
3176
|
+
for getIdentityKeysSvc<T> {
|
|
3177
|
+
type Response = super::GetIdentityKeysResponse;
|
|
3150
3178
|
type Future = BoxFuture<
|
|
3151
3179
|
tonic::Response<Self::Response>,
|
|
3152
3180
|
tonic::Status,
|
|
3153
3181
|
>;
|
|
3154
3182
|
fn call(
|
|
3155
3183
|
&mut self,
|
|
3156
|
-
request: tonic::Request<super::
|
|
3184
|
+
request: tonic::Request<super::GetIdentityKeysRequest>,
|
|
3157
3185
|
) -> Self::Future {
|
|
3158
3186
|
let inner = Arc::clone(&self.0);
|
|
3159
3187
|
let fut = async move {
|
|
3160
|
-
(*inner).
|
|
3188
|
+
(*inner).get_identity_keys(request).await
|
|
3161
3189
|
};
|
|
3162
3190
|
Box::pin(fut)
|
|
3163
3191
|
}
|
|
@@ -3169,7 +3197,7 @@ pub mod platform_server {
|
|
|
3169
3197
|
let inner = self.inner.clone();
|
|
3170
3198
|
let fut = async move {
|
|
3171
3199
|
let inner = inner.0;
|
|
3172
|
-
let method =
|
|
3200
|
+
let method = getIdentityKeysSvc(inner);
|
|
3173
3201
|
let codec = tonic::codec::ProstCodec::default();
|
|
3174
3202
|
let mut grpc = tonic::server::Grpc::new(codec)
|
|
3175
3203
|
.apply_compression_config(
|
|
@@ -3185,25 +3213,28 @@ pub mod platform_server {
|
|
|
3185
3213
|
};
|
|
3186
3214
|
Box::pin(fut)
|
|
3187
3215
|
}
|
|
3188
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
3216
|
+
"/org.dash.platform.dapi.v0.Platform/getIdentitiesContractKeys" => {
|
|
3189
3217
|
#[allow(non_camel_case_types)]
|
|
3190
|
-
struct
|
|
3218
|
+
struct getIdentitiesContractKeysSvc<T: Platform>(pub Arc<T>);
|
|
3191
3219
|
impl<
|
|
3192
3220
|
T: Platform,
|
|
3193
|
-
> tonic::server::UnaryService<
|
|
3194
|
-
|
|
3195
|
-
|
|
3221
|
+
> tonic::server::UnaryService<
|
|
3222
|
+
super::GetIdentitiesContractKeysRequest,
|
|
3223
|
+
> for getIdentitiesContractKeysSvc<T> {
|
|
3224
|
+
type Response = super::GetIdentitiesContractKeysResponse;
|
|
3196
3225
|
type Future = BoxFuture<
|
|
3197
3226
|
tonic::Response<Self::Response>,
|
|
3198
3227
|
tonic::Status,
|
|
3199
3228
|
>;
|
|
3200
3229
|
fn call(
|
|
3201
3230
|
&mut self,
|
|
3202
|
-
request: tonic::Request<
|
|
3231
|
+
request: tonic::Request<
|
|
3232
|
+
super::GetIdentitiesContractKeysRequest,
|
|
3233
|
+
>,
|
|
3203
3234
|
) -> Self::Future {
|
|
3204
3235
|
let inner = Arc::clone(&self.0);
|
|
3205
3236
|
let fut = async move {
|
|
3206
|
-
(*inner).
|
|
3237
|
+
(*inner).get_identities_contract_keys(request).await
|
|
3207
3238
|
};
|
|
3208
3239
|
Box::pin(fut)
|
|
3209
3240
|
}
|
|
@@ -3215,7 +3246,7 @@ pub mod platform_server {
|
|
|
3215
3246
|
let inner = self.inner.clone();
|
|
3216
3247
|
let fut = async move {
|
|
3217
3248
|
let inner = inner.0;
|
|
3218
|
-
let method =
|
|
3249
|
+
let method = getIdentitiesContractKeysSvc(inner);
|
|
3219
3250
|
let codec = tonic::codec::ProstCodec::default();
|
|
3220
3251
|
let mut grpc = tonic::server::Grpc::new(codec)
|
|
3221
3252
|
.apply_compression_config(
|
|
@@ -3648,55 +3679,6 @@ pub mod platform_server {
|
|
|
3648
3679
|
};
|
|
3649
3680
|
Box::pin(fut)
|
|
3650
3681
|
}
|
|
3651
|
-
"/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes" => {
|
|
3652
|
-
#[allow(non_camel_case_types)]
|
|
3653
|
-
struct getIdentitiesByPublicKeyHashesSvc<T: Platform>(pub Arc<T>);
|
|
3654
|
-
impl<
|
|
3655
|
-
T: Platform,
|
|
3656
|
-
> tonic::server::UnaryService<
|
|
3657
|
-
super::GetIdentitiesByPublicKeyHashesRequest,
|
|
3658
|
-
> for getIdentitiesByPublicKeyHashesSvc<T> {
|
|
3659
|
-
type Response = super::GetIdentitiesByPublicKeyHashesResponse;
|
|
3660
|
-
type Future = BoxFuture<
|
|
3661
|
-
tonic::Response<Self::Response>,
|
|
3662
|
-
tonic::Status,
|
|
3663
|
-
>;
|
|
3664
|
-
fn call(
|
|
3665
|
-
&mut self,
|
|
3666
|
-
request: tonic::Request<
|
|
3667
|
-
super::GetIdentitiesByPublicKeyHashesRequest,
|
|
3668
|
-
>,
|
|
3669
|
-
) -> Self::Future {
|
|
3670
|
-
let inner = Arc::clone(&self.0);
|
|
3671
|
-
let fut = async move {
|
|
3672
|
-
(*inner).get_identities_by_public_key_hashes(request).await
|
|
3673
|
-
};
|
|
3674
|
-
Box::pin(fut)
|
|
3675
|
-
}
|
|
3676
|
-
}
|
|
3677
|
-
let accept_compression_encodings = self.accept_compression_encodings;
|
|
3678
|
-
let send_compression_encodings = self.send_compression_encodings;
|
|
3679
|
-
let max_decoding_message_size = self.max_decoding_message_size;
|
|
3680
|
-
let max_encoding_message_size = self.max_encoding_message_size;
|
|
3681
|
-
let inner = self.inner.clone();
|
|
3682
|
-
let fut = async move {
|
|
3683
|
-
let inner = inner.0;
|
|
3684
|
-
let method = getIdentitiesByPublicKeyHashesSvc(inner);
|
|
3685
|
-
let codec = tonic::codec::ProstCodec::default();
|
|
3686
|
-
let mut grpc = tonic::server::Grpc::new(codec)
|
|
3687
|
-
.apply_compression_config(
|
|
3688
|
-
accept_compression_encodings,
|
|
3689
|
-
send_compression_encodings,
|
|
3690
|
-
)
|
|
3691
|
-
.apply_max_message_size_config(
|
|
3692
|
-
max_decoding_message_size,
|
|
3693
|
-
max_encoding_message_size,
|
|
3694
|
-
);
|
|
3695
|
-
let res = grpc.unary(method, req).await;
|
|
3696
|
-
Ok(res)
|
|
3697
|
-
};
|
|
3698
|
-
Box::pin(fut)
|
|
3699
|
-
}
|
|
3700
3682
|
"/org.dash.platform.dapi.v0.Platform/getIdentityByPublicKeyHash" => {
|
|
3701
3683
|
#[allow(non_camel_case_types)]
|
|
3702
3684
|
struct getIdentityByPublicKeyHashSvc<T: Platform>(pub Arc<T>);
|
|
@@ -3989,6 +3971,52 @@ pub mod platform_server {
|
|
|
3989
3971
|
};
|
|
3990
3972
|
Box::pin(fut)
|
|
3991
3973
|
}
|
|
3974
|
+
"/org.dash.platform.dapi.v0.Platform/getPathElements" => {
|
|
3975
|
+
#[allow(non_camel_case_types)]
|
|
3976
|
+
struct getPathElementsSvc<T: Platform>(pub Arc<T>);
|
|
3977
|
+
impl<
|
|
3978
|
+
T: Platform,
|
|
3979
|
+
> tonic::server::UnaryService<super::GetPathElementsRequest>
|
|
3980
|
+
for getPathElementsSvc<T> {
|
|
3981
|
+
type Response = super::GetPathElementsResponse;
|
|
3982
|
+
type Future = BoxFuture<
|
|
3983
|
+
tonic::Response<Self::Response>,
|
|
3984
|
+
tonic::Status,
|
|
3985
|
+
>;
|
|
3986
|
+
fn call(
|
|
3987
|
+
&mut self,
|
|
3988
|
+
request: tonic::Request<super::GetPathElementsRequest>,
|
|
3989
|
+
) -> Self::Future {
|
|
3990
|
+
let inner = Arc::clone(&self.0);
|
|
3991
|
+
let fut = async move {
|
|
3992
|
+
(*inner).get_path_elements(request).await
|
|
3993
|
+
};
|
|
3994
|
+
Box::pin(fut)
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
let accept_compression_encodings = self.accept_compression_encodings;
|
|
3998
|
+
let send_compression_encodings = self.send_compression_encodings;
|
|
3999
|
+
let max_decoding_message_size = self.max_decoding_message_size;
|
|
4000
|
+
let max_encoding_message_size = self.max_encoding_message_size;
|
|
4001
|
+
let inner = self.inner.clone();
|
|
4002
|
+
let fut = async move {
|
|
4003
|
+
let inner = inner.0;
|
|
4004
|
+
let method = getPathElementsSvc(inner);
|
|
4005
|
+
let codec = tonic::codec::ProstCodec::default();
|
|
4006
|
+
let mut grpc = tonic::server::Grpc::new(codec)
|
|
4007
|
+
.apply_compression_config(
|
|
4008
|
+
accept_compression_encodings,
|
|
4009
|
+
send_compression_encodings,
|
|
4010
|
+
)
|
|
4011
|
+
.apply_max_message_size_config(
|
|
4012
|
+
max_decoding_message_size,
|
|
4013
|
+
max_encoding_message_size,
|
|
4014
|
+
);
|
|
4015
|
+
let res = grpc.unary(method, req).await;
|
|
4016
|
+
Ok(res)
|
|
4017
|
+
};
|
|
4018
|
+
Box::pin(fut)
|
|
4019
|
+
}
|
|
3992
4020
|
_ => {
|
|
3993
4021
|
Box::pin(async move {
|
|
3994
4022
|
Ok(
|