modifier_macro 0.1.2

experimental function modifiers from solidity for cosmwasm
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 270.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dyzz

modifier_macro

Experimental implementation of function modifier on cosmwasm.

supported

  • onlyOwner

usage

in ~/cargo/config

 [net]
 git-fetch-with-cli = true

in cargo.toml

[dependencies]
modifier_macro = "0.1.2"

onlyOwner

use modifier_macro::modifier;

#[modifier(onlyOwner)]
fn main() {
    println!("Hello, world!");
}