Lets go then! The code from the image is using a library that I have been secretly grinding my gears on for a while now. It is basically an abstraction on top of cashu-ts that includes logic for managing state.
It is designed fully modular, requiring consumers to pass in a repository class that takes care of persistence. So if we can write an adapter for CRUD operations using nostr I see no issue in this at all.