git.delta.rocks / unique-network / refs/commits / 22e4325fd490

difftreelog

source

runtime/common/config/governance/identity.rs1.1 KiBsourcehistory
1use frame_support::parameter_types;2use up_common::constants::{MILLIUNIQUE, UNIQUE};34use crate::{5	runtime_common::config::governance, Balance, Balances, Runtime, RuntimeEvent, Treasury,6};78parameter_types! {9	// These do not matter as we forbid non-gov operations with the identity pallet10	pub const BasicDeposit: Balance = 10 * UNIQUE;11	pub const FieldDeposit: Balance = 25 * MILLIUNIQUE;12	pub const SubAccountDeposit: Balance = 2 * UNIQUE;13	pub const MaxSubAccounts: u32 = 100;14	pub const MaxAdditionalFields: u32 = 100;15	pub const MaxRegistrars: u32 = 20;16}1718impl pallet_identity::Config for Runtime {19	type RuntimeEvent = RuntimeEvent;20	type Currency = Balances;21	type BasicDeposit = BasicDeposit;22	type FieldDeposit = FieldDeposit;23	type MaxAdditionalFields = MaxAdditionalFields;24	type MaxRegistrars = MaxRegistrars;25	type MaxSubAccounts = MaxSubAccounts;26	type SubAccountDeposit = SubAccountDeposit;2728	type RegistrarOrigin = governance::RootOrTechnicalCommitteeMember;29	type ForceOrigin = governance::RootOrTechnicalCommitteeMember;3031	type Slashed = Treasury;32	type WeightInfo = pallet_identity::weights::SubstrateWeight<Runtime>;33}