A wrapper for abstract-leveldown compliant stores, for Node.js and browsers.
Peer to peer data syncronization [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
📡 A free service that makes it easy for open-source Electron apps to update themselves.
Brace expansion, as known from sh/bash, in JavaScript
The v2
tag now refers to the v2.0.1
release.
The latest release is v2.0.3
, so please update your v2
tag.
I forgot to push tags, thank you!
For porting the logic to update/fetch transactions, I believe two things are necessary:
this.transactions = []
, and use that to diff updatesThere is one big missing piece though: automated tests.
Great point! I've followed your structure and ported as much as I could for now. Could you please take another look? The functions that I didn't port were too intertwined with electron/ipc/state logic. If you see ways to port more, could you please make specific suggestions?
We can't really test transferring funds, because
test getSeedPhrase
test and refactor more
refactor getStateReplay
refactor getTipset
cleanup
The semantics are a bit different, because setInterval doesn't wait for doSomeWork
to finish, and therefore can run multiple invocations at the same time. The 1:1 translation would be:
;(async () => {
while (true) {
doSomeWork().catch(...)
await timers.setTimeout(10_000)
}
})()
To me this example shows how much more flexible this more native JS approach is
Is there a standard we want to adapt? Maybe deno's testing stdlib?