expected

package
v12.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 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 {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

type DepositKeeper

type DepositKeeper interface {
	AddDeposit(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
	SubtractDeposit(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
	SendCoinsFromDepositToAccount(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, coins sdk.Coins) error
	SendCoinsFromDepositToModule(ctx sdk.Context, fromAddr sdk.AccAddress, toModule string, coins sdk.Coins) error
}

type NodeKeeper

type NodeKeeper interface {
	GetNode(ctx sdk.Context, addr base.NodeAddress) (nodetypes.Node, bool)
}

type OracleKeeper

type OracleKeeper interface {
	GetQuotePrice(ctx sdk.Context, price sdk.DecCoin) (sdk.Coin, error)
}

type PlanKeeper

type PlanKeeper interface {
	GetPlan(ctx sdk.Context, id uint64) (plantypes.Plan, bool)
}

type ProviderKeeper

type ProviderKeeper interface {
	StakingShare(ctx sdk.Context) sdkmath.LegacyDec
}

type SessionKeeper

type SessionKeeper interface {
	DeleteSession(ctx sdk.Context, id uint64)
	DeleteSessionForAccount(ctx sdk.Context, addr sdk.AccAddress, id uint64)
	DeleteSessionForAllocation(ctx sdk.Context, subscriptionID uint64, addr sdk.AccAddress, sessionID uint64)
	DeleteSessionForNode(ctx sdk.Context, addr base.NodeAddress, id uint64)
	DeleteSessionForPlanByNode(ctx sdk.Context, planID uint64, addr base.NodeAddress, sessionID uint64)
	DeleteSessionForSubscription(ctx sdk.Context, subscriptionID, sessionID uint64)
	GetInactiveAt(ctx sdk.Context) time.Time
	GetSessionCount(ctx sdk.Context) uint64
	GetSession(ctx sdk.Context, id uint64) (sessiontypes.Session, bool)
	SetSessionCount(ctx sdk.Context, count uint64)
	SetSession(ctx sdk.Context, session sessiontypes.Session)
	SetSessionForAccount(ctx sdk.Context, addr sdk.AccAddress, id uint64)
	SetSessionForAllocation(ctx sdk.Context, subscriptionID uint64, addr sdk.AccAddress, sessionID uint64)
	SetSessionForInactiveAt(ctx sdk.Context, at time.Time, id uint64)
	SetSessionForNode(ctx sdk.Context, addr base.NodeAddress, id uint64)
	SetSessionForPlanByNode(ctx sdk.Context, planID uint64, addr base.NodeAddress, sessionID uint64)
	SetSessionForSubscription(ctx sdk.Context, subscriptionID, sessionID uint64)
	SubscriptionInactivePendingPreHook(ctx sdk.Context, id uint64) error
}

Jump to

Keyboard shortcuts

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