alibi_core/store/
wallets.rs1use crate::{AuthError, AuthResult, CreateWalletAddress, WalletAddress};
5use async_trait::async_trait;
6
7#[async_trait]
8pub trait WalletAddressStore: Send + Sync {
9 async fn get_wallet_address(
12 &self,
13 _address: &str,
14 _chain_id: Option<f64>,
15 ) -> AuthResult<Option<WalletAddress>> {
16 Err(AuthError::NotImplemented(
17 "Wallet address lookup is not supported by this store".to_owned(),
18 ))
19 }
20
21 async fn create_wallet_address(&self, _data: CreateWalletAddress) -> AuthResult<WalletAddress> {
25 Err(AuthError::NotImplemented(
26 "Wallet address creation is not supported by this store".to_owned(),
27 ))
28 }
29}