keeper

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey) Keeper

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 (k *Keeper) DeleteActivePlan(ctx sdk.Context, id uint64)

func (*Keeper) DeleteInactivePlan added in v0.4.0

func (k *Keeper) DeleteInactivePlan(ctx sdk.Context, id uint64)

func (*Keeper) DeleteNodeForPlan

func (k *Keeper) DeleteNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)

func (*Keeper) DeletePlanForProvider added in v0.11.0

func (k *Keeper) DeletePlanForProvider(ctx sdk.Context, addr hubtypes.ProvAddress, id uint64)

func (*Keeper) GetActivePlan added in v0.11.0

func (k *Keeper) GetActivePlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)

func (*Keeper) GetCount added in v0.4.0

func (k *Keeper) GetCount(ctx sdk.Context) uint64

func (*Keeper) GetInactivePlan added in v0.11.0

func (k *Keeper) GetInactivePlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)

func (*Keeper) GetNodesForPlan

func (k *Keeper) GetNodesForPlan(ctx sdk.Context, id uint64) nodetypes.Nodes

func (*Keeper) GetPlan

func (k *Keeper) GetPlan(ctx sdk.Context, id uint64) (plan types.Plan, found bool)

func (*Keeper) GetPlans

func (k *Keeper) GetPlans(ctx sdk.Context) (items types.Plans)

func (*Keeper) GetPlansForProvider

func (k *Keeper) GetPlansForProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (items types.Plans)

func (*Keeper) HasActivePlan added in v0.11.0

func (k *Keeper) HasActivePlan(ctx sdk.Context, id uint64) bool

func (*Keeper) HasInactivePlan added in v0.11.0

func (k *Keeper) HasInactivePlan(ctx sdk.Context, id uint64) bool

func (*Keeper) HasNode added in v0.11.0

func (k *Keeper) HasNode(ctx sdk.Context, addr hubtypes.NodeAddress) bool

func (*Keeper) HasPlan added in v0.11.0

func (k *Keeper) HasPlan(ctx sdk.Context, id uint64) bool

func (*Keeper) HasProvider

func (k *Keeper) HasProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool

func (*Keeper) Logger

func (k *Keeper) Logger(ctx sdk.Context) log.Logger

func (*Keeper) SetActivePlan added in v0.4.0

func (k *Keeper) SetActivePlan(ctx sdk.Context, plan types.Plan)

func (*Keeper) SetCount added in v0.4.0

func (k *Keeper) SetCount(ctx sdk.Context, count uint64)

func (*Keeper) SetInactivePlan added in v0.4.0

func (k *Keeper) SetInactivePlan(ctx sdk.Context, plan types.Plan)

func (*Keeper) SetNodeForPlan

func (k *Keeper) SetNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)

func (*Keeper) SetPlan

func (k *Keeper) SetPlan(ctx sdk.Context, plan types.Plan)

func (*Keeper) SetPlanForProvider

func (k *Keeper) SetPlanForProvider(ctx sdk.Context, addr hubtypes.ProvAddress, id uint64)

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

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)

type Migrator added in v0.9.0

type Migrator struct {
	Keeper
}

func NewMigrator added in v0.9.0

func NewMigrator(k Keeper) Migrator

func (Migrator) Migrate2to3 added in v0.11.0

func (k Migrator) Migrate2to3(ctx sdk.Context) error

Jump to

Keyboard shortcuts

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