Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

A Social Account Recovery Pallet #4531

Merged
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
43e6eac
Initial sketch of social recovery pallet
shawntabrizi Jan 4, 2020
ccda36c
Fix compilation issues
shawntabrizi Jan 4, 2020
a57fb0e
Use a single total delay, rename stuff
shawntabrizi Jan 5, 2020
95b0c3a
Check possible overflow
shawntabrizi Jan 5, 2020
f41abcf
Copyright bump
shawntabrizi Jan 5, 2020
e8a911b
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 6, 2020
27e1034
Add mock for tests
shawntabrizi Jan 6, 2020
58aff40
Add basic end to end test
shawntabrizi Jan 6, 2020
8e7b7f2
Add `create_recovery` tests
shawntabrizi Jan 6, 2020
49fb230
Add malicious recovery lifecycle test
shawntabrizi Jan 6, 2020
b68f1fd
Make clear we check for sorted and unique friends
shawntabrizi Jan 6, 2020
087bc6c
Work on some tests, clean up imports
shawntabrizi Jan 9, 2020
8bb69ee
Change `if let Some(_)` to `ok_or()`
shawntabrizi Jan 9, 2020
4829182
More tests
shawntabrizi Jan 9, 2020
1f2f53a
Finish tests, except issue with `on_free_balance_zero`
shawntabrizi Jan 9, 2020
08a648d
Fix `on_free_balance_zero`
shawntabrizi Jan 9, 2020
5d9def8
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 10, 2020
28db6a7
Pallet docs
shawntabrizi Jan 10, 2020
e8c40d0
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 10, 2020
29986ec
Add function/weight docs
shawntabrizi Jan 10, 2020
3c28263
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 10, 2020
95c4513
Fix merge master
shawntabrizi Jan 10, 2020
38048db
OnReapAccount for System too
shawntabrizi Jan 10, 2020
5206825
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 10, 2020
a60a4a7
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 13, 2020
8f1f02f
Update weight docs
shawntabrizi Jan 13, 2020
b88f4a4
Merge remote-tracking branch 'upstream/master' into shawntabrizi-reco…
shawntabrizi Jan 13, 2020
29bef12
Allow passthrough to support fee-less extrinsics
shawntabrizi Jan 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ members = [
"frame/nicks",
"frame/offences",
"frame/randomness-collective-flip",
"frame/recovery",
"frame/scored-pool",
"frame/session",
"frame/society",
Expand Down
31 changes: 31 additions & 0 deletions frame/recovery/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "pallet-recovery"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
enumflags2 = { version = "0.6.2" }
sp-std = { version = "2.0.0", default-features = false, path = "../../primitives/std" }
sp-io = { version = "2.0.0", default-features = false, path = "../../primitives/io" }
sp-runtime = { version = "2.0.0", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0", default-features = false, path = "../support" }
frame-system = { version = "2.0.0", default-features = false, path = "../system" }

[dev-dependencies]
sp-core = { version = "2.0.0", path = "../../primitives/core" }
pallet-balances = { version = "2.0.0", path = "../balances" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-runtime/std",
"frame-support/std",
"frame-system/std",
]
Loading