keeper

package
v1.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(k Keeper) types.MsgServer

Types

type Keeper

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

func NewKeeper

func NewKeeper(storeService store.KVStoreService, cdc codec.BinaryCodec, sk types.StakingKeeper, dk types.DistributionKeeper, authority string) Keeper

NewKeeper constructs a message authorization Keeper

func (Keeper) CreateValidator

func (k Keeper) CreateValidator(ctx sdk.Context, msg stakingtypes.MsgCreateValidator) error

func (Keeper) DeleteVolunteerValidator

func (k Keeper) DeleteVolunteerValidator(ctx context.Context, valAddress sdk.ValAddress) error

func (Keeper) ExportGenesis

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

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/volunteer module's authority.

func (Keeper) GetVolunteerValidator

func (k Keeper) GetVolunteerValidator(ctx context.Context, valAddress sdk.ValAddress) (types.VolunteerValidator, error)

func (Keeper) GetVolunteerValidators

func (k Keeper) GetVolunteerValidators(ctx context.Context) (volunteerValidators map[string]types.VolunteerValidator, err error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetVolunteerValidator

func (k Keeper) SetVolunteerValidator(ctx context.Context, valAddress sdk.ValAddress, validator types.VolunteerValidator) error

func (Keeper) VolunteerValidatorCommissionProcess

func (k Keeper) VolunteerValidatorCommissionProcess(ctx context.Context) error

type Migrator

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

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

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2

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

Migrate1to2 migrates from version 1 to 2.

type Querier

type Querier struct {
	Keeper
}

Jump to

Keyboard shortcuts

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