keeper

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 17 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 MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,

) Keeper

func (Keeper) GetAllAudience

func (k Keeper) GetAllAudience(ctx sdk.Context) (list []types.Audience)

GetAllAudience returns all audience

func (Keeper) GetAudience

func (k Keeper) GetAudience(
	ctx sdk.Context,
	aud string,

) (val types.Audience, found bool)

GetAudience returns a audience from its index

func (Keeper) GetDeploymentGas added in v0.3.8

func (k Keeper) GetDeploymentGas(ctx sdk.Context) uint64

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetTimeOffset added in v0.3.8

func (k Keeper) GetTimeOffset(ctx sdk.Context) uint64

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveAudience

func (k Keeper) RemoveAudience(
	ctx sdk.Context,
	aud string,

)

RemoveAudience removes a audience from the store

func (Keeper) SetAudience

func (k Keeper) SetAudience(ctx sdk.Context, audience types.Audience)

SetAudience set a specific audience in the store from its index

func (Keeper) SetParams

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

SetParams set the params

type Migrator

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(jwkSubspace paramtypes.Subspace) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1To2 added in v0.3.8

func (m Migrator) Migrate1To2(ctx sdk.Context) error

Migrate1To2 migrates from version 1 to 2

Jump to

Keyboard shortcuts

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