More testing and fuzzing and docs for pools (#12624)

* move pools fuzzing to hongfuzz

* merge more small fixes

* fix all tests

* Update frame/nomination-pools/fuzzer/src/call.rs

Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>

* remove transactional

* fmt

* fix CI

* fmt

* fix build again

* fix CI

Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
This commit is contained in:
Kian Paimani
2022-11-10 02:34:00 +00:00
committed by GitHub
parent ef0cc330ce
commit 9979acb1e7
9 changed files with 562 additions and 436 deletions
+19 -14
View File
@@ -2902,13 +2902,14 @@ dependencies = [
[[package]]
name = "honggfuzz"
version = "0.5.54"
version = "0.5.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bea09577d948a98a5f59b7c891e274c4fb35ad52f67782b3d0cb53b9c05301f1"
checksum = "848e9c511092e0daa0a35a63e8e6e475a3e8f870741448b9f6028d69b142f18e"
dependencies = [
"arbitrary",
"lazy_static",
"memmap",
"memmap2",
"rustc_version 0.4.0",
]
[[package]]
@@ -4135,16 +4136,6 @@ dependencies = [
"rustix",
]
[[package]]
name = "memmap"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
dependencies = [
"libc",
"winapi",
]
[[package]]
name = "memmap2"
version = "0.5.0"
@@ -5735,7 +5726,6 @@ dependencies = [
"log",
"pallet-balances",
"parity-scale-codec",
"rand 0.8.5",
"scale-info",
"sp-core",
"sp-io",
@@ -5769,6 +5759,21 @@ dependencies = [
"sp-std",
]
[[package]]
name = "pallet-nomination-pools-fuzzer"
version = "2.0.0"
dependencies = [
"frame-support",
"frame-system",
"honggfuzz",
"log",
"pallet-nomination-pools",
"rand 0.8.5",
"sp-io",
"sp-runtime",
"sp-tracing",
]
[[package]]
name = "pallet-nomination-pools-runtime-api"
version = "1.0.0-dev"