-
Notifications
You must be signed in to change notification settings - Fork 2
/
codec.go
25 lines (21 loc) · 1.01 KB
/
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
package types
import "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec"
// RegisterCodec registers concrete types on the Amino codec
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(MsgList{}, "fbexchain/dex/MsgList", nil)
cdc.RegisterConcrete(MsgDeposit{}, "fbexchain/dex/MsgDeposit", nil)
cdc.RegisterConcrete(MsgWithdraw{}, "fbexchain/dex/MsgWithdraw", nil)
cdc.RegisterConcrete(MsgTransferOwnership{}, "fbexchain/dex/MsgTransferTradingPairOwnership", nil)
cdc.RegisterConcrete(MsgConfirmOwnership{}, "fbexchain/dex/MsgConfirmOwnership", nil)
cdc.RegisterConcrete(DelistProposal{}, "fbexchain/dex/DelistProposal", nil)
cdc.RegisterConcrete(MsgCreateOperator{}, "fbexchain/dex/CreateOperator", nil)
cdc.RegisterConcrete(MsgUpdateOperator{}, "fbexchain/dex/UpdateOperator", nil)
}
// ModuleCdc represents generic sealed codec to be used throughout this module
var ModuleCdc *codec.Codec
func init() {
ModuleCdc = codec.New()
RegisterCodec(ModuleCdc)
codec.RegisterCrypto(ModuleCdc)
ModuleCdc.Seal()
}