@dashevo/dapi-grpc 5.0.0-rc.6 → 5.0.0-rc.8
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/build.rs +8 -3
- package/clients/drive/v0/nodejs/drive_pbjs.js +1026 -15
- package/clients/platform/v0/nodejs/platform_pbjs.js +1026 -15
- package/clients/platform/v0/nodejs/platform_protoc.js +1144 -21
- package/clients/platform/v0/web/platform_pb.d.ts +146 -3
- package/clients/platform/v0/web/platform_pb.js +1144 -21
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +33 -4
- package/test/unit/nonunique-proof.spec.js +64 -20
- package/tests/nonunique_identity_lookup_wire.rs +56 -0
package/build.rs
CHANGED
|
@@ -191,9 +191,11 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
|
|
|
191
191
|
// - "GetConsensusParamsResponse"
|
|
192
192
|
// - "GetStatusResponse"
|
|
193
193
|
//
|
|
194
|
+
// The following responses are excluded as they need custom proof handling:
|
|
195
|
+
// - "GetIdentityByNonUniquePublicKeyHashResponse" (V0 carries two proofs)
|
|
196
|
+
//
|
|
194
197
|
// "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
|
|
195
|
-
const VERSIONED_RESPONSES: [&str;
|
|
196
|
-
"GetIdentityByNonUniquePublicKeyHashResponse",
|
|
198
|
+
const VERSIONED_RESPONSES: [&str; 66] = [
|
|
197
199
|
"GetContractModerationStatusResponse",
|
|
198
200
|
"GetContractModerationEntriesResponse",
|
|
199
201
|
"GetContractDocumentRemovalsResponse",
|
|
@@ -283,7 +285,10 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
|
|
|
283
285
|
// - Bumping the matching `FeatureVersionBounds.max_version`
|
|
284
286
|
// to 1 in `rs-platform-version`.
|
|
285
287
|
// - Implementing the v1 dispatch arm in `drive-abci`.
|
|
286
|
-
const VERSIONED_AT_V1_REQUESTS: [&str;
|
|
288
|
+
const VERSIONED_AT_V1_REQUESTS: [&str; 2] = [
|
|
289
|
+
"GetDocumentsRequest",
|
|
290
|
+
"GetIdentityByNonUniquePublicKeyHashRequest",
|
|
291
|
+
];
|
|
287
292
|
const VERSIONED_AT_V1_RESPONSES: [&str; 1] = ["GetDocumentsResponse"];
|
|
288
293
|
|
|
289
294
|
// Derive VersionedGrpcMessage on requests
|