Crate starknet_macros

Crate starknet_macros 

Source
Expand description

Procedural macros for the starknet crate. This crate provides macros that help make defining certain compile-time constants easier.

Macrosยง

felt
Defines a compile-time constant for a field element from its decimal or hexadecimal representation.
felt_dec
Defines a compile-time constant for a field element from its decimal representation.
felt_hex
Defines a compile-time constant for a field element from its hexadecimal representation.
selector
Defines a compile-time constant for a entrypoint selector of a Starknet contract.
short_string
Defines a compile-time constant for a Cairo short string encoding from a human-readable string.