383 Commits

Author SHA1 Message Date
Jonathan Rainville
08b02c477f add contract logs 2018-08-22 19:18:20 -04:00
Iuri Matias
a9296a3a83 fix rebase issues 2018-08-22 19:18:07 -04:00
Richard Ramos
a54b8226eb Added event to obtain list of contracts and show them on the dashboard 2018-08-22 19:18:07 -04:00
Iuri Matias
a8630d3a56 add event and API end poitn to get the JSON info of a contract 2018-08-22 19:18:06 -04:00
Iuri Matias
a22ace3834 fix ws send; attempt to fix missing contractsState in ws 2018-08-22 19:18:02 -04:00
Iuri Matias
a44aebe6bc move blockchain connection code to its own module 2018-08-22 19:17:51 -04:00
Iuri Matias
0ffc767f92 get blockchain object from event bus 2018-08-22 19:17:47 -04:00
Iuri Matias
6c662c02c6 rename blockchain connector 2018-08-22 19:17:47 -04:00
Iuri Matias
c6e5173420 move code generator to a module 2018-08-22 19:17:46 -04:00
Iuri Matias
cc15e32d4f re-add events 2018-08-22 19:17:45 -04:00
Iuri Matias
019750b85f cleanup 2018-08-22 19:17:45 -04:00
Iuri Matias
78db7bba1c move code runner to core modules 2018-08-22 19:17:44 -04:00
Iuri Matias
34061a6b44 move proxy out of core 2018-08-22 19:17:40 -04:00
Iuri Matias
0e8d03a025 move blockchain process to own module 2018-08-22 19:17:35 -04:00
Iuri Matias
5a7fe6b188 first stab at refactor blockchain launcher 2018-08-22 19:17:35 -04:00
Jonathan Rainville
02d3b11f33 add new blockchain event 2018-08-22 19:17:27 -04:00
Michael Bradley, Jr
d3b53330af simplify ternary re: __mainContext and this 2018-08-22 19:17:22 -04:00
Michael Bradley, Jr
f68ed2b39f mainContext -- fallback to this, then self, then undefined 2018-08-22 19:17:21 -04:00
Michael Bradley, Jr
dce1e2a4f5 check for self 2018-08-22 19:17:20 -04:00
Iuri Matias
3be7782237 move blockchain connection code to its own module 2018-08-22 16:29:36 -04:00
Iuri Matias
418d1ba46a move accountParser to utils 2018-08-22 16:29:19 -04:00
Iuri Matias
6965c43da1 re-add events 2018-08-22 16:28:45 -04:00
Iuri Matias
5ea040856f cleanup 2018-08-22 16:28:45 -04:00
Iuri Matias
423c1880c8 move blockchain process to own module 2018-08-21 17:42:36 -04:00
Iuri Matias
cdf5c30c43 first stab at refactor blockchain launcher 2018-08-21 17:42:24 -04:00
Jonathan Rainville
3abe723ca4 fix webserver errors 2018-08-21 17:16:01 -04:00
Jonathan Rainville
f371ccce48 remove provider-engine as it has been creating lots of issues 2018-08-21 17:07:27 -04:00
Jonathan Rainville
93f568b6fc wip fixes 2018-08-21 17:00:40 -04:00
emizzle
f36dfd0b1c 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-08-21 16:34:16 -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