2018-10-05 03:41:38 -07:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Register concrete types on codec codec
|
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
|
|
cdc.RegisterConcrete(MsgWithdrawDelegatorReward{}, "cosmos-sdk/MsgWithdrawDelegationReward", nil)
|
2019-01-16 13:38:05 -08:00
|
|
|
cdc.RegisterConcrete(MsgWithdrawValidatorCommission{}, "cosmos-sdk/MsgWithdrawValidatorCommission", nil)
|
2018-10-05 03:41:38 -07:00
|
|
|
cdc.RegisterConcrete(MsgSetWithdrawAddress{}, "cosmos-sdk/MsgModifyWithdrawAddress", nil)
|
|
|
|
}
|
|
|
|
|
|
|
|
// generic sealed codec to be used throughout module
|
|
|
|
var MsgCdc *codec.Codec
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cdc := codec.New()
|
|
|
|
RegisterCodec(cdc)
|
|
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
MsgCdc = cdc.Seal()
|
|
|
|
}
|