monero-javascript-v0.5.0
New Features
- Update to monero-project v0.17.1.9
- Listen to monero-wallet-rpc for notifications of new blocks or when wallets send or receive (uses polling)
- Start and connect to monero-wallet-rpc as local, internal process using
await monerojs.connectToWalletRpc(string[] cmd)
- Specify custom wallet sync rate with
await wallet.startSyncing(maxSyncPeriod)
- Compute the number of blocks until next funds and all funds are available with
await wallet.getNumBlocksToUnlock() : int[]
await daemon.getInfo()
supportsisBusySyncing()
andisSynchronized()
- Add script to start wallet rpc test servers for browser tests: ./bin/start_wallet_rpc_test_servers.sh
- Bug fixes and cleanup
Breaking Changes
- Use
await
withmonerojs.connectToDaemonRpc()
andmonerojs.connectToWalletRpc()
- Rename "MoneroWalletWasm" to "MoneroWalletFull" for consistency across libraries to mean "full, client-side wallet"
- Rename ./dist files to "monero_wallet_full*", "monero_wallet_keys*", and "monero_web_worker*" for consistency
- Rename git submodule ./external/monero-cpp/external/monero-core to "monero-project"
- Rename MoneroDaemonRpc.js
getNextBlockHeader()
towaitForNextBlockHeader()