mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 11:24:19 +01:00
Add multi-mint swap to CLI and API (#212)
* Add multi-mint swap to CLI and API * Add confirmation prompt to CLI * Replace several assert statements * Define response for API endpoint swap * Adapt to latest changes on main * Fix: missing argument after latest changes on main * API: use local wallet for swap * Improve swap command * clean up cli swap * fix comment * clean up router * fix up * remove outgoing --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
@@ -17,6 +17,13 @@ class InvoiceResponse(BaseModel):
|
||||
hash: Optional[str] = None
|
||||
|
||||
|
||||
class SwapResponse(BaseModel):
|
||||
outgoing_mint: str
|
||||
incoming_mint: str
|
||||
invoice: Invoice
|
||||
balances: Dict
|
||||
|
||||
|
||||
class BalanceResponse(BaseModel):
|
||||
balance: int
|
||||
keysets: Optional[Dict] = None
|
||||
|
||||
Reference in New Issue
Block a user