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
+1
View File
@@ -78,6 +78,7 @@ members = [
"frame/nicks",
"frame/offences",
"frame/randomness-collective-flip",
"frame/recovery",
"frame/scored-pool",
"frame/session",
"frame/society",