1737 Commits

Author SHA1 Message Date
RJ Catalano
518e96585c
Merge pull request #585 from embark-framework/gracefullyErrorENS
small correction
2018-06-26 15:19:02 -05:00
VoR0220
b86ae2e9f6 fixup
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 14:56:23 -05:00
VoR0220
93feea7c6d small correction
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 14:44:29 -05:00
RJ Catalano
2c6bdc3204
Merge pull request #584 from embark-framework/fixDeploymentAttempts
make it so that FIFSRegistrar isn't attempted to be deployed on liven…
2018-06-26 13:53:49 -05:00
VoR0220
48a6e10f9f make it so that FIFSRegistrar isn't attempted to be deployed on livenet, ropsten, etc.
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 13:32:53 -05:00
VoR0220
5e7cd6a88b get rid of else
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-26 13:28:28 -05:00
RJ Catalano
8bf79e704d fix line 2018-06-26 13:26:36 -05:00
VoR0220
1d7851e2ff catch errors and handle gracefully in ENS 2018-06-26 13:26:36 -05:00
Iuri Matias
ac6aeaac50 make linter happy 2018-06-26 13:47:01 -04:00
Iuri Matias
e2ab4c4fa3 use EmbarkJS to initialize ens contracts and set ens contract only when embark is ready 2018-06-26 13:45:23 -04:00
emizzle
6f539198da Abandons all storage initialisation routines if storage is disabled in config. 2018-06-26 14:26:54 +10:00
emizzle
d32708fcde 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-06-26 13:34:52 +10: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
0ba5f1a1b3
Merge pull request #572 from embark-framework/bug_fix/embark-build-writes-pipeline
Fix for `embark build --contracts` writing into the pipeline
2018-06-25 13:54:07 -04:00
Iuri Matias
351917a5bc don't use -h option due to bug in ethersim fork v2 2018-06-25 13:23:22 -04:00
RJ Catalano
b78971147b
Merge pull request #575 from embark-framework/bug_fix/stop-test-provider
stop provider when resetting providers
2018-06-22 13:13:56 -05:00
RJ Catalano
0c15ee9cef
Merge pull request #574 from embark-framework/bug_fix/graph_ignores_relationships
Fix for --skip-undeployed is not specified
2018-06-22 13:01:01 -05:00
Jonathan Rainville
1e36950e24 stop provider when reseting providers 2018-06-22 13:19:32 -04:00
Jonathan Rainville
1e72a50b3b skip build if cmpile only 2018-06-22 11:12:34 -04:00
Richard Ramos
15d457bf60 Fix for skip-undeployed is not specified 2018-06-22 09:41:53 -04:00
emizzle
53bda087fa Fix for embark build --contracts writing into the pipeline 2018-06-22 15:26:43 +10:00
emizzle
befa8e8f22 Fix for embark upload failing when embark-solc plugin is installed.
It was simply too fast with the solc plugin and the blockchain node was not yet ready before solc would try to compile and deploy, and would error out while estimating gas costs.
2018-06-22 15:17:51 +10:00
Iuri Matias
9fb19ed78b
Merge pull request #569 from embark-framework/registration
Registrar deployment
2018-06-21 14:45:50 -04:00
VoR0220
e5ad90719b ensure that FIFS doesn't deploy on other test and main networks
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-21 12:57:41 -05:00
Iuri Matias
4589803003 put contracts inside the contracts field 2018-06-21 13:24:41 -04:00
VoR0220
e3bdbd520f 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-06-21 11:24:31 -05:00
Iuri Matias
109e5171c4
Merge pull request #566 from embark-framework/features/para-deploy
Async contract deploy (parallel deploy prequel)
2018-06-20 16:57:24 -04:00
Iuri Matias
12d03d8f82
Merge pull request #565 from embark-framework/averageProfile
convert to average
2018-06-20 16:41:00 -04:00
Iuri Matias
f16bb2c30b
Merge pull request #564 from embark-framework/features/whisper-cors
Added cors for whisper
2018-06-20 16:40:46 -04:00
Iuri Matias
4122bec122
Merge pull request #568 from embark-framework/next
merge Next
2018-06-20 16:40:23 -04:00
VoR0220
b41d6b312c small fix
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-20 14:17:05 -05:00
Jonathan Rainville
832e757262 add triple equals 2018-06-20 14:06:15 -04:00
Jonathan Rainville
150b5170c4 fix tests using new dependencies 2018-06-20 13:56:43 -04:00
Jonathan Rainville
4298e18655 make groups of dependencyCount to do async by group 2018-06-20 11:15:47 -04:00
VoR0220
a050a97a62 convert to average
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-20 09:38:51 -05:00
emizzle
51eb5a1f65 Added cors for whisper 2018-06-20 16:19:25 +10:00
Iuri Matias
650eb5e359 disable ipc client 2018-06-19 17:33:24 -04:00
Iuri Matias
aa5063e5ef
Merge pull request #562 from embark-framework/remove_extra_messages
remove extra logs
2018-06-19 15:49:37 -04:00
Iuri Matias
9beaaa2a29 remove extra logs 2018-06-19 15:46:55 -04:00
Jonathan Rainville
7f2f841e28 intercept logs by adding the name only 2018-06-19 15:01:03 -04:00
Jonathan Rainville
cd4bce8d12 enbale multiple arguments in dashboard 2018-06-19 15:00:56 -04:00
Jonathan Rainville
88cc4d05c0 enable logger to log multiple arguments 2018-06-19 15:00:51 -04:00
Iuri Matias
6a031e1dab warn if old cmd is used 2018-06-19 14:07:14 -04:00
Iuri Matias
9574562602
Merge pull request #558 from embark-framework/bug_fix/console-dir-test
Fix testing a directory without ending slash
2018-06-19 11:40:44 -04:00
Jonathan Rainville
c1f29fdea4 fix test directory without ending slash 2018-06-19 10:58:09 -04:00
Jonathan Rainville
01277f6014 start web3 service so getGasPrice is available 2018-06-19 10:03:46 -04:00
Jonathan Rainville
1a91f3c688 ping endpoint before connecting to see if available 2018-06-19 09:24:36 -04:00
Jonathan Rainville
aa02aeb74c move pingEndpoint to utils 2018-06-19 09:02:19 -04:00
emizzle
ba66d763fe Add support for infura network hosts with api key.
Fix bug with non-development code generation.
2018-06-19 15:14:37 +10:00