-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Full amino encoding support #6190
Comments
Shouldn't Full Proto use ProtoMarshaler? Otherwise, it will still use Amino for anything JSON related. Also, maybe drop the |
Well, it's tricky because the JSON marshaling stuff on the server side AFAIK is only used for querier and REST endpoints which hopefully will get replaced with gRPC in the near future (which doesn't need to manually marshal anything at all). So I'd opt for using |
I do want to note that these build tags wouldn't affect any other code besides |
|
Is it still desired to have full amino support? From last conversations, I understood the conesnsus was leaning towards dropping amino at a defined point in the future as opposed to fully supporting it as an alternate encoding. |
Last time I was involved in a conversation that included this topic, we decided that we'd punt Amino out of the SDK in 0.41. The reason being, the 0.40 (stargate) release gives folks adequate time to update their infra and services to use proto. |
closing as proto has been widely adopted, offering to go back brings a overhead we are not able to handle. |
Summary
We have attempted to maintain a compatibility for amino on a few levels during the protobuf migration:
AminoCodec
for state encodingtx.Generator
We actually have very few tests that test that the above work properly and should.
Proposed Approaches
Simapp amino build flag
The simplest way to test a lot of this stuff with simapp might be to simply add an amino build flag which enables
AminoCodec
, etc. instead of protobuf and simply run the same unit tests in parallelTest Matrix
+build
tags!test_amino, !test_amino_signing
simapp
usesHybridMarshaler
and proto tx (#6213),simcli
uses proto JSON marshaler!test_amino, test_amino_signing
simcli
uses amino JSON signingtest_amino
simapp
andsimcli
useAminoMarshaler
and amino txTODO
The text was updated successfully, but these errors were encountered: