Documentation ¶
Index ¶
- func GetMigrationHandler(keeper Keeper) func(ctx sdk.Context) error
- func NewMsgServerImpl(k types.Refunder, b types.Banker, m *baseapp.MsgServiceRouter, r sdk.Router) types.MsgServiceServer
- type Keeper
- func (k Keeper) DeletePendingRefund(ctx sdk.Context, req types.RefundMsgRequest)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest) (types.Refund, bool)
- func (k Keeper) GetPool(ctx sdk.Context, name string) exported.RewardPool
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest, refund types.Refund) error
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationHandler ¶ added in v0.21.0
GetMigrationHandler returns the migration handler for the reward module
func NewMsgServerImpl ¶ added in v0.9.0
func NewMsgServerImpl(k types.Refunder, b types.Banker, m *baseapp.MsgServiceRouter, r sdk.Router) types.MsgServiceServer
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) GetPendingRefund ¶ added in v0.9.0
GetPendingRefund retrieves a pending refundable message
func (Keeper) GetPool ¶
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) 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
NewGRPCQuerier creates a new nexus Querier
func (Querier) InflationRate ¶ added in v0.33.1
func (q Querier) InflationRate(c context.Context, req *types.InflationRateRequest) (*types.InflationRateResponse, error)
InflationRate returns the Axelar network inflation
func (Querier) Params ¶ added in v0.33.1
func (q Querier) Params(c context.Context, req *types.ParamsRequest) (*types.ParamsResponse, error)
Params returns the reward module params