Crate zink_codegen

Source
Expand description

Code generation library for the zink API

Modules§

contract 🔒
Derive macro for contract storage
event 🔒
revert 🔒
Revert macro
selector 🔒
Macro for the function selector.
storage 🔒
utils 🔒
Utils for bytes conversion.

Macros§

assert
Check and expression and revert with the input message
revert
Revert with the input message

Attribute Macros§

external
Mark the function as an external entry point.
storage
Declare on-chain storage
transient_storage
Declare transient storage (cleared after each transaction)

Derive Macros§

Event
Event logging interface
Storage
Declare contract storage