23 lines
740 B
Go
23 lines
740 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"
|
|
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
|
)
|
|
|
|
// RegisterLegacyAminoCodec registers types with the Amino codec.
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
|
sdk.RegisterLegacyAminoCodec(cdc)
|
|
cryptocodec.RegisterCrypto(cdc)
|
|
}
|
|
|
|
// RegisterInterfaces registers Interfaces from sdk/types, vesting, crypto, tx.
|
|
func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry) {
|
|
sdk.RegisterInterfaces(interfaceRegistry)
|
|
txtypes.RegisterInterfaces(interfaceRegistry)
|
|
cryptocodec.RegisterInterfaces(interfaceRegistry)
|
|
}
|