#modifier #solidity #cosmwasm #experimental

macro modifier_macro

experimental function modifiers from solidity for cosmwasm

3 releases

0.1.2 Feb 24, 2022
0.1.1 Feb 24, 2022
0.1.0 Feb 24, 2022

#14 in #modifier

MIT license

3KB

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!");
}

Dependencies

~1.5MB
~37K SLoC