|
|
@@ -878,14 +878,6 @@ VALUES (:quote_id, :amount, :timestamp);
|
|
|
Ok(())
|
|
|
}
|
|
|
|
|
|
- async fn remove_mint_quote(&mut self, quote_id: &QuoteId) -> Result<(), Self::Err> {
|
|
|
- query(r#"DELETE FROM mint_quote WHERE id=:id"#)?
|
|
|
- .bind("id", quote_id.to_string())
|
|
|
- .execute(&self.inner)
|
|
|
- .await?;
|
|
|
- Ok(())
|
|
|
- }
|
|
|
-
|
|
|
async fn add_melt_quote(&mut self, quote: mint::MeltQuote) -> Result<(), Self::Err> {
|
|
|
// Now insert the new quote
|
|
|
query(
|
|
|
@@ -1020,20 +1012,6 @@ VALUES (:quote_id, :amount, :timestamp);
|
|
|
Ok((old_state, quote))
|
|
|
}
|
|
|
|
|
|
- async fn remove_melt_quote(&mut self, quote_id: &QuoteId) -> Result<(), Self::Err> {
|
|
|
- query(
|
|
|
- r#"
|
|
|
- DELETE FROM melt_quote
|
|
|
- WHERE id=:id
|
|
|
- "#,
|
|
|
- )?
|
|
|
- .bind("id", quote_id.to_string())
|
|
|
- .execute(&self.inner)
|
|
|
- .await?;
|
|
|
-
|
|
|
- Ok(())
|
|
|
- }
|
|
|
-
|
|
|
async fn get_mint_quote(&mut self, quote_id: &QuoteId) -> Result<Option<MintQuote>, Self::Err> {
|
|
|
let payments = get_mint_quote_payments(&self.inner, quote_id).await?;
|
|
|
let issuance = get_mint_quote_issuance(&self.inner, quote_id).await?;
|