Documentation ¶
Index ¶
- Constants
- 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 RegisterCodec(cdc *codec.Codec)
- type Keeper
- type MsgBond
- type MsgUnbond
Constants ¶
View Source
const ( DefaultCodespace sdk.CodespaceType = 4 // simplestake errors reserve 300 - 399. CodeEmptyValidator sdk.CodeType = 300 CodeInvalidUnbond sdk.CodeType = 301 CodeEmptyStake sdk.CodeType = 302 CodeIncorrectStakingToken sdk.CodeType = 303 )
simple stake errors reserve 300 ~ 399.
Variables ¶
This section is empty.
Functions ¶
func ErrEmptyStake ¶
func ErrEmptyStake(codespace sdk.CodespaceType) sdk.Error
func ErrEmptyValidator ¶
func ErrEmptyValidator(codespace sdk.CodespaceType) sdk.Error
func ErrIncorrectStakingToken ¶
func ErrIncorrectStakingToken(codespace sdk.CodespaceType) sdk.Error
nolint
func ErrInvalidUnbond ¶
func ErrInvalidUnbond(codespace sdk.CodespaceType) sdk.Error
func NewHandler ¶
NewHandler returns a handler for "simplestake" type messages.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
simple stake keeper
type MsgBond ¶
type MsgBond struct { Address sdk.AccAddress `json:"address"` Stake sdk.Coin `json:"coins"` PubKey crypto.PubKey `json:"pub_key"` }
simple bond message
func NewMsgBond ¶
func (MsgBond) GetSigners ¶
func (msg MsgBond) GetSigners() []sdk.AccAddress
func (MsgBond) ValidateBasic ¶
basic validation of the bond message
type MsgUnbond ¶
type MsgUnbond struct {
Address sdk.AccAddress `json:"address"`
}
simple unbond message
func NewMsgUnbond ¶
func NewMsgUnbond(addr sdk.AccAddress) MsgUnbond
func (MsgUnbond) GetSignBytes ¶
get unbond message sign bytes
func (MsgUnbond) GetSigners ¶
func (msg MsgUnbond) GetSigners() []sdk.AccAddress
func (MsgUnbond) ValidateBasic ¶
Click to show internal directories.
Click to hide internal directories.