types

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ModuleName is module name
	ModuleName = "price"

	// RouterKey is the message route for post
	RouterKey = ModuleName

	// QuerierRoute is the querier route for post
	QuerierRoute = ModuleName

	// query stores
	QueryPriceCurrent = "current"
	QueryPriceHistory = "history"
)

Variables

View Source
var ModuleCdc *codec.Codec

ModuleCdc is the module codec

Functions

func ErrCurrentPriceNotFound

func ErrCurrentPriceNotFound() sdk.Error

ErrCurrentPriceNotFound - error current price is not found.

func ErrFedPriceNotFound

func ErrFedPriceNotFound(u linotypes.AccountKey) sdk.Error

ErrFedPriceNotFound - error when fed price is not found.

func ErrInvalidPriceFeed

func ErrInvalidPriceFeed(price linotypes.MiniDollar) sdk.Error

ErrInvalidPriceFeed -

func ErrNoValidator

func ErrNoValidator() sdk.Error

ErrNoValidator - error when no validator is found.

func ErrNotAValidator

func ErrNotAValidator(u linotypes.AccountKey) sdk.Error

ErrNotAValidator -

func ErrPriceFeedRateLimited

func ErrPriceFeedRateLimited() sdk.Error

ErrPriceFeedRateLimited -

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec concrete types on wire codec

Types

type FeedPriceMsg

type FeedPriceMsg struct {
	Username types.AccountKey `json:"username"`
	Price    types.MiniDollar `json:"price"`
}

FeedPriceMsg - Validastors need to send this message to feed price.

func (FeedPriceMsg) GetConsumeAmount

func (msg FeedPriceMsg) GetConsumeAmount() types.Coin

GetConsumeAmount - implements types.Msg

func (FeedPriceMsg) GetPermission

func (msg FeedPriceMsg) GetPermission() types.Permission

func (FeedPriceMsg) GetSignBytes

func (msg FeedPriceMsg) GetSignBytes() []byte

GetSignBytes - implements sdk.Msg

func (FeedPriceMsg) GetSigners

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

GetSigners - implements sdk.Msg

func (FeedPriceMsg) Route

func (msg FeedPriceMsg) Route() string

Route - implements sdk.Msg

func (FeedPriceMsg) String

func (msg FeedPriceMsg) String() string

func (FeedPriceMsg) Type

func (msg FeedPriceMsg) Type() string

Type - implements sdk.Msg

func (FeedPriceMsg) ValidateBasic

func (msg FeedPriceMsg) ValidateBasic() sdk.Error

ValidateBasic - implements sdk.Msg

Jump to

Keyboard shortcuts

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