The IRateLimiterPolicy contract defines the rate limiter algorithm.
Note all the methods here are pure functions, meaning they should return copies and not mutate input data.
The getExpiration method should return the expiration as Date.
This method is optional, if defined rate limiter data will be cleaned up when expired.
If not defined the rate limiter data will be stored forever.
The
IRateLimiterPolicycontract defines the rate limiter algorithm. Note all the methods here are pure functions, meaning they should return copies and not mutate input data.IMPORT_PATH:
"@daiso-tech/core/rate-limiter/contracts"