keeper

package
v0.10.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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(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.BinaryCodec, key sdk.StoreKey, params paramstypes.Subspace) Keeper

func (*Keeper) DeleteActiveNode added in v0.4.0

func (k *Keeper) DeleteActiveNode(ctx sdk.Context, address hubtypes.NodeAddress)

func (*Keeper) DeleteActiveNodeForProvider added in v0.4.0

func (k *Keeper) DeleteActiveNodeForProvider(ctx sdk.Context, provider hubtypes.ProvAddress, address hubtypes.NodeAddress)

func (*Keeper) DeleteInactiveNode added in v0.4.0

func (k *Keeper) DeleteInactiveNode(ctx sdk.Context, address hubtypes.NodeAddress)

func (*Keeper) DeleteInactiveNodeAt added in v0.4.0

func (k *Keeper) DeleteInactiveNodeAt(ctx sdk.Context, at time.Time, address hubtypes.NodeAddress)

func (*Keeper) DeleteInactiveNodeForProvider added in v0.4.0

func (k *Keeper) DeleteInactiveNodeForProvider(ctx sdk.Context, provider hubtypes.ProvAddress, address hubtypes.NodeAddress)

func (*Keeper) Deposit added in v0.4.0

func (k *Keeper) Deposit(ctx sdk.Context) (v sdk.Coin)

func (*Keeper) FundCommunityPool added in v0.4.0

func (k *Keeper) FundCommunityPool(ctx sdk.Context, from sdk.AccAddress, coin sdk.Coin) error

func (*Keeper) GetActiveNodes added in v0.4.0

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

func (*Keeper) GetActiveNodesForProvider added in v0.4.0

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

func (*Keeper) GetInactiveNodes added in v0.4.0

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

func (*Keeper) GetInactiveNodesForProvider added in v0.4.0

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

func (*Keeper) GetNode

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

func (*Keeper) GetNodes

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

func (*Keeper) GetNodesForProvider

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

func (*Keeper) GetParams

func (k *Keeper) GetParams(ctx sdk.Context) types.Params

func (*Keeper) GetPlanCountForNodeByProvider added in v0.10.0

func (k *Keeper) GetPlanCountForNodeByProvider(ctx sdk.Context, p hubtypes.ProvAddress, n hubtypes.NodeAddress) uint64

func (*Keeper) HasNode

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

func (*Keeper) HasProvider

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

func (*Keeper) InactiveDuration

func (k *Keeper) InactiveDuration(ctx sdk.Context) (v time.Duration)

func (*Keeper) IsMaxPriceModified added in v0.10.0

func (k *Keeper) IsMaxPriceModified(ctx sdk.Context) bool

func (*Keeper) IsMinPriceModified added in v0.10.0

func (k *Keeper) IsMinPriceModified(ctx sdk.Context) bool

func (*Keeper) IsValidPrice added in v0.10.0

func (k *Keeper) IsValidPrice(ctx sdk.Context, price sdk.Coins) bool

func (*Keeper) IterateInactiveNodesAt added in v0.4.0

func (k *Keeper) IterateInactiveNodesAt(ctx sdk.Context, at time.Time, fn func(index int, item types.Node) (stop bool))

func (*Keeper) IterateNodes

func (k *Keeper) IterateNodes(ctx sdk.Context, fn func(index int, item types.Node) (stop bool))

func (*Keeper) Logger

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

func (*Keeper) MaxPrice added in v0.10.0

func (k *Keeper) MaxPrice(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) MinPrice added in v0.10.0

func (k *Keeper) MinPrice(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) SetActiveNode added in v0.4.0

func (k *Keeper) SetActiveNode(ctx sdk.Context, address hubtypes.NodeAddress)

func (*Keeper) SetActiveNodeForProvider added in v0.4.0

func (k *Keeper) SetActiveNodeForProvider(ctx sdk.Context, provider hubtypes.ProvAddress, address hubtypes.NodeAddress)

func (*Keeper) SetInactiveNode added in v0.4.0

func (k *Keeper) SetInactiveNode(ctx sdk.Context, address hubtypes.NodeAddress)

func (*Keeper) SetInactiveNodeAt added in v0.4.0

func (k *Keeper) SetInactiveNodeAt(ctx sdk.Context, at time.Time, address hubtypes.NodeAddress)

func (*Keeper) SetInactiveNodeForProvider added in v0.4.0

func (k *Keeper) SetInactiveNodeForProvider(ctx sdk.Context, provider hubtypes.ProvAddress, address hubtypes.NodeAddress)

func (*Keeper) SetNode

func (k *Keeper) SetNode(ctx sdk.Context, node types.Node)

func (*Keeper) SetParams

func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)

func (*Keeper) StakingShare added in v0.10.0

func (k *Keeper) StakingShare(ctx sdk.Context) (v sdk.Dec)

func (*Keeper) Store

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

func (*Keeper) WithDistributionKeeper added in v0.4.0

func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)

func (*Keeper) WithPlanKeeper

func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)

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