Versions in this module Expand all Collapse all v0 v0.23.1 Jul 27, 2018 Changes in this version + const CodeEmptyStake + const CodeEmptyValidator + const CodeIncorrectStakingToken + const CodeInvalidUnbond + const DefaultCodespace + func ErrEmptyStake(codespace sdk.CodespaceType) sdk.Error + func ErrEmptyValidator(codespace sdk.CodespaceType) sdk.Error + func ErrIncorrectStakingToken(codespace sdk.CodespaceType) sdk.Error + func ErrInvalidUnbond(codespace sdk.CodespaceType) sdk.Error + func NewHandler(k Keeper) sdk.Handler + func RegisterWire(cdc *wire.Codec) + type Keeper struct + func NewKeeper(key sdk.StoreKey, coinKeeper bank.Keeper, codespace sdk.CodespaceType) Keeper + func (k Keeper) Bond(ctx sdk.Context, addr sdk.AccAddress, pubKey crypto.PubKey, stake sdk.Coin) (int64, sdk.Error) + func (k Keeper) Unbond(ctx sdk.Context, addr sdk.AccAddress) (crypto.PubKey, int64, sdk.Error) + type MsgBond struct + Address sdk.AccAddress + PubKey crypto.PubKey + Stake sdk.Coin + func NewMsgBond(addr sdk.AccAddress, stake sdk.Coin, pubKey crypto.PubKey) MsgBond + func (msg MsgBond) GetSignBytes() []byte + func (msg MsgBond) GetSigners() []sdk.AccAddress + func (msg MsgBond) Type() string + func (msg MsgBond) ValidateBasic() sdk.Error + type MsgUnbond struct + Address sdk.AccAddress + func NewMsgUnbond(addr sdk.AccAddress) MsgUnbond + func (msg MsgUnbond) GetSignBytes() []byte + func (msg MsgUnbond) GetSigners() []sdk.AccAddress + func (msg MsgUnbond) Type() string + func (msg MsgUnbond) ValidateBasic() sdk.Error