keeper

package
v12.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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

func NewMsgServiceServer(k Keeper) types.MsgServiceServer

NewMsgServiceServer creates a new instance of `types.MsgServiceServer` using the provided Keeper.

func NewQueryServiceServer

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 storetypes.StoreKey) Keeper

func (*Keeper) CreateSubscriptionForPlan

func (k *Keeper) CreateSubscriptionForPlan(ctx sdk.Context, accAddr sdk.AccAddress, id uint64, denom string) (*subscriptiontypes.PlanSubscription, error)

func (*Keeper) DeleteActivePlan

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

func (*Keeper) DeleteInactivePlan

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

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

func (*Keeper) GetActivePlan

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

func (*Keeper) GetCount

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

func (*Keeper) GetInactivePlan

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

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

func (*Keeper) HasInactivePlan

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

func (*Keeper) HasNode

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

func (*Keeper) HasPlan

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

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

func (*Keeper) SetCount

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

func (*Keeper) SetInactivePlan

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

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

func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)

Jump to

Keyboard shortcuts

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