keeper

package
v1.1.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (k Keeper) AddAllowListMember(ctx sdk.Context, member string) error

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) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams returns the total set of limiter parameters.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState)

InitGenesis sets the pool module's parameters.

func (Keeper) IsAuthorized

func (k Keeper) IsAuthorized(ctx sdk.Context, addr sdk.AccAddress) bool

IsAuthorized checks if the addr is in white list.

func (Keeper) IsEnabled

func (k Keeper) IsEnabled(ctx sdk.Context) bool

IsEnabled returns the enabled status of the limiter module

func (Keeper) RemoveAllowListMember

func (k Keeper) RemoveAllowListMember(ctx sdk.Context, member string) error

RemoveAllowListMember removes a member from the allow list

func (Keeper) SetEnabled

func (k Keeper) SetEnabled(ctx sdk.Context, enabled bool) error

SetEnabled sets the enabled status of the limiter module

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error

SetParams sets the parameters of the limiter module

type Querier

type Querier struct {
	// contains filtered or unexported fields
}

func NewQuerierImpl

func NewQuerierImpl(keeper *Keeper) Querier

func (Querier) Params

Params queries the params of limiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL