eigensdk_client_wallet/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum PrivateKeyWalletError {
5    /// convert txid(string) to TxHash
6    #[error("Failed to convert TxId to TxHash")]
7    TxIdtoTxHash,
8
9    /// Get transaction receipt
10    #[error("Failed to get transaction receipt")]
11    GetTransactionReceipt,
12
13    /// Get Block Number
14    #[error("Failed to get block number")]
15    GetBlockNumber,
16
17    /// Get Block
18    #[error("Get Block from Number")]
19    GetBlock,
20
21    /// Estimate Gas and nonce
22    #[error("Faile to estimate gas and nonce")]
23    EstimateGasAndNonce,
24
25    /// Failed to send transaction
26    #[error("Failed to send transaction")]
27    SendTransaction,
28
29    /// pvtkey to ethers wallet
30    #[error("Failed to build Wallet from pvt key string")]
31    BuildWallet,
32
33    /// estimate eip 1559 fees
34    #[error("failed to estimate eip1559 fees")]
35    EstimateEip1559Fees,
36
37    /// estimate gas
38    #[error("Failed to estimate gas")]
39    EstimateGas,
40
41    /// Transaction receipt
42    #[error("Failed to get transaction receipt")]
43    TransactionReceipt,
44}