Expand description

Procedural macros for generating type-safe bindings to an Ethereum smart contract.

Macros

  • Generates type-safe bindings to an Ethereum smart contract from its ABI.

Derive Macros

  • EIP-712 derive macro.
  • Derives the AbiEncode, AbiDecode and traits for the labeled type.
  • Derives the AbiType and all Tokenizable traits for the labeled type.
  • Derives the EthCall and Tokenizeable trait for the labeled type.
  • Derives fmt::Display trait and generates a convenient format for all the underlying primitive types/tokens.
  • Derives the EthError and Tokenizeable trait for the labeled type.
  • Derives the EthEvent and Tokenizeable trait for the labeled type.