ethabi-decode
This library is a codec for ABI-encoded data and event logs. It is a fork of ethabi with a focus on providing decode functionality in environments where libstd
may not be available.
For compatibility with constrained no_std
environments, the design of this library differs from the the upstream ethabi in several respects, including:
- ABI's need to be specified as code rather than being loaded from JSON (No SERDE support).
- Use of
Vec<u8>
instead ofstd::string::String
for owned strings. - Anything to do with human-readable error and display output was excised.
Building
-
Build without
libstd
cargo build --no-default-features
-
Build with
libstd
cargo build
Example
Decode an event log:
use ;