-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* poc * add RateLimiter for xtokens * impl new pallet orml-rate-limit * add unit tests * add comment * add weight * update * use explicit call index * fix features * update Cargo.toml --------- Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: zjb0807 <zjb0807@qq.com>
- Loading branch information
1 parent
d26b0b1
commit 7e05827
Showing
15 changed files
with
1,758 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[package] | ||
name = "orml-rate-limit" | ||
description = "Provides way to config rate limiter for limit some operation." | ||
repository = "https://github.com/open-web3-stack/open-runtime-module-library/tree/master/rate-limit" | ||
license = "Apache-2.0" | ||
version = "0.7.0" | ||
authors = ["Laminar Developers <hello@laminar.one>"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
serde = { workspace = true, optional = true } | ||
|
||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-io = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
orml-traits = { path = "../traits", version = "0.7.0", default-features = false } | ||
orml-utilities = { path = "../utilities", version = "0.7.0", default-features = false } | ||
|
||
[dev-dependencies] | ||
pallet-timestamp = { workspace = true, features = ["std"] } | ||
|
||
[features] | ||
default = [ "std" ] | ||
std = [ | ||
"frame-support/std", | ||
"frame-system/std", | ||
"orml-traits/std", | ||
"orml-utilities/std", | ||
"parity-scale-codec/std", | ||
"scale-info/std", | ||
"serde", | ||
"sp-core/std", | ||
"sp-io/std", | ||
"sp-runtime/std", | ||
"sp-std/std", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
] | ||
try-runtime = [ | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"sp-runtime/try-runtime", | ||
] |
Oops, something went wrong.