subscription

package
v0.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/sentinel-official/hub/x/subscription/types ALIASGEN: github.com/sentinel-official/hub/x/subscription/keeper ALIASGEN: github.com/sentinel-official/hub/x/subscription/querier

Index

Constants

View Source
const (
	AttributeKeyOwner            = types.AttributeKeyOwner
	AttributeKeyAddress          = types.AttributeKeyAddress
	AttributeKeyID               = types.AttributeKeyID
	AttributeKeyStatus           = types.AttributeKeyStatus
	AttributeKeyNode             = types.AttributeKeyNode
	AttributeKeyCount            = types.AttributeKeyCount
	AttributeKeyPlan             = types.AttributeKeyPlan
	AttributeKeyConsumed         = types.AttributeKeyConsumed
	AttributeKeyAllocated        = types.AttributeKeyAllocated
	ModuleName                   = types.ModuleName
	QuerierRoute                 = types.QuerierRoute
	DefaultInactiveDuration      = types.DefaultInactiveDuration
	QuerySubscription            = types.QuerySubscription
	QuerySubscriptions           = types.QuerySubscriptions
	QuerySubscriptionsForNode    = types.QuerySubscriptionsForNode
	QuerySubscriptionsForPlan    = types.QuerySubscriptionsForPlan
	QuerySubscriptionsForAddress = types.QuerySubscriptionsForAddress
	QueryQuota                   = types.QueryQuota
	QueryQuotas                  = types.QueryQuotas
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec                              = types.RegisterCodec
	NewGenesisState                            = types.NewGenesisState
	DefaultGenesisState                        = types.DefaultGenesisState
	SubscriptionKey                            = types.SubscriptionKey
	GetSubscriptionForNodeKeyPrefix            = types.GetSubscriptionForNodeKeyPrefix
	SubscriptionForNodeKey                     = types.SubscriptionForNodeKey
	GetSubscriptionForPlanKeyPrefix            = types.GetSubscriptionForPlanKeyPrefix
	SubscriptionForPlanKey                     = types.SubscriptionForPlanKey
	GetActiveSubscriptionForAddressKeyPrefix   = types.GetActiveSubscriptionForAddressKeyPrefix
	ActiveSubscriptionForAddressKey            = types.ActiveSubscriptionForAddressKey
	GetInactiveSubscriptionForAddressKeyPrefix = types.GetInactiveSubscriptionForAddressKeyPrefix
	InactiveSubscriptionForAddressKey          = types.InactiveSubscriptionForAddressKey
	GetInactiveSubscriptionAtKeyPrefix         = types.GetInactiveSubscriptionAtKeyPrefix
	InactiveSubscriptionAtKey                  = types.InactiveSubscriptionAtKey
	GetQuotaKeyPrefix                          = types.GetQuotaKeyPrefix
	QuotaKey                                   = types.QuotaKey
	IDFromSubscriptionForNodeKey               = types.IDFromSubscriptionForNodeKey
	IDFromSubscriptionForPlanKey               = types.IDFromSubscriptionForPlanKey
	IDFromStatusSubscriptionForAddressKey      = types.IDFromStatusSubscriptionForAddressKey
	IDFromInactiveSubscriptionAtKey            = types.IDFromInactiveSubscriptionAtKey
	NewMsgSubscribeToNode                      = types.NewMsgSubscribeToNode
	NewMsgSubscribeToPlan                      = types.NewMsgSubscribeToPlan
	NewMsgCancel                               = types.NewMsgCancel
	NewMsgAddQuota                             = types.NewMsgAddQuota
	NewMsgUpdateQuota                          = types.NewMsgUpdateQuota
	NewParams                                  = types.NewParams
	DefaultParams                              = types.DefaultParams
	ParamsKeyTable                             = types.ParamsKeyTable
	NewQuerySubscriptionParams                 = types.NewQuerySubscriptionParams
	NewQuerySubscriptionsParams                = types.NewQuerySubscriptionsParams
	NewQuerySubscriptionsForNodeParams         = types.NewQuerySubscriptionsForNodeParams
	NewQuerySubscriptionsForPlanParams         = types.NewQuerySubscriptionsForPlanParams
	NewQuerySubscriptionsForAddressParams      = types.NewQuerySubscriptionsForAddressParams
	NewQueryQuotaParams                        = types.NewQueryQuotaParams
	NewQueryQuotasParams                       = types.NewQueryQuotasParams
	NewKeeper                                  = keeper.NewKeeper
	Querier                                    = querier.Querier

	// variable aliases
	ModuleCdc                               = types.ModuleCdc
	ErrorMarshal                            = types.ErrorMarshal
	ErrorUnmarshal                          = types.ErrorUnmarshal
	ErrorUnknownMsgType                     = types.ErrorUnknownMsgType
	ErrorUnknownQueryType                   = types.ErrorUnknownQueryType
	ErrorInvalidField                       = types.ErrorInvalidField
	ErrorPlanDoesNotExist                   = types.ErrorPlanDoesNotExist
	ErrorNodeDoesNotExist                   = types.ErrorNodeDoesNotExist
	ErrorUnauthorized                       = types.ErrorUnauthorized
	ErrorInvalidPlanStatus                  = types.ErrorInvalidPlanStatus
	ErrorPriceDoesNotExist                  = types.ErrorPriceDoesNotExist
	ErrorInvalidNodeStatus                  = types.ErrorInvalidNodeStatus
	ErrorSubscriptionDoesNotExist           = types.ErrorSubscriptionDoesNotExist
	ErrorInvalidSubscriptionStatus          = types.ErrorInvalidSubscriptionStatus
	ErrorCanNotSubscribe                    = types.ErrorCanNotSubscribe
	ErrorInvalidQuota                       = types.ErrorInvalidQuota
	ErrorDuplicateQuota                     = types.ErrorDuplicateQuota
	ErrorQuotaDoesNotExist                  = types.ErrorQuotaDoesNotExist
	ErrorCanNotAddQuota                     = types.ErrorCanNotAddQuota
	EventTypeSetCount                       = types.EventTypeSetCount
	EventTypeSet                            = types.EventTypeSet
	EventTypeCancel                         = types.EventTypeCancel
	EventTypeAddQuota                       = types.EventTypeAddQuota
	EventTypeUpdateQuota                    = types.EventTypeUpdateQuota
	ParamsSubspace                          = types.ParamsSubspace
	RouterKey                               = types.RouterKey
	StoreKey                                = types.StoreKey
	EventModuleName                         = types.EventModuleName
	CountKey                                = types.CountKey
	SubscriptionKeyPrefix                   = types.SubscriptionKeyPrefix
	SubscriptionForNodeKeyPrefix            = types.SubscriptionForNodeKeyPrefix
	SubscriptionForPlanKeyPrefix            = types.SubscriptionForPlanKeyPrefix
	ActiveSubscriptionForAddressKeyPrefix   = types.ActiveSubscriptionForAddressKeyPrefix
	InactiveSubscriptionForAddressKeyPrefix = types.InactiveSubscriptionForAddressKeyPrefix
	InactiveSubscriptionAtKeyPrefix         = types.InactiveSubscriptionAtKeyPrefix
	QuotaKeyPrefix                          = types.QuotaKeyPrefix
	KeyInactiveDuration                     = types.KeyInactiveDuration
)

