types

package
v0.0.0-...-19e21eb Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// module name
	ModuleName = "requestchain"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName
)
View Source
const RouterKey = ModuleName // this was defined in your key.go file

Variables

View Source
var ModuleCdc = codec.New()

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers concrete types on the Amino codec

Types

type MsgAppendBlock

type MsgAppendBlock struct {
	Block  string         `json:"block"`
	Signer sdk.AccAddress `json:"signer"`
}

MsgAppendBlock defines the AppendBlock message

func NewMsgAppendBlock

func NewMsgAppendBlock(block string, signer sdk.AccAddress) MsgAppendBlock

NewMsgBuyName is the constructor function for MsgBuyName

func (MsgAppendBlock) GetSignBytes

func (msg MsgAppendBlock) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgAppendBlock) GetSigners

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

GetSigners defines whose signature is required

func (MsgAppendBlock) Route

func (msg MsgAppendBlock) Route() string

Route should return the name of the module

func (MsgAppendBlock) Type

func (msg MsgAppendBlock) Type() string

Type should return the action

func (MsgAppendBlock) ValidateBasic

func (msg MsgAppendBlock) ValidateBasic() sdk.Error

ValidateBasic runs stateless checks on the message

type QueryGetBlock

type QueryGetBlock []string

Query Result Payload for a names query

func (QueryGetBlock) String

func (n QueryGetBlock) String() string

implement fmt.Stringer

Jump to

Keyboard shortcuts

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