expected

package
v12.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, address sdk.AccAddress) authtypes.AccountI
}

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, address sdk.AccAddress) sdk.Coins
}

type LeaseKeeper

type LeaseKeeper interface {
	GetLease(ctx sdk.Context, id uint64) (leasetypes.Lease, bool)
	IterateLeasesForNodeByProvider(ctx sdk.Context, nodeAddr base.NodeAddress, provAddr base.ProvAddress, fn func(index int, item leasetypes.Lease) (stop bool))
}

type NodeKeeper

type NodeKeeper interface {
	GetNode(ctx sdk.Context, addr base.NodeAddress) (nodetypes.Node, bool)
	SetNodeForPlan(ctx sdk.Context, id uint64, addr base.NodeAddress)
	DeleteNodeForPlan(ctx sdk.Context, id uint64, addr base.NodeAddress)
	GetNodesForPlan(ctx sdk.Context, id uint64) []nodetypes.Node
	HasNodeForPlan(ctx sdk.Context, id uint64, addr base.NodeAddress) bool
}

type ProviderKeeper

type ProviderKeeper interface {
	HasProvider(ctx sdk.Context, addr base.ProvAddress) bool
}

type SessionKeeper

type SessionKeeper interface {
	PlanUnlinkNodePreHook(ctx sdk.Context, id uint64, addr base.NodeAddress) error
}

Jump to

Keyboard shortcuts

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