Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
EndBlocker is called at the end of every block and returns sequencer updates.
func (Keeper) IsMigrating ¶
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.