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