Commit Graph

14 Commits (master)

Author SHA1 Message Date
Paul Shapiro 3073a0e81c c 2018 -> 2019
5 years ago
Paul Shapiro 0860e055b4 fixed index.js TODO monero_utils by wiring to MyMoneroCoreBridge
6 years ago
Paul Shapiro 04f21202d5 removed monero_utils/monero_requestURI_utils.js so that it now lives in mymonero-app-js
6 years ago
Paul Shapiro 9bfa1acee0 big changes: removed monero_utils file, plus IPCSafe_remote_monero_utils (this is now up to applications); completely reworked monero_sendingFunds - SendFunds is gone, now implemented in MyMoneroCoreBridge; removed response_parser_utils unspent outs parsing; updated sendingFunds.spec.... next commit will change CoreBridge return { err_msg } to throws since no IPC is necessary anymore
6 years ago
Paul Shapiro f31674bb34 api-breaking change: switched monero_utils from returning a promise to returning a promise-returning-function
6 years ago
Paul Shapiro 1675952d68 added calculate_fee, estimated_tx_network_fee, estimate_rct_tx_size bridge fns
6 years ago
Paul Shapiro ef830ad28a lots of moving things around; implemented promise constructor for monero_utils (which is actually MyMoneroCoreBridge, a new class to replace cnUtil).. this was chosen after trying both promises directly in the functions and async/await in one or two decent patterns in order to avoid the requirement that integrators support async/await and to retain the option for calls to monero_utils to remain synchronous - added src/module-post as a post-js in order to fix emscripten .then infinite loop ... this PR does not include any kind of support for calling from electron renderer to electron main - that is, the code to detect electron renderer, then intercept ret.err_msg and throw only if not in electron renderer, and relay ret.err_msg otherwise has been removed for the moment.. will likely be added back
6 years ago
Paul Shapiro 7aa962de56 removed now unneccessary monero_wallet_utils wrapper fns
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
HenryNguyen5 c903e1a1d0 Fix incorrectly exported module
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 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 5e210a18a9 added index.js to support npm+package.json
6 years ago