expose offchain worker storage prefix (#3977)

* expose offchain worker storage prefix

* add docs

* move STORAGE_PREFIX to primitives
This commit is contained in:
Benjamin Kampmann authored and GitHub committed 2019-11-01 19:32:01 +01:00
1 parent 2ff04d332d
commit 4852763d73
3 files changed
+5 -2

No files matched your search

@@ -22,6 +22,9 @@
use client::decl_runtime_apis;
use sr_primitives::traits::NumberFor;
/// Local Storage Prefix used by the Offchain Worker API to
pub const STORAGE_PREFIX: &[u8] = b"storage";
decl_runtime_apis! {
/// The offchain worker api.
pub trait OffchainWorkerApi {