-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Multi Asset Delegation pallet fuzzing (#856)
* feat: Multi Asset Delegation pallet fuzzing * feat: add more functions to the fuzzing * doc: add how to run the fuzzer * feat: add sanity checks * lints: fix clippy * fix: reversed balance should be returned on unstake
- Loading branch information
Showing
13 changed files
with
838 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,6 @@ resources/para-2076-wasm | |
scripts/edg-balances-new.json | ||
*.venv | ||
|
||
._* | ||
._* | ||
hfuzz_*/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,33 @@ | ||
[package] | ||
name = "pallet-multi-asset-delegation-fuzzer" | ||
version = "2.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
homepage.workspace = true | ||
repository.workspace = true | ||
description = "Fuzzer for fixed point arithmetic primitives." | ||
documentation = "https://docs.rs/sp-arithmetic-fuzzer" | ||
publish = false | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
honggfuzz = { workspace = true } | ||
|
||
pallet-multi-asset-delegation = { features = ["fuzzing"], workspace = true, default-features = true } | ||
|
||
frame-system = { workspace = true, default-features = true } | ||
frame-support = { workspace = true, default-features = true } | ||
|
||
sp-runtime = { workspace = true, default-features = true } | ||
sp-io = { workspace = true, default-features = true } | ||
sp-tracing = { workspace = true, default-features = true } | ||
|
||
rand = { features = ["small_rng"], workspace = true, default-features = true } | ||
log = { workspace = true, default-features = true } | ||
|
||
[[bin]] | ||
name = "mad-fuzzer" | ||
path = "call.rs" |
Oops, something went wrong.