Commit Graph

468 Commits

Author SHA1 Message Date
Iuri Matias 4919114f36 move blockchain connection code to its own module 2018-08-21 16:04:22 -04:00
Iuri Matias 567b0c75b8 get blockchain object from event bus 2018-08-21 16:04:22 -04:00
Iuri Matias 62fad583da don't pass web3 object to whisper module since it uses its own 2018-08-21 16:04:22 -04:00
Iuri Matias 9526e61652 rename blockchain connector 2018-08-21 16:04:22 -04:00
Iuri Matias 93a9a3065f clean up 2018-08-21 16:04:22 -04:00
Iuri Matias 0c9dc48362 move code generator to a module 2018-08-21 16:04:22 -04:00
Iuri Matias 40e58dbcf2 move deployment to a module 2018-08-21 16:03:35 -04:00
Iuri Matias f9321776b1 move deployment to module 2018-08-21 16:03:35 -04:00
Iuri Matias 4ecb44e1c9 prepare to make it a module 2018-08-21 16:03:35 -04:00
Iuri Matias be3a79ce39 move contract deployer to deploy manager 2018-08-21 16:03:35 -04:00
Iuri Matias 2baaba07e6 move the versions manager to its own module 2018-08-21 16:03:35 -04:00
Iuri Matias 61a8878e33 move i18n to core 2018-08-21 16:03:35 -04:00
Iuri Matias 2f2b61da51 cleanup 2018-08-21 16:03:35 -04:00
Iuri Matias 5175b5710a update to fix tests 2018-08-21 16:02:18 -04:00
Iuri Matias 5bf89b0fea move copmiler to a module 2018-08-21 16:02:18 -04:00
Iuri Matias 9707b0076d move graph into a module 2018-08-21 16:02:18 -04:00
Iuri Matias 75de982772 move code runner to core modules 2018-08-21 16:02:18 -04:00
Iuri Matias dc86cbaccb move proxy out of core 2018-08-21 16:02:18 -04:00
Iuri Matias 1b90640b10 rename process manager 2018-08-21 16:02:18 -04:00
Iuri Matias 2ea982d0e5 move blockchain process to own module 2018-08-21 16:01:14 -04:00
Iuri Matias 3584a20fd7 first stab at refactor blockchain launcher 2018-08-21 15:59:46 -04:00
Jonathan Rainville eee2f66a22 if no register config, dont register anything 2018-08-21 15:52:50 -04:00
Michael Bradley, Jr 25be46af2c propagate env 2018-08-21 15:47:05 -04:00
Anthony Laibe b679d3031a Remove code dependencies to underscore 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 98dcf6ffe3 propagate `embark run` cli webserver flags to config and service 2018-08-21 15:42:05 -04:00
Andre Medeiros 8be8ca508f Fix failing test on blockchain 2018-08-21 15:33:00 -04:00
Jonathan Rainville a3d612f8ba remove use of initConfig 2018-08-21 15:30:43 -04:00
Jonathan Rainville 838fa92775 set isDev as default if there is no blockchain file 2018-08-21 15:30:11 -04:00
emizzle f5f59bb24b Proxy error message "Error forwarding requests to blockchain/simulator [Object(object)]" was showing in console. Have replace [Object(object)] with `error.message` 2018-08-21 15:30:11 -04:00
Iuri Matias 2baa6ed792 make linter happy 2018-08-21 15:30:11 -04:00
Iuri Matias 0c14834e57 fix plugin call 2018-08-21 15:30:11 -04:00
Iuri Matias 1efdc00471 fix console log for undefined params 2018-08-21 15:30:11 -04:00
Iuri Matias df97a6ac00 re-add register upload cmd api; refactor storage module initialization 2018-08-21 15:30:11 -04:00
Iuri Matias 9b1e6a36a6 remove no longer used plugin cmd api 2018-08-21 15:30:10 -04:00
Iuri Matias d5278b41de move fuzer & gasEstimator to profiler module 2018-08-21 15:30:10 -04:00
Jonathan Rainville 5ccd8f6333 display gas cost of each test 2018-08-21 15:30:10 -04:00
Iuri Matias c0bc6e1b7c add support to download a template 2018-08-21 15:28:03 -04:00
Jonathan Rainville 18f60768f9 fix when using mining script 2018-08-21 15:21:24 -04:00
Jonathan Rainville dcc7b44377 fix miner 2018-08-21 15:20:12 -04:00
Jonathan Rainville f49e79d4e2 revert caca code 2018-08-21 15:18:12 -04:00
Jonathan Rainville 5581964fab conflict in package json 2018-08-21 15:17:05 -04:00
emizzle efe649e4e6 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-08-21 15:12:07 -04:00
emizzle 170d8528eb When communication is disabled in config, do not run the module in embark.
Previous to this change, `Geth: WARN [06-25|16:46:26] origin 'embark' not allowed on WS-RPC interface` would appear in the logs when the module was run while disabled.

