Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- type Keeper
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, _ int64) error
- func (k Keeper) BeforeEpochStart(_ sdk.Context, _ string, _ int64) error
- func (k Keeper) BurnTokensForAllDenoms(ctx sdk.Context) error
- func (k Keeper) EpochIdentifier(ctx sdk.Context) (res string)
- func (k Keeper) GetAllHistory(ctx sdk.Context) (list []types.History)
- func (k Keeper) GetHistory(ctx sdk.Context, timestamp string, denom string) (val types.History, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) History(goCtx context.Context, req *types.QueryGetHistoryRequest) (*types.QueryGetHistoryResponse, error)
- func (k Keeper) HistoryAll(goCtx context.Context, req *types.QueryAllHistoryRequest) (*types.QueryAllHistoryResponse, error)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveHistory(ctx sdk.Context, timestamp string, denom string)
- func (k Keeper) SetHistory(ctx sdk.Context, history types.History)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) ShouldBurnTokens(ctx sdk.Context, epochIdentifier string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 wrapper struct for commitments keeper
func (Hooks) AfterEpochEnd ¶
AfterEpochEnd implements EpochHooks
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, authKeeper types.AccountKeeper, bankKeeper types.BankKeeper, authority string, ) *Keeper
func (Keeper) AfterEpochEnd ¶
AfterEpochEnd burns native tokens held in the module wallet at the end of each epoch
func (Keeper) BeforeEpochStart ¶
BeforeEpochStart performs a no-op
func (Keeper) BurnTokensForAllDenoms ¶
BurnTokensForAllDenoms burns tokens for all denominations
func (Keeper) EpochIdentifier ¶
EpochIdentifier returns the EpochIdentifier param
func (Keeper) GetAllHistory ¶
GetAllHistory returns all history
func (Keeper) GetHistory ¶
func (k Keeper) GetHistory( ctx sdk.Context, timestamp string, denom string, ) (val types.History, found bool)
GetHistory returns a history from its index
func (Keeper) History ¶
func (k Keeper) History(goCtx context.Context, req *types.QueryGetHistoryRequest) (*types.QueryGetHistoryResponse, error)
func (Keeper) HistoryAll ¶
func (k Keeper) HistoryAll(goCtx context.Context, req *types.QueryAllHistoryRequest) (*types.QueryAllHistoryResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveHistory ¶
RemoveHistory removes a history from the store
func (Keeper) SetHistory ¶
SetHistory set a specific history in the store from its index
Click to show internal directories.
Click to hide internal directories.