0g-chain/internal/x/paychan/wire.go

19 lines
384 B
Go
Raw Normal View History

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)
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)
}