cosmos-rust
cosmos-rust copied to clipboard
Type URLs for x/authz messages not present
In cosmos-sdk-proto, I'm not seeing any Type URL implementations for any of the messages in the x/authz module. For example, MsgGrant, or GenericAuthorization.
https://github.com/cosmos/cosmos-rust/blob/main/cosmos-sdk-proto/src/type_urls.rs This file maybe have not impl for the type.
Yeah, right now adding the type URLs is a manual process unfortunately.
I opened an upstream PR which attempts to upstream some of the work from these crates so it can be automated with prost-build: https://github.com/tokio-rs/prost/pull/858
Gotcha. Yeah it's not a super big deal even now as I can manually input the Type URLs when serializing to any. Just would be nice to have this all consistent!
As a stopgap we could possibly add something to proto-build, otherwise PRs accepted if someone wants to add the type URLs by hand.
Edit: see #409 for discussion of using prost-build to auto-generate these.