keeper

package
v0.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LastValidatorSet []stakingtypes.Validator

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	Schema                    collections.Schema
	Sequencer                 collections.Item[types.Sequencer]
	NextSequencerChangeHeight collections.Item[int64]
	Params                    collections.Item[types.Params]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec,
	storeService storetypes.KVStoreService,
	ak types.AccountKeeper,
	authority string,
) Keeper

NewKeeper creates a new sequencer Keeper instance

func (Keeper) ChangeoverToRollup

func (k Keeper) ChangeoverToRollup(ctx sdk.Context, lastValidatorSet []stakingtypes.Validator) (initialValUpdates []abci.ValidatorUpdate, err error)

ChangeoverToConsumer includes the logic that needs to execute during the process of a cometBFT chain to rollup changeover. This method constructs validator updates that will be given to tendermint, which allows the consumer chain to start using the provider valset, while the standalone valset is given zero voting power where appropriate.

func (Keeper) GetSequencer

func (keeper Keeper) GetSequencer(ctx sdk.Context) types.Sequencer

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState) []abci.ValidatorUpdate

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) MigrateFromSoveregin

func (k Keeper) MigrateFromSoveregin(ctx sdk.Context, sequencer types.Sequencer) error

Jump to

Keyboard shortcuts

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