You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure protobuf messages are defined in packages/dapi-grpc/protos/platform/v0/platform.proto and generated
correctly in packages/dapi-grpc/src/platform/proto/org.dash.platform.dapi.v0.rs.
In packages/dapi-grpc/build.rs, add Request to VERSIONED_REQUESTS and response Response to VERSIONED_RESPONSES.
This should add derive of VersionedGrpcMessage (and some more) in org.dash.platform.dapi.v0.rs.
Link request and response type to dapi-client by adding appropriate invocation of impl_transport_request_grpc! macro
in packages/rs-dapi-client/src/transport/grpc.rs.
If needed, implement new type in packages/rs-drive-proof-verifier/src/types.rs to hide complexity of data structures
used internally.
If you intend to implement FetchMany, you should define type returned by fetch_many() using RetrievedObjects
that will store collection of returned objects, indexd by some key.
Implement FromProof trait for the Object (or type defined in types.rs) in packages/rs-drive-proof-verifier/src/proof.rs.
Implement Query trait for the Request in packages/rs-sdk/src/platform/query.rs.
Implement Fetch\<Request\> trait for the Object (or type defined in types.rs) in packages/rs-sdk/src/platform/fetch.rs.
Implement FetchMany\<Request\> trait for the Object (or type defined in types.rs) in packages/rs-sdk/src/platform/fetch_many.rs.
Add mod ...; clause to packages/rs-sdk/tests/fetch/main.rs
Implement unit tests in packages/rs-sdk/tests/fetch/*object*.rs
Add name of request type to match clause in packages/rs-sdk/src/mock/sdk.rs : load_expectations()
Start local devnet with yarn reset ; yarn setup && yarn start
Generate test vectors with script packages/rs-sdk/scripts/generate_test_vectors.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
Added data contract history query to rs-sdk
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only