Closed
Description
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
- Implement SIGN_MODE_DIRECT #6216 Full Proto & Full Amino integration tests
- unit tests
- Proto, Amino Signing integration tests
Activity