keeper

package
v0.35.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrationHandler added in v0.21.0

func GetMigrationHandler(keeper Keeper) func(ctx sdk.Context) error

GetMigrationHandler returns the migration handler for the reward module

func NewMsgServerImpl added in v0.9.0

NewMsgServerImpl returns a new msg server instance

Types

type Keeper

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

Keeper provides access to all state changes regarding the reward module

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace, banker types.Banker, distributor types.Distributor, staker types.Staker) Keeper

NewKeeper returns a new reward keeper

func (Keeper) DeletePendingRefund added in v0.9.0

func (k Keeper) DeletePendingRefund(ctx sdk.Context, req types.RefundMsgRequest)

DeletePendingRefund retrieves a pending refundable message

func (Keeper) ExportGenesis added in v0.9.0

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

ExportGenesis returns the reward module's genesis state.

func (Keeper) GetParams

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

GetParams returns the total set of reward parameters.

func (Keeper) GetPendingRefund added in v0.9.0

func (k Keeper) GetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest) (types.Refund, bool)

GetPendingRefund retrieves a pending refundable message

func (Keeper) GetPool

func (k Keeper) GetPool(ctx sdk.Context, name string) exported.RewardPool

GetPool returns the reward pool of the given name, or returns an empty reward pool if not found

func (Keeper) InitGenesis added in v0.9.0

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

InitGenesis initializes the reward module's state from a given genesis state.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetParams

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

SetParams sets the total set of reward parameters.

func (Keeper) SetPendingRefund added in v0.9.0

func (k Keeper) SetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest, refund types.Refund) error

SetPendingRefund saves pending refundable message

type Querier added in v0.33.1

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

Querier implements the grpc queries for the nexus module

func NewGRPCQuerier added in v0.33.1

func NewGRPCQuerier(k Keeper, m types.Minter, n types.Nexus) Querier

NewGRPCQuerier creates a new nexus Querier

func (Querier) InflationRate added in v0.33.1

InflationRate returns the Axelar network inflation

func (Querier) Params added in v0.33.1

Params returns the reward module params

Jump to

Keyboard shortcuts

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