keeper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IBCSmoothingFactor uint64 = 30

IBCSmoothingFactor is the factor used to smooth the migration process when IBC is enabled. It determines how many blocks the migration will take.

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 IbcKVStoreKeyAlias

type IbcKVStoreKeyAlias = func() *storetypes.KVStoreKey

IbcStoreKey is the store key used for IBC-related data. It is an alias for storetypes.StoreKey to allow depinject to resolve it as a dependency (as runtime assumes 1 module = 1 store key maximum).

type Keeper

type Keeper struct {
	Schema        collections.Schema
	Sequencer     collections.Item[types.Sequencer]
	Migration     collections.Item[types.RollkitMigration]
	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,
	ibcStoreKey IbcKVStoreKeyAlias,
	authority string,
) Keeper

NewKeeper creates a new sequencer Keeper instance.

func (Keeper) EndBlock

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

EndBlocker 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 Rollkit is in progress. It checks if the RollkitMigration 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) PreBlocker

func (k Keeper) PreBlocker(ctx context.Context) error

PreBlocker 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