IRateLimiterAdapter: {
    getState(key: string): Promise<null | IRateLimiterAdapterState>;
    reset(key: string): Promise<void>;
    updateState(key: string, limit: number): Promise<IRateLimiterAdapterState>;
}

The IRateLimiterAdapter contract defines a way for managing rate limiters independent of the underlying technology and algorithm. This contract is not meant to be used directly, instead you should use IRateLimiterProvider contract.

IMPORT_PATH: "@daiso-tech/core/rate-limiter/contracts"

Type declaration