Skip to content

Protocol v14 features (ranked aggregate indexes, document refersTo) have no JS client surface in wasm-sdk / evo-sdk #4402

Description

@thephez

Expected Behavior

The protocol v14 features on v4.2-dev should be usable from the recommended JavaScript SDK:

Current Behavior

Neither has a JS surface. Both are implemented in Drive/DPP and reachable over gRPC, but the client path stops before JavaScript.

packages/js-evo-sdk has exactly one change between v4.1.0 and v4.2-dev: the package.json version bump from the release commit (#4379). No source file changed.

Since evo-sdk is a thin wrapper over @dashevo/wasm-sdk, the gap starts a layer down: the only ranked-index-related code in wasm-sdk is a GroveElementType declaration plus sum projection in src/queries/system.rs (from #4266). That is low-level GroveDB element typing, not a top-K query API. refersTo has no wasm-sdk plumbing at all.

Client-side v14 work landed in packages/rs-sdk, so these features are currently Rust-only for clients.

Possible Solution

  1. wasm-sdk: expose ranked/top-K document queries over the existing RankedEntry / RankedEntries messages in platform.proto.
  2. wasm-sdk: surface refersTo reference metadata and its consensus errors.
  3. evo-sdk: wrap both in the documents and contracts facades.

Alternatives Considered

N/A

Additional Context

Filed to track the gap, not to report a defect: v4.2-dev is active and these commits landed recently, so the binding work may just be lagging. Close if already planned.

Compared v4.1.0 .. v4.2-dev at eaf3a4890b; v4.2-dev is a moving target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions