diff --git a/pallets/duniter-account/src/lib.rs b/pallets/duniter-account/src/lib.rs index c6a0fb33a96edb9a09370ae90ca4538407545c1e..ea0ab03c8bd3282e86ae04f3ba94d3f7515f2e89 100644 --- a/pallets/duniter-account/src/lib.rs +++ b/pallets/duniter-account/src/lib.rs @@ -54,7 +54,9 @@ pub mod pallet { type AccountIdToSalt: Convert<Self::AccountId, [u8; 32]>; /// The overarching event type. type Event: From<Event<Self>> + IsType<<Self as frame_system::Config>::Event>; + #[pallet::constant] type MaxNewAccountsPerBlock: Get<u32>; + #[pallet::constant] type NewAccountPrice: Get<Self::Balance>; } diff --git a/pallets/duniter-wot/src/lib.rs b/pallets/duniter-wot/src/lib.rs index 919cc9393cfdb72820bda28ad332a66b6c5aee10..1ea7ae1f80d275cc1dfcc51c706ea9600239875a 100644 --- a/pallets/duniter-wot/src/lib.rs +++ b/pallets/duniter-wot/src/lib.rs @@ -65,9 +65,13 @@ pub mod pallet { + pallet_identity::Config<IdtyIndex = IdtyIndex> + pallet_membership::Config<I, IdtyId = IdtyIndex> { + #[pallet::constant] type FirstIssuableOn: Get<Self::BlockNumber>; + #[pallet::constant] type IsSubWot: Get<bool>; + #[pallet::constant] type MinCertForMembership: Get<u32>; + #[pallet::constant] type MinCertForCreateIdtyRight: Get<u32>; } diff --git a/pallets/identity/src/lib.rs b/pallets/identity/src/lib.rs index d3d36af60d540b796342ca43c4047e59ca13c461..c8f8b4f4373b409d18d490711d4e1ebee3357a8f 100644 --- a/pallets/identity/src/lib.rs +++ b/pallets/identity/src/lib.rs @@ -72,6 +72,7 @@ pub mod pallet { type Event: From<Event<Self>> + IsType<<Self as frame_system::Config>::Event>; /// Management of the authorizations of the different calls. (The default implementation only allows root) type EnsureIdtyCallAllowed: EnsureIdtyCallAllowed<Self>; + #[pallet::constant] /// Minimum duration between the creation of 2 identities by the same creator type IdtyCreationPeriod: Get<Self::BlockNumber>; /// Custom data to store in each identity