Documentation ¶
Index ¶
- func EmitBurnAmountCreatedEvent(ctx sdk.Context, burnAmount *types.BurnAmount)
- func EmitEpochBurnEvent(ctx sdk.Context, epochIdentifier string, epochNumber int64, ...)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- type Keeper
- func (k Keeper) AddRegistrationFeeToBurnAmounts(ctx sdk.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []types.BurnAmount, err error)
- func (k Keeper) AddToTotalBurnAmount(ctx sdk.Context, index uint64, amount sdk.Coin) (newBurnAmount types.BurnAmount)
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64)
- func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64)
- func (k Keeper) BurnAmount(goCtx context.Context, req *types.QueryGetBurnAmountRequest) (*types.QueryGetBurnAmountResponse, error)
- func (k Keeper) BurnAmountAll(goCtx context.Context, req *types.QueryAllBurnAmountRequest) (*types.QueryAllBurnAmountResponse, error)
- func (k Keeper) EpochBurnConfig(goCtx context.Context, req *types.QueryGetEpochBurnConfigRequest) (*types.QueryGetEpochBurnConfigResponse, error)
- func (k Keeper) GetAllBurnAmount(ctx sdk.Context) (list []types.BurnAmount)
- func (k Keeper) GetBurnAmount(ctx sdk.Context, index uint64) (val types.BurnAmount, found bool)
- func (k Keeper) GetEpochBurnConfig(ctx sdk.Context) (val types.EpochBurnConfig, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Hooks() Hooks
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NewBurnAmount(ctx sdk.Context, config types.EpochBurnConfig, index uint64) (burnAmount types.BurnAmount)
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveBurnAmount(ctx sdk.Context, index uint64)
- func (k Keeper) RemoveEpochBurnConfig(ctx sdk.Context)
- func (k Keeper) SetBurnAmount(ctx sdk.Context, burnAmount types.BurnAmount)
- func (k Keeper) SetEpochBurnConfig(ctx sdk.Context, epochBurnConfig types.EpochBurnConfig)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitBurnAmountCreatedEvent ¶
func EmitBurnAmountCreatedEvent(ctx sdk.Context, burnAmount *types.BurnAmount)
func EmitEpochBurnEvent ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks is the wrapper struct for the incentives keeper.
func (Hooks) AfterEpochEnd ¶
AfterEpochEnd is the epoch end hook.
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, epochsKeeper types.EpochsKeeper, ) *Keeper
func (Keeper) AddRegistrationFeeToBurnAmounts ¶
func (k Keeper) AddRegistrationFeeToBurnAmounts(ctx sdk.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []types.BurnAmount, err error)
Add registration fee to burnAmounts
func (Keeper) AddToTotalBurnAmount ¶
func (k Keeper) AddToTotalBurnAmount(ctx sdk.Context, index uint64, amount sdk.Coin) (newBurnAmount types.BurnAmount)
Add to total burn BurnAmount
func (Keeper) AfterEpochEnd ¶
AfterEpochEnd is the epoch end hook.
func (Keeper) BeforeEpochStart ¶
BeforeEpochStart is the epoch start hook.
func (Keeper) BurnAmount ¶
func (k Keeper) BurnAmount(goCtx context.Context, req *types.QueryGetBurnAmountRequest) (*types.QueryGetBurnAmountResponse, error)
func (Keeper) BurnAmountAll ¶
func (k Keeper) BurnAmountAll(goCtx context.Context, req *types.QueryAllBurnAmountRequest) (*types.QueryAllBurnAmountResponse, error)
func (Keeper) EpochBurnConfig ¶
func (k Keeper) EpochBurnConfig(goCtx context.Context, req *types.QueryGetEpochBurnConfigRequest) (*types.QueryGetEpochBurnConfigResponse, error)
func (Keeper) GetAllBurnAmount ¶
func (k Keeper) GetAllBurnAmount(ctx sdk.Context) (list []types.BurnAmount)
GetAllBurnAmount returns all burnAmount
func (Keeper) GetBurnAmount ¶
GetBurnAmount returns a burnAmount from its index
func (Keeper) GetEpochBurnConfig ¶
GetEpochBurnConfig returns epochBurnConfig
func (Keeper) NewBurnAmount ¶
func (k Keeper) NewBurnAmount(ctx sdk.Context, config types.EpochBurnConfig, index uint64) (burnAmount types.BurnAmount)
Create a next burnAmount
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveBurnAmount ¶
RemoveBurnAmount removes a burnAmount from the store
func (Keeper) RemoveEpochBurnConfig ¶
RemoveEpochBurnConfig removes epochBurnConfig from the store
func (Keeper) SetBurnAmount ¶
func (k Keeper) SetBurnAmount(ctx sdk.Context, burnAmount types.BurnAmount)
SetBurnAmount set a specific burnAmount in the store from its index
func (Keeper) SetEpochBurnConfig ¶
func (k Keeper) SetEpochBurnConfig(ctx sdk.Context, epochBurnConfig types.EpochBurnConfig)
SetEpochBurnConfig set epochBurnConfig in the store