Skip to content

concordium-std 10.1.0

Latest
Compare
Choose a tag to compare

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 the HasHost::contract_module_reference and HasHost::contract_name functions.
    These are only available from protocol version 7, and as such are guarded by the p7 feature flag.
  • Add two ordered collections: StateBTreeMap and StateBTreeSet. 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 as higher(k) providing the smallest key in collection which is stricly greater than k.
  • Bump MSRV to 1.73