Skip to content

Add QueryRequest::Grpc #1966

Closed
Closed
@chipshort

Description

@chipshort

We want this to be an improved version of the QueryRequest::Stargate query.

Some of the pain points of the current Stargate query:

  • As far as I can see, responses seem to sometimes be json, sometimes protobuf, even though the docs clearly specify protobuf. I wonder if there is some way to enforce this, since the responses are defined by the chains
  • The use of protobufs (as opposed to json like everywhere else) seems to regularly confuse contract devs who try to pass json in there. It would be good to make this easier somehow.

We could add something like a ProtobufBytes wrapper type that does some basic validation.
With that we could solve both points. Alternatively, for the first point, that validation could be done in wasmd to not burden the contract code with it.
However, the tricky part here is: How much can even be validated without knowing the concrete protobuf type? Does it become easier if we require all of them to by Any types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions