Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 6, 2023
1 parent 0789140 commit f50364c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
4 changes: 3 additions & 1 deletion moksha-core/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,17 @@ pub struct KeyResponse {
}

#[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone)]
#[serde(rename_all = "lowercase")]
pub enum CurrencyUnit {
#[serde(rename = "sat")]
Sat,
Usd,
}

impl Display for CurrencyUnit {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
CurrencyUnit::Sat => write!(f, "sat"),
CurrencyUnit::Usd => write!(f, "usd"),
}
}
}
Expand Down
15 changes: 0 additions & 15 deletions moksha-mint/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@ pub struct CreateInvoiceParams {
pub internal: Option<bool>,
}

// #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
// pub struct Quote {
// pub quote_id: Uuid,
// pub payment_request: String,
// }

// impl Quote {
// pub fn new(quote_id: Uuid, payment_request: String) -> Self {
// Self {
// quote_id,
// payment_request,
// }
// }
// }

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub enum Quote {
Bolt11Mint {
Expand Down

0 comments on commit f50364c

Please sign in to comment.