cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.28k stars 3.64k forks source link

server/v2: wire grpc and gateway #20798

Open tac0turtle opened 5 months ago

tac0turtle commented 5 months ago
julienrbrt commented 1 month ago

ref: https://github.com/cosmos/cosmos-sdk/pull/22278/files#diff-37832b152aeffcb6b1aa5704837f3fa357876b1993277b3657722863192f3f83R123

julienrbrt commented 4 weeks ago

Wouldn't we able to use the rest v2 (post endpoint) server, and proxy query to it? Basically, an http handler that split the request path, and checks the proto registry matching Service, and make Post a request from the server for it?

That will be hacky, but does sound possible. That will be probably less efficient than the new rest endpoint, but will be good enough for those willing backward compat.