Commit Graph

167 Commits

Author SHA1 Message Date
Anthony Laibe d0b76ea4bc Remove code dependencies to underscore 2018-07-24 13:29:06 +01:00
Michael Bradley, Jr d78c9bd74a set the host flag for ganache-cli 2018-07-12 16:04:19 -05:00
Michael Bradley, Jr 33048b01b7 rm commented code and extra whitespace 2018-07-12 16:03:56 -05:00
Michael Bradley, Jr 25df152826 disable dead code path -- ganache will never be falsy 2018-07-12 15:14:40 -05:00
Michael Bradley, Jr 28036bb530 dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli 2018-07-12 15:14:40 -05:00
Iuri Matias ff7a4bd1dd
Merge pull request #620 from embark-framework/features/bin-entry-ganache-cli
Features/bin entry ganache cli
2018-07-11 21:27:26 +03:00
Iuri Matias 99af5f1817
Merge pull request #622 from embark-framework/features/ens-demo
Add ENS to Demo app and also add small fix
2018-07-11 21:20:25 +03:00
Iuri Matias 0d5b3293af
Merge pull request #621 from embark-framework/security/update-deps
Update dependencies
2018-07-11 21:16:21 +03:00
Michael Bradley, Jr 5e9573733e include old `const ganache =` line in original pos wrt disabled code 2018-07-11 13:08:48 -05:00
Michael Bradley, Jr 765c7c4e4c comment out `testrpc` (no-unused-vars) 2018-07-11 13:08:15 -05:00
Michael Bradley, Jr 1cae5bb02e Embark's own ganache-cli will always be found 2018-07-11 13:01:27 -05:00
Michael Bradley, Jr 2072dff753 embark-ganache-cli -> ganache-cli-embark 2018-07-11 12:55:08 -05:00
Michael Bradley, Jr 319899cfb7 always use Embark's own ganache-cli (embark-ganache-cli) 2018-07-11 11:17:07 -05:00
Andre Medeiros 317268a740 Linting 2018-07-11 11:44:06 -04:00
Andre Medeiros 21da13ab69 Fix failing test on blockchain 2018-07-11 11:38:58 -04:00
Michael Bradley, Jr b98101ea3a program -> program, programName 2018-07-11 10:32:47 -05:00
Michael Bradley, Jr 5e1f53a7d8 check for ganache-cli on PATH and fallback to embark-ganache-cli 2018-07-11 10:32:00 -05:00
Jonathan Rainville ffbec61554 wip changes 2018-07-10 15:59:42 -04:00
Jonathan Rainville 2a6d1cf3fe remove use of initConfig 2018-07-10 08:49:08 -04:00
Iuri Matias e2c0297df5 fix extractZip 2018-07-09 16:30:27 +03:00
Iuri Matias d40ae2f374
Merge pull request #606 from embark-framework/bug_fix/events-dont-wrok
Fix events usage with websocket providers
2018-07-07 00:17:54 +03:00
Iuri Matias 82df17b376
Merge pull request #603 from embark-framework/template_downloader
Template downloader
2018-07-07 00:11:51 +03:00
Jonathan Rainville 5fcf234939 remove useless change 2018-07-06 14:48:33 -04:00
Iuri Matias a4b95d13d5 use utils extractZip instead of lib directly 2018-07-06 17:54:52 +03:00
Iuri Matias 440baeb323 refactor install template code 2018-07-06 11:52:47 +03:00
Iuri Matias 215799f2bd make linter happy 2018-07-06 11:41:37 +03:00
Iuri Matias ee81b7e209 add support to download a template 2018-07-06 11:38:09 +03:00
Iuri Matias 0f6ea45f33 check for cmd not found in stderr 2018-07-04 16:46:02 +03:00
Iuri Matias ace329ec6e make linter happy 2018-07-04 16:37:09 +03:00
Iuri Matias 1a8989361e ignore stderr since geth outputs normal logs to it 2018-07-04 16:13:22 +03:00
Jonathan Rainville 08358fce0a fix account initialization and address use 2018-07-03 15:00:57 -04:00
Jonathan Rainville 92c8f00ba8 wip fixes 2018-06-29 17:09:19 -04:00
Jonathan Rainville 962a9c5b11 fix syncmode 2018-06-29 16:42:01 -04:00
Jonathan Rainville e7eee572f4 fix when using mining script 2018-06-28 10:37:10 -04:00
Jonathan Rainville f29760e051 fix miner 2018-06-28 09:17:19 -04:00
Jonathan Rainville 95b20e2db9 only put isDev when specifically set 2018-06-27 14:32:21 -04:00
Jonathan Rainville 1c801bc10f make it work 2018-06-27 14:32:21 -04:00
Jonathan Rainville 26b6ff9044 change fund account function 2018-06-27 14:32:21 -04:00
Jonathan Rainville b121f1dbe5 add geth miner. Needs to change eth and web3 2018-06-27 14:32:21 -04:00
Jonathan Rainville e9b4179af9 use right path depending of os 2018-06-27 14:32:21 -04:00
Jonathan Rainville 02e4c0257f conflict in package json 2018-06-27 14:32:13 -04:00
Jonathan Rainville b19c073b02 fix initChain to not always generate an account and the genesis block 2018-06-27 14:31:42 -04:00
emizzle f67a807ac8 Updated online/offline event checks so they are run during initialisation.
Changed the online event to `once` and set it to be bound every time the node goes offline.