Functions

func EndBlock

func EndBlock(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState

func HandleAddQuota

func HandleAddQuota(ctx sdk.Context, k keeper.Keeper, msg types.MsgAddQuota) (*sdk.Result, error)

func HandleCancel

func HandleCancel(ctx sdk.Context, k keeper.Keeper, msg types.MsgCancel) (*sdk.Result, error)

func HandleSubscribeToNode

func HandleSubscribeToNode(ctx sdk.Context, k keeper.Keeper, msg types.MsgSubscribeToNode) (*sdk.Result, error)

func HandleSubscribeToPlan

func HandleSubscribeToPlan(ctx sdk.Context, k keeper.Keeper, msg types.MsgSubscribeToPlan) (*sdk.Result, error)

func HandleUpdateQuota

func HandleUpdateQuota(ctx sdk.Context, k keeper.Keeper, msg types.MsgUpdateQuota) (*sdk.Result, error)

func InitGenesis

func InitGenesis(ctx sdk.Context, k keeper.Keeper, state types.GenesisState)

func ValidateGenesis

func ValidateGenesis(state types.GenesisState) error

Types

type GenesisState

type GenesisState = types.GenesisState

type GenesisSubscription

type GenesisSubscription = types.GenesisSubscription

type GenesisSubscriptions

type GenesisSubscriptions = types.GenesisSubscriptions

type Keeper

type Keeper = keeper.Keeper

type MsgAddQuota

type MsgAddQuota = types.MsgAddQuota

type MsgCancel

type MsgCancel = types.MsgCancel

type MsgSubscribeToNode

type MsgSubscribeToNode = types.MsgSubscribeToNode

type MsgSubscribeToPlan

type MsgSubscribeToPlan = types.MsgSubscribeToPlan

type MsgUpdateQuota

type MsgUpdateQuota = types.MsgUpdateQuota

type Params

type Params = types.Params

type QueryQuotaParams

type QueryQuotaParams = types.QueryQuotaParams

type QueryQuotasParams

type QueryQuotasParams = types.QueryQuotasParams

type QuerySubscriptionParams

type QuerySubscriptionParams = types.QuerySubscriptionParams

type QuerySubscriptionsForAddressParams

type QuerySubscriptionsForAddressParams = types.QuerySubscriptionsForAddressParams

type QuerySubscriptionsForNodeParams

type QuerySubscriptionsForNodeParams = types.QuerySubscriptionsForNodeParams

type QuerySubscriptionsForPlanParams

type QuerySubscriptionsForPlanParams = types.QuerySubscriptionsForPlanParams

type QuerySubscriptionsParams

type QuerySubscriptionsParams = types.QuerySubscriptionsParams

type Quota

type Quota = types.Quota

type Quotas

type Quotas = types.Quotas

type Subscription

type Subscription = types.Subscription

type Subscriptions

type Subscriptions = types.Subscriptions

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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