Summary
A major new addition to the library is the ordered collections StateBTreeMap
and StateBTreeSet
.
See the guide for when to use these new collections.
Changes
- Add support for querying the module reference and contract name of an instance,
via theHasHost::contract_module_reference
andHasHost::contract_name
functions.
These are only available from protocol version 7, and as such are guarded by thep7
feature flag. - Add two ordered collections:
StateBTreeMap
andStateBTreeSet
. These are based on B-Tree, but where each node is stored in the low-level smart contract key-value store. Use one of these when needing operations related to the ordering of the keys, such ashigher(k)
providing the smallest key in collection which is stricly greater thank
. - Bump MSRV to 1.73