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

48 lines
1.4 KiB
Go
Raw Permalink 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-09-07 13:25:57 -07:00
cdc.RegisterConcrete(&MsgLockFunds{}, "colinearcore/LockFunds", nil)
2022-09-08 14:49:56 -07:00
cdc.RegisterConcrete(&MsgUnlockFunds{}, "colinearcore/UnlockFunds", nil)
2022-09-08 16:29:08 -07:00
cdc.RegisterConcrete(&MsgUnlockAllFunds{}, "colinearcore/UnlockAllFunds", nil)
cdc.RegisterConcrete(&MsgClaimFunds{}, "colinearcore/ClaimFunds", 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-09-07 13:25:57 -07:00
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgLockFunds{},
)
2022-09-08 14:49:56 -07:00
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUnlockFunds{},
)
2022-09-08 16:29:08 -07:00
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUnlockAllFunds{},
)
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgClaimFunds{},
)
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())
)