mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 13:16:00 +01:00
feat: debug on wallet
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#[cfg(any(feature = "wallet", feature = "mint"))]
|
||||
use std::collections::HashMap;
|
||||
use std::fmt::Debug;
|
||||
|
||||
#[cfg(any(feature = "wallet", feature = "mint"))]
|
||||
use async_trait::async_trait;
|
||||
@@ -47,7 +48,7 @@ pub enum Error {
|
||||
#[cfg(feature = "wallet")]
|
||||
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
|
||||
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
|
||||
pub trait WalletDatabase {
|
||||
pub trait WalletDatabase: Debug {
|
||||
type Err: Into<Error> + From<Error>;
|
||||
|
||||
async fn add_mint(
|
||||
|
||||
@@ -34,7 +34,7 @@ pub mod error;
|
||||
pub mod nostr;
|
||||
pub mod util;
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Wallet {
|
||||
pub client: HttpClient,
|
||||
pub localstore: Arc<dyn WalletDatabase<Err = cdk_database::Error> + Send + Sync>,
|
||||
|
||||
Reference in New Issue
Block a user