Skip to content

Full amino encoding support #6190

Closed
Closed
@aaronc

Description

@aaronc

Summary

We have attempted to maintain a compatibility for amino on a few levels during the protobuf migration:

  • the ability to use the AminoCodec for state encoding
  • the ability to still use amino for transaction encoding by configuring the appropriate tx.Generator
  • the ability to sign protobuf transactions using Amino JSON

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 parallel

Test Matrix

Name +build tags Details Which Tests
Full Proto !test_amino, !test_amino_signing simapp uses HybridMarshaler and proto tx (#6213), simcli uses proto JSON marshaler Unit and integration tests + all sims
Proto, Amino Signing !test_amino, test_amino_signing Same as full proto but simcli uses amino JSON signing Just integration tests
Full Amino test_amino simapp and simcli use AminoMarshaler and amino tx Unit and integration tests

TODO

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions