cosmos-sdk/x/gov/codec.go

19 lines
490 B
Go
Raw Normal View History

2018-06-21 17:19:14 -07:00
package gov
import (
"github.com/cosmos/cosmos-sdk/codec"
2018-06-21 17:19:14 -07:00
)
// Register concrete types on codec codec
func RegisterCodec(cdc *codec.Codec) {
2018-06-21 17:19:14 -07:00
cdc.RegisterConcrete(MsgSubmitProposal{}, "cosmos-sdk/MsgSubmitProposal", nil)
cdc.RegisterConcrete(MsgDeposit{}, "cosmos-sdk/MsgDeposit", nil)
cdc.RegisterConcrete(MsgVote{}, "cosmos-sdk/MsgVote", nil)
cdc.RegisterInterface((*Proposal)(nil), nil)
cdc.RegisterConcrete(&TextProposal{}, "gov/TextProposal", nil)
}
var msgCdc = codec.New()