Commit Graph

147 Commits (451d6cc79971a690e1a246c0868d07f1359835ed)

Author SHA1 Message Date
Paul Shapiro 1bdfe2cbdb updated cryptonote_utils and sendingFunds usage of create_transaction to move dsts to core cpp, passing change amount, etc
6 years ago
Paul Shapiro 61426b0d1c cryptonote_utils: added migrations from throws to err_msg rets which somehow got dropped from a previous commit; integrated create_transactions, with necessary serialization prep / sanitization .. this required changing the interface slightly, as well as condensing the create_transaction and serialize_tx steps in monero_sendingFunds_utils
6 years ago
Paul Shapiro 0699298633 preventing calls to Math.random given existence (but probable unreachability) of emscripten call; added window.crypto-based impl of 0-1 float getRandom
6 years ago
Paul Shapiro 6a328b6540 removed newlycreatedwallet now-redundant interface fn; added core cpp support for language code -> mnemonic language; removed now unused rand gen fns from cryptonote_utils; added _monero_utils_i(instance)_nonthrowing for usage on an electron main process as remotely called by an electron renderer process, and added unpacking of err msgs to throws so as not to crash call to remote
6 years ago
Paul Shapiro dfab7203fa fixed up nettype in seed_and_keys_from_mnemonic call; cryptonote_utils and monero_wallet_utils: moved mnemonic equals and language implementation to C++
6 years ago
Paul Shapiro 84c8db7756 wallet and fake addr for rct tx method integrations; moved estimatedRctSize; moved tx parsing fns out of cryptonote_utils
6 years ago
Paul Shapiro 8bc0cbdacb partial work to integrate new core - WIP, to now remove openssl
6 years ago
Paul Shapiro 902a35253c updated MyMoneroCoreCpp.js build; cryptonote_utils: extracted destination formatting and money amount formatting to sendingFunds_utils and money_format_utils respectively, and added IPCsafe (string instead of JSBigInt params) create_transaction variant to support call from electron renderer procs etc, and added more complete load readiness waiting interface, and added locateFile impl for passing as emscripten Module template to locate wasm file in various environments; monero_cryptonote_utils_instance: detecting electron renderer and exposing via electron.remote call (will this cause issues with anyone's build systems trying to include electron\?); commenting logs
6 years ago
HenryNguyen5 6f3142aa1c Add prettier support
6 years ago
Paul Shapiro 331398f39d monero_utils/mymonero_response_parser_utils.js -> hostAPI/response_parser_utils.js; added hostAPI/net_service_utils.js, holding HostedMoneroAPIClient_Base request implementation - still not 100% sure it's right to move the actual get unspent outs, get rand outs, and tx submit request calls and response parsing calls to sendingFunds_utils, primarily because parsing may be wrapped in an application-level abstraction for platform-dependent concurrency
6 years ago
Paul Shapiro 9c97d6c888 sendingFunds: SendFunds api change: removed keyImageCache arg for now - hosted monero api client now usingkey-image-cache-managed parsing functions (used for get_unspent_outs).. can probably add it back later by passing optional key img cache arg to send funds, and checking existence at parse-time when networking implementation moved to sendFunds; mymonero_response_parser_utils: added async versions of key img cached parsing fns
6 years ago
Paul Shapiro 9fbe5603dc monero_requestURI_utils: added support to request uri parser to allow raw oa and xmr addrs (resolves mymonero/mymonero-app-js/#210)
6 years ago
Paul Shapiro 05af1ed782 monero_sendingFunds_utils: default priority med -> low
6 years ago
Paul Shapiro e4366a708b monero_wallet_utils: support for wordset detection with prefix-length words to close #14, implemented mnemonic isEqual method to support partial- to full-word comparison
6 years ago
Paul Shapiro 4d177d8f1c mymonero_response_parser: sorting mempool txs before nonmempool as id while in mempool is not true sequential
6 years ago
Paul Shapiro 2d126fcef9 monero_sendingFunds_utils: fixed tx err return string
6 years ago
Paul Shapiro d71bfb239e monero_config: updated the dust threshold from 10^10 to 2*10^9; monero_sendingFunds_utils: enhanced sweeping to support sending dusty but mixable outs to get closer to full account balance
6 years ago
Paul Shapiro fb4887f2d9 monero_sendingFunds_utils: SendFunds() api change - removed first arg (isRingCT), and added new arg after amount, bool flag to enable sweep transaction, and ported luigi's sweep implementation PR
6 years ago
Paul Shapiro f603bd7d53 cryptonote_utils/construct_tx, monero_sendingFunds_utils/SendFunds: disallowing sending to subaddr with pid
6 years ago
Paul Shapiro 85a1e1ead6 mymonero_response_parser_utils/Parsed_AddressTransactions__sync: filtering outgoing short pids as they are bound not to be correct (server cannot know them - feature pending metadata storage)
6 years ago
Paul Shapiro f4f259f7cc implemented nettype (MAINNET, TESTNET, STAGENET) via nettype_utils and added nettype to various points which need address prefixes - only mainnet's been tested
6 years ago
Paul Shapiro e000937d18 added subaddressPrefix to monero_config and removed deprecated fixed per kb fee; cryptonote_utils: CRYPTONOTE_PUBLIC_SUBADDRESS_BASE58_PREFIX name typo
6 years ago
Paul Shapiro f64804e668 monero_sendingFunds_utils: SendFunds: added statusUpdate callback fn with code
6 years ago
Paul Shapiro 64c66db20a monero_requestURI_utils: excluding 'xmr' from being used for tx_amount_ccy
6 years ago
Paul Shapiro 7d708be475 monero_requestURI_utils: added URIType to generate uris with and without '//'
6 years ago
Paul Shapiro f19afbb819 monero_sendingFunds_utils: clarified insufficient balance copy to mention emphasize spendable, and switched from formatMoneyFull to formatMoney
6 years ago
Paul Shapiro 0dbdfe7810 monero_sendingFunds_utils: fee methods minor cleanups and var name fix
6 years ago
Paul Shapiro 674f4a08c8 mymonero_response_parser_utils, monero_keyImage_cache_utils: for consumers who can't pass a mutable dict for key image caching, added addtl caching-managed code paths - integrators should be sure to call DeleteManagedKeyImagesForWalletWith to release caches e.g. on wallet teardown
6 years ago
Paul Shapiro 8bbed934ad monero_sendingFunds_utils: switching back to fixed mixin and matching monero wallet default (min) in mymonero-app-js
6 years ago
Paul Shapiro b3246818e1 deprecated fixedMixin/Ringsize; added fork specific min ringsize accessor; exposed mixin in SendFunds and added thisFork min mixin check
6 years ago
Paul Shapiro 94f5a1e238 monero_sendingFunds_utils: deprecating / migrating EstimatedTransaction_ringCT_txSize and added missing priority on fee recalculation to fix mymonero-app-js#167
6 years ago
Paul Shapiro b4b52b63d5 added fixed mixin and ringsize, and default priority central functions; added fee multiplier and priority support to fee calc in SendFunds... added comments
6 years ago
Paul Shapiro da420f2747 fixed up fee multiplier calculation and deprecated pre rct fee and tx size estimation
6 years ago
Paul Shapiro 28b7e77e14 fixed fee estimate to reflect 2 outs, not 3 (deprecated fee)
6 years ago
Paul Shapiro e00f2d5bbf added unspent_outs per_kb_fee to send_funds routine
6 years ago
Paul Shapiro 2625ee6420 copyright
7 years ago
Paul Shapiro c9e0a6e553 key image cache: moving from singleton to per-wallet cache
7 years ago
Paul Shapiro 44dc82e181 paymentID_utils: fixed validation typo
7 years ago
Paul Shapiro 719ea28e3b RegEx -> RegExp typo
7 years ago
Paul Shapiro bee28eff2c minor cleanup to monero_paymentID_utils
7 years ago
Paul Shapiro c0d30899ef monero_paymentID_utils: deprecating long payment id generator fn, implementing short pid factory, updated pid validation to support 16 char pids
7 years ago
Paul Shapiro ed60af18ff VerifiedComponentsForLogIn_sync fixed up viewonly mode detection
7 years ago
Paul Shapiro cd8561f3e5 updated mymonero_response_parser_utils with ratesBySymbol
7 years ago
Paul Shapiro b625881ff2 monero_requestURI_utils: added tx_amount_ccy
7 years ago
Paul Shapiro 5295cf3ac4 actually removing openalias_utils and passing as fn arg
7 years ago
Paul Shapiro 54f4aaaaf5 moved monero_openalias_utils to lib; updated sendingFunds openalias_utils include path
7 years ago
Paul Shapiro 1cd11fa63e initial commit + README
7 years ago