sov-modules-macros 0.2.0

Macros for use with the Sovereign SDK module system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sov_modules_api::{Context, ModuleInfo};
use sov_state::StateMap;

#[derive(ModuleInfo)]
struct FirstTestStruct<C>
where
    C: Context,
{
    #[address]
    pub address: C::Address,

    #[state(codec_builder = "sov_state::codec::BorshCodec::default")]
    pub state_in_first_struct_1: StateMap<C::PublicKey, u32>,
}

fn main() {}