5 releases (3 breaking)

0.4.0 Sep 11, 2024
0.3.1 Jun 19, 2024
0.3.0 Jun 12, 2024
0.2.0 May 9, 2024
0.1.0 Mar 22, 2024

#378 in #container

Download history 198/week @ 2024-06-15 18/week @ 2024-06-22 8/week @ 2024-06-29 13/week @ 2024-07-27 354/week @ 2024-09-07 22/week @ 2024-09-14 6/week @ 2024-09-21 17/week @ 2024-09-28

399 downloads per month

Apache-2.0

90KB
1.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
~149K SLoC