You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the upgrade to Cosmos SDK v2 is a welcome improvement, there's a concerning inconsistency in Protocol Buffer versions that creates unnecessary complexity in implementations.
Problem Definition
Services still rely on Protocol Buffer v1 API
ORM only supports Protocol Buffer v2 API
This forces developers to implement inelegant wrapper solutions to handle v1 <-> v2 conversions
Proposed Feature
Issue #17840 mentions that tx and query services can use Protocol Buffer v2, but I haven't found any concrete examples of this implementation.
Questions:
Is there official guidance on using Protocol Buffer v2 with tx and query services?
Are there any example implementations available?
Is there a planned timeline to fully migrate services to Protocol Buffer v2?
This version mismatch significantly impacts development efficiency and code elegance. Clear documentation or migration guides would be helpful for the community.
Hi! You should consider and protobuf v1 as the one to use in the state machine.
ORM is a bit the odd kid right now, and I would advice you to use cosmossdk.io/collections instead.
We attempted to bring a good experience with protobuf v2, but eventually we decided that sticking with cosmos/gogoproto due to the complexity and subpar UX it created.
You should still be able to have clients using protobuf v2 without an issue however.
Summary
While the upgrade to Cosmos SDK v2 is a welcome improvement, there's a concerning inconsistency in Protocol Buffer versions that creates unnecessary complexity in implementations.
Problem Definition
Services still rely on Protocol Buffer v1 API
ORM only supports Protocol Buffer v2 API
This forces developers to implement inelegant wrapper solutions to handle v1 <-> v2 conversions
Proposed Feature
Issue #17840 mentions that tx and query services can use Protocol Buffer v2, but I haven't found any concrete examples of this implementation.
Questions:
Is there official guidance on using Protocol Buffer v2 with tx and query services?
Are there any example implementations available?
Is there a planned timeline to fully migrate services to Protocol Buffer v2?
This version mismatch significantly impacts development efficiency and code elegance. Clear documentation or migration guides would be helpful for the community.
Related: #17840
The text was updated successfully, but these errors were encountered: