@dashevo/dapi-grpc 4.2.0-beta.5 → 4.2.0-beta.7

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/README.md CHANGED
@@ -140,3 +140,35 @@ Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues
140
140
  ## License
141
141
 
142
142
  [MIT](LICENSE) © Dash Core Group, Inc.
143
+
144
+ ## Building generated clients
145
+
146
+ From the Platform monorepo, run `yarn install`, then provision the native
147
+ client generators once:
148
+
149
+ ```sh
150
+ python3 packages/dapi-grpc/scripts/setup-codegen.py --install
151
+ yarn workspace @dashevo/dapi-grpc build
152
+ ```
153
+
154
+ Installation needs Python 3.12 or newer, CMake and a C++ compiler. It builds
155
+ checksum-verified sources into your user cache without sudo or Docker. Linux
156
+ runner images provide the same tools at `/opt/client-codegen`. Set
157
+ `DAPI_GRPC_TOOLCHAIN` to use an explicitly provisioned installation; a missing or
158
+ mismatched installation fails rather than silently selecting a different protoc.
159
+
160
+ `codegen.json` pins the recipe and native generator versions. The client compiler
161
+ is deliberately separate from the Rust build's protoc 32.0: the existing client
162
+ output uses protobuf 3.18.1, gRPC 1.46.3, gRPC Java 1.42.1 and the Yarn-locked
163
+ `ts-protoc-gen` 0.15.0. Update the recipe, Platform lock and runner requirements
164
+ together, with generated-output compatibility checks. Ordinary builds never
165
+ install system packages or start containers.
166
+
167
+ Generation stages all languages before replacing `clients/`, so a failed plugin
168
+ preserves the previous output. Java, Objective-C and Python are generated for
169
+ repository consumers; the NPM archive continues to exclude them and ships the
170
+ Node and web clients. Run the generation regressions after installing the tools:
171
+
172
+ ```sh
173
+ yarn workspace @dashevo/dapi-grpc exec python3 -m unittest discover -s tests/codegen -v
174
+ ```
package/build.rs CHANGED
@@ -365,6 +365,10 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
365
365
  // vectors captured while the operand still rode `value` carry no
366
366
  // `time_range` key.
367
367
  .field_attribute("GetDocumentsRequest.WhereClause.time_range", SERDE_DEFAULT)
368
+ .field_attribute(
369
+ "GetDocumentsRequest.WhereClause.integer_range",
370
+ SERDE_DEFAULT,
371
+ )
368
372
  .field_attribute("ResponseMetadata.height", SERDE_WITH_STRING)
369
373
  .field_attribute("ResponseMetadata.time_ms", SERDE_WITH_STRING)
370
374
  .field_attribute("start_at_ms", SERDE_WITH_STRING)