keeper

package
v0.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc *codec.Codec, 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 hub.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 hub.ProvAddress, id uint64)

func (Keeper) DeleteNodeForPlan

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

func (Keeper) GetActivePlans added in v0.4.0

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

func (Keeper) GetActivePlansForProvider added in v0.4.0

func (k Keeper) GetActivePlansForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Plans)

func (Keeper) GetCount added in v0.4.0

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

func (Keeper) GetInactivePlans added in v0.4.0

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

func (Keeper) GetInactivePlansForProvider added in v0.4.0

func (k Keeper) GetInactivePlansForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Plans)

func (Keeper) GetNode

func (k Keeper) GetNode(ctx sdk.Context, address hub.NodeAddress) (node.Node, bool)

func (Keeper) GetNodesForPlan

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

func (Keeper) GetPlansForProvider

func (k Keeper) GetPlansForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Plans)

func (Keeper) HasNodeForPlan

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

func (Keeper) HasProvider

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

func (Keeper) SetNodeForPlan

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