2020-03-05 06:32:43 -08:00
|
|
|
package std
|
2020-02-18 04:50:13 -08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2020-05-05 07:28:20 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
2020-06-04 03:38:24 -07:00
|
|
|
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
2020-02-18 04:50:13 -08:00
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
2020-09-10 11:26:47 -07:00
|
|
|
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
|
2020-02-18 04:50:13 -08:00
|
|
|
)
|
|
|
|
|
2020-09-21 09:48:28 -07:00
|
|
|
// RegisterLegacyAminoCodec registers types with the Amino codec.
|
2020-09-07 07:47:12 -07:00
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
|
|
|
sdk.RegisterLegacyAminoCodec(cdc)
|
2020-06-04 03:38:24 -07:00
|
|
|
cryptocodec.RegisterCrypto(cdc)
|
2020-02-18 04:50:13 -08:00
|
|
|
}
|
2020-05-20 12:21:00 -07:00
|
|
|
|
2020-09-21 09:48:28 -07:00
|
|
|
// RegisterInterfaces registers Interfaces from sdk/types, vesting, crypto, tx.
|
2020-05-20 12:21:00 -07:00
|
|
|
func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry) {
|
|
|
|
sdk.RegisterInterfaces(interfaceRegistry)
|
2020-09-10 11:26:47 -07:00
|
|
|
txtypes.RegisterInterfaces(interfaceRegistry)
|
2020-09-21 09:48:28 -07:00
|
|
|
cryptocodec.RegisterInterfaces(interfaceRegistry)
|
2020-05-20 12:21:00 -07:00
|
|
|
}
|