23 lines
731 B
Go
23 lines
731 B
Go
package codec
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
|
"github.com/cosmos/cosmos-sdk/std"
|
|
|
|
cryptocodec "github.com/cerc-io/laconicd/crypto/codec"
|
|
ethermint "github.com/cerc-io/laconicd/types"
|
|
)
|
|
|
|
// RegisterLegacyAminoCodec registers Interfaces from types, crypto, and SDK std.
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
|
std.RegisterLegacyAminoCodec(cdc)
|
|
}
|
|
|
|
// RegisterInterfaces registers Interfaces from types, crypto, and SDK std.
|
|
func RegisterInterfaces(interfaceRegistry codectypes.InterfaceRegistry) {
|
|
std.RegisterInterfaces(interfaceRegistry)
|
|
cryptocodec.RegisterInterfaces(interfaceRegistry)
|
|
ethermint.RegisterInterfaces(interfaceRegistry)
|
|
}
|