Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PayForBlobs(goCtx context.Context, msg *types.MsgPayForBlobs) (*types.MsgPayForBlobsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetParamsLegacy(ctx sdk.Context, params types.Params)
- func (k Keeper) UpdateBlobParams(goCtx context.Context, msg *types.MsgUpdateBlobParams) (*types.MsgUpdateBlobParamsResponse, error)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 ¶
GetAuthority returns the client submodule's authority.
func (Keeper) InitGenesis ¶
InitGenesis initializes the blob module's state from a provided genesis state.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PayForBlobs ¶
func (k Keeper) PayForBlobs(goCtx context.Context, msg *types.MsgPayForBlobs) (*types.MsgPayForBlobsResponse, error)
PayForBlobs consumes gas based on the blob sizes in the MsgPayForBlobs.
func (Keeper) SetParamsLegacy ¶
SetParamsLegacy sets the params in the legacy store space. TODO: this can be removed in versions after migrations have run.
func (Keeper) UpdateBlobParams ¶
func (k Keeper) UpdateBlobParams(goCtx context.Context, msg *types.MsgUpdateBlobParams) (*types.MsgUpdateBlobParamsResponse, error)
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 ¶
NewMigrator creates a new Migrator instance using the provided Keeper for handling migrations in the blob module.
func (*Migrator) MigrateParams ¶
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.