The above changes handle the case where:
1) `embark run` runs and starts geth.
2) geth is killed manually
3) `embark blockchain` is run in separate process to restart geth
4) the `embark run` process detects this change and restarts the web3 provider and recompiles/deploys/builds

Every time `embark blochain` is restarted, an error is appended and all are emitted from the `eth-block-tracker`. This is a bug but can't figure out where it originates. The downside is that if, for example, `embark blockchain` is restarted 4 times, there will be 4 errors emitted from the `eth-block-tracker`. Because of this, errors emitted from `eth-block-tracker` have been reduced to trace to avoid clogging the logs.
2018-06-26 13:02:41 +10:00
emizzle 4ce7a179fd Handle geth process exit via crash/kill and also via killing `embark blockchain`
First case - run `embark run` which starts a blockchain node, then manually kill the `geth` process. Would throw `{ [Error: connect ECONNREFUSED 127.0.0.1:8543] message: 'connect ECONNREFUSED 127.0.0.1:8543', code: -32603 }` error and ruins the dashboard.

Second case, 1) run `embark blockchain` 2) run `embark run` 3) kill `embark blockchain` throws the error `{ [Error: connect ECONNREFUSED 127.0.0.1:8543] message: 'connect ECONNREFUSED 127.0.0.1:8543', code: -32603 }` and ruins the dashboard.

The first case was solved by having the child blockchain process that spawns geth listen for geth exit, then kill itself.

The second case required updating of `eth-block-tracker` to v4.0.1 inside of the `embark-web3-provider-engine`. v4.0.1 was a major version update and introduced breaking changes. Those changes were handled inside of `embark-web3-provider-engine`, covered in **blocker** PR https://github.com/jrainville/provider-engine/pull/1.
2018-06-26 13:02:41 +10:00
Iuri Matias 351917a5bc don't use -h option due to bug in ethersim fork v2 2018-06-25 13:23:22 -04:00
Richard Ramos 15d457bf60 Fix for skip-undeployed is not specified 2018-06-22 09:41:53 -04:00
Iuri Matias 76ab330546 add debug option 2018-06-18 09:44:16 -04:00
Jonathan Rainville d77083ee8c enable syncMode 2018-06-15 16:33:59 -04:00
VoR0220 391777d5bf fix test app config and swap olympic for rinkeby as testnet option
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-15 13:18:37 -05:00
Jonathan Rainville a09f680ca7 fix testnet and olympic network types 2018-06-14 15:22:01 -04:00