zink

Attribute Macro storage

#[storage]
Expand description

Declare on-chain storage

/// storage value
#[zink::storage(i32)]
pub struct Counter;

/// storage mapping
#[zink::storage(i32, i32)]
pub struct Mapping;