RPC api for offchain storage (#4694)

* Rpc api for offchain storage

* Replace Vec<u8> to Bytes, replace Mutex to RwLock

* Remove pub

* Modify copyright year
This commit is contained in:
Edwin authored and GitHub committed 2020-01-28 23:31:28 +01:00
1 parent d38e96f2e1
commit 9a6d9f0db5
10 files changed
+218 -9

No files matched your search

@@ -50,6 +50,7 @@ pub trait OffchainStorage: Clone + Send + Sync {
/// A type of supported crypto.
#[derive(Clone, Copy, PartialEq, Eq, Encode, Decode, RuntimeDebug, PassByEnum)]
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
#[repr(C)]
pub enum StorageKind {
/// Persistent storage is non-revertible and not fork-aware. It means that any value