msgs

package
v0.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgCdc = codec.New()

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

Types

type MsgFlag

type MsgFlag interface {
	sdk.Msg

	GetRecordId() string
	SetRecordId(string)

	GetSender() sdk.AccAddress
	SetSender(sdk.AccAddress)
}

type MsgRecord

type MsgRecord struct {
	Sender               sdk.AccAddress `json:"sender"`
	*params.RecordParams `json:"params"`
}

MsgRecord to allow a registered recordr to record new coins.

func NewMsgRecord

func NewMsgRecord(sender sdk.AccAddress, params *params.RecordParams) MsgRecord

New MsgRecord Instance

func (MsgRecord) GetSignBytes

func (msg MsgRecord) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRecord) GetSigners

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

GetSigners Implements Msg.

func (MsgRecord) Route

func (msg MsgRecord) Route() string

Route Implements Msg.

func (MsgRecord) String

func (msg MsgRecord) String() string

func (MsgRecord) Type

func (msg MsgRecord) Type() string

Type Implements Msg.

func (MsgRecord) ValidateBasic

func (msg MsgRecord) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

Jump to

Keyboard shortcuts

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