Crate ethers_contract_derive
source ·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,AbiDecodeand traits for the labeled type. - Derives the
AbiTypeand allTokenizabletraits for the labeled type. - Derives the
EthCallandTokenizeabletrait for the labeled type. - Derives
fmt::Displaytrait and generates a convenient format for all the underlying primitive types/tokens. - Derives the
EthErrorandTokenizeabletrait for the labeled type. - Derives the
EthEventandTokenizeabletrait for the labeled type.