34 Commits

Author SHA1 Message Date
Anthony Laibe
634fb63b71 File Editor 2018-09-30 12:14:54 -04:00
Jonathan Rainville
713015811c add gasPrice to transactions for contracts 2018-09-30 12:13:08 -04:00
emizzle
9c98135029 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-09-30 12:08:53 -04:00
emizzle
4bd5239669 Remove lodash 2018-09-30 12:08:53 -04:00
emizzle
c46f71e1ca change registerAPICall to hang off embark 2018-09-30 12:08:41 -04:00
emizzle
a9071f714c 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-09-30 12:08:41 -04:00
emizzle
b0ba46a0a9 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-09-30 12:08:41 -04:00
emizzle
cc8d10cd68 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-09-30 12:07:57 -04:00
emizzle
bb44ddc548 concat deployed fiddle contracts with existing contracts 2018-09-30 12:07:57 -04:00
emizzle
71fbc65928 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-09-30 12:07:57 -04:00
Jonathan Rainville
4beb492d70 fix most rebase issues 2018-09-30 11:48:39 -04:00
Iuri Matias
5f2c843068 rebase fixes 2018-09-30 11:40:59 -04:00
Anthony Laibe
d3b1c74649 PR feedback: Use request 2018-09-30 11:36:59 -04:00
Anthony Laibe
3b3210baae Deploy contract 2018-09-30 11:36:59 -04:00
Anthony Laibe
2c757d9044 Show result 2018-09-30 11:36:59 -04:00
Anthony Laibe
e335132561 Make call successfully 2018-09-30 11:36:59 -04:00
Anthony Laibe
2f55e4868d Call Function API 2018-09-30 11:36:59 -04:00
Jonathan Rainville
11e15d57ad rename name to className so it matches contract object 2018-09-30 11:26:05 -04:00
Iuri Matias
0781146c38 remove commented code 2018-09-30 11:23:42 -04:00
Iuri Matias
29fdf74ba1 add contracts and contract page 2018-09-30 11:23:42 -04:00
Jonathan Rainville
14d36f5b88 fix eslint on EVERYTHING 2018-09-30 11:21:23 -04:00
Anthony Laibe
162b610df8 Use path embark-api 2018-09-30 11:06:14 -04:00
Iuri Matias
e00f4cb0b4 fix rebase issues 2018-09-30 10:55:21 -04:00
Iuri Matias
433fd6f11e track original filepath of the contract 2018-09-30 10:53:43 -04:00
Jonathan Rainville
019a564887 fix tests using new dependencies 2018-09-30 09:18:45 -04:00
Jonathan Rainville
fc85fc1082 make groups of dependencyCount to do async by group 2018-09-30 09:18:45 -04:00
Anthony Laibe
1b4e0c84f7 Add missing config
The configuration for test is not passed via the engine
2018-09-28 13:22:28 +01:00
Michael Bradley, Jr
4fc9827080 need parent contract's realRuntimeBytecode 2018-09-19 20:55:00 -05:00
Jonathan Rainville
47ec2f2d8a fix redeploy of contracts on spaces 2018-09-11 15:20:57 -04:00
Andre Medeiros
05dea5844a Fix the way we pass compiler options instead of assuming via the environment 2018-08-30 13:27:18 -04:00
Iuri Matias
ffbd39882a remove isTest 2018-08-24 09:25:47 -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