@dashevo/dapi-grpc 2.1.3 → 3.0.0-dev.10
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 +5 -4
- package/build.rs +68 -7
- package/clients/drive/v0/nodejs/drive_pbjs.js +7455 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +7455 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +32726 -25831
- package/clients/platform/v0/web/platform_pb.d.ts +917 -0
- package/clients/platform/v0/web/platform_pb.js +32726 -25831
- package/clients/platform/v0/web/platform_pb_service.d.ts +114 -0
- package/clients/platform/v0/web/platform_pb_service.js +240 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +164 -0
- package/src/core/client/org.dash.platform.dapi.v0.rs +29 -29
- package/src/core/wasm/org.dash.platform.dapi.v0.rs +29 -29
- package/src/drive/client/org.dash.platform.dapi.v0.rs +981 -302
- package/src/drive/client/org.dash.platform.drive.v0.rs +2 -2
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +981 -302
- package/src/drive/wasm/org.dash.platform.drive.v0.rs +2 -2
- package/src/lib.rs +3 -1
- package/src/platform/client/org.dash.platform.dapi.v0.rs +1145 -424
- package/src/platform/versioning.rs +8 -0
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +1145 -424
|
@@ -10,6 +10,14 @@ pub trait VersionedGrpcResponse {
|
|
|
10
10
|
fn metadata(&self) -> Result<&ResponseMetadata, Self::Error>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/// A trait for responses that contain merk proof bytes directly instead of a Proof message.
|
|
14
|
+
/// Used for branch/chunk state sync responses.
|
|
15
|
+
pub trait MerkProofVersionedGrpcResponse {
|
|
16
|
+
type Error: Display;
|
|
17
|
+
fn merk_proof(&self) -> Result<&Vec<u8>, Self::Error>;
|
|
18
|
+
fn merk_proof_owned(self) -> Result<Vec<u8>, Self::Error>;
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
/// A trait representing versioned message with version V.
|
|
14
22
|
///
|
|
15
23
|
/// Message SomeRequest that supports version 0 should implement VersionedGrpcMessage<SomeRequestV0>.
|