-
Notifications
You must be signed in to change notification settings - Fork 2.7k
pallet alliance #11112
pallet alliance #11112
Changes from 1 commit
94cf161
f12601d
0d93dd6
3bfc260
445649e
0d2eaee
b69980d
9cab715
9241f08
0a71502
d7aeddf
b07520e
9774055
0013afd
6b2c8af
1d2bc71
e7f0cd3
181738b
a359aea
d1bb18d
a2f986f
e37664e
a04c5b8
fde2562
1757810
03a6be5
3e4e7f4
7333148
06b42a8
c49b633
bbd087b
062bad8
8ab53a8
86b4fcf
c16c2a7
58ca07d
4013d84
a0c0971
31f846b
616646b
02aaf4e
82f84d1
551e830
451396e
814d520
f90df9e
d93f872
35d50b9
e024c73
1d0eef4
4f2a0bd
3c8b878
0f12ed4
b20b72a
5b6b336
a97b897
0970b78
d292548
6da40be
dc6400c
428638a
c029b0c
5ed70ae
d7766b0
50726b3
60d9434
2809717
f270ada
955854a
944a612
7c063c8
5feb2d1
a576428
fb8dd06
0e39490
d89078d
8338125
fdf4dc9
0c10bcd
3ee24a8
78b63c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,14 +136,28 @@ type NegativeImbalanceOf<T, I = ()> = <<T as Config<I>>::Currency as Currency< | |
| <T as frame_system::Config>::AccountId, | ||
| >>::NegativeImbalance; | ||
|
|
||
| pub trait IdentityVerifier<AccountId: Clone + Ord> { | ||
| pub trait IdentityVerifier<AccountId> { | ||
| fn has_identity(who: &AccountId, fields: u64) -> bool; | ||
|
|
||
| fn has_good_judgement(who: &AccountId) -> bool; | ||
|
|
||
| fn super_account_id(who: &AccountId) -> Option<AccountId>; | ||
| } | ||
|
|
||
| impl<AccountId> IdentityVerifier<AccountId> for () { | ||
| fn has_identity(_who: &AccountId, _fields: u64) -> bool { | ||
| true | ||
| } | ||
|
|
||
| fn has_good_judgement(_who: &AccountId) -> bool { | ||
| true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want the default (empty tuple) provider to be permissive?. We could have this be an AllowEverythingVerifier and have the default saying everyone has bad judgement?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then by default nobody could join unless the chain running it has an identity provider. I think in the pattern of Not a super strong opinion though, I'm also fine with your proposal. Could it be a follow up PR though before this is launched? |
||
| } | ||
|
|
||
| fn super_account_id(_who: &AccountId) -> Option<AccountId> { | ||
| None | ||
| } | ||
| } | ||
|
|
||
| pub trait ProposalProvider<AccountId, Hash, Proposal> { | ||
xlc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fn propose_proposal( | ||
| who: AccountId, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.