1#![doc = include_str!("../README.md")]
2pub(crate) use cido::__internal::_impls;
3#[doc(inline)]
4pub use prelude::*;
5
6mod graphql;
7mod network;
8mod type_conversions;
9mod types;
10
11#[doc(hidden)]
12pub mod __internal {
13 pub use crate::prelude::*;
14 pub use cido::__internal::*;
15 pub use ethabi;
16 pub use web3;
17}
18
19pub mod prelude {
20 #[doc(inline)]
21 pub use super::{
22 EthereumError,
23 graphql::{BlockQuery, EthereumBlockId, FullBlockQuery},
24 network::*,
25 types::*,
26 };
27 #[doc(no_inline)]
28 pub use cido::prelude::*;
29 #[doc(inline)]
30 pub use cido_ethereum_macros::*;
31}
32
33#[_impls]
34#[derive(Debug)]
36pub struct EthereumError;
37
38#[_impls]
39impl std::error::Error for EthereumError {}
40
41#[_impls]
42impl std::fmt::Display for EthereumError {
43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44 write!(f, "EthereumError")
45 }
46}
47
48#[_impls]
49impl EthereumError {
50 fn conversion_error(_: cido::__internal::ConversionError) -> Self {
51 Self
52 }
53 fn invalid_block_number(_: u64) -> Self {
54 Self
55 }
56 fn unparseable_block(_: String) -> Self {
57 Self
58 }
59}
60
61#[_impls]
62impl From<ethabi::Error> for EthereumError {
63 fn from(_: ethabi::Error) -> Self {
64 Self
65 }
66}
67
68#[_impls]
69impl From<cido::__internal::ConversionError> for EthereumError {
70 fn from(_: cido::__internal::ConversionError) -> Self {
71 Self
72 }
73}