keeper

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: Apache-2.0 Imports: 15 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(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) Keeper

func (*Keeper) DeleteActivePlan added in v0.4.0

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

func (*Keeper) DeleteActivePlanForProvider added in v0.4.0

func (k *Keeper) DeleteActivePlanForProvider(ctx sdk.Context, address hubtypes.ProvAddress, id uint64)

func (*Keeper) DeleteInactivePlan added in v0.4.0

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

func (*Keeper) DeleteInactivePlanForProvider added in v0.4.0

func (k *Keeper) DeleteInactivePlanForProvider(ctx sdk.Context, address hubtypes.ProvAddress, id uint64)

func (*Keeper) DeleteNodeForPlan

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

func (*Keeper) GetActivePlans added in v0.4.0

func (k *Keeper) GetActivePlans(ctx sdk.Context, skip, limit int64) (items types.Plans)

func (*Keeper) GetActivePlansForProvider added in v0.4.0

func (k *Keeper) GetActivePlansForProvider(ctx sdk.Context, address hubtypes.ProvAddress, skip, limit int64) (items types.Plans)

func (*Keeper) GetCount added in v0.4.0

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

func (*Keeper) GetInactivePlans added in v0.4.0

func (k *Keeper) GetInactivePlans(ctx sdk.Context, skip, limit int64) (items types.Plans)

func (*Keeper) GetInactivePlansForProvider added in v0.4.0

func (k *Keeper) GetInactivePlansForProvider(ctx sdk.Context, address hubtypes.ProvAddress, skip, limit int64) (items types.Plans)

func (*Keeper) GetNode

func (k *Keeper) GetNode(ctx sdk.Context, address hubtypes.NodeAddress) (nodetypes.Node, bool)

func (*Keeper) GetNodesForPlan

func (k *Keeper) GetNodesForPlan(ctx sdk.Context, id uint64, skip, limit int64) (items 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, skip, limit int64) (items types.Plans)

func (*Keeper) GetPlansForProvider

func (k *Keeper) GetPlansForProvider(ctx sdk.Context, address hubtypes.ProvAddress, skip, limit int64) (items types.Plans)

func (*Keeper) HasNodeForPlan

func (k *Keeper) HasNodeForPlan(ctx sdk.Context, id uint64, address hubtypes.NodeAddress) bool

func (*Keeper) HasProvider

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

func (*Keeper) SetActivePlanForProvider added in v0.4.0

func (k *Keeper) SetActivePlanForProvider(ctx sdk.Context, address hubtypes.ProvAddress, id uint64)

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, id uint64)

func (*Keeper) SetInactivePlanForProvider added in v0.4.0

func (k *Keeper) SetInactivePlanForProvider(ctx sdk.Context, address hubtypes.ProvAddress, id uint64)

func (*Keeper) SetNodeForPlan

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

func (*Keeper) SetPlan

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

func (*Keeper) Store

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

func (*Keeper) WithNodeKeeper

func (k *Keeper) WithNodeKeeper(keeper expected.NodeKeeper)

func (*Keeper) WithProviderKeeper

func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper)

Jump to

Keyboard shortcuts

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