fedimint_wallet_client/
events.rsuse bitcoin::Txid;
use fedimint_core::core::ModuleKind;
use fedimint_core::Amount;
use fedimint_eventlog::{Event, EventKind};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct WithdrawRequest {
pub txid: Txid,
}
impl Event for WithdrawRequest {
const MODULE: Option<ModuleKind> = Some(fedimint_wallet_common::KIND);
const KIND: EventKind = EventKind::from_static("withdraw-request");
}
#[derive(Serialize, Deserialize)]
pub struct DepositConfirmed {
pub txid: Txid,
pub out_idx: u32,
pub amount: Amount,
}
impl Event for DepositConfirmed {
const MODULE: Option<ModuleKind> = Some(fedimint_wallet_common::KIND);
const KIND: EventKind = EventKind::from_static("deposit-confirmed");
}