msg

package
v0.0.0-...-191b3e2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgCreateValidatorPOA

type MsgCreateValidatorPOA struct {
	Name        string                   `json:"name"`
	Address     sdk.ValAddress           `json:"address"`
	PubKey      crypto.PubKey            `json:"pubkey"`
	Description stakingtypes.Description `json:"description"`
	Owner       sdk.AccAddress           `json:"owner"`
}

MsgCreateValidatorPOA defines the message that creates a consensus validator

func NewMsgCreateValidatorPOA

func NewMsgCreateValidatorPOA(name string, address sdk.ValAddress, pubKey crypto.PubKey, description stakingtypes.Description, owner sdk.AccAddress) MsgCreateValidatorPOA

func (MsgCreateValidatorPOA) GetSignBytes

func (msg MsgCreateValidatorPOA) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCreateValidatorPOA) GetSigners

func (msg MsgCreateValidatorPOA) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (MsgCreateValidatorPOA) MarshalJSON

func (msg MsgCreateValidatorPOA) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface to provide custom JSON serialization of the MsgCreateValidator type. We define a custom marshaler here to allow for msg to be used in the genesis file

func (MsgCreateValidatorPOA) Route

func (msg MsgCreateValidatorPOA) Route() string

Route should return the name of the module

func (MsgCreateValidatorPOA) Type

func (msg MsgCreateValidatorPOA) Type() string

Type should return the action

func (*MsgCreateValidatorPOA) UnmarshalJSON

func (msg *MsgCreateValidatorPOA) UnmarshalJSON(bz []byte) error

UnmarshalJSON implements the json.Unmarshaler interface to provide custom JSON deserialization of the MsgCreateValidatorPOA type.

func (MsgCreateValidatorPOA) ValidateBasic

func (msg MsgCreateValidatorPOA) ValidateBasic() error

ValidateBasic runs stateless checks on the message

type MsgVoteValidator

type MsgVoteValidator struct {
	Name    string         `json:"name"`
	Voter   sdk.ValAddress `json:"voter"`
	InFavor bool           `json:"infavor"`
	Owner   sdk.AccAddress `json:"owner"`
}

Vote messages

func NewMsgVoteValidator

func NewMsgVoteValidator(name string, voter sdk.ValAddress, inFavor bool, owner sdk.AccAddress) MsgVoteValidator

func (MsgVoteValidator) GetSignBytes

func (msg MsgVoteValidator) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgVoteValidator) GetSigners

func (msg MsgVoteValidator) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (MsgVoteValidator) Route

func (msg MsgVoteValidator) Route() string

Route should return the name of the module

func (MsgVoteValidator) Type

func (msg MsgVoteValidator) Type() string

Type should return the action

func (MsgVoteValidator) ValidateBasic

func (msg MsgVoteValidator) ValidateBasic() error

ValidateBasic runs stateless checks on the message

Jump to

Keyboard shortcuts

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