Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) DeleteActiveNode(ctx sdk.Context, address hub.NodeAddress)
- func (k Keeper) DeleteActiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
- func (k Keeper) DeleteInactiveNode(ctx sdk.Context, address hub.NodeAddress)
- func (k Keeper) DeleteInactiveNodeAt(ctx sdk.Context, at time.Time, address hub.NodeAddress)
- func (k Keeper) DeleteInactiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
- func (k Keeper) DeleteNodeForPlan(ctx sdk.Context, id uint64, address hub.NodeAddress)
- func (k Keeper) Deposit(ctx sdk.Context) (deposit sdk.Coin)
- func (k Keeper) FundCommunityPool(ctx sdk.Context, from sdk.AccAddress, coin sdk.Coin) error
- func (k Keeper) GetActiveNodes(ctx sdk.Context, skip, limit int) (items types.Nodes)
- func (k Keeper) GetActiveNodesForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Nodes)
- func (k Keeper) GetInactiveNodes(ctx sdk.Context, skip, limit int) (items types.Nodes)
- func (k Keeper) GetInactiveNodesForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Nodes)
- func (k Keeper) GetNode(ctx sdk.Context, address hub.NodeAddress) (node types.Node, found bool)
- func (k Keeper) GetNodes(ctx sdk.Context, skip, limit int) (items types.Nodes)
- func (k Keeper) GetNodesForProvider(ctx sdk.Context, address hub.ProvAddress, skip, limit int) (items types.Nodes)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPlansForProvider(ctx sdk.Context, address hub.ProvAddress) plan.Plans
- func (k Keeper) HasNode(ctx sdk.Context, address hub.NodeAddress) bool
- func (k Keeper) HasProvider(ctx sdk.Context, address hub.ProvAddress) bool
- func (k Keeper) InactiveDuration(ctx sdk.Context) (duration time.Duration)
- func (k Keeper) IterateInactiveNodesAt(ctx sdk.Context, at time.Time, fn func(index int, item types.Node) (stop bool))
- func (k Keeper) IterateNodes(ctx sdk.Context, fn func(index int, item types.Node) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetActiveNode(ctx sdk.Context, address hub.NodeAddress)
- func (k Keeper) SetActiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
- func (k Keeper) SetInactiveNode(ctx sdk.Context, address hub.NodeAddress)
- func (k Keeper) SetInactiveNodeAt(ctx sdk.Context, at time.Time, address hub.NodeAddress)
- func (k Keeper) SetInactiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
- func (k Keeper) SetNode(ctx sdk.Context, node types.Node)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)
- func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)
- func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper)
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 (Keeper) DeleteActiveNode ¶ added in v0.4.0
func (k Keeper) DeleteActiveNode(ctx sdk.Context, address hub.NodeAddress)
func (Keeper) DeleteActiveNodeForProvider ¶ added in v0.4.0
func (k Keeper) DeleteActiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
func (Keeper) DeleteInactiveNode ¶ added in v0.4.0
func (k Keeper) DeleteInactiveNode(ctx sdk.Context, address hub.NodeAddress)
func (Keeper) DeleteInactiveNodeAt ¶ added in v0.4.0
func (Keeper) DeleteInactiveNodeForProvider ¶ added in v0.4.0
func (k Keeper) DeleteInactiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
func (Keeper) DeleteNodeForPlan ¶
func (Keeper) FundCommunityPool ¶ added in v0.4.0
func (Keeper) GetActiveNodes ¶ added in v0.4.0
func (Keeper) GetActiveNodesForProvider ¶ added in v0.4.0
func (Keeper) GetInactiveNodes ¶ added in v0.4.0
func (Keeper) GetInactiveNodesForProvider ¶ added in v0.4.0
func (Keeper) GetNodesForProvider ¶
func (Keeper) GetPlansForProvider ¶
func (Keeper) HasProvider ¶
func (Keeper) InactiveDuration ¶
func (Keeper) IterateInactiveNodesAt ¶ added in v0.4.0
func (Keeper) IterateNodes ¶
func (Keeper) SetActiveNode ¶ added in v0.4.0
func (k Keeper) SetActiveNode(ctx sdk.Context, address hub.NodeAddress)
func (Keeper) SetActiveNodeForProvider ¶ added in v0.4.0
func (k Keeper) SetActiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
func (Keeper) SetInactiveNode ¶ added in v0.4.0
func (k Keeper) SetInactiveNode(ctx sdk.Context, address hub.NodeAddress)
func (Keeper) SetInactiveNodeAt ¶ added in v0.4.0
func (Keeper) SetInactiveNodeForProvider ¶ added in v0.4.0
func (k Keeper) SetInactiveNodeForProvider(ctx sdk.Context, provider hub.ProvAddress, address hub.NodeAddress)
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)
Click to show internal directories.
Click to hide internal directories.