Crate openbrush_lang

Source

Modules§

storage
test_utils
traits
utils

Macros§

storage_unique_key
Return the hash of the format!(“{}::{}”, ::core::module_path!(), struct_name). It cam be used to generate unique storage key of the struct.

Attribute Macros§

contract
Entry point for use openbrush’s macros in ink! smart contracts.
modifier_definition
This macro only checks that some free-standing function satisfies a set of rules.
modifiers
Macro calls every modifier function by passing self and the code of function’s body. It means that modifiers must be available in the scope of the marked method.
trait_definition
Defines extensible trait in the scope of openbrush::contract. It is a common rust trait, so you can use any features of rust inside of this trait. If this trait contains some methods marked with #[ink(message)] or #[ink(constructor)] attributes, this macro will extract these attributes and will put them into a separate trait (the separate trait only is used to call methods from the original trait), but the macro will not touch methods.
upgradeable_storage
That macro implemented OccupyStorage
wrapper
This macro allows you to define a wrapper type for traits defined via #[openbrush::trait_definition]. It is a wrapper for AccountId that knows how to do cross-contract calls to another contract.