ixc_core 0.0.3

Interchain SDK Core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
**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](https://github.com/cosmos/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:
* wrap some basic information about the current call, but not the full message header
* hold a handle to [`ixc_schema`]'s bump allocator
* hold a handle to the function used to send messages