Kodylow / fedimint-http

MIT License
12 stars 14 forks source link

Implement Cashu quote API endpoints #21

Closed richarddushime closed 5 months ago

richarddushime commented 5 months ago

Greetings @Kodylow Hope you are doing well Here is the draft PR but I m really not understanding well yet what is to be done I will need more light because I m facing a lot of errors Thanks

The issue addressed is #9

Kodylow commented 5 months ago

Did you just dump this into chatgpt? the // Assuming comment on the import is a gpt3.5 giveaway. If you don't know how to do it just DM me and I'll help you don't just dump it into an AI, they don't play nicely with fedimint code.

You actually have to implement the quote endpoint, for fedimint that involves using the create-invoice and await-pay endpoints so you create a contract when the user wants to create a quote, structure it as the cashu quote and return it to the client, then when they pay the invoice and return the proof you confirm it was paid and give them back the ecash.