-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from CosmWasm/API-docs
API docs
- Loading branch information
Showing
14 changed files
with
599 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
//! Storage containers for use with [*CosmWasm*] smart contracts. | ||
//! | ||
//! [*CosmWasm*]: https://github.com/CosmWasm/cosmwasm | ||
|
||
/// The [`storey::containers::Item`] type with the default encoding for [*CosmWasm*] smart | ||
/// contracts. | ||
/// | ||
/// [*CosmWasm*]: https://github.com/CosmWasm/cosmwasm | ||
pub type Item<T> = storey::containers::Item<T, crate::encoding::CwEncoding>; | ||
|
||
/// The [`storey::containers::Column`] type with the default encoding for [*CosmWasm*] smart | ||
/// contracts. | ||
/// | ||
/// [*CosmWasm*]: https://github.com/CosmWasm/cosmwasm | ||
pub type Column<T> = storey::containers::Column<T, crate::encoding::CwEncoding>; | ||
|
||
pub use storey::containers::Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
//! 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. | ||
//! | ||
//! [*CosmWasm*]: https://github.com/CosmWasm/cosmwasm | ||
//! [*MessagePack*]: https://msgpack.org/ | ||
|
||
mod backend; | ||
pub mod containers; | ||
mod encoding; | ||
|
||
pub use backend::CwStorage; | ||
pub use encoding::CwEncoding; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.