Documentation ¶
Index ¶
- func NewMsgServiceServer(k Keeper) types.MsgServiceServer
- func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer
- type Keeper
- func (k *Keeper) CreateSubscriptionForPlan(ctx sdk.Context, accAddr sdk.AccAddress, id uint64, denom string) (*subscriptiontypes.PlanSubscription, error)
- func (k *Keeper) DeleteActivePlan(ctx sdk.Context, id uint64)
- func (k *Keeper) DeleteInactivePlan(ctx sdk.Context, id uint64)
- func (k *Keeper) DeleteNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)
- func (k *Keeper) DeletePlanForProvider(ctx sdk.Context, addr hubtypes.ProvAddress, id uint64)
- func (k *Keeper) GetActivePlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)
- func (k *Keeper) GetCount(ctx sdk.Context) uint64
- func (k *Keeper) GetInactivePlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)
- func (k *Keeper) GetNodesForPlan(ctx sdk.Context, id uint64) nodetypes.Nodes
- func (k *Keeper) GetPlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)
- func (k *Keeper) GetPlans(ctx sdk.Context) (items types.Plans)
- func (k *Keeper) GetPlansForProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (items types.Plans)
- func (k *Keeper) HasActivePlan(ctx sdk.Context, id uint64) bool
- func (k *Keeper) HasInactivePlan(ctx sdk.Context, id uint64) bool
- func (k *Keeper) HasNode(ctx sdk.Context, addr hubtypes.NodeAddress) bool
- func (k *Keeper) HasPlan(ctx sdk.Context, id uint64) bool
- func (k *Keeper) HasProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SetActivePlan(ctx sdk.Context, plan types.Plan)
- func (k *Keeper) SetCount(ctx sdk.Context, count uint64)
- func (k *Keeper) SetInactivePlan(ctx sdk.Context, plan types.Plan)
- func (k *Keeper) SetNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)
- func (k *Keeper) SetPlan(ctx sdk.Context, plan types.Plan)
- func (k *Keeper) SetPlanForProvider(ctx sdk.Context, addr hubtypes.ProvAddress, id uint64)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)
- func (k *Keeper) WithNodeKeeper(keeper expected.NodeKeeper)
- func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper)
- func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServiceServer ¶ added in v0.6.0
func NewMsgServiceServer(k Keeper) types.MsgServiceServer
NewMsgServiceServer creates a new instance of `types.MsgServiceServer` using the provided Keeper.
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 (*Keeper) CreateSubscriptionForPlan ¶ added in v0.11.0
func (k *Keeper) CreateSubscriptionForPlan(ctx sdk.Context, accAddr sdk.AccAddress, id uint64, denom string) (*subscriptiontypes.PlanSubscription, error)
func (*Keeper) DeleteActivePlan ¶ added in v0.4.0
func (*Keeper) DeleteInactivePlan ¶ added in v0.4.0
func (*Keeper) DeleteNodeForPlan ¶
func (*Keeper) DeletePlanForProvider ¶ added in v0.11.0
func (*Keeper) GetActivePlan ¶ added in v0.11.0
func (*Keeper) GetInactivePlan ¶ added in v0.11.0
func (*Keeper) GetNodesForPlan ¶
func (*Keeper) GetPlansForProvider ¶
func (*Keeper) HasActivePlan ¶ added in v0.11.0
func (*Keeper) HasInactivePlan ¶ added in v0.11.0
func (*Keeper) HasProvider ¶
func (*Keeper) SetActivePlan ¶ added in v0.4.0
func (*Keeper) SetInactivePlan ¶ added in v0.4.0
func (*Keeper) SetNodeForPlan ¶
func (*Keeper) SetPlanForProvider ¶
func (*Keeper) WithBankKeeper ¶ added in v0.11.0
func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)
func (*Keeper) WithNodeKeeper ¶
func (k *Keeper) WithNodeKeeper(keeper expected.NodeKeeper)
func (*Keeper) WithProviderKeeper ¶
func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper)
func (*Keeper) WithSubscriptionKeeper ¶ added in v0.11.0
func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)
Click to show internal directories.
Click to hide internal directories.