-
- All Implemented Interfaces:
public interface StateModuleInterface for getting Runtime metadata and fetching Storage Items
-
-
Method Summary
Modifier and Type Method Description abstract RuntimeMetadatagetRuntimeMetadata()Gets runtime metadata abstract <T extends Any> TfetchStorageItem(RuntimeModuleStorageItem item, RuntimeModuleStorage storage, KClass<T> type)Fetches storage item abstract <T extends Any> TfetchStorageItem(RuntimeModuleStorageItem item, ByteArrayConvertible key, RuntimeModuleStorage storage, KClass<T> type)Fetches storage item abstract <T extends Any> TfetchStorageItem(RuntimeModuleStorageItem item, List<ByteArrayConvertible> keys, RuntimeModuleStorage storage, KClass<T> type)Fetches storage item -
-
Method Detail
-
getRuntimeMetadata
abstract RuntimeMetadata getRuntimeMetadata()
Gets runtime metadata
-
fetchStorageItem
abstract <T extends Any> T fetchStorageItem(RuntimeModuleStorageItem item, RuntimeModuleStorage storage, KClass<T> type)
Fetches storage item
- Parameters:
item- an item to be hashed to get a key which can be used asRpcRequest's parametersstorage- storage for which a storage hasher is created, which hashes the item
-
fetchStorageItem
abstract <T extends Any> T fetchStorageItem(RuntimeModuleStorageItem item, ByteArrayConvertible key, RuntimeModuleStorage storage, KClass<T> type)
Fetches storage item
- Parameters:
item- an item to be hashed to get a key which can be used asRpcRequest's parameterskey- A key to be used when hashing in a storage hasher.storage- storage for which a storage hasher is created, which hashes the item
-
fetchStorageItem
abstract <T extends Any> T fetchStorageItem(RuntimeModuleStorageItem item, List<ByteArrayConvertible> keys, RuntimeModuleStorage storage, KClass<T> type)
Fetches storage item
- Parameters:
item- an item to be hashed to get a key which can be used asRpcRequest's parameterskeys- Keys to be used when hashing in a storage hasher.storage- storage for which a storage hasher is created, which hashes the item
-
-
-
-