diff --git a/operator/runtime/mainnet/src/configs/mod.rs b/operator/runtime/mainnet/src/configs/mod.rs index db7e60be..3bd49071 100644 --- a/operator/runtime/mainnet/src/configs/mod.rs +++ b/operator/runtime/mainnet/src/configs/mod.rs @@ -595,6 +595,8 @@ parameter_types! { pub const MaxAdditionalFields: u32 = 100; pub const MaxRegistrars: u32 = 20; pub const PendingUsernameExpiration: u32 = 7 * DAYS; + pub const UsernameGracePeriod: u32 = 30 * DAYS; + pub const UsernameDeposit: Balance = deposit(0, MaxUsernameLength::get()); pub const MaxSuffixLength: u32 = 7; pub const MaxUsernameLength: u32 = 32; } @@ -626,8 +628,8 @@ impl pallet_identity::Config for Runtime { type MaxSuffixLength = MaxSuffixLength; type MaxUsernameLength = MaxUsernameLength; type WeightInfo = pallet_identity::weights::SubstrateWeight; - type UsernameDeposit = (); - type UsernameGracePeriod = (); + type UsernameDeposit = UsernameDeposit; + type UsernameGracePeriod = UsernameGracePeriod; // TODO: Re-enable after upgrade to Polkadot SDK stable2412-8 // see https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2412-8 diff --git a/operator/runtime/stagenet/src/configs/mod.rs b/operator/runtime/stagenet/src/configs/mod.rs index 63c05aac..509734a7 100644 --- a/operator/runtime/stagenet/src/configs/mod.rs +++ b/operator/runtime/stagenet/src/configs/mod.rs @@ -592,6 +592,8 @@ parameter_types! { pub const MaxAdditionalFields: u32 = 100; pub const MaxRegistrars: u32 = 20; pub const PendingUsernameExpiration: u32 = 7 * DAYS; + pub const UsernameGracePeriod: u32 = 30 * DAYS; + pub const UsernameDeposit: Balance = deposit(0, MaxUsernameLength::get()); pub const MaxSuffixLength: u32 = 7; pub const MaxUsernameLength: u32 = 32; } @@ -623,8 +625,8 @@ impl pallet_identity::Config for Runtime { type MaxSuffixLength = MaxSuffixLength; type MaxUsernameLength = MaxUsernameLength; type WeightInfo = pallet_identity::weights::SubstrateWeight; - type UsernameDeposit = (); - type UsernameGracePeriod = (); + type UsernameDeposit = UsernameDeposit; + type UsernameGracePeriod = UsernameGracePeriod; // TODO: Re-enable after upgrade to Polkadot SDK stable2412-8 // see https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2412-8 diff --git a/operator/runtime/testnet/src/configs/mod.rs b/operator/runtime/testnet/src/configs/mod.rs index bc48c537..0ba71058 100644 --- a/operator/runtime/testnet/src/configs/mod.rs +++ b/operator/runtime/testnet/src/configs/mod.rs @@ -595,6 +595,8 @@ parameter_types! { pub const MaxAdditionalFields: u32 = 100; pub const MaxRegistrars: u32 = 20; pub const PendingUsernameExpiration: u32 = 7 * DAYS; + pub const UsernameGracePeriod: u32 = 30 * DAYS; + pub const UsernameDeposit: Balance = deposit(0, MaxUsernameLength::get()); pub const MaxSuffixLength: u32 = 7; pub const MaxUsernameLength: u32 = 32; } @@ -626,8 +628,8 @@ impl pallet_identity::Config for Runtime { type MaxSuffixLength = MaxSuffixLength; type MaxUsernameLength = MaxUsernameLength; type WeightInfo = pallet_identity::weights::SubstrateWeight; - type UsernameDeposit = (); - type UsernameGracePeriod = (); + type UsernameDeposit = UsernameDeposit; + type UsernameGracePeriod = UsernameGracePeriod; // TODO: Re-enable after upgrade to Polkadot SDK stable2412-8 // see https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2412-8 diff --git a/test/.papi/metadata/datahaven.scale b/test/.papi/metadata/datahaven.scale index a63800a7..74c4129c 100644 Binary files a/test/.papi/metadata/datahaven.scale and b/test/.papi/metadata/datahaven.scale differ