Iuri Matias
c5d9a759af
move blockchain process to own module
2018-10-23 09:39:02 +02:00
Iuri Matias
4406dddf1e
first stab at refactor blockchain launcher
2018-10-23 09:39:02 +02:00
Jonathan Rainville
7e16691aa6
fix webserver errors
2018-10-23 09:02:41 +02:00
Jonathan Rainville
3ca70d6e21
remove provider-engine as it has been creating lots of issues
2018-10-23 09:02:40 +02:00
Jonathan Rainville
da82c2eba2
wip fixes
2018-10-23 09:02:15 +02:00
emizzle
c83b6dde60
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-10-23 09:01:13 +02: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
Michael Bradley, Jr
75d0258dae
rm disabled line
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
5f0ee8d9e4
mainContext -- fallback to `this`, then `self`, then `undefined`
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
4baea520d8
don't blow away the global web3
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
4472077e08
check for self
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
25b5b9a801
window -> global; reorg statements
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
dcf9b4a645
make Web3 (note capital 'w') globally accessible
2018-08-21 15:47:05 -04:00
Michael Bradley, Jr
0c4438941d
import EmbarkJS from npm pkg, re-export, make it globally accessible
2018-08-21 15:47:05 -04:00
Anthony Laibe
1d71c7fbce
Display info about gas when deploying contract
2018-08-21 15:47:05 -04:00
Anthony Laibe
b679d3031a
Remove code dependencies to underscore
2018-08-21 15:47:05 -04:00
Richard Ramos
38817ddab2
Add environment to EmbarkJS
2018-08-21 15:46:14 -04:00
Jonathan Rainville
3d729b8a78
fix the indexOf instead by simulating what solc does
2018-08-21 15:42:05 -04:00
Jonathan Rainville
6908cf5cdc
fix duplicate dependencies and warn correctly for length
2018-08-21 15:42:05 -04:00
Iuri Matias
5d8f236df3
remove custom web3 js; use packaged one instead
2018-08-21 15:35:55 -04:00
Jonathan Rainville
50b0376954
check for receipt address before calling back
2018-08-21 15:31:55 -04:00
Jonathan Rainville
6593a92cc4
add interval in case deployment gets stuck
2018-08-21 15:30:11 -04:00
emizzle
7bd1598b3c
Fixed __mainContext error
...
There was a condition checking if blockchain config was disabled and if so, do not generate any provider code, which is where the `__mainContext` was being defined. This was changed to generate the `__mainContext` code first, then if blockchain is disabled, return the already generated code.
2018-08-21 15:30:11 -04:00
Jonathan Rainville
bd369ec1a8
add reporter with event to get receipt
2018-08-21 15:30:10 -04:00