truthlinked-sdk-macros
Procedural macros used by truthlinked-sdk. Publish this crate before truthlinked-sdk.
What’s included
#[derive(Event)]with#[topic],#[event(name = \"...\")],#[event(anonymous)],#[event(skip)],#[event(type = \"...\")]#[derive(Manifest)]to declare storage access (read/write/commutative slots, map/vec/blob helpers)#[derive(BytesCodec)]/#[derive(Codec32)]for deterministic encoding#[error_code]to declare numeric error codes#[require]to enforce preconditions with custom errors
Example
use *;
;
License
MIT