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
2019-11-01 19:32:01 +01:00
committed by GitHub
parent 2ff04d332d
commit 4852763d73
3 changed files with 5 additions and 2 deletions
@@ -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 {