Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName defines the module name ModuleName = "session" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_session" )
View Source
const (
// BlockHashKeyPrefix is the prefix to retrieve all BlockHash
BlockHashKeyPrefix = "BlockHash/height/"
)
Variables ¶
View Source
var ( ErrSessionInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSessionHydration = sdkerrors.Register(ModuleName, 1101, "error during session hydration") ErrSessionAppNotFound = sdkerrors.Register(ModuleName, 1102, "application for session not found not found ") ErrSessionAppNotStakedForService = sdkerrors.Register(ModuleName, 1103, "application in session not staked for requested service") ErrSessionSuppliersNotFound = sdkerrors.Register(ModuleName, 1104, "no suppliers not found for session") ErrSessionInvalidAppAddress = sdkerrors.Register(ModuleName, 1105, "invalid application address for session") ErrSessionInvalidService = sdkerrors.Register(ModuleName, 1106, "invalid service in session") ErrSessionInvalidBlockHeight = sdkerrors.Register(ModuleName, 1107, "invalid block height for session") ErrSessionInvalidSessionId = sdkerrors.Register(ModuleName, 1108, "invalid sessionId") )
x/session module sentinel errors
View Source
var ParamsKey = []byte("p_session")
Functions ¶
func BlockHashKey ¶
BlockHashKey returns the store key to retrieve a BlockHash from the index fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type ApplicationKeeper ¶
type ApplicationKeeper interface {
GetApplication(ctx context.Context, address string) (app apptypes.Application, found bool)
}
ApplicationKeeper defines the expected application keeper to retrieve applications
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type SupplierKeeper ¶
type SupplierKeeper interface {
GetAllSuppliers(ctx context.Context) (suppliers []sharedtypes.Supplier)
}
Click to show internal directories.
Click to hide internal directories.