Utilities for interacting with the native key-value storage.
A key with an arbitrary number of segments. Writes them in order of the iteration.
A key with a pre-defined number of segments. Writes them in order of the iteration.
Storage type that stores a single item under the given
Namespace. Use this when there is only “one of” something.
A key which consists of a static byte slice.
Implemented for types that act as CW storage keys by writing bytes into the given buffer. What those bytes represent and where they are coming from as well as how they are written into the buffer entirely depends on the implementing type.
Represents a namespace, usually acting as a prefix to a dynamically generated key. We only do this so that we can have strongly typed keys and storage types. Use the
namespacemacro to generate one.
Load something from the storage.
Remove something from the storage.
Save something to the storage.