Copyright | Aleksandr Krupenkin 2016-2024 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Network.Polkadot.Storage
Description
Substrate uses a simple key-value data store implemented as a database-backed, modified Merkle tree.
Blockchains that are built with Substrate expose a remote procedure call (RPC) server that can be used to query runtime storage.
Synopsis
- type Storage = Map Text ModuleStorage
- type ModuleStorage = Map Text StorageEntry
- fromMetadata :: Metadata -> Storage
- storageKey :: Storage -> Text -> Text -> [Argument] -> Maybe HexString
Documentation
type ModuleStorage = Map Text StorageEntry Source #
Each module store data in a set of named entries.
Create Storage
abstraction from runtime metadata.