Expand description
datastore serialization / deserialization
Structs§
- Datastore
Deserializer - Deserializer for
Datastorefield inLedgerEntry - Datastore
Serializer - 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 &
ExecuteSCOperation 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)