@@ -160,6 +160,24 @@ where
160160 }
161161}
162162
163+ impl < Prefix , Hasher , Key , Value , QueryKind , OnEmpty > super :: StoragePrefixedMap < Value > for
164+ StorageMapType < Prefix , Hasher , Key , Value , QueryKind , OnEmpty >
165+ where
166+ Prefix : StorageInstance ,
167+ Hasher : crate :: hash:: StorageHasher ,
168+ Key : FullEncode ,
169+ Value : FullCodec ,
170+ QueryKind : QueryKindTrait < Value > ,
171+ OnEmpty : crate :: traits:: Get < QueryKind :: Query > + ' static ,
172+ {
173+ fn module_prefix ( ) -> & ' static [ u8 ] {
174+ <Self as super :: generator:: StorageMap < Key , Value > >:: module_prefix ( )
175+ }
176+ fn storage_prefix ( ) -> & ' static [ u8 ] {
177+ <Self as super :: generator:: StorageMap < Key , Value > >:: storage_prefix ( )
178+ }
179+ }
180+
163181/// A type that implements StorageDoubleMap when generics are correctly set:
164182/// * Prefix must implement StorageInstance, when used inside pallet macro with
165183/// `#[pallet::storage]` just write `_` the macro will expand with an automatically generated
@@ -210,6 +228,27 @@ where
210228 }
211229}
212230
231+ impl < Prefix , Hasher1 , Key1 , Hasher2 , Key2 , Value , QueryKind , OnEmpty >
232+ super :: StoragePrefixedMap < Value > for
233+ StorageDoubleMapType < Prefix , Hasher1 , Key1 , Hasher2 , Key2 , Value , QueryKind , OnEmpty >
234+ where
235+ Prefix : StorageInstance ,
236+ Hasher1 : crate :: hash:: StorageHasher ,
237+ Hasher2 : crate :: hash:: StorageHasher ,
238+ Key1 : FullEncode ,
239+ Key2 : FullEncode ,
240+ Value : FullCodec ,
241+ QueryKind : QueryKindTrait < Value > ,
242+ OnEmpty : crate :: traits:: Get < QueryKind :: Query > + ' static
243+ {
244+ fn module_prefix ( ) -> & ' static [ u8 ] {
245+ <Self as super :: generator:: StorageDoubleMap < Key1 , Key2 , Value > >:: module_prefix ( )
246+ }
247+ fn storage_prefix ( ) -> & ' static [ u8 ] {
248+ <Self as super :: generator:: StorageDoubleMap < Key1 , Key2 , Value > >:: storage_prefix ( )
249+ }
250+ }
251+
213252/// Part of storage metadata for storage value.
214253pub trait StorageValueMetadata {
215254 const MODIFIER : StorageEntryModifier ;
0 commit comments