1#[derive(Debug, thiserror::Error)]
2pub enum ApprovalsError {
3 #[error("Invalid CAIP2: {0}")]
4 InvalidCaip2(String),
5
6 #[error("Unsupported chain ID: {0}")]
7 UnsupportedChainId(String),
8
9 #[error("Failed to get Alchemy API key")]
10 FailedToGetAlchemyApiKey,
11
12 #[error("Failed to get allowance: {0}")]
13 FailedToGetAllowance(reqwest::Error),
14
15 #[error("Failed to estimate gas: {0}")]
16 FailedToEstimateGas(String),
17
18 #[error("Invalid chain ID: {0}")]
19 InvalidChainId(String),
20}