Trait ceres_runtime::Storage [−][src]
pub trait Storage {
fn set(
&mut self,
code_hash: [u8; 32],
data: BTreeMap<[u8; 32], Vec<u8>>
) -> Result<()>;
fn get(&self, code_hash: [u8; 32]) -> Option<BTreeMap<[u8; 32], Vec<u8>>>;
fn new_state(&self) -> BTreeMap<[u8; 32], Vec<u8>>;
}Expand description
Storage interfaces
Required methods
Set storage by code hash
Get storage by code hash