Fetch paged storage keys

This commit is contained in:
Andrew Jones committed 2020-08-03 12:40:37 +01:00
1 parent d3e7bd2282
commit 663934ca37
5 files changed
+71 -7

No files matched your search

+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.