Reusability of common functionality for other cosmos crates
xla opened this issue · 2 comments
Hej frens, I'm currently bootstrapping a rust crate for Osmosis very much in the same fashion of this crate, done so for Terra over the last months but that might be less relevant now. I'm finding myself recreating the infrastructure for proto generation, prost extensions and mapping of domain types to proto types.
Wanted to pose an open-ended question as to what could potentially extracted/shared from this repo to be used across app chain crates?
- Msg trait
- proto-build
- proto_ext
As Osmosis and Terra are both Cosmos SDK-based chains, it seems like you'd want to rely on cosmos-sdk-proto
/cosmrs
as a library anyway?
Re: proto-build
, it's come up before. tendermint-proto
and ibc-rs
have similar functionality.
It might be interesting to upstream proto_ext
into tendermint
/tendermint-proto
.
Your comment over here informalsystems/tendermint-rs#654 (comment) is in line what I'm looking for.