feat(wasm-sdk): chained document queries with js-evo-sdk facade and suite coverage - #4555
feat(wasm-sdk): chained document queries with js-evo-sdk facade and suite coverage#4555QuantumExplorer wants to merge 0 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🕓 Ready for review — 34 ahead in queue (commit 72809ab) |
747a4ff to
1fce7c0
Compare
7ae8b57 to
1546fd2
Compare
1fce7c0 to
0b952fa
Compare
f8cdae9 to
88c85a3
Compare
0b952fa to
73db084
Compare
88c85a3 to
e5354d0
Compare
73db084 to
71237d7
Compare
e5354d0 to
a7e5473
Compare
71237d7 to
287fdb6
Compare
a7e5473 to
c34d09f
Compare
287fdb6 to
cb21adc
Compare
c34d09f to
72809ab
Compare
cb21adc to
e4a2646
Compare
72809ab to
e4a2646
Compare
Issue being fixed or feature implemented
Final PR of the chained-document-queries stack (base: #4552). The JS surface for the provable semi-join — "posts I liked" in one verified round trip from the browser.
What was done?
wasm-sdk (
src/queries/chained_document.rs, module precedent:document_ranked.rs):ChainedDocumentsQuery/ChainedDocumentsResultTypeScript declarations.getChainedDocuments/getChainedDocumentsWithProofInfoonWasmSdk. The inner half reuses the documents query builder (where/orderByin the familiar clause shape,innerLimitrequired); results are{ innerDocuments, outerDocuments }arrays in inner-proof order. Always proof-verified — two grovedb proofs bound to one quorum-signed root, with the outer query re-derived from the proven inner values, so the node cannot steer the join.js-evo-sdk:
sdk.documents.chained(...)/chainedWithProof(...)facade methods.refersTodocs it builds on, including the pagination recipe (inner keyset cursor on the join property).platform-test-suite:
IndexOnlyDocument.spec.js, against the yappr contract the spec already registers: liked posts come back as full post bodies through the shared EvoSDK (createPlatformProofVerifier.getEvoSdkForNetwork, now exported), asserting both halves, inner order, and the identifier surface.How Has This Been Tested?
cargo check -p wasm-sdk --target wasm32-unknown-unknownclean; fullyarn workspace @dashevo/wasm-sdk build(wasm-pack + bundle) succeeds and the generated.d.tscarries the new methods.yarn workspace @dashevo/evo-sdk buildcompiles against the regenerated types.yarn test:suiteon the IndexOnlyDocument spec); the underlying proof composition is unit/e2e-tested in the base PRs (rs-drive 7/7, drive-abci 4/4, dash-platform-queries 5/5).Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code