Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Amino encoding support #775

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Remove Amino encoding support #775

merged 1 commit into from
Oct 11, 2023

Conversation

tony-iqlusion
Copy link
Member

Amino is a legacy pre-Protobuf serialization format used by early Cosmos chains, however pretty much all of them have migrated to Protobuf by this point.

Supporting both Amino and Protobuf is quite difficult as it completely duplicates effort for all serialized messages, with separate prost and prost_amino dependencies (where prost_amino is unmaintained) and message types which duplicate each other for both formats. TMKMS made it work by transcoding Protobuf to Amino back to Protobuf (for both requests and responses).

This commit fully moves TMKMS to be natively Protobuf and Protobuf alone.

The test suite previously only exercised the Amino functionality and has been fully updated to use Protobufs instead.

@tarcieri tarcieri force-pushed the remove-amino-support branch from 6c74dcd to 34b5c42 Compare October 11, 2023 15:37
Amino is a legacy pre-Protobuf serialization format used by early Cosmos
chains, however pretty much all of them have migrated to Protobuf by
this point.

Supporting both Amino and Protobuf is quite difficult as it completely
duplicates effort for all serialized messages, with separate `prost` and
`prost_amino` dependencies (where `prost_amino` is unmaintained) and
message types which duplicate each other for both formats. TMKMS made it
work by transcoding Protobuf to Amino back to Protobuf (for both
requests and responses).

This commit fully moves TMKMS to be natively Protobuf and Protobuf
alone.

The test suite previously only exercised the Amino functionality and has
been fully updated to use Protobufs instead.
@tony-iqlusion tony-iqlusion changed the title [WIP] Remove Amino encoding support Remove Amino encoding support Oct 11, 2023
@tony-iqlusion tony-iqlusion marked this pull request as ready for review October 11, 2023 15:43
@tony-iqlusion tony-iqlusion requested a review from a team October 11, 2023 15:44
@tony-iqlusion tony-iqlusion merged commit 1594677 into main Oct 11, 2023
9 checks passed
@tony-iqlusion tony-iqlusion deleted the remove-amino-support branch October 11, 2023 15:53
@tony-iqlusion tony-iqlusion mentioned this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants