377 Commits

Author SHA1 Message Date
Iuri Matias
ffe4dc8164 fix ws send; attempt to fix missing contractsState in ws 2018-08-22 19:04:39 -04:00
Iuri Matias
a3d828af05 move blockchain connection code to its own module 2018-08-22 19:04:30 -04:00
Iuri Matias
bb4aeac899 get blockchain object from event bus 2018-08-22 19:04:12 -04:00
Iuri Matias
f38761faf9 rename blockchain connector 2018-08-22 19:04:12 -04:00
Iuri Matias
1506801bd1 move code generator to a module 2018-08-22 19:04:12 -04:00
Iuri Matias
cb19a61c19 move accountParser to utils 2018-08-22 19:04:11 -04:00
Iuri Matias
50baf6c12e re-add events 2018-08-22 19:04:10 -04:00
Iuri Matias
abe8fbd4d1 cleanup 2018-08-22 19:04:10 -04:00
Iuri Matias
19cc53af30 move code runner to core modules 2018-08-22 19:04:10 -04:00
Iuri Matias
2d752feff3 move proxy out of core 2018-08-22 19:04:04 -04:00
Iuri Matias
6fea646465 move blockchain process to own module 2018-08-22 19:03:59 -04:00
Iuri Matias
6ef66ac97a first stab at refactor blockchain launcher 2018-08-22 19:03:59 -04:00
Jonathan Rainville
ef3d3f875a add new blockchain event 2018-08-22 19:03:56 -04:00
Michael Bradley, Jr
717a337453 simplify ternary re: __mainContext and this 2018-08-22 19:03:54 -04:00
Michael Bradley, Jr
0300931c25 mainContext -- fallback to this, then self, then undefined 2018-08-22 19:03:54 -04:00
Michael Bradley, Jr
dcff2c0cb2 check for self 2018-08-22 19:03:52 -04:00
Jonathan Rainville
a1826883fb check for receipt address before calling back 2018-08-22 19:03:40 -04:00
Jonathan Rainville
2cd0c5518a fix webserver errors 2018-08-22 19:03:28 -04:00
Jonathan Rainville
976fedd275 wip working 2018-08-22 19:03:24 -04:00
Jonathan Rainville
effc7f13ee remove provider-engine as it has been creating lots of issues 2018-08-22 19:03:24 -04:00
Jonathan Rainville
ece8248019 wip fixes 2018-08-22 19:03:20 -04:00
Jonathan Rainville
8e56feba39 conflict in provider 2018-08-22 19:03:19 -04:00
emizzle
53c59263b6 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-08-22 19:03:03 -04:00
Iuri Matias
58ba4bde48 move simulator & proxy to blockchain process module 2018-08-21 16:07:58 -04:00
Iuri Matias
53d944e801 move contracts manager to its own module 2018-08-21 16:07:58 -04:00
Jonathan Rainville
16aae66756 hide assuming when silent 2018-08-21 16:07:58 -04:00
Jonathan Rainville
5125cb06f7 hide contracts from dashboard when silent 2018-08-21 16:07:58 -04:00
Iuri Matias
95c945c238 refactor test deployment to not use engine directly 2018-08-21 16:05:59 -04:00
Iuri Matias
600d686342 requests instead of contract object directly 2018-08-21 16:05:59 -04:00
Iuri Matias
77dd5b4944 remove engine dependency; use api 2018-08-21 16:05:58 -04:00
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
9526e61652 rename blockchain connector 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
b0a71a86d4 move accountParser to utils 2018-08-21 16:04:22 -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
499a3b5609 set gas limit through event 2018-08-21 16:03:35 -04:00
Iuri Matias
3465ab7265 add missing utils 2018-08-21 16:03:35 -04:00
Iuri Matias
a79404547f re-add events 2018-08-21 16:03:35 -04:00
Iuri Matias
2f2b61da51 cleanup 2018-08-21 16:03:35 -04:00
Iuri Matias
5bf89b0fea move copmiler to 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
952694f790 remove debug 2018-08-21 16:01:14 -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
1c881274b1 add new blockchain event 2018-08-21 15:51:38 -04:00
Michael Bradley, Jr
ed5f18e579 simplify ternary re: __mainContext and this 2018-08-21 15:47:05 -04:00