Updated the cors component so that when `rpcCorsDomain` and `wsOrigins` are set to `'auto'`, and all components are disabled `rpcCorsDomain` and `wsOrigins` are passed as a null parameter to geth as opposed to being passed as `'auto'`.
2018-08-21 15:08:25 -04:00
VoR0220 056b5a0ab9 bare bones bulk registration example spec
Signed-off-by: VoR0220 <catalanor0220@gmail.com>

add registrars to system

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-08-21 15:03:34 -04:00
emizzle d2b89f88f9 Added cors for whisper 2018-08-21 15:03:34 -04:00
Jonathan Rainville 75a7b93d69 intercept logs by adding the name only 2018-08-21 15:03:34 -04:00
Jonathan Rainville 8ecd382a1f enable logger to log multiple arguments 2018-08-21 15:03:34 -04:00
Michael Bradley, Jr 2c852a22c1 moveSync 2018-08-12 14:59:48 -05:00
Michael Bradley, Jr f91baf73bc proxy -- canonicalHost, defaultHost 2018-08-02 15:36:25 -05:00
Michael Bradley, Jr 3885128e18 config -- canonicalHost, defaultHost 2018-08-02 15:32:34 -05:00
Iuri Matias 231e48cecb add todo 2018-06-18 11:37:23 -04:00
Iuri Matias b34ddf32cf refactor pluginPath 2018-06-18 11:27:29 -04:00
Iuri Matias e0e3887aaf add command event to add a contract file; fix internal plugin Path 2018-06-18 11:25:43 -04:00
emizzle a100dd4260 Requested PR fixes
Added catch to live-plugin-manager install promise running in child process

Removed some `else`'s ;)

Only showing solc downloading spinner when `--nodashboard` option is used.

When installing package in main process and simultaneous downloads fail, all callbacks called with error.

Updated logging in npmTimer.
2018-06-15 17:06:59 -04:00
Jonathan Rainville 6d4d904825 sort by internal so first ones are internal and plugins last 2018-06-14 16:58:03 -04:00
Iuri Matias 502788c7e0
Merge pull request #528 from embark-framework/cached_gas_issue
fix cached gas issue
2018-06-14 11:17:54 -04:00
Iuri Matias 5a2cf62ee5 reload config; create a config so it doens't damage original 2018-06-14 09:22:13 -04:00
Jonathan Rainville 37b69b43ff fix watch by not restarting anymore and enable config for contracts 2018-06-14 09:15:31 -04:00
Jonathan Rainville e1c5487ba4 fix callback already called on file download fail 2018-06-13 14:37:15 -04:00
Iuri Matias 4131cf42ef fix support for .json file in embark.json 2018-06-12 17:59:14 -04:00
Richard Ramos 8f52dd4cf3 Missing semicolon 2018-06-12 10:15:54 -04:00
Richard Ramos a9065b1eae Websocket handling 2018-06-12 08:50:49 -04:00
Richard Ramos a50e7c25a9 Not all messages received are json objects 2018-06-11 16:46:57 -04:00
Richard Ramos 03483052ea Adding error messages 2018-06-11 16:43:26 -04:00
Richard Ramos 48a3f2afdc Fixing conflicts 2018-06-11 16:43:08 -04:00
Richard Ramos 09c11662aa Removing unused variables 2018-06-11 16:40:59 -04:00
Richard Ramos a669538e70 Adding proxy to config, and closing on error 2018-06-11 16:40:59 -04:00
Richard Ramos 39d510cef4 Displaying status, gas and block number 2018-06-11 16:40:59 -04:00
Richard Ramos 8ef2dc124f Extracted console logging to its own file 2018-06-11 16:40:59 -04:00
Richard Ramos c1621c4029 Websocket support 2018-06-11 16:40:59 -04:00
Richard Ramos bf25381fa6 Rebasing changes from develop 2018-06-11 16:40:14 -04:00
Iuri Matias c6e63af12d remove unneded param 2018-06-08 13:55:24 -04:00
Jonathan Rainville 3d70028cc5 fixing small stuff 2018-06-07 13:01:12 -04:00
Iuri Matias 805091aa66
Merge pull request #482 from embark-framework/fuzzer
Fuzzer
2018-06-06 10:54:28 -04:00
Iuri Matias f44ed981b5
Merge pull request #481 from embark-framework/ipc
add socket support
2018-06-05 16:42:44 -04:00
Jonathan Rainville df3c5c2fd0 fix blockchain already booted 2018-06-05 14:39:18 -04:00
VoR0220 2056a7e9ad finish engine addition
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-05 13:39:18 -05:00
Iuri Matias 0e6d526ab4 comply with linter 2018-06-05 08:37:27 -04:00
Iuri Matias 85443959e0 remove unneded option 2018-06-05 08:04:27 -04:00
Iuri Matias c0e559a7d9 assign roles so ipc connections don't conflict; fallback if can't connect to ipc 2018-06-04 18:15:37 -04:00
Iuri Matias a57bce2a40 refactor to use callbacks on ipc requests 2018-06-04 18:15:37 -04:00
Iuri Matias 37ade68804 debug console logs 2018-06-04 18:15:37 -04:00
Iuri Matias 1821e89346 refactor ipc to a module 2018-06-04 18:15:37 -04:00
Iuri Matias b16c06025b use ipc for compiler 2018-06-04 18:15:37 -04:00
Iuri Matias 72e24f5e1b improve loading time by only doing require when needed 2018-06-02 09:54:32 -04:00
Iuri Matias 083961fc21 remove unneeded assignments 2018-06-01 19:32:14 -04:00
Iuri Matias eadbeb0498 use monitor as a service 2018-06-01 19:32:14 -04:00
Iuri Matias 37d54e22db refactor services monitor to use events instead of passing addCheck around 2018-06-01 19:32:14 -04:00
Iuri Matias a3de13e011 refactor to addPluginType 2018-06-01 19:30:51 -04:00
Jonathan Rainville f3d55f6742 patch weird event max listeners bug 2018-06-01 13:44:54 -04:00
Iuri Matias 9a1eefc838
Merge branch 'develop' into features/improve-storage-config 2018-06-01 12:01:51 -04:00
Iuri Matias f3e7d03204 remove orbit 2018-06-01 10:15:41 -04:00
emizzle a11047c681 Further fixes for starting dappConnection processes automatically
moved storage process launching to storage module

refactored all cases of storage url building to util methods

updated cors so that a processes will not include itself in cors list

changed child process command console output to trace, so it's visible when --logLevel == trace
2018-06-01 13:36:46 +10:00
emizzle 927f562a41 Fixed issue with CORS domains for auto-started geth, swarm, and ipfs processes.
Fixes after rebase:
* De-duped i18n en.json
* Re-built package-lock.json

Current WIP is auto-starting storage processes defined in dappConnection config.
2018-06-01 13:35:25 +10:00
emizzle 7aa44c7fe3 Added improvements to storage config 2018-06-01 13:35:11 +10:00
emizzle 85117cf55c Dynamic selection of storage provider now working based on improved storage config.
swarm plugin now re-initialises the bzz object when it's availability is checked. this creates a much more stable swarm implementation on the dapp side.

surrounded the storage provider init code block with embark env ready

added alternate swarm gateway url

can now upload dapp to ipfs and run swarm storage and vice versa
2018-06-01 13:35:11 +10:00
emizzle 6ac8672a31 Added a global storage module that inits ipfs or swarm depending on dappConnection options. WIP. 2018-06-01 13:34:49 +10:00
emizzle 942a57aa3a Storage config improvements start. Adjusted the config and have started to support those improvements through the codebase.
Currently stuck on starting multiple storage servcies at once. Might need  a change in storage config spec.

WIP.
2018-06-01 13:33:44 +10:00
emizzle 0cb79d84a0 Dynamic selection of storage provider now working based on improved storage config.
swarm plugin now re-initialises the bzz object when it's availability is checked. this creates a much more stable swarm implementation on the dapp side.

surrounded the storage provider init code block with embark env ready

added alternate swarm gateway url

can now upload dapp to ipfs and run swarm storage and vice versa
2018-06-01 13:30:01 +10:00
emizzle ec15823dbc Added a global storage module that inits ipfs or swarm depending on dappConnection options. WIP. 2018-06-01 13:28:28 +10:00