#rate-limiting #limit #quota #allowlist #rule #key #consume

no-std orml-rate-limit

Provides way to config rate limiter for limit some operation

7 releases (2 stable)

1.1.0 Dec 10, 2024
1.0.0 Aug 1, 2024
0.13.0 Jun 26, 2024
0.12.0 Jun 3, 2024
0.8.0 Mar 18, 2024

#7 in #quota

Download history 25/week @ 2024-09-16 8/week @ 2024-09-23 6/week @ 2024-09-30 163/week @ 2024-12-09

163 downloads per month

Apache-2.0 and GPL-3.0-only

135KB
3K SLoC

Rate Limit

A module to provide rate limit for arbitrary type Key and integer type Value

Overview

This module is a utility to provide rate limiter for arbitrary type Key and integer type Value, which can config limit rule to produce quota and consume quota, and expose quota consuming checking and whitelist that can bypass checks.

Dependencies

~20–37MB
~564K SLoC