Expand description

Implementation of procedural macro for generating type-safe bindings to an ethereum smart contract.

Macros

  • Proc macro to generate type-safe bindings to a contract(s). This macro accepts one or more Ethereum contract ABI or a path. Note that relative paths are rooted in the crate’s root CARGO_MANIFEST_DIR. Environment variable interpolation is supported via $ prefix, like "$CARGO_MANIFEST_DIR/contracts/c.json"

Derive Macros

  • 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.