Documentation ¶
Overview ¶
Message to add validator described.
Message to remove validator described.
Message to replace validator described.
Index ¶
Constants ¶
View Source
const (
MsgAddValidatorType = types.ModuleName + "/add-validator"
)
Type for codec
View Source
const (
MsgRemoveValidatorType = types.ModuleName + "/remove-validator"
)
Type for codec
View Source
const (
MsgReplaceValidatorType = types.ModuleName + "/replace-validator"
)
Type for codec
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgAddValidator ¶
type MsgAddValidator struct { Address sdk.AccAddress `json:"address"` EthAddress string `json:"eth_address"` Sender sdk.AccAddress `json:"sender"` }
Message for adding validator
func NewMsgAddValidator ¶
func NewMsgAddValidator(address sdk.AccAddress, ethAddress string, sender sdk.AccAddress) MsgAddValidator
Create new 'add validator' message
func (MsgAddValidator) GetSignBytes ¶
func (msg MsgAddValidator) GetSignBytes() []byte
Get signature bytes
func (MsgAddValidator) GetSigners ¶
func (msg MsgAddValidator) GetSigners() []sdk.AccAddress
Get signers addresses
func (MsgAddValidator) ValidateBasic ¶
func (msg MsgAddValidator) ValidateBasic() sdk.Error
Validate basic for add validator msg
type MsgRemoveValidator ¶
type MsgRemoveValidator struct { Address sdk.AccAddress `json:"address"` Sender sdk.AccAddress `json:"sender"` }
Message for remove validator
func NewMsgRemoveValidator ¶
func NewMsgRemoveValidator(address sdk.AccAddress, sender sdk.AccAddress) MsgRemoveValidator
Creating 'remove validator' message
func (MsgRemoveValidator) GetSignBytes ¶
func (msg MsgRemoveValidator) GetSignBytes() []byte
Get bytes to sign from message data
func (MsgRemoveValidator) GetSigners ¶
func (msg MsgRemoveValidator) GetSigners() []sdk.AccAddress
Get signers addresses
func (MsgRemoveValidator) ValidateBasic ¶
func (msg MsgRemoveValidator) ValidateBasic() sdk.Error
Validate basic for remove validator message
type MsgReplaceValidator ¶
type MsgReplaceValidator struct { OldValidator sdk.AccAddress `json:"old_address"` NewValidator sdk.AccAddress `json:"new_validator"` EthAddress string `json:"eth_address"` Sender sdk.AccAddress `json:"sender"` }
Message for replace validator
func NewMsgReplaceValidator ¶
func NewMsgReplaceValidator(oldValidator sdk.AccAddress, newValidator sdk.AccAddress, ethAddress string, sender sdk.AccAddress) MsgReplaceValidator
Create new 'replace validator' message
func (MsgReplaceValidator) GetSignBytes ¶
func (msg MsgReplaceValidator) GetSignBytes() []byte
Get bytes to sign from message
func (MsgReplaceValidator) GetSigners ¶
func (msg MsgReplaceValidator) GetSigners() []sdk.AccAddress
Get signers addresses
func (MsgReplaceValidator) ValidateBasic ¶
func (msg MsgReplaceValidator) ValidateBasic() sdk.Error
Validate basic 'replace validator' message
Click to show internal directories.
Click to hide internal directories.