alloy_sol_types/
ext.rs

1/// Extension trait for ABI representation.
2///
3/// Implemented by types generated by the [`sol!`] macro when using the [`#[sol(abi)]`][attr]
4/// attribute.
5///
6/// [`sol!`]: crate::sol
7/// [attr]: https://docs.rs/alloy-sol-macro/latest/alloy_sol_macro/macro.sol.html#attributes
8pub trait JsonAbiExt {
9    /// The ABI representation of this type.
10    type Abi;
11
12    /// Returns the ABI representation of this type.
13    fn abi() -> Self::Abi;
14}