alloy_sol_types/
ext.rs

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

    /// Returns the ABI representation of this type.
    fn abi() -> Self::Abi;
}