2018-09-18 20:30:00 -07:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Register concrete types on codec codec
|
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
2018-09-19 16:00:21 -07:00
|
|
|
cdc.RegisterConcrete(MsgWithdrawDelegatorRewardsAll{}, "cosmos-sdk/MsgWithdrawDelegationRewardsAll", nil)
|
|
|
|
cdc.RegisterConcrete(MsgWithdrawDelegatorReward{}, "cosmos-sdk/MsgWithdrawDelegationReward", nil)
|
2018-09-18 20:30:00 -07:00
|
|
|
cdc.RegisterConcrete(MsgWithdrawValidatorRewardsAll{}, "cosmos-sdk/MsgWithdrawValidatorRewardsAll", nil)
|
2018-09-19 16:00:21 -07:00
|
|
|
cdc.RegisterConcrete(MsgSetWithdrawAddress{}, "cosmos-sdk/MsgModifyWithdrawAddress", nil)
|
2018-09-18 20:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// generic sealed codec to be used throughout sdk
|
|
|
|
var MsgCdc *codec.Codec
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cdc := codec.New()
|
|
|
|
RegisterCodec(cdc)
|
|
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
MsgCdc = cdc.Seal()
|
|
|
|
}
|