A Social Account Recovery Pallet (#4531)

* Initial sketch of social recovery pallet

* Fix compilation issues

* Use a single total delay, rename stuff

* Check possible overflow

* Copyright bump

* Add mock for tests

* Add basic end to end test

* Add `create_recovery` tests

* Add malicious recovery lifecycle test

* Make clear we check for sorted and unique friends

* Work on some tests, clean up imports

* Change `if let Some(_)` to `ok_or()`

* More tests

* Finish tests, except issue with `on_free_balance_zero`

* Fix `on_free_balance_zero`

* Pallet docs

* Add function/weight docs

* Fix merge master

* OnReapAccount for System too

* Update weight docs

* Allow passthrough to support fee-less extrinsics
This commit is contained in:
Shawn Tabrizi
2020-01-13 17:52:04 +01:00
committed by GitHub
parent 0cd8d2c2cf
commit d16d57884a
6 changed files with 1240 additions and 0 deletions
+16
View File
@@ -3894,6 +3894,22 @@ dependencies = [
"sp-std 2.0.0",
]
[[package]]
name = "pallet-recovery"
version = "2.0.0"
dependencies = [
"enumflags2 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
"frame-support 2.0.0",
"frame-system 2.0.0",
"pallet-balances 2.0.0",
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core 2.0.0",
"sp-io 2.0.0",
"sp-runtime 2.0.0",
"sp-std 2.0.0",
]
[[package]]
name = "pallet-scored-pool"
version = "2.0.0"