-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e67dc15
commit 5a14ddb
Showing
7 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ mnemonic = "" | |
# description = "These are not real sats for testing only" | ||
# description_long = "A longer mint for testing" | ||
# motd = "Hello world" | ||
# mint_icon_url = "https://this-is-a-mint-icon-url.com/icon.png" | ||
# icon_url = "https://this-is-a-mint-icon-url.com/icon.png" | ||
# contact_email = "[email protected]" | ||
# Nostr pubkey of mint (Hex) | ||
# contact_nostr_public_key = "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/cdk-sqlite/src/wallet/migrations/20240902151515_icon_url.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE mint RENAME COLUMN mint_icon_url TO icon_url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ pub struct MintInfo { | |
pub nuts: Nuts, | ||
/// Mint's icon URL | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub mint_icon_url: Option<String>, | ||
pub icon_url: Option<String>, | ||
/// message of the day that the wallet must display to the user | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub motd: Option<String>, | ||
|
@@ -153,12 +153,12 @@ impl MintInfo { | |
} | ||
|
||
/// Set mint icon url | ||
pub fn mint_icon_url<S>(self, mint_icon_url: S) -> Self | ||
pub fn icon_url<S>(self, icon_url: S) -> Self | ||
where | ||
S: Into<String>, | ||
{ | ||
Self { | ||
mint_icon_url: Some(mint_icon_url.into()), | ||
icon_url: Some(icon_url.into()), | ||
..self | ||
} | ||
} | ||
|
@@ -417,7 +417,7 @@ mod tests { | |
} | ||
], | ||
"motd": "Message to display to users.", | ||
"mint_icon_url": "https://this-is-a-mint-icon-url.com/icon.png", | ||
"icon_url": "https://this-is-a-mint-icon-url.com/icon.png", | ||
"nuts": { | ||
"4": { | ||
"methods": [ | ||
|
@@ -460,7 +460,7 @@ mod tests { | |
["email", "[email protected]"] | ||
], | ||
"motd": "Message to display to users.", | ||
"mint_icon_url": "https://this-is-a-mint-icon-url.com/icon.png", | ||
"icon_url": "https://this-is-a-mint-icon-url.com/icon.png", | ||
"nuts": { | ||
"4": { | ||
"methods": [ | ||
|