gpu-compute-chain/x/colinearcore/types/codec.go

32 lines
870 B
Go
Raw Normal View History

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) {
cdc.RegisterConcrete(&MsgNewAuction{}, "colinear/NewAuction", nil)
cdc.RegisterConcrete(&MsgNewBid{}, "colinear/NewBid", 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-28 10:57:06 -07:00
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgNewBid{},
)
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())
)