diff --git a/app/encoding.go b/app/encoding.go index 5d4e7f5305..678a7b03e5 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -2,16 +2,52 @@ package app import ( "cosmossdk.io/simapp/params" + cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/cosmos/cosmos-sdk/x/authz" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" + distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" + slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" evmenc "github.com/evmos/ethermint/encoding" + ethermint "github.com/evmos/ethermint/types" + evmtypes "github.com/evmos/ethermint/x/evm/types" + + authoritytypes "github.com/zeta-chain/zetacore/x/authority/types" + crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" + emissionstypes "github.com/zeta-chain/zetacore/x/emissions/types" + fungibletypes "github.com/zeta-chain/zetacore/x/fungible/types" + lightclienttypes "github.com/zeta-chain/zetacore/x/lightclient/types" + observertypes "github.com/zeta-chain/zetacore/x/observer/types" ) // MakeEncodingConfig creates an EncodingConfig for testing func MakeEncodingConfig() params.EncodingConfig { //encodingConfig := params.MakeEncodingConfig() encodingConfig := evmenc.MakeConfig(ModuleBasics) - //std.RegisterLegacyAminoCodec(encodingConfig.Amino) - //std.RegisterInterfaces(encodingConfig.InterfaceRegistry) - //ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino) - //ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry) + registry := encodingConfig.InterfaceRegistry + + cryptocodec.RegisterInterfaces(registry) + authtypes.RegisterInterfaces(registry) + authz.RegisterInterfaces(registry) + banktypes.RegisterInterfaces(registry) + stakingtypes.RegisterInterfaces(registry) + slashingtypes.RegisterInterfaces(registry) + upgradetypes.RegisterInterfaces(registry) + distrtypes.RegisterInterfaces(registry) + evidencetypes.RegisterInterfaces(registry) + crisistypes.RegisterInterfaces(registry) + evmtypes.RegisterInterfaces(registry) + ethermint.RegisterInterfaces(registry) + authoritytypes.RegisterInterfaces(registry) + crosschaintypes.RegisterInterfaces(registry) + emissionstypes.RegisterInterfaces(registry) + fungibletypes.RegisterInterfaces(registry) + observertypes.RegisterInterfaces(registry) + lightclienttypes.RegisterInterfaces(registry) + return encodingConfig }