kodylow on Nostr: elsirion's been working on and off on a better indexDB transaction abstraction ...
elsirion (npub1nc0…z5pa)'s been working on and off on a better indexDB transaction abstraction that'll make doing ecash TXs from a PWA or webapp much more reliable, will also work for cashu since it's just generic KV!
https://github.com/elsirion/webkv/blob/master/src/lib.rsThe default indexdb behavior is to commit the transaction as is whenever the event loop hits a network request, so for ecash transactions that might be hitting multiple mints it's probably causing the same issues we used to see in the Fedi PWA. webkv makes indexdb transactions operate the way everyone assumes they should work haha
Published at
2024-08-20 18:34:09Event JSON
{
"id": "fddcd0150cf7ea830fb0dab139e359be9df4c9686d371bc67243c322e93be8dc",
"pubkey": "de8823cdc979bf4c753223edc19a7abc35ecff2959ef50ca9e9d573ac0f83fd0",
"created_at": 1724178849,
"kind": 1,
"tags": [
[
"p",
"9e1e498420bc7c35f3e3a78d20045b4c8343986dae48739759bccb2a27e88c53",
"",
"mention"
],
[
"e",
"4ac5915ba5ff913241c88de122335887dc8129a450392dbaa92b02ef71f6113e",
"wss://nostr-pub.wellorder.net",
"root"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
]
],
"content": " nostr:npub1nc0ynppqh37rtulr57xjqpzmfjp58xrd4ey8896ehn9j5flg33fszrz5pa's been working on and off on a better indexDB transaction abstraction that'll make doing ecash TXs from a PWA or webapp much more reliable, will also work for cashu since it's just generic KV! https://github.com/elsirion/webkv/blob/master/src/lib.rs\n\nThe default indexdb behavior is to commit the transaction as is whenever the event loop hits a network request, so for ecash transactions that might be hitting multiple mints it's probably causing the same issues we used to see in the Fedi PWA. webkv makes indexdb transactions operate the way everyone assumes they should work haha https://m.primal.net/KFve.png ",
"sig": "95cd7d298fba72719738d337f7d888e1cfaff299381ea9ccbb70c4d69a122161fc440c229c5273fab54ecc76b442d40fe6ec1aff0ce3b3ac0693af862b43382f"
}