types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouterKey  = "nch"
	ModuleName = "nch"
)

RouterKey is key name of the nch module

Variables

View Source
var (
	EventTypeTransfer = "transfer"

	AttributeKeyRecipient = "recipient"
	AttributeKeySender    = "sender"

	AttributeValueCategory = ModuleName
)

Bank module event types

Functions

This section is empty.

Types

type MsgSend

type MsgSend struct {
	From   sdk.AccAddress `json:"from_address" yaml:"from_address"`
	To     sdk.AccAddress `json:"to_address" yaml:"to_address"`
	Amount sdk.Coins      `json:"amount" yaml:"amount"`
}

MsgSend defines a transfer message

func NewMsgSend

func NewMsgSend(from sdk.AccAddress, to sdk.AccAddress, amount sdk.Coins) MsgSend

NewMsgSend is a constructor function for MsgSend

func (MsgSend) GetSignBytes

func (msg MsgSend) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgSend) GetSigners

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

GetSigners defines whose signature is required

func (MsgSend) Route

func (msg MsgSend) Route() string

Route should return the name of the module

func (MsgSend) Type

func (msg MsgSend) Type() string

Type should return the action

func (MsgSend) ValidateBasic

func (msg MsgSend) ValidateBasic() sdk.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