Building https://npub.cash π₯ Working on awesome nostr, cashu and Lightning stuff πβ‘οΈ
Egge @Egge - 4h
Does it run the latest cashu-ts RC?
Egge @Egge - 1d
What are the things you want to see in a v2 of npub.cash?
Hi nostr, What are your favourite affordable sneakers? - available in EU - maximal bang for the buck
Your JavaScript code might be sending requests to a server other than the origin executing it and the server does not signal that it allows that
Egge @Egge - 2d
The latest RC of cashu-ts introduces the concept of Factories. A Factory is a function that lets developers take control over how Cashu outputs will be generated by cashu-ts. Consumers can also define a "default" factory that is going to be used for all outputs that are considered "keep" outputs (mints + melt / swap change). This paves the way for much easier state management and WAY less code. In this very simplistic example I show how a simple closure can be used to make sure that all the proofs generated are derived from a seed phrase, while outsourcing the counter management to the factory https://m.primal.net/NBrP.png https://m.primal.net/NBrQ.png
- Released cashu-ts v2.2.0-rc3 - Had a massive steak Today was a good day π«‘ https://image.nostr.build/41391e5d2db5a76a8b83688072ee595dc9751f68dbc5c05ae3b3cd4b05348969.jpg
Today is massive steak day π₯©
π£ Looking for the bravest of the brave We have just released a new RC of cashu-ts v2.2. This is an experimental canary release, including the output of our revamped build pipeline and the new OutputData / Factory patterns. While the API is non-breaking, these changes are considered experimental and require some field testing. Therefore, we would highly appreciate any brave testers who would go ahead and take the RC for a test ride. What would be most interesting is whether the new build output can be plugged into existing projects without breaking anything. This version includes: New build pipeline (dropped ES5, targeting ES2020) Custom Output Data Output Factories Binary Token En/Decoding Modern P2PK (locktime, refund keys) DX: Migrated to modern TypeScript Changed bundler to vite Changed Testing to vitest Added browser testing using Playwright Thanks to the new build pipeline we will also be offering a standalone build, available for projects that prefer loading cashu-ts from a script tag, rather than using a bundler. This will be released in a couple of hours https://www.npmjs.com/package/@cashu/cashu-ts/v/2.2.0-rc3
Egge @Egge - 3d
The βUpdating nutzap-redemption historyβ part of NIP-61 seems to suggestiv that NutZaps can only be claimed into a nutsack wallet. As a kind:7376 event expects to point to a new token event ID. Is that right? Cc nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft
Pull Request Looking For Reviewers! β οΈ The big CustomOutput PR, that has been cooking for 3 weeks, is now finally ready (and looking) for review β οΈβ¨I would really appreciate everyones help on this one https://github.com/cashubtc/cashu-ts/pull/218
Egge @Egge - 4d
I can finally empty my nutsack π nostr:note152v3tp2c04n25luccq92gqcusrrvy7tkmxd937zm6lgmgrth84zqer9l9x
Give link sir π
It definitely is, but it also a completely new thing and dealing with script injection etc. is tough. I am not using a framework though. Lit and others make this a lot easier obviously
Web Components are a rabbit holeβ¦ thanks nostr:npub1d7exvqfvxqyrq0j54e23gz6xj4lfj7qfssqamg60fkfp5f6mlzaskklrf3 π
Egge @Egge - 5d
Hey mom, look I am on TV!.. Jokes aside, this is brilliant! Can not wait to give this a try. Is there a test flight?
Another day, another nutjar update! nutjar-button v0.3 is a web component that lets you add Lightning Donation to your web page with close to 0 coding and configuration. All you need is a nostr key! π₯ NIP-61 aka. Nutzaps using Cashu π» Reusable Web Component π¨ Theming and Customization https://video.nostr.build/6fe761b2f6a71a84922aa5650cdfd629537260014d1728546a1c6236ae7a63f9.mp4
Egge @Egge - 6d
Because phones have browsers
π₯ π« https://github.com/Egge21M/nutjar-ui
Great point. Will do
I got you π π₯ https://m.primal.net/MxoB.png