Module datastore

Module datastore 

Source
Expand description

datastore serialization / deserialization

Structs§

DatastoreDeserializer
Deserializer for Datastore field in LedgerEntry
DatastoreSerializer
Serializer for Datastore

Functions§

cleanup_datastore_key_range_query
Checks and cleans up a datastore key range query Returns: (prefix, start_bound, end_bound, count) or error The returned count is the effective item count limit: it falls back to the configured maximum when the caller did not provide one, so that callers can forward it to the datastore scan instead of running an unbounded enumeration. Note: only useful to cleanup user-supplied requests (API/ABI)
get_prefix_bounds
For lexicographically ordered keys, gets the upper and lower bound of keys matching a prefix.
range_intersection
Return the intersection of two ranges

Type Aliases§

Datastore
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)