6 releases (breaking)

new 0.5.0 Feb 12, 2025
0.4.0 Sep 11, 2024
0.3.1 Jun 19, 2024
0.2.0 May 9, 2024
0.1.0 Mar 22, 2024

#16 in Magic Beans

Download history 2/week @ 2024-10-31 1/week @ 2024-11-07 1/week @ 2024-11-14 1/week @ 2024-11-21 2/week @ 2024-12-05 3/week @ 2024-12-12 2/week @ 2025-01-30 48/week @ 2025-02-06

55 downloads per month

Apache-2.0

135KB
2.5K SLoC

cw-storey

cw-storey is a crate providing storage abstractions for CosmWasm smart contracts. It's an alternative to cw-storage-plus.

The core logic lives in the storey crate, while the cw-storey crate is an integration of storey with the CosmWasm storage interface. It also provides the recommended encoding for KV store values: MessagePack.

A (possibly still incomplete) guide can be found here.


lib.rs:

An integration of storey with CosmWasm.

This crate provides

  • a CosmWasm storage backend for use with storey collections,
  • a MessagePack encoding integration to be used for serializing and deserializing values, and
  • a set of container re-exports that remove the need to manually specify the encoding, instead relying on the default MessagePack encoding.

Dependencies

~4–7.5MB
~150K SLoC