1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use pallet_identity::Config;
use crate::{weights::pallet_identity::WeightInfo, *};
frame_support::parameter_types! {
pub const BasicDeposit: Balance = 10 * COIN;
pub const FieldDeposit: Balance = 250 * MILLI;
pub const SubAccountDeposit: Balance = 2 * COIN;
pub const MaxSubAccounts: u32 = 100;
pub const MaxAdditionalFields: u32 = 100;
pub const MaxRegistrars: u32 = 20;
}
impl Config for Runtime {
type BasicDeposit = BasicDeposit;
type Currency = Ring;
type Event = Event;
type FieldDeposit = FieldDeposit;
type ForceOrigin = RootOrMoreThanHalf<CouncilCollective>;
type MaxAdditionalFields = MaxAdditionalFields;
type MaxRegistrars = MaxRegistrars;
type MaxSubAccounts = MaxSubAccounts;
type RegistrarOrigin = RootOrMoreThanHalf<CouncilCollective>;
type Slashed = Treasury;
type SubAccountDeposit = SubAccountDeposit;
type WeightInfo = WeightInfo<Self>;
}