diff --git a/.env.example b/.env.example index c10fa187..06d68324 100644 --- a/.env.example +++ b/.env.example @@ -39,6 +39,8 @@ MINT_INFO_DESCRIPTION="The short mint description" MINT_INFO_DESCRIPTION_LONG="A long mint description that can be a long piece of text." MINT_INFO_CONTACT=[["email","contact@me.com"], ["twitter","@me"], ["nostr", "npub..."]] MINT_INFO_MOTD="Message to users" +MINT_INFO_ICON_URL="https://mint.host/icon.jpg" +MINT_INFO_URLS=["https://mint.host", "http://mint8gv0sq5ul602uxt2fe0t80e3c2bi9fy0cxedp69v1vat6ruj81wv.onion"] MINT_PRIVATE_KEY=supersecretprivatekey diff --git a/cashu/core/models.py b/cashu/core/models.py index 4565f5b3..77addfa6 100644 --- a/cashu/core/models.py +++ b/cashu/core/models.py @@ -47,6 +47,7 @@ class GetInfoResponse(BaseModel): contact: Optional[List[MintInfoContact]] = None motd: Optional[str] = None icon_url: Optional[str] = None + urls: Optional[List[str]] = None time: Optional[int] = None nuts: Optional[Dict[int, Any]] = None diff --git a/cashu/core/settings.py b/cashu/core/settings.py index c49fd52a..f89d2a9f 100644 --- a/cashu/core/settings.py +++ b/cashu/core/settings.py @@ -153,6 +153,7 @@ class MintInformation(CashuSettings): mint_info_contact: List[List[str]] = Field(default=[]) mint_info_motd: str = Field(default=None) mint_info_icon_url: str = Field(default=None) + mint_info_urls: List[str] = Field(default=None) class WalletSettings(CashuSettings): diff --git a/cashu/mint/router.py b/cashu/mint/router.py index 69f34589..5e7f23c7 100644 --- a/cashu/mint/router.py +++ b/cashu/mint/router.py @@ -57,6 +57,7 @@ async def info() -> GetInfoResponse: contact=contact_info, nuts=mint_features, icon_url=settings.mint_info_icon_url, + urls=settings.mint_info_urls, motd=settings.mint_info_motd, time=int(time.time()), )