alloy-sol-types
Compile-time representation of Ethereum's type system with ABI and EIP-712 support.
This crate provides a developer-friendly interface to Ethereum's type system, by representing Solidity types. See type_system.md for a rundown, and the crate docs for more information
Features
- static representation of Solidity types
- ABI encoding and decoding
- EIP-712 encoding and decoding
- EIP-712 Domain object w/
serde
support
Usage
See the crate docs for more details.
// Declare a solidity type in standard solidity
sol!
// A corresponding Rust struct is generated!
let foo = Foo ;
// Works for UDTs
sol!
let my_type = from;
// For errors
sol!
// And for functions!
sol!
Licensing
This crate is an extensive rewrite of the
ethabi crate by the parity team.
That codebase is used under the terms of the MIT license. We have preserved
the original license notice in files incorporating ethabi
code.