mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 19:14:19 +01:00
NUT-06: add urls field (#638)
This commit is contained in:
@@ -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_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_CONTACT=[["email","contact@me.com"], ["twitter","@me"], ["nostr", "npub..."]]
|
||||||
MINT_INFO_MOTD="Message to users"
|
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
|
MINT_PRIVATE_KEY=supersecretprivatekey
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ class GetInfoResponse(BaseModel):
|
|||||||
contact: Optional[List[MintInfoContact]] = None
|
contact: Optional[List[MintInfoContact]] = None
|
||||||
motd: Optional[str] = None
|
motd: Optional[str] = None
|
||||||
icon_url: Optional[str] = None
|
icon_url: Optional[str] = None
|
||||||
|
urls: Optional[List[str]] = None
|
||||||
time: Optional[int] = None
|
time: Optional[int] = None
|
||||||
nuts: Optional[Dict[int, Any]] = None
|
nuts: Optional[Dict[int, Any]] = None
|
||||||
|
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ class MintInformation(CashuSettings):
|
|||||||
mint_info_contact: List[List[str]] = Field(default=[])
|
mint_info_contact: List[List[str]] = Field(default=[])
|
||||||
mint_info_motd: str = Field(default=None)
|
mint_info_motd: str = Field(default=None)
|
||||||
mint_info_icon_url: str = Field(default=None)
|
mint_info_icon_url: str = Field(default=None)
|
||||||
|
mint_info_urls: List[str] = Field(default=None)
|
||||||
|
|
||||||
|
|
||||||
class WalletSettings(CashuSettings):
|
class WalletSettings(CashuSettings):
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ async def info() -> GetInfoResponse:
|
|||||||
contact=contact_info,
|
contact=contact_info,
|
||||||
nuts=mint_features,
|
nuts=mint_features,
|
||||||
icon_url=settings.mint_info_icon_url,
|
icon_url=settings.mint_info_icon_url,
|
||||||
|
urls=settings.mint_info_urls,
|
||||||
motd=settings.mint_info_motd,
|
motd=settings.mint_info_motd,
|
||||||
time=int(time.time()),
|
time=int(time.time()),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user