/* Copyright [2019] - [2021], PERSISTENCE TECHNOLOGIES PTE. LTD. and the persistenceCore contributors SPDX-License-Identifier: Apache-2.0 */ package params import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/x/auth/tx" ) // MakeEncodingConfig creates an EncodingConfiguration for an amino based test configuration. func MakeEncodingConfig() EncodingConfig { amino := codec.NewLegacyAmino() interfaceRegistry := types.NewInterfaceRegistry() codec := codec.NewProtoCodec(interfaceRegistry) txCfg := tx.NewTxConfig(codec, tx.DefaultSignModes) return EncodingConfig{ InterfaceRegistry: interfaceRegistry, Codec: codec, TxConfig: txCfg, Amino: amino, } }