Using ethers-rs
ethers-rs provides extensive tooling to generate type safe bindings for smart contracts. Under the hood, it relies on
the ethabi crate's data model for contracts and all core encoding/decoding
related traits. ethers-rs provides additional types, traits and macros that help with
- ABI encoding/decoding - encode/decode custom types and events
- Contract Bindings with
abigen!- generate type safe contract bindings