6 releases (breaking)

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

#10 in #cosm-wasm

Download history 2/week @ 2024-11-16 4/week @ 2024-12-07 1/week @ 2024-12-14 13/week @ 2025-02-01 125/week @ 2025-02-08 56/week @ 2025-02-15 7/week @ 2025-02-22 14/week @ 2025-03-01

208 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
~158K SLoC