@dashevo/dapi-grpc 5.0.2 → 5.1.0-dev.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 CHANGED
@@ -57,7 +57,7 @@ serde = ["dep:serde", "dep:serde_bytes", "tenderdash-proto/serde"]
57
57
  mocks = ["serde", "dep:serde_json"]
58
58
 
59
59
  [dependencies]
60
- tenderdash-proto = { git = "https://github.com/dashpay/rs-tenderdash-abci", tag = "v1.8.1", default-features = false }
60
+ tenderdash-proto = { git = "https://github.com/dashpay/rs-tenderdash-abci", tag = "v2.0.0-dev.2", default-features = false }
61
61
 
62
62
  prost = { version = "0.14" }
63
63
  futures-core = "0.3.30"
package/build.rs CHANGED
@@ -111,7 +111,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
111
111
  // Derive features for versioned messages
112
112
  //
113
113
  // "GetConsensusParamsRequest" is excluded as this message does not support proofs
114
- const VERSIONED_REQUESTS: [&str; 69] = [
114
+ const VERSIONED_REQUESTS: [&str; 75] = [
115
115
  "GetContractModerationStatusRequest",
116
116
  "GetContractModerationEntriesRequest",
117
117
  "GetContractDocumentRemovalsRequest",
@@ -142,6 +142,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
142
142
  "GetIdentityKeysRequest",
143
143
  "GetIdentityRequest",
144
144
  "WaitForStateTransitionResultRequest",
145
+ "GetRecentStateTransitionStatusRequest",
145
146
  "GetProtocolVersionUpgradeStateRequest",
146
147
  "GetProtocolVersionUpgradeVoteStatusRequest",
147
148
  "GetPathElementsRequest",
@@ -152,6 +153,8 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
152
153
  "GetContestedResourceVotersForIdentityRequest",
153
154
  "GetContestedResourceIdentityVotesRequest",
154
155
  "GetVotePollsByEndDateRequest",
156
+ "GetYesNoVotePollStateRequest",
157
+ "GetMasternodeYesNoVoteRequest",
155
158
  "GetTotalCreditsInPlatformRequest",
156
159
  "GetEvonodesProposedEpochBlocksByIdsRequest",
157
160
  "GetEvonodesProposedEpochBlocksByRangeRequest",
@@ -181,6 +184,9 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
181
184
  "GetShieldedPoolStateRequest",
182
185
  "GetShieldedNotesCountRequest",
183
186
  "GetShieldedNullifiersRequest",
187
+ "GetPrivateDocumentEntriesRequest",
188
+ "GetOwnerTransactionsInBlockRequest",
189
+ "GetBlocksRequest",
184
190
  ];
185
191
 
186
192
  const PROOF_ONLY_VERSIONED_REQUESTS: [&str; 1] = ["GetAddressesTrunkStateRequest"];
@@ -190,12 +196,15 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
190
196
  // The following responses are excluded as they don't support proofs:
191
197
  // - "GetConsensusParamsResponse"
192
198
  // - "GetStatusResponse"
199
+ // - "GetRecentStateTransitionStatusResponse"
193
200
  //
194
201
  // The following responses are excluded as they need custom proof handling:
202
+ // - "GetOwnerTransactionsInBlockResponse" (a Tenderdash block proof, not a GroveDB one)
203
+ // - "GetBlocksResponse" (a Tenderdash block proof in each block)
195
204
  // - "GetIdentityByNonUniquePublicKeyHashResponse" (V0 carries two proofs)
196
205
  //
197
206
  // "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
198
- const VERSIONED_RESPONSES: [&str; 66] = [
207
+ const VERSIONED_RESPONSES: [&str; 69] = [
199
208
  "GetContractModerationStatusResponse",
200
209
  "GetContractModerationEntriesResponse",
201
210
  "GetContractDocumentRemovalsResponse",
@@ -235,6 +244,8 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
235
244
  "GetContestedResourceVotersForIdentityResponse",
236
245
  "GetContestedResourceIdentityVotesResponse",
237
246
  "GetVotePollsByEndDateResponse",
247
+ "GetYesNoVotePollStateResponse",
248
+ "GetMasternodeYesNoVoteResponse",
238
249
  "GetTotalCreditsInPlatformResponse",
239
250
  "GetEvonodesProposedEpochBlocksResponse",
240
251
  "GetIdentityTokenBalancesResponse",
@@ -262,6 +273,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
262
273
  "GetShieldedPoolStateResponse",
263
274
  "GetShieldedNotesCountResponse",
264
275
  "GetShieldedNullifiersResponse",
276
+ "GetPrivateDocumentEntriesResponse",
265
277
  ];
266
278
 
267
279
  const PROOF_ONLY_VERSIONED_RESPONSES: [&str; 1] = ["GetAddressesTrunkStateResponse"];
@@ -285,11 +297,13 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
285
297
  // - Bumping the matching `FeatureVersionBounds.max_version`
286
298
  // to 1 in `rs-platform-version`.
287
299
  // - Implementing the v1 dispatch arm in `drive-abci`.
288
- const VERSIONED_AT_V1_REQUESTS: [&str; 2] = [
300
+ const VERSIONED_AT_V1_REQUESTS: [&str; 3] = [
289
301
  "GetDocumentsRequest",
302
+ "GetDocumentHistoryRequest",
290
303
  "GetIdentityByNonUniquePublicKeyHashRequest",
291
304
  ];
292
- const VERSIONED_AT_V1_RESPONSES: [&str; 1] = ["GetDocumentsResponse"];
305
+ const VERSIONED_AT_V1_RESPONSES: [&str; 2] =
306
+ ["GetDocumentsResponse", "GetDocumentHistoryResponse"];
293
307
 
294
308
  // Derive VersionedGrpcMessage on requests
295
309
  for msg in VERSIONED_REQUESTS {
@@ -416,6 +430,8 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
416
430
  // and doesn't need the `bytes`-shaped serde shim.
417
431
  .field_attribute("GetDocumentsRequestV0.where", SERDE_WITH_BYTES)
418
432
  .field_attribute("GetDocumentsRequestV0.order_by", SERDE_WITH_BYTES)
433
+ // A private document entry: up to a chunk of these fills a page
434
+ .field_attribute("PrivateDocumentEntry.data", SERDE_WITH_BYTES)
419
435
  // Proof fields
420
436
  .field_attribute("Proof.grovedb_proof", SERDE_WITH_BYTES)
421
437
  .field_attribute("Proof.quorum_hash", SERDE_WITH_BYTES)