Commit Graph

3979 Commits

Author SHA1 Message Date
Anthony Laibe e8d5ee05cd Adding light monitor 2018-09-30 09:44:39 -04:00
Michael Bradley, Jr 3603ca673c set the host flag for ganache-cli 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 9da1e49e17 rm commented code and extra whitespace 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 86bfddeeed disable dead code path -- ganache will never be falsy 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 762bccef35 dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr b292c576e0 no need for ganache-cli "bin" entry 2018-09-30 09:36:53 -04:00
Jonathan Rainville 3b9e605d62 fix the indexOf instead by simulating what solc does 2018-09-30 09:36:53 -04:00
Jonathan Rainville 08dcb38c8a fix duplicate dependencies and warn correctly for length 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr e4bac59ab6 include old `const ganache =` line in original pos wrt disabled code 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 068d2da524 comment out `testrpc` (no-unused-vars) 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 948f5ce2ec Embark's own ganache-cli will always be found 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 0afdf57ee9 embark-ganache-cli -> ganache-cli-embark 2018-09-30 09:36:53 -04:00
Jonathan Rainville 4980d5bb6d fix ens by using right addres depending on chain and also add isAvailable 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 0bead723c1 always use Embark's own ganache-cli (embark-ganache-cli) 2018-09-30 09:36:53 -04:00
Michael Bradley, Jr 17a00c6a76 "embark-" prefixed bin entry in package.json for ganache-cli 2018-09-30 09:35:48 -04:00
Andre Medeiros 94920c19f8 Bump Mocha to 5.2.0 2018-09-30 09:35:48 -04:00
Jonathan Rainville 2f66e7f22c wip changes 2018-09-30 09:34:08 -04:00
Jonathan Rainville 81c9eaf9e5 remove use of initConfig 2018-09-30 09:34:08 -04:00
Jonathan Rainville d045229687 set isDev as default if there is no blockchain file 2018-09-30 09:32:53 -04:00
Iuri Matias 61b92230d1 remove unneded line 2018-09-30 09:29:47 -04:00
Iuri Matias 7cb740e922 fix plugin call 2018-09-30 09:29:47 -04:00
Iuri Matias e2954e8729 re-add register upload cmd api; refactor storage module initialization 2018-09-30 09:29:47 -04:00
Iuri Matias 604bf7abe2 fix logger 2018-09-30 09:29:47 -04:00
Iuri Matias 2ae51b4f82 check ipfs connection before attempting to connect 2018-09-30 09:29:47 -04:00
Iuri Matias 711f92da4d move setProviders to EmbarkJS 2018-09-30 09:29:47 -04:00
Iuri Matias 09569db9a1 remove no longer used plugin cmd api 2018-09-30 09:29:47 -04:00
Jonathan Rainville 839393074a fix conflict in test and provider 2018-09-30 09:29:47 -04:00
Jonathan Rainville 239a182404 display gas cost of each test 2018-09-30 09:29:47 -04:00
Jonathan Rainville 8da1fca0bc remove useless change 2018-09-30 09:26:03 -04:00
Jonathan Rainville 8a9810425a remove provider-engine as it has been creating lots of issues 2018-09-30 09:26:03 -04:00
Jonathan Rainville 1ca734411a wip fixes 2018-09-30 09:24:51 -04:00
Jonathan Rainville c2f8175f87 fix miner 2018-09-30 09:24:25 -04:00
Jonathan Rainville 91db1e36c4 make it work 2018-09-30 09:24:25 -04:00
Jonathan Rainville c3d588f5ba change fund account function 2018-09-30 09:24:25 -04:00
Jonathan Rainville 2affb882f6 add geth miner. Needs to change eth and web3 2018-09-30 09:24:25 -04:00
Jonathan Rainville 32778edd43 revert caca code 2018-09-30 09:24:25 -04:00
emizzle a48ba90680 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-09-30 09:23:08 -04:00
VoR0220 42a0fd2ca0 make it so that FIFSRegistrar isn't attempted to be deployed on livenet, ropsten, etc.
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:20:12 -04:00
RJ Catalano 05069ffbb3 fix line 2018-09-30 09:20:12 -04:00
VoR0220 0b2ee0c2b5 catch errors and handle gracefully in ENS 2018-09-30 09:20:12 -04:00
emizzle 3d5ce687c1 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-09-30 09:20:12 -04:00
emizzle 5022012a6c 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-09-30 09:20:12 -04:00
Richard Ramos 9019f6d722 Fix for skip-undeployed is not specified 2018-09-30 09:20:12 -04:00
VoR0220 3efc02d97a ensure that FIFS doesn't deploy on other test and main networks
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-09-30 09:20:12 -04:00
Iuri Matias 722e1a2011 put contracts inside the contracts field 2018-09-30 09:20:12 -04:00
VoR0220 1adb91ef65 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-09-30 09:20:12 -04:00
Jonathan Rainville 019a564887 fix tests using new dependencies 2018-09-30 09:18:45 -04:00
Jonathan Rainville fc85fc1082 make groups of dependencyCount to do async by group 2018-09-30 09:18:45 -04:00
Jonathan Rainville 297854f6dd remove log 2018-09-30 09:18:45 -04:00
Jonathan Rainville 0ab83dc21d intercept logs by adding the name only 2018-09-30 09:18:45 -04:00