4 releases

0.0.4 Oct 11, 2024
0.0.3 Oct 11, 2024
0.0.2 Sep 19, 2024
0.0.1 Sep 19, 2024

#1849 in Rust patterns

Download history 221/week @ 2024-09-14 72/week @ 2024-09-21 24/week @ 2024-09-28 213/week @ 2024-10-05 188/week @ 2024-10-12 11/week @ 2024-10-19 1/week @ 2024-10-26

416 downloads per month
Used in 3 crates

Apache-2.0

175KB
3.5K SLoC

WARNING: This is an API preview! Expect major bugs, glaring omissions, and breaking changes!

This crate defines types and macros for constructing easy to use account and module implementations. It integrates with the encoding layer but does not specify a state management framework.

Context

The Context struct gets passed to all handler functions that interact with state but what exactly is it? In the Golang Cosmos SDK, Context was never precisely defined and ended up becoming sort of a bag of variables which were passed around everywhere. This made it difficult to understand what was actually being passed around and what was being used.

Context here is defined to have the following purposes:

Dependencies

~4MB
~80K SLoC