alloy_dyn_abi/
lib.rs

1// Copyright 2015-2020 Parity Technologies
2// Copyright 2023-2023 Alloy Contributors
3
4// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. This file may not be copied, modified, or distributed
8// except according to those terms.
9
10#![doc = include_str!("../README.md")]
11#![doc(
12    html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
13    html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
14)]
15#![cfg_attr(not(test), warn(unused_crate_dependencies))]
16#![cfg_attr(not(feature = "std"), no_std)]
17#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
18
19#[macro_use]
20extern crate alloc;
21
22pub extern crate alloy_sol_type_parser as parser;
23
24#[cfg(feature = "arbitrary")]
25mod arbitrary;
26
27mod coerce;
28
29mod dynamic;
30pub use dynamic::{
31    DecodedError, DecodedEvent, DynSolCall, DynSolError, DynSolEvent, DynSolReturns, DynSolType,
32    DynSolValue, DynToken,
33};
34
35mod error;
36pub use error::{Error, Result};
37
38mod ext;
39pub use ext::{ErrorExt, EventExt, FunctionExt, JsonAbiExt};
40
41mod specifier;
42pub use specifier::Specifier;
43
44#[cfg(feature = "eip712")]
45pub mod eip712;
46#[cfg(feature = "eip712")]
47pub use eip712::{parser as eip712_parser, Eip712Types, PropertyDef, Resolver, TypeDef, TypedData};
48
49#[doc(no_inline)]
50pub use alloy_sol_types::{
51    abi::{self, Decoder, Encoder},
52    Eip712Domain, SolType, Word,
53};