-
Notifications
You must be signed in to change notification settings - Fork 2
/
codec.go
26 lines (22 loc) · 878 Bytes
/
codec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package types
import (
"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec"
)
// RegisterCodec registers concrete types on codec
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(MsgCreatePool{}, "fbexchain/farm/MsgCreatePool", nil)
cdc.RegisterConcrete(MsgDestroyPool{}, "fbexchain/farm/MsgDestroyPool", nil)
cdc.RegisterConcrete(MsgLock{}, "fbexchain/farm/MsgLock", nil)
cdc.RegisterConcrete(MsgUnlock{}, "fbexchain/farm/MsgUnlock", nil)
cdc.RegisterConcrete(MsgClaim{}, "fbexchain/farm/MsgClaim", nil)
cdc.RegisterConcrete(MsgProvide{}, "fbexchain/farm/MsgProvide", nil)
cdc.RegisterConcrete(ManageWhiteListProposal{}, "fbexchain/farm/ManageWhiteListProposal", nil)
}
// ModuleCdc defines the module codec
var ModuleCdc *codec.Codec
func init() {
ModuleCdc = codec.New()
RegisterCodec(ModuleCdc)
codec.RegisterCrypto(ModuleCdc)
ModuleCdc.Seal()
}