2018-07-13 13:27:55 +00:00
|
|
|
package paychan
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/wire"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterWire(cdc *wire.Codec) {
|
|
|
|
cdc.RegisterConcrete(MsgCreate{}, "paychan/MsgCreate", nil)
|
2018-08-28 03:48:48 +00:00
|
|
|
cdc.RegisterConcrete(MsgSubmitUpdate{}, "paychan/MsgSubmitUpdate", nil)
|
2018-07-13 13:27:55 +00:00
|
|
|
}
|
|
|
|
|
2018-09-02 02:57:42 +00:00
|
|
|
// TODO move this to near the msg definitions?
|
2018-07-13 13:27:55 +00:00
|
|
|
var msgCdc = wire.NewCodec()
|
|
|
|
|
|
|
|
func init() {
|
2018-09-02 02:22:50 +00:00
|
|
|
wire.RegisterCrypto(msgCdc)
|
2018-07-13 13:27:55 +00:00
|
|
|
RegisterWire(msgCdc)
|
|
|
|
}
|