ccip-read-server 0.1.1

CCIP-READ Server Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//use ethers_providers::{Middleware, MiddlewareError};
use thiserror::Error;

/// Handle CCIP-Read middleware specific errors.
#[derive(Error, Debug)]
pub enum CCIPReadMiddlewareError /*<M: Middleware>*/ {
    #[error("Unknown function")]
    UnknownFunction(#[from] ethers_core::abi::Error),

    #[error("Parsing error")]
    Parsing(#[from] serde_json::Error),

    #[error("Abi error")]
    Abi(#[from] ethers_core::abi::AbiError),

    #[error("Parse bytes error")]
    ParseBytes(#[from] ethers_core::types::ParseBytesError),
}