eigensdk_client_wallet/
lib.rs

1pub mod error;
2pub mod privatekey_wallet;
3use error::PrivateKeyWalletError;
4use ethers_core::types::{transaction::eip2718::TypedTransaction, TransactionReceipt, TxHash};
5
6pub type TxId = String;
7pub trait WalletTrait {
8    async fn send_transaction(&self, tx: TypedTransaction)
9        -> Result<TxHash, PrivateKeyWalletError>;
10
11    async fn get_transaction_receipt(
12        &self,
13        tx_id: TxId,
14    ) -> Result<Option<TransactionReceipt>, PrivateKeyWalletError>;
15}