keeper

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(k Keeper) types.MsgServer

NewMsgServerImpl returns a types.MsgServer implementation backed by the supplied Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper is the orchestration module keeper. It is a thin facade:

  • MarketKeeper is used to load leases and mirror health responses.
  • Queue is used to enqueue new orchestration messages (the actual state lives in the app-level OrchestrationKeeper).
  • tstoreKey is the transient store used for per-block rate-limit counters (cleared automatically at end of block by the SDK).

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	tstoreKey storetypes.StoreKey,
	marketKeeper types.MarketKeeper,
	queue types.OrchestrationQueueKeeper,
	params types.Params,
	logger log.Logger,
) Keeper

NewKeeper constructs a new orchestration Keeper.

params are consumed as a snapshot at app-wiring time; the module does not yet persist params on-chain (see §P1.1 of the roadmap). paramsRef is copied via value semantics so callers cannot mutate the keeper after wiring.

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns the module-scoped logger.

func (Keeper) Params

func (k Keeper) Params() types.Params

Params returns the keeper's active parameter set.

type MarketAdapter

type MarketAdapter struct {
	K mkeeper.IKeeper
}

MarketAdapter wraps the concrete market IKeeper so it satisfies types.MarketKeeper, converting the orchestration module's independent HealthAttestationMirror into the market keeper's internal HealthAttestationMsg at call time.

func (MarketAdapter) GetLease

func (a MarketAdapter) GetLease(ctx sdk.Context, id mv1.LeaseID) (mv1.Lease, bool)

GetLease forwards to the market keeper.

func (MarketAdapter) SubmitHealthAttestation

func (a MarketAdapter) SubmitHealthAttestation(ctx sdk.Context, msg *types.HealthAttestationMirror) error

SubmitHealthAttestation mirrors the provided attestation into the market module's health store. The orchestration module uses this ONLY for the transitional fold of MsgHealthAttestation (§P0.1 step 5).

Jump to

Keyboard shortcuts

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