Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) msgServer
- type Keeper
- func (k Keeper) AddAllowListMember(ctx sdk.Context, member string) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState)
- func (k Keeper) IsAuthorized(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) IsEnabled(ctx sdk.Context) bool
- func (k Keeper) RemoveAllowListMember(ctx sdk.Context, member string) error
- func (k Keeper) SetEnabled(ctx sdk.Context, enabled bool) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
func NewMsgServerImpl(keeper *Keeper) msgServer
NewMsgServerImpl returns an implementation of the limiter MsgServer interface
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the limiter store
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, key storetypes.StoreKey, authority sdk.AccAddress) Keeper
NewKeeper creates a new limiter Keeper instance
func (Keeper) AddAllowListMember ¶
AddAllowListMember adds a member to the allow list
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the pool module's parameters.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState)
InitGenesis sets the pool module's parameters.
func (Keeper) IsAuthorized ¶
IsAuthorized checks if the addr is in white list.
func (Keeper) RemoveAllowListMember ¶
RemoveAllowListMember removes a member from the allow list
func (Keeper) SetEnabled ¶
SetEnabled sets the enabled status of the limiter module
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerierImpl ¶
func (Querier) Params ¶
func (q Querier) Params(goCtx context.Context, msg *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries the params of limiter.
Click to show internal directories.
Click to hide internal directories.