* rename RegisterCodec to RegisterLegacyAminoCodec * Add changelog * gofmt * rename codec.New() to codec.NewLegacyAmino() * Add change log * Update CHANGELOG.md Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> * Fix Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
22 lines
664 B
Go
22 lines
664 B
Go
package std
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
|
|
)
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
|
vesting.RegisterLegacyAminoCodec(cdc)
|
|
sdk.RegisterLegacyAminoCodec(cdc)
|
|
cryptocodec.RegisterCrypto(cdc)
|
|
}
|
|
|
|
// RegisterInterfaces registers Interfaces from sdk/types and vesting
|
|
func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry) {
|
|
sdk.RegisterInterfaces(interfaceRegistry)
|
|
vesting.RegisterInterfaces(interfaceRegistry)
|
|
}
|