Documentation ¶
Index ¶
- func NewMsgServer(k Keeper) ibcratelimit.MsgServer
- type Keeper
- func (k Keeper) CheckAndUpdateRateLimits(ctx sdk.Context, msgType string, packet exported.PacketI) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *ibcratelimit.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetContractAddress(ctx sdk.Context) (contract string)
- func (k Keeper) GetParams(ctx sdk.Context) (params ibcratelimit.Params, err error)
- func (k Keeper) InitGenesis(ctx sdk.Context, data *ibcratelimit.GenesisState)
- func (k Keeper) IsContractConfigured(ctx sdk.Context) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(ctx context.Context, _ *ibcratelimit.ParamsRequest) (*ibcratelimit.ParamsResponse, error)
- func (k Keeper) RevertSentPacket(ctx sdk.Context, packet exported.PacketI) error
- func (k Keeper) SetParams(ctx sdk.Context, params ibcratelimit.Params)
- func (k Keeper) UndoSendRateLimit(ctx sdk.Context, contract string, packet exported.PacketI) error
- func (k Keeper) ValidateAuthority(addr string) error
- type MsgServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServer ¶
func NewMsgServer(k Keeper) ibcratelimit.MsgServer
Types ¶
type Keeper ¶
type Keeper struct { PermissionedKeeper ibcratelimit.PermissionedKeeper // contains filtered or unexported fields }
Keeper for the ibcratelimit module
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, permissionedKeeper ibcratelimit.PermissionedKeeper, ) Keeper
NewKeeper Creates a new Keeper for the module.
func (Keeper) CheckAndUpdateRateLimits ¶
func (k Keeper) CheckAndUpdateRateLimits(ctx sdk.Context, msgType string, packet exported.PacketI) error
CheckAndUpdateRateLimits Updates the rate limiter and checks if rate limit has been exceeded.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *ibcratelimit.GenesisState
ExportGenesis returns a GenesisState for a given context.
func (Keeper) GetAuthority ¶ added in v1.19.0
GetAuthority gets the authority account address.
func (Keeper) GetContractAddress ¶
GetContractAddress Gets the current value of the module's contract address.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data *ibcratelimit.GenesisState)
InitGenesis new ibcratelimit genesis
func (Keeper) IsContractConfigured ¶
IsContractConfigured Checks if the contract has been configured for the module.
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, _ *ibcratelimit.ParamsRequest) (*ibcratelimit.ParamsResponse, error)
Params returns the params used by the module
func (Keeper) RevertSentPacket ¶
RevertSentPacket Notifies the contract that a sent packet wasn't properly received.
func (Keeper) SetParams ¶
func (k Keeper) SetParams(ctx sdk.Context, params ibcratelimit.Params)
SetParams Sets the params for the module.
func (Keeper) UndoSendRateLimit ¶
UndoSendRateLimit Undos the changes made to the rate limiter.
func (Keeper) ValidateAuthority ¶
ValidateAuthority returns an error if the provided address is not the authority.
type MsgServer ¶
type MsgServer struct {
Keeper
}
MsgServer is an alias for a Keeper that implements the ibcratelimit.MsgServer interface.
func (MsgServer) GovUpdateParams ¶
func (k MsgServer) GovUpdateParams(_ context.Context, _ *ibcratelimit.MsgGovUpdateParamsRequest) (*ibcratelimit.MsgGovUpdateParamsResponse, error)
GovUpdateParams is a governance proposal endpoint for updating the ibcratelimit module's params.
func (MsgServer) UpdateParams ¶ added in v1.19.0
func (k MsgServer) UpdateParams(goCtx context.Context, msg *ibcratelimit.MsgUpdateParamsRequest) (*ibcratelimit.MsgUpdateParamsResponse, error)
UpdateParams is a governance proposal endpoint for updating the ibcratelimit module's params.