Type Alias massa_models::datastore::Datastore
source · pub type Datastore = BTreeMap<Vec<u8>, Vec<u8>>;
Expand description
Datastore entry for Ledger & ExecuteSC
Operation
A Datastore is a Key Value store where
Key: Byte array (max length should be 255)
Value: Byte array
What is stored can be arbitrary bytes but can often be smart contract bytecode (aka WASM binary)
Aliased Type§
struct Datastore {
root: Option<NodeRef<Owned, Vec<u8, Global>, Vec<u8, Global>, LeafOrInternal>>,
length: usize,
pub(super) alloc: ManuallyDrop<Global>,
_marker: PhantomData<Box<(Vec<u8, Global>, Vec<u8, Global>), Global>>,
}
Fields§
§root: Option<NodeRef<Owned, Vec<u8, Global>, Vec<u8, Global>, LeafOrInternal>>
§length: usize
§alloc: ManuallyDrop<Global>
§_marker: PhantomData<Box<(Vec<u8, Global>, Vec<u8, Global>), Global>>