Can I just say I love this project very much! Thank you for creating it. I'm migrating to it and rewriting almost all my app to be more coco-first. These are just suggestions of things where I've gotten stuck and been forced to rethink my usage of the library.

1. Can we add some status field to `SendHistoryEntry` & `ReceiveHistoryEntry`? It seems like I need to use `proofService` otherwise but I think that's a private field, I just got a bit stuck on this.

2. Maybe add `token` to `ReceiveHistoryEntry`? I know it's not super needed but its nice to show the user which token the redemption is for.

3. Could we add some field to HistoryEntry for npc receives from `coco-cashu-plugin-npc` so that I can know thats where the payment came from?

4. I found `cashu-kym` pretty useful to and I think it might belong in `coco`.

5. I'm having a weird thing happen where the state goes from PENDING->ISSUED->PAID->ISSUED. It seems to incorrectly revert to ISSUED (when minting). It could be some poor configuration on my side but I attached a video to help demonstrate whats going on.

https://blossom.primal.net/d0286eca73485fabd333fbc52ecb02e1f63d8f1c5880fc6bae7a78abb196213d.mov

Reply to this note

Please Login to reply.

Discussion

I'm still learning this library so I might be way off but hopefully its still helpful feedback!

This is super valuable thank you! I’ll track these on GitHub and tag you once I figure something out :)

“ISSUED” is the final state of a mint quote.

Pending: payment has not been received by the mint

Paid: payment has been received by the mint

Issues: wallet redeemed the quote

So the final state being issued is correct. Are you sure you are seeing the issued state before the paid state?

The updates are not done in a state machine, so this could be the case / a bug. I just want to make sure that we are on the same page

nostr:npub1pm5z0gmw3wcvl3yreuv8y7q3stz2zmzc4jar4ckhk927qdcwjwuq3txe07 what’s cashu coco ?

Oh it was my misunderstanding that's the issue I think. Apologies for flagging this as an issue! My code incorrectly thought PAID was the final state.