Fetch paged storage keys

This commit is contained in:
Andrew Jones
2020-08-03 12:27:31 +01:00
parent d3e7bd2282
commit 663934ca37
5 changed files with 71 additions and 7 deletions
+2
View File
@@ -42,6 +42,8 @@ pub trait Store<T>: Encode {
const FIELD: &'static str;
/// Return type.
type Returns: Decode;
/// Returns the key prefix for storage maps
fn prefix(metadata: &Metadata) -> Result<StorageKey, MetadataError>;
/// Returns the `StorageKey`.
fn key(&self, metadata: &Metadata) -> Result<StorageKey, MetadataError>;
/// Returns the default value.