ckb_ssri_std

Module macros

Source
Expand description

Re-exports of procedural macros from ckb-ssri-std-proc-macro

This module provides convenient access to all procedural macros defined in the ckb-ssri-std-proc-macro crate. These macros are essential for implementing SSRI-compliant smart contracts.

§Available Macros

  • ssri_module: Marks a module as an SSRI-compliant module
  • ssri_method: Marks a function as an exposed SSRI method

§Example

use ckb_ssri_std::macros::*;

#[ssri_module]
mod my_contract {
    #[ssri_method]
    fn my_method() -> Result<(), Error> {
        // Implementation
    }
}

Macros§