2022-08-25 16:51:14 -07:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
|
2022-08-27 14:19:03 -07:00
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
2022-08-25 16:51:14 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterCodec(cdc *codec.LegacyAmino) {
|
2022-08-27 14:19:03 -07:00
|
|
|
cdc.RegisterConcrete(&MsgNewAuction{}, "cosmostest/NewAuction", nil)
|
2022-08-25 16:51:14 -07:00
|
|
|
// this line is used by starport scaffolding # 2
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
|
2022-08-27 14:19:03 -07:00
|
|
|
registry.RegisterImplementations((*sdk.Msg)(nil),
|
|
|
|
&MsgNewAuction{},
|
|
|
|
)
|
2022-08-25 16:51:14 -07:00
|
|
|
// this line is used by starport scaffolding # 3
|
|
|
|
|
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
Amino = codec.NewLegacyAmino()
|
|
|
|
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
|
|
|
|
)
|