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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName   = "subscription"
	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 Channel

type Channel struct {
	ID           uint64   `json:"id"`
	Price        sdk.Coin `json:"price"`
	PeriodBlocks int64    `json:"period_blocks"`
}

func (Channel) String

func (ch Channel) String() string

type MsgSubscribe

type MsgSubscribe struct {
	Subscriber sdk.AccAddress `json:"subscriber"`
	ChannelID  uint64         `json:"channel_id"`
}

func (MsgSubscribe) GetSignBytes

func (msg MsgSubscribe) GetSignBytes() []byte

func (MsgSubscribe) GetSigners

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

func (MsgSubscribe) Route

func (msg MsgSubscribe) Route() string

func (MsgSubscribe) Type

func (msg MsgSubscribe) Type() string

func (MsgSubscribe) ValidateBasic

func (msg MsgSubscribe) ValidateBasic() sdk.Error

type Subscription

type Subscription struct {
	Subscriber       sdk.AccAddress `json:"subscriber"`
	ChannelID        uint64         `json:"channel_id"`
	Remaining        sdk.Coin       `json:"remaining"`
	NextPaymentBlock int64          `json:"next_payment_block"`
}

func (Subscription) String

func (sub Subscription) String() string

Jump to

Keyboard shortcuts

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