keeper

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of sequencer MsgServer interface.

func NewQueryServer

func NewQueryServer(keeper Keeper) types.QueryServer

NewQueryServer creates a new instance of the sequencer query server.

Types

type Keeper

type Keeper struct {
	Schema        collections.Schema
	Sequencer     collections.Item[types.Sequencer]
	Migration     collections.Item[types.EvolveMigration]
	MigrationStep collections.Item[uint64]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService corestore.KVStoreService,
	addressCodec address.Codec,
	stakingKeeper types.StakingKeeper,
	authority string,
) Keeper

NewKeeper creates a new sequencer Keeper instance.

func (Keeper) EndBlock

func (k Keeper) EndBlock(ctx context.Context) ([]abci.ValidatorUpdate, error)

EndBlock is called at the end of every block and returns sequencer updates.

func (Keeper) IsMigrating

func (k Keeper) IsMigrating(ctx context.Context) (start, end uint64, ok bool)

IsMigrating checks if the migration to Evolve is in progress. It checks if the EvolveMigration item exists in the store. And if it does, it verifies we are past the block height that started the migration.

func (Keeper) Logger

func (k Keeper) Logger(ctx context.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) PreBlock

PreBlock makes sure the chain halts at block height + 1 after the migration end. This is to ensure that the migration is completed with a binary switch.

Jump to

Keyboard shortcuts

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