27 Commits

Author SHA1 Message Date
emizzle
2f188337c8 Small fixes
Fixed issue with contract deploying for first time and having no gasLimit specified.

Optimised/refactored looping of compiled contracts.

Added body parameter type checking for `/embark-api/contract/deploy` endpoint
2018-08-31 15:10:18 +10:00
emizzle
f92d18d624 Fiddle use cases fixed
Handle use cases:

1) handle case when temp.sol doesn’t exist - due to the new saga updates, the response from retreiving a temp fiddle from the filesystem (even if it doesn’t exist) is forward to the compilation endpoint, which returns an ENOENT, and this is handled in the selector.
2) delete all code - shouldn’t return last fiddle and should compile an empty string.
3) Switch to different tab (ie contracts) then back to fiddle - previous fiddle should remain.

Also fixed an issue (most likely due to latest rebase) when deploying fiddle contracts. The gasLimit was not being specified.

Handled issue where entities stored in the state were not being put in the correct order, so a timestamp was sent with the requests and then sorted when the response was returned.
2018-08-30 21:15:28 +10:00
Iuri Matias
7913543497 rebase fixes 2018-08-23 11:36:08 -04:00
Iuri Matias
5505bddfb6 move deployment to module 2018-08-22 19:17:46 -04:00
Iuri Matias
10a05324e7 move contract deployer to deploy manager 2018-08-22 19:17:46 -04:00
Iuri Matias
7ef1244c59 add missing utils 2018-08-22 19:17:45 -04:00
Iuri Matias
aaa65747c1 remove debug 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
Anthony Laibe
2a3eb14899 Remove code dependencies to underscore 2018-08-22 19:17:11 -04:00
Jonathan Rainville
03a9edc8b5 fix the indexOf instead by simulating what solc does 2018-08-22 19:17:09 -04:00
Jonathan Rainville
8dff1383c8 fix duplicate dependencies and warn correctly for length 2018-08-22 19:17:09 -04:00
Jonathan Rainville
626ec2c60c make groups of dependencyCount to do async by group 2018-08-22 19:10:45 -04:00
Iuri Matias
dba9330ec1 fixes due to bad rebase 2018-08-22 18:36:34 -04:00
Iuri Matias
760fdb0190 refactor blockchain check 2018-08-22 16:28:45 -04:00
Iuri Matias
5ea040856f cleanup 2018-08-22 16:28:45 -04:00
Iuri Matias
cdf5c30c43 first stab at refactor blockchain launcher 2018-08-21 17:42:24 -04:00
Jonathan Rainville
715896089a fix the indexOf instead by simulating what solc does 2018-08-21 17:23:24 -04:00
Jonathan Rainville
202bb7a768 fix duplicate dependencies and warn correctly for length 2018-08-21 17:23:24 -04:00
Anthony Laibe
a7b0cea09b Console via IPC do not run on deploy 2018-08-21 16:10:22 -04:00
Jonathan Rainville
8f3a42b926 catch $accounts in contract config 2018-08-21 16:09:49 -04:00
Andre Medeiros
8e396a17d8 Progress 2018-08-21 16:09:13 -04:00
Jonathan Rainville
3a621f3efd use async auto to deploy parallely 2018-08-21 16:09:13 -04:00
Jonathan Rainville
2edd45ef55 set log function as trace if silent for contract deployer 2018-08-21 16:07:58 -04:00
hodlbank
c782f9b0a8 Enabling contract:deploy:beforeDeploy plugins to access deploymentAccount value by adding it into the contract object. 2018-08-21 16:05:59 -04:00
Iuri Matias
567b0c75b8 get blockchain object from event bus 2018-08-21 16:04:22 -04:00
Iuri Matias
40e58dbcf2 move deployment to a module 2018-08-21 16:03:35 -04:00
Iuri Matias
f9321776b1 move deployment to module 2018-08-21 16:03:35 -04:00