msgs

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

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) Route

func (msg MsgAddValidator) Route() string

Message route

func (MsgAddValidator) Type

func (msg MsgAddValidator) Type() string

Message type

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) Route

func (msg MsgRemoveValidator) Route() string

Message route

func (MsgRemoveValidator) Type

func (msg MsgRemoveValidator) Type() string

Message type

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) Route

func (msg MsgReplaceValidator) Route() string

Message route

func (MsgReplaceValidator) Type

func (msg MsgReplaceValidator) Type() string

Message type

func (MsgReplaceValidator) ValidateBasic

func (msg MsgReplaceValidator) ValidateBasic() sdk.Error

Validate basic 'replace validator' message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL