| 10 | |
| 11 | #[derive(Error, Debug)] |
| 12 | pub enum Web3Error { |
| 13 | #[error("Error creating a new HTTP JSON-RPC client: {0}")] |
| 14 | ClientError(String), |
| 15 | |
| 16 | #[error("Error serializing or deserializing JSON data: {0}")] |
| 17 | JsonParseError(String), |
| 18 | |
| 19 | #[error("Error sending a HTTP JSON-RPC call: {0}")] |
| 20 | RpcRequestError(String), |
| 21 | |
| 22 | #[error("Error receiving a HTTP JSON-RPC response: {0}")] |
| 23 | RpcResponseError(String), |
| 24 | |
| 25 | #[error("Error signing transaction: {0}")] |
| 26 | TransactionSigningError(String), |
| 27 | } |
| 28 | |
| 29 | /// Utility result type to be used throughout |
| 30 | pub type Result<T> = std::result::Result<T, Web3Error>; |
nothing calls this directly
no outgoing calls
no test coverage detected