monero-ts

TypeScript library for using Monero

MIT License

Downloads
1K
Stars
195
Committers
13

Bot releases are visible (Hide)

monero-ts - monero-javascript-v0.5.4

Published by woodser about 3 years ago

  • Proxy wallet and daemon to worker in node
  • Support freezing and thawing outputs
  • Return spent key images when funds spent
  • Improve performance and reliability of notifications
  • Support input query
  • Update to Boost 1.76.0 and Webpack 5.50.0
  • Resolve npm dependency vulnerabilities
  • Network requests and responses logged at levels 2 and 3, respectively
  • Minor bug fixes and cleanup
monero-ts - monero-javascript-v0.5.3

Published by woodser over 3 years ago

  • Update to monero-project v0.17.2.0
  • WASM wallet supports:
    • Sign and verify messages
    • Prove and verify transactions
    • Prove and verify a spend
    • Prove and verify reserve funds
  • Improve reliability of wallet notifications
  • Consolidate and refactor notification tests to be more thorough
  • Set log level with await LibraryUtils.setLogLevel(1) #52
  • Logging disabled by default
  • 0 npm vulnerabilities by removing babel-minify
monero-ts - monero-javascript-v0.5.2

Published by woodser over 3 years ago

  • Update to boost 1.75
  • Support linux wasm build w/ script fixes, -no-pthread, USE_PTHREADS=0
  • Update to monero-project master with pr #7321 to fix wallet compatibility
  • Support and test full and rpc wallet compatibility (issue #50)
  • Support full address validation with network type using wasm
  • Support MoneroUtils xmrToAtomicUnits(), atomicUnitsToXmr() conversion
  • Support MoneroTxConfig addDestination(address, amount)
  • Fix crash on sending to invalid address
  • Improve exception handling in full wallet and wasm bridge
  • Rename functions to exportOutputs(), exportKeyImages(), describeTxSet()
  • exportOutputs(), exportKeyImages() can export since last export
  • Tx config and destination validates amounts as string or BigInteger
  • Remove isLocked alias from MoneroOutputQuery
  • Update npm dependencies and move mocha to dev dependency
monero-ts - monero-javascript-v0.5.1

Published by woodser over 3 years ago

  • Target regular sync period by accounting for sync/poll time
  • Group wallet notifications
  • Set account and subaddress index in notified spent outputs
  • Fix broken link between tx and tx set
  • Tests wait for late outputs

See other recent changes including breaking changes here.

monero-ts - monero-javascript-v0.5.0

Published by woodser almost 4 years ago

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() supports isBusySyncing() and isSynchronized()
  • 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 with monerojs.connectToDaemonRpc() and monerojs.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() to waitForNextBlockHeader()
monero-ts - monero-javascript-v0.4.6

Published by woodser almost 4 years ago

  • update to monero-project v0.17.1.1
  • nodejs >= v10.0.0
  • minor cleanup
monero-ts - monero-javascript-v0.4.5

Published by woodser about 4 years ago

  • Update to monero v0.17.0.1 'Oxygen Orion'
  • Support signMessage() with spend or view key and subaddress
  • Support adjusted_time from daemon RPC
  • Support MoneroWalletWasm moveTo(path)
  • Use python3 in wasm build
  • Allow web worker path to be configured
monero-ts - monero-javascript-v0.4.3

Published by woodser about 4 years ago

  • Updated to monero-project v0.16.0.3.
  • Support notifications when outputs unlock.
  • Support getHeightByDate(year, month, day).
  • Support collecting missing tx hashes from tx query.
  • Throw error if createTx({relay: true}) called from multisig wallet.
  • Renamed unlock time to unlock height.
  • Removed memfs as a dependency.
  • Updated vulnerable dependencies.
  • Updated JSDocs.
monero-ts - monero-javascript-v0.4.1

Published by woodser over 4 years ago

  • Fix issue creating mainnet transactions in WebAssembly by disabling dns.
  • Update jsdocs to be more complete.
monero-ts - monero-javascript-v0.4.0

Published by woodser over 4 years ago

  • Update to v0.16.0.1 'Nitrogen Nebula'
  • Support onBalancesChanged() wallet listener
  • Standardize module imports and use of require()

New API to import library and main types (breaking change):

const monerojs = require("monero-javascript");
let daemon = monerojs.connectToDaemonRpc("http://localhost:38081", "superuser", "abctesting123");
let walletRpc = monerojs.connectToWalletRpc("http://localhost:38083", "rpc_user", "abc123");
let walletKeys = await monerojs.openWalletKeys({...})
let walletWasm1 = await monerojs.createWalletWasm({...})
let walletWasm2 = await monerojs.openWalletWasm({...})
monero-ts - monero-javascript-v0.3.0

Published by woodser over 4 years ago

Major release:

  • breaking API changes to create wallets and transactions using configuration objects
  • officially supports fully client-side wallets using WebAssembly bindings to monero v0.16.0.0 'Nitrogen Nebula'
  • runs in Node.js and the browser
  • receives notification of unconfirmed funds within 10 seconds
  • improvements to query transactions, transfers, and outputs
  • added developer guide
  • added architecture diagram
  • major improvements to jsdocs
  • supports HTTPS
  • many other updates
monero-ts - monero-javascript-v0.2.4

Published by woodser over 4 years ago

  • Support signing transactions from watch-only wallet in MoneroWalletRpc.js
  • Support https endpoints
  • Minor cleanup
monero-ts - monero-javascript-v0.2.2

Published by woodser almost 5 years ago

  • Support Monero Core v0.15.0.1 Carbon Chameleon
  • Migrate from mymonero-core-js to monero-cpp-library for WASM bridge which mirrors JS
  • Support keys-only wallet implementation, MoneroWalletKeys.js
  • Support getVersion(), getMnemonicLanguage(), getMnemonicLanguages(), parseTxSet(), and full address book
  • Support restoring wallets from mnemonic with a seed offset
  • Remove ability to set mixin or ring size in send request
  • Breaking change: switch "id" terminology to "hash" where applicable (e.g. tx.getHash(), block.getHash())
monero-ts - monero-javascript-v0.1.0

Published by woodser about 5 years ago

Release Notes

  • Added multisig support
  • Updated entire library to be current with Java and C++ counterparts
  • Added sample browser application
  • Published as a NPM module

This release makes breaking changes to the wallet API. Specifically, in order to support multisig, the return type when sending transactions is now a MoneroTxSet which contains references to individual transactions, rather than returning the transactions directly.

monero-ts - monero-javascript-v0.0.3

Published by woodser over 5 years ago

monero-ts - monero-javascript-v0.0.2

Published by woodser almost 6 years ago

Add donation address

monero-ts - monero-javascript-v0.0.1

Published by woodser almost 6 years ago

  • First release
  • General-purpose library with focus on ease-of-use
  • Clear object-oriented models to formalize Monero types and their relationships to each other
  • Powerful API to query transactions, transfers, and vouts by their attributes
  • Extensive test suite (110+ passing tests)
  • Fetch and process binary data from the daemon in JavaScript using client-side crypto