cool

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(ck bank.CoinKeeper, cm Mapper) sdk.Handler

Handle all "coolmodule" type objects

Types

type Mapper

type Mapper struct {
	// contains filtered or unexported fields
}

This Cool Mapper handlers sets/gets of custom variables for your module

func NewMapper

func NewMapper(key sdk.StoreKey) Mapper

func (Mapper) GetTrend

func (am Mapper) GetTrend(ctx sdk.Context) string

Implements sdk.AccountMapper.

func (Mapper) SetTrend

func (am Mapper) SetTrend(ctx sdk.Context, newTrend string)

Implements sdk.AccountMapper.

type QuizMsg

type QuizMsg struct {
	Sender     sdk.Address
	CoolAnswer string
}

A message type to quiz how cool you are. these fields are can be entirely arbitrary and custom to your message

func NewQuizMsg

func NewQuizMsg(sender sdk.Address, coolerthancool string) QuizMsg

New cool message

func (QuizMsg) Get

func (msg QuizMsg) Get(key interface{}) (value interface{})

func (QuizMsg) GetSignBytes

func (msg QuizMsg) GetSignBytes() []byte

Get the bytes for the message signer to sign on

func (QuizMsg) GetSigners

func (msg QuizMsg) GetSigners() []sdk.Address

func (QuizMsg) String

func (msg QuizMsg) String() string

func (QuizMsg) Type

func (msg QuizMsg) Type() string

nolint

func (QuizMsg) ValidateBasic

func (msg QuizMsg) ValidateBasic() sdk.Error

Validate Basic is used to quickly disqualify obviously invalid messages quickly

type SetTrendMsg

type SetTrendMsg struct {
	Sender sdk.Address
	Cool   string
}

A really cool msg type, these fields are can be entirely arbitrary and custom to your message

func NewSetTrendMsg

func NewSetTrendMsg(sender sdk.Address, cool string) SetTrendMsg

New cool message

func (SetTrendMsg) Get

func (msg SetTrendMsg) Get(key interface{}) (value interface{})

func (SetTrendMsg) GetSignBytes

func (msg SetTrendMsg) GetSignBytes() []byte

Get the bytes for the message signer to sign on

func (SetTrendMsg) GetSigners

func (msg SetTrendMsg) GetSigners() []sdk.Address

func (SetTrendMsg) String

func (msg SetTrendMsg) String() string

func (SetTrendMsg) Type

func (msg SetTrendMsg) Type() string

nolint

func (SetTrendMsg) ValidateBasic

func (msg SetTrendMsg) ValidateBasic() sdk.Error

Validate Basic is used to quickly disqualify obviously invalid messages quickly

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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