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:
sihamon
2023-06-23 20:04:28 +02:00
committed by GitHub
parent 25385f1f16
commit a0df47f13a
5 changed files with 103 additions and 3 deletions

View File

@@ -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