ability to call stargate via json #1997
Replies: 2 comments 2 replies
-
i imagine just deploying such contract |
Beta Was this translation helpful? Give feedback.
-
The current Stargate query is a mess as it was designed to be protobuf-in/protobuf-out but later implemented as pb-in/json-out in wasmd for "convenience" with no spec how this JSON is supposed to look like. We are pretty much freezing/giving up Stargate query now. With CosmWasm 2.0 there will be a GRPC query that will be strictly implemented with pb-in/pb-out: #1973. While JSON is simple and convenient especially for the contract-JavaScript interfaces, it is inefficient and for all Cosmos SDK communications lacks a strictly defined and well tested spec. What's your use case for this JSON interface? Could you route all your JSON embedded in a simple protobuf request/response? |
Beta Was this translation helpful? Give feedback.
-
currently stargate can be called only via protobuf, may be it is possible to use encoder which convert json to pb, and also use some contract address to send messages to host chain modules as if it is contract?
Beta Was this translation helpful? Give feedback.
All reactions