expected

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper added in v0.4.0

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, address sdk.AccAddress) authtypes.AccountI
}

type DepositKeeper added in v0.3.1

type DepositKeeper interface {
	SendCoinsFromDepositToAccount(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) error
}

type NodeKeeper added in v0.4.0

type NodeKeeper interface {
	GetNode(ctx sdk.Context, address hubtypes.NodeAddress) (nodetypes.Node, bool)
}

type PlanKeeper

type PlanKeeper interface {
	HasNodeForPlan(ctx sdk.Context, id uint64, address hubtypes.NodeAddress) bool
	GetNodesForPlan(ctx sdk.Context, id uint64, skip, limit int64) nodetypes.Nodes
}

type SubscriptionKeeper

type SubscriptionKeeper interface {
	GetSubscription(ctx sdk.Context, id uint64) (subscriptiontypes.Subscription, bool)

	GetSubscriptionsForNode(ctx sdk.Context, address hubtypes.NodeAddress, skip, limit int64) subscriptiontypes.Subscriptions
	HasSubscriptionForNode(ctx sdk.Context, address hubtypes.NodeAddress, id uint64) bool

	GetActiveSubscriptionsForAddress(ctx sdk.Context, address sdk.AccAddress, skip, limit int64) subscriptiontypes.Subscriptions

	SetQuota(ctx sdk.Context, id uint64, quota subscriptiontypes.Quota)
	GetQuota(ctx sdk.Context, id uint64, address sdk.AccAddress) (subscriptiontypes.Quota, bool)
	HasQuota(ctx sdk.Context, id uint64, address sdk.AccAddress) bool
}

Jump to

Keyboard shortcuts

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