subscription

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 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 (
	Codespace                    = types.Codespace
	EventTypeSetCount            = types.EventTypeSetCount
	EventTypeSet                 = types.EventTypeSet
	EventTypeCancel              = types.EventTypeCancel
	EventTypeAddQuota            = types.EventTypeAddQuota
	EventTypeUpdateQuota         = types.EventTypeUpdateQuota
	AttributeKeyOwner            = types.AttributeKeyOwner
	AttributeKeyAddress          = types.AttributeKeyAddress
	AttributeKeyID               = types.AttributeKeyID
	AttributeKeyNode             = types.AttributeKeyNode
	AttributeKeyCount            = types.AttributeKeyCount
	AttributeKeyPlan             = types.AttributeKeyPlan
	AttributeKeyConsumed         = types.AttributeKeyConsumed
	AttributeKeyAllocated        = types.AttributeKeyAllocated
	ModuleName                   = types.ModuleName
	ParamsSubspace               = types.ParamsSubspace
	QuerierRoute                 = types.QuerierRoute
	DefaultCancelDuration        = types.DefaultCancelDuration
	QuerySubscription            = types.QuerySubscription
	QuerySubscriptions           = types.QuerySubscriptions
	QuerySubscriptionsForAddress = types.QuerySubscriptionsForAddress
	QuerySubscriptionsForPlan    = types.QuerySubscriptionsForPlan
	QuerySubscriptionsForNode    = types.QuerySubscriptionsForNode
	QueryQuota                   = types.QueryQuota
	QueryQuotas                  = types.QueryQuotas
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec                         = types.RegisterCodec
	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
	NewGenesisState                       = types.NewGenesisState
	DefaultGenesisState                   = types.DefaultGenesisState
	SubscriptionKey                       = types.SubscriptionKey
	GetSubscriptionForAddressKeyPrefix    = types.GetSubscriptionForAddressKeyPrefix
	SubscriptionForAddressKey             = types.SubscriptionForAddressKey
	GetSubscriptionForPlanKeyPrefix       = types.GetSubscriptionForPlanKeyPrefix
	SubscriptionForPlanKey                = types.SubscriptionForPlanKey
	GetSubscriptionForNodeKeyPrefix       = types.GetSubscriptionForNodeKeyPrefix
	SubscriptionForNodeKey                = types.SubscriptionForNodeKey
	GetCancelSubscriptionAtKeyPrefix      = types.GetCancelSubscriptionAtKeyPrefix
	CancelSubscriptionAtKey               = types.CancelSubscriptionAtKey
	GetQuotaKeyPrefix                     = types.GetQuotaKeyPrefix
	QuotaKey                              = types.QuotaKey
	NewMsgSubscribeToPlan                 = types.NewMsgSubscribeToPlan
	NewMsgSubscribeToNode                 = types.NewMsgSubscribeToNode
	NewMsgCancel                          = types.NewMsgCancel
	NewMsgAddQuota                        = types.NewMsgAddQuota
	NewMsgUpdateQuota                     = types.NewMsgUpdateQuota
	NewParams                             = types.NewParams
	DefaultParams                         = types.DefaultParams
	ParamsKeyTable                        = types.ParamsKeyTable
	NewQuerySubscriptionParams            = types.NewQuerySubscriptionParams
	NewQuerySubscriptionsParams           = types.NewQuerySubscriptionsParams
	NewQuerySubscriptionsForAddressParams = types.NewQuerySubscriptionsForAddressParams
	NewQuerySubscriptionsForPlanParams    = types.NewQuerySubscriptionsForPlanParams
	NewQuerySubscriptionsForNodeParams    = types.NewQuerySubscriptionsForNodeParams
	NewQueryQuotaParams                   = types.NewQueryQuotaParams
	NewQueryQuotasParams                  = types.NewQueryQuotasParams
	NewKeeper                             = keeper.NewKeeper
	Querier                               = querier.Querier

	// variable aliases
	ModuleCdc                       = types.ModuleCdc
	RouterKey                       = types.RouterKey
	StoreKey                        = types.StoreKey
	EventModuleName                 = types.EventModuleName
	CountKey                        = types.CountKey
	SubscriptionKeyPrefix           = types.SubscriptionKeyPrefix
	SubscriptionForAddressKeyPrefix = types.SubscriptionForAddressKeyPrefix
	SubscriptionForPlanKeyPrefix    = types.SubscriptionForPlanKeyPrefix
	SubscriptionForNodeKeyPrefix    = types.SubscriptionForNodeKeyPrefix
	CancelSubscriptionAtKeyPrefix   = types.CancelSubscriptionAtKeyPrefix
	QuotaKeyPrefix                  = types.QuotaKeyPrefix
	KeyCancelDuration               = types.KeyCancelDuration
)

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

func HandleCancel

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

func HandleSubscribeToNode

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

func HandleSubscribeToPlan

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

func HandleUpdateQuota

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

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