2020-06-18 13:29:41 -07:00
|
|
|
package simapp
|
|
|
|
|
|
|
|
import (
|
2020-10-23 05:07:52 -07:00
|
|
|
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
2020-06-18 13:29:41 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/std"
|
|
|
|
)
|
|
|
|
|
2021-01-07 13:50:52 -08:00
|
|
|
// MakeTestEncodingConfig creates an EncodingConfig for testing. This function
|
|
|
|
// should be used only in tests or when creating a new app instance (NewApp*()).
|
|
|
|
// App user shouldn't create new codecs - use the app.AppCodec instead.
|
2020-10-27 04:33:48 -07:00
|
|
|
// [DEPRECATED]
|
|
|
|
func MakeTestEncodingConfig() simappparams.EncodingConfig {
|
|
|
|
encodingConfig := simappparams.MakeTestEncodingConfig()
|
2020-09-07 07:47:12 -07:00
|
|
|
std.RegisterLegacyAminoCodec(encodingConfig.Amino)
|
2020-06-18 13:29:41 -07:00
|
|
|
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
2020-09-07 07:47:12 -07:00
|
|
|
ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
|
2020-07-23 19:45:34 -07:00
|
|
|
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
2020-06-18 13:29:41 -07:00
|
|
|
return encodingConfig
|
|
|
|
}
|