types

package
v0.0.0-...-d0e4e46 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName   = "civicliker"
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
)

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 LikeRecord

type LikeRecord struct {
	Liker           sdk.AccAddress  `json:"liker"`
	Likee           sdk.AccAddress  `json:"likee"`
	Url             string          `json:"url"`
	Count           uint64          `json:"count"`
	CoinDistributed sdk.Coin        `json:"coin_distributed"`
	Time            time.Time       `json:"time"`
	TxHash          common.HexBytes `json:"tx_hash"`
}

type LikerState

type LikerState struct {
	Liker                 sdk.AccAddress
	PrevPeriodLikeCount   uint64
	CurrPeriodLikeCount   uint64
	SubscriptionChannelID uint64
	PeriodEndingBlock     int64
}

type MsgLike

type MsgLike struct {
	Liker sdk.AccAddress `json:"liker"`
	Likee sdk.AccAddress `json:"likee"`
	Url   string         `json:"url"`
	Count uint64         `json:"count"`
}

func (MsgLike) GetSignBytes

func (msg MsgLike) GetSignBytes() []byte

func (MsgLike) GetSigners

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

func (MsgLike) Route

func (msg MsgLike) Route() string

func (MsgLike) Type

func (msg MsgLike) Type() string

func (MsgLike) ValidateBasic

func (msg MsgLike) ValidateBasic() sdk.Error

Jump to

Keyboard shortcuts

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