Documentation ¶
Index ¶
- func NewMsgServiceServer(keeper Keeper) types.MsgServiceServer
- func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer
- type Keeper
- func (k *Keeper) AddDeposit(ctx sdk.Context, address sdk.AccAddress, coin sdk.Coin) error
- func (k *Keeper) DeleteActiveSubscriptionForAddress(ctx sdk.Context, address sdk.AccAddress, id uint64)
- func (k *Keeper) DeleteInactiveSubscriptionAt(ctx sdk.Context, at time.Time, id uint64)
- func (k *Keeper) DeleteInactiveSubscriptionForAddress(ctx sdk.Context, address sdk.AccAddress, id uint64)
- func (k *Keeper) DeleteQuota(ctx sdk.Context, id uint64, address sdk.AccAddress)
- func (k *Keeper) GetActiveSessionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) sessiontypes.Sessions
- func (k *Keeper) GetActiveSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
- func (k *Keeper) GetCount(ctx sdk.Context) uint64
- func (k *Keeper) GetInactiveSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
- func (k *Keeper) GetNode(ctx sdk.Context, address hubtypes.NodeAddress) (nodetypes.Node, bool)
- func (k *Keeper) GetParams(ctx sdk.Context) types.Params
- func (k *Keeper) GetPlan(ctx sdk.Context, id uint64) (plantypes.Plan, bool)
- func (k *Keeper) GetQuota(ctx sdk.Context, id uint64, address sdk.AccAddress) (quota types.Quota, found bool)
- func (k *Keeper) GetQuotas(ctx sdk.Context, id uint64, skip, limit int64) (items types.Quotas)
- func (k *Keeper) GetSubscription(ctx sdk.Context, id uint64) (subscription types.Subscription, found bool)
- func (k *Keeper) GetSubscriptions(ctx sdk.Context, skip, limit int64) (items types.Subscriptions)
- func (k *Keeper) GetSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
- func (k *Keeper) HasQuota(ctx sdk.Context, id uint64, address sdk.AccAddress) bool
- func (k *Keeper) InactiveDuration(ctx sdk.Context) (duration time.Duration)
- func (k *Keeper) IterateInactiveSubscriptions(ctx sdk.Context, end time.Time, ...)
- func (k *Keeper) IterateQuotas(ctx sdk.Context, id uint64, fn func(index int, item types.Quota) (stop bool))
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SendCoin(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, coin sdk.Coin) error
- func (k *Keeper) SetActiveSubscriptionForAddress(ctx sdk.Context, address sdk.AccAddress, id uint64)
- func (k *Keeper) SetCount(ctx sdk.Context, count uint64)
- func (k *Keeper) SetInactiveSubscriptionAt(ctx sdk.Context, at time.Time, id uint64)
- func (k *Keeper) SetInactiveSubscriptionForAddress(ctx sdk.Context, address sdk.AccAddress, id uint64)
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) SetQuota(ctx sdk.Context, id uint64, quota types.Quota)
- func (k *Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) SubtractDeposit(ctx sdk.Context, address sdk.AccAddress, coin sdk.Coin) error
- func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)
- func (k *Keeper) WithDepositKeeper(keeper expected.DepositKeeper)
- func (k *Keeper) WithNodeKeeper(keeper expected.NodeKeeper)
- func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)
- func (k *Keeper) WithSessionKeeper(keeper expected.SessionKeeper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServiceServer ¶ added in v0.6.0
func NewMsgServiceServer(keeper Keeper) types.MsgServiceServer
func NewQueryServiceServer ¶ added in v0.6.0
func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryMarshaler, key sdk.StoreKey, params paramstypes.Subspace) Keeper
func (*Keeper) AddDeposit ¶
func (*Keeper) DeleteActiveSubscriptionForAddress ¶ added in v0.4.0
func (*Keeper) DeleteInactiveSubscriptionAt ¶ added in v0.4.0
func (*Keeper) DeleteInactiveSubscriptionForAddress ¶ added in v0.4.0
func (*Keeper) DeleteQuota ¶
func (*Keeper) GetActiveSessionsForAddress ¶ added in v0.8.0
func (k *Keeper) GetActiveSessionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) sessiontypes.Sessions
func (*Keeper) GetActiveSubscriptionsForAddress ¶ added in v0.4.0
func (k *Keeper) GetActiveSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
func (*Keeper) GetInactiveSubscriptionsForAddress ¶ added in v0.4.0
func (k *Keeper) GetInactiveSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
func (*Keeper) GetSubscription ¶
func (*Keeper) GetSubscriptions ¶
func (*Keeper) GetSubscriptionsForAddress ¶
func (k *Keeper) GetSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) (items types.Subscriptions)
func (*Keeper) InactiveDuration ¶ added in v0.4.0
func (*Keeper) IterateInactiveSubscriptions ¶ added in v0.4.0
func (*Keeper) IterateQuotas ¶
func (*Keeper) SendCoin ¶
func (k *Keeper) SendCoin(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, coin sdk.Coin) error
func (*Keeper) SetActiveSubscriptionForAddress ¶ added in v0.4.0
func (*Keeper) SetInactiveSubscriptionAt ¶ added in v0.4.0
func (*Keeper) SetInactiveSubscriptionForAddress ¶ added in v0.4.0
func (*Keeper) SetSubscription ¶
func (k *Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
func (*Keeper) SubtractDeposit ¶
func (*Keeper) WithBankKeeper ¶
func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)
func (*Keeper) WithDepositKeeper ¶
func (k *Keeper) WithDepositKeeper(keeper expected.DepositKeeper)
func (*Keeper) WithNodeKeeper ¶
func (k *Keeper) WithNodeKeeper(keeper expected.NodeKeeper)
func (*Keeper) WithPlanKeeper ¶
func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)
func (*Keeper) WithSessionKeeper ¶ added in v0.8.0
func (k *Keeper) WithSessionKeeper(keeper expected.SessionKeeper)
Click to show internal directories.
Click to hide internal directories.