mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
18 lines
547 B
Go
18 lines
547 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"github.com/cosmos/cosmos-sdk/std"
|
||
|
|
||
|
"github.com/kava-labs/kava/app/params"
|
||
|
)
|
||
|
|
||
|
// MakeEncodingConfig creates an EncodingConfig and registers the app's types on it.
|
||
|
func MakeEncodingConfig() params.EncodingConfig {
|
||
|
encodingConfig := params.MakeEncodingConfig()
|
||
|
std.RegisterLegacyAminoCodec(encodingConfig.Amino)
|
||
|
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
||
|
ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
|
||
|
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
||
|
return encodingConfig
|
||
|
}
|