Expand description

Operation on runtime child storages.

This module is a currently only a variant of unhashed with additional child_info.

Enums

Information related to a child state.

Type of child. It does not strictly define different child type, it can also be related to technical consideration or api variant.

The outcome of calling storage_kill. Returned value is the number of storage items removed from the trie from making the storage_kill call.

Functions

Check to see if key has an explicit entry in storage.

Return the value of the item in storage under key, or None if there is no explicit entry.

Return the value of the item in storage under key, or default_value if there is no explicit entry.

Return the value of the item in storage under key, or the type’s default if there is no explicit entry.

Return the value of the item in storage under key, or default_value() if there is no explicit entry.

Get a Vec of bytes from storage.

Ensure key has no explicit entry in storage.

Remove all storage_key key/values

Return the length in bytes of the value without reading it. None if it does not exist.

Put value in storage under key.

Put a raw byte slice into storage.

Calculate current child root value.

Remove key from storage, returning its value if it had an explicit entry or None otherwise.

Return the value of the item in storage under key, or default_value if there is no explicit entry. Ensure there is no explicit entry on return.

Remove key from storage, returning its value, or, if there was no explicit entry in storage, the default for its type.

Return the value of the item in storage under key, or default_value() if there is no explicit entry. Ensure there is no explicit entry on return.