Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "subscription" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
Variables ¶
View Source
var ModuleCdc = codec.New()
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec
Types ¶
type Channel ¶
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
Click to show internal directories.
Click to hide internal directories.