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
b0fba12de7 Remove lodash 2018-08-30 21:41:19 +10:00
emizzle
58086fac96 change registerAPICall to hang off embark 2018-08-30 21:14:51 +10:00
emizzle
e8a6fec4ec Fiddle file stored in filesystem
Fiddles are now stored in the filesystem so they can be preserved across page reloads, but also so that contracts deployed via fiddles can have their source code shown.

Fiddles deployed as contracts now fully work with existing contract list UI and functionality. Fiddle deployed contracts are listed in a separate section in the UI.

Current limitation is that only single contracts per file are supported. If the fiddle contains multiple contracts, it’s currently not supported.
2018-08-30 21:14:51 +10:00
emizzle
a915be67fc Fiddle deploy integration
Fiddle is properly deploying now, except the source code needs to be saved to the filesystem in order to be recalled later.

Fixes for handling errors on deploy and compilation.

Update contract state UI for determining state / interface / deployed.
2018-08-30 21:14:50 +10:00
emizzle
52289c0d5e Fix Tabler browser errors
Fixed browser errors caused by tabler (bodyItems and headerItems complaints) as well as staticContext issues caused by using withRoute(NavLink)

Also added a response to fiddler deployment.

Added loading states to fiddler results, that shows the errors/warnings as having a loading state when compiling/deploying
2018-08-30 21:14:50 +10:00
emizzle
b10f2927fb concat deployed fiddle contracts with existing contracts 2018-08-30 21:14:50 +10:00
emizzle
e6440a758d Initial commit for deployment of fiddle
API call set up for contract deploy which deploys the contract(s) sent from the fiddle.

Frontend UI button calls API to deploy the fiddle code.
2018-08-30 21:14:50 +10:00
Jonathan Rainville
d09077ea0a fix most rebase issues 2018-08-27 16:22:53 -04:00
Iuri Matias
538b19ff19 rebase fixes 2018-08-23 12:38:54 -04:00
Anthony Laibe
82cf5a95b3 PR feedback: Use request 2018-08-22 19:18:30 -04:00
Anthony Laibe
1d82c32315 Deploy contract 2018-08-22 19:18:30 -04:00
Anthony Laibe
1a35735698 Show result 2018-08-22 19:18:30 -04:00
Anthony Laibe
9d1a6dad3d Make call successfully 2018-08-22 19:18:30 -04:00
Anthony Laibe
7d0a4afd88 Call Function API 2018-08-22 19:18:30 -04:00
Jonathan Rainville
4c11db83e6 rename name to className so it matches contract object 2018-08-22 19:18:19 -04:00
Iuri Matias
d4febce1d4 remove commented code 2018-08-22 19:18:17 -04:00
Iuri Matias
7d74097f33 add contracts and contract page 2018-08-22 19:18:13 -04:00
Jonathan Rainville
33009c9917 fix eslint on EVERYTHING 2018-08-22 19:18:11 -04:00
Anthony Laibe
53a49d48b9 Use path embark-api 2018-08-22 19:18:08 -04:00
Iuri Matias
a9296a3a83 fix rebase issues 2018-08-22 19:18:07 -04:00
Iuri Matias
92dada520b track original filepath of the contract 2018-08-22 19:18:06 -04:00
Jonathan Rainville
cbe9a47662 fix tests using new dependencies 2018-08-22 19:10:45 -04:00
Jonathan Rainville
626ec2c60c make groups of dependencyCount to do async by group 2018-08-22 19:10:45 -04:00
Jonathan Rainville
8f3a42b926 catch $accounts in contract config 2018-08-21 16:09:49 -04:00
Jonathan Rainville
d88d172c76 remove dependencyCount 2018-08-21 16:09:13 -04:00
Iuri Matias
dfbff4466f rename module 2018-08-21 16:07:58 -04:00