Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func ProcessHistory(newItem *types.HistoricalAmount, coinsQuota *types.CoinsQuota) *types.CoinsQuota
- type Keeper
- func (k Keeper) AccountQuota(goCtx context.Context, req *types.QueryGetAccountQuotaRequest) (*types.QueryGetAccountQuotaResponse, error)
- func (k Keeper) BlockUpdateQuota(ctx sdk.Context)
- func (k Keeper) GetAllQuota(ctx sdk.Context) (list []types.CoinsQuota)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetQuotaData(ctx sdk.Context, moduleName string) (val types.CoinsQuota, found bool)
- 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) Quota(goCtx context.Context, req *types.QueryGetQuotaRequest) (*types.QueryGetQuotaResponse, error)
- func (k Keeper) QuotaAll(goCtx context.Context, req *types.QueryAllQuotaRequest) (*types.QueryAllQuotaResponse, error)
- func (k Keeper) RevokeHistory(ctx sdk.Context, moduleName string, seq uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetQuotaData(ctx sdk.Context, coinsQuota types.CoinsQuota)
- func (k Keeper) UpdateQuota(ctx sdk.Context, coins sdk.Coins, sender string, ibcSeq uint64, ...) error
- func (k Keeper) WhetherOnBanlist(ctx sdk.Context, moduleName, sender string) bool
- func (k Keeper) WhetherOnwhitelist(ctx sdk.Context, moduleName, sender 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.
func ProcessHistory ¶
func ProcessHistory(newItem *types.HistoricalAmount, coinsQuota *types.CoinsQuota) *types.CoinsQuota
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) AccountQuota ¶ added in v0.1.0
func (k Keeper) AccountQuota(goCtx context.Context, req *types.QueryGetAccountQuotaRequest) (*types.QueryGetAccountQuotaResponse, error)
func (Keeper) BlockUpdateQuota ¶
func (Keeper) GetAllQuota ¶
func (k Keeper) GetAllQuota(ctx sdk.Context) (list []types.CoinsQuota)
GetAllQuota returns all quota
func (Keeper) GetQuotaData ¶
GetQuotaData returns the quota for a module
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Quota ¶
func (k Keeper) Quota(goCtx context.Context, req *types.QueryGetQuotaRequest) (*types.QueryGetQuotaResponse, error)
func (Keeper) QuotaAll ¶
func (k Keeper) QuotaAll(goCtx context.Context, req *types.QueryAllQuotaRequest) (*types.QueryAllQuotaResponse, error)
func (Keeper) RevokeHistory ¶
func (Keeper) SetQuotaData ¶
func (k Keeper) SetQuotaData(ctx sdk.Context, coinsQuota types.CoinsQuota)
SetQuotaData set a specific quota for the module
func (Keeper) UpdateQuota ¶
func (Keeper) WhetherOnBanlist ¶
Click to show internal directories.
Click to hide internal directories.