keeper

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 12 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 the blob MsgServer interface for the provided Keeper.

Types

type Keeper

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

Keeper handles all the state changes for the blob module.

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey storetypes.StoreKey,
	legacySubspace paramtypes.Subspace,
	authority string,
) *Keeper

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState

ExportGenesis returns the blob module's exported genesis.

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the client submodule's authority.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams gets all parameters as types.Params

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error

InitGenesis initializes the blob module's state from a provided genesis state.

func (Keeper) Params

func (Keeper) PayForBlobs

PayForBlobs consumes gas based on the blob sizes in the MsgPayForBlobs.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the params

func (Keeper) SetParamsLegacy

func (k Keeper) SetParamsLegacy(ctx sdk.Context, params types.Params)

SetParamsLegacy sets the params in the legacy store space. TODO: this can be removed in versions after migrations have run.

func (Keeper) UpdateBlobParams

UpdateBlobParams updates blob module parameters.

type Migrator

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

Migrator is responsible for handling migrations related to the blob module.

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator creates a new Migrator instance using the provided Keeper for handling migrations in the blob module.

func (*Migrator) MigrateParams

func (m *Migrator) MigrateParams(ctx sdk.Context) error

MigrateParams handles the migration of blob module parameters stored in the legacy subspace to the new parameter store. It validates the existing parameters and sets them in the updated format using the Keeper's parameter store.

Jump to

Keyboard shortcuts

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