feat(mint): update mint url

This commit is contained in:
thesimplekid
2024-06-24 21:41:52 +01:00
parent 0afd27bc61
commit e358401ec8

View File

@@ -86,6 +86,26 @@ impl Mint {
})
}
/// Set Mint Url
pub fn set_mint_url(&mut self, mint_url: UncheckedUrl) {
self.mint_url = mint_url;
}
/// Get Mint Url
pub fn get_mint_url(&self) -> &UncheckedUrl {
&self.mint_url
}
/// Set Mint Info
pub fn set_mint_info(&mut self, mint_info: MintInfo) {
self.mint_info = mint_info;
}
/// Get Mint Info
pub fn mint_info(&self) -> &MintInfo {
&self.mint_info
}
/// New mint quote
pub async fn new_mint_quote(
&self,
@@ -721,16 +741,6 @@ impl Mint {
})
}
/// Set Mint Info
pub fn set_mint_info(&mut self, mint_info: MintInfo) {
self.mint_info = mint_info;
}
/// Get Mint Info
pub fn mint_info(&self) -> Result<MintInfo, Error> {
Ok(self.mint_info.clone())
}
/// Restore
pub async fn restore(&self, request: RestoreRequest) -> Result<RestoreResponse, Error> {
let output_len = request.outputs.len();