feat/ocw/bookkeeping (#5200)

Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
This commit is contained in:
Bernhard Schuster
2020-04-24 16:46:19 +02:00
committed by GitHub
parent f66168505b
commit 72ee7d5797
40 changed files with 675 additions and 80 deletions
+5
View File
@@ -12,12 +12,17 @@ repository = "https://github.com/paritytech/substrate/"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-core = { version = "2.0.0-dev", default-features = false, path = "../core" }
sp-api = { version = "2.0.0-dev", default-features = false, path = "../api" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../runtime" }
[dev-dependencies]
sp-state-machine = { version = "0.8.0-alpha.5", default-features = false, path = "../state-machine" }
[features]
default = ["std"]
std = [
"sp-core/std",
"sp-api/std",
"sp-runtime/std"
]
+2 -2
View File
@@ -19,8 +19,8 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
/// Local Storage Prefix used by the Offchain Worker API to
pub const STORAGE_PREFIX: &[u8] = b"storage";
/// Re-export of parent module scope storage prefix.
pub use sp_core::offchain::STORAGE_PREFIX as STORAGE_PREFIX;
sp_api::decl_runtime_apis! {
/// The offchain worker api.