2655 Commits

Author SHA1 Message Date
Andre Medeiros
9044560093 Use process name if it is provided 2018-10-02 14:48:51 -04:00
Anthony Laibe
5481241760 Fix race condition 2018-10-01 10:10:17 +01:00
Anthony Laibe
aa729607c9 Pass plugin as options 2018-10-01 09:53:30 +01:00
Anthony Laibe
bc93204bd4 Remove duplicate declaration 2018-10-01 09:41:54 +01:00
Anthony Laibe
81649d7fee Fix start without webserver 2018-10-01 09:31:21 +01:00
emizzle
0b983704ff Fix solidity compilation
Issues introduced in rebase.
2018-10-01 15:11:38 +10:00
Iuri Matias
6e543cb724 rebase fixes 2018-09-30 18:56:33 -04:00
Iuri Matias
6b9ab12bca rebase fixes 2018-09-30 12:48:44 -04:00
Anthony Laibe
94aae19e0c Add ability to logout 2018-09-30 12:20:16 -04:00
Jonathan Rainville
0e44722eb6 rename event 2018-09-30 12:20:16 -04:00
Jonathan Rainville
b3fb36fa02 use port and host from config 2018-09-30 12:20:16 -04:00
Jonathan Rainville
46340c7206 authorize each request through header 2018-09-30 12:20:16 -04:00
Jonathan Rainville
1e6751323d show authorize form when auth error 2018-09-30 12:17:57 -04:00
Jonathan Rainville
0737a249b9 add console command to get token 2018-09-30 12:17:57 -04:00
Jonathan Rainville
1387b38663 use local cache to store the token 2018-09-30 12:17:57 -04:00
Jonathan Rainville
750645c33c add basic authentication 2018-09-30 12:17:57 -04:00
Jonathan Rainville
26f2436736 fix linting 2018-09-30 12:17:57 -04:00
Jonathan Rainville
fb218bea9c fix avergae not calculated correctly 2018-09-30 12:14:54 -04:00
Anthony Laibe
26a63b294c Deploy contract 2018-09-30 12:14:54 -04:00
Anthony Laibe
634fb63b71 File Editor 2018-09-30 12:14:54 -04:00
Jonathan Rainville
cf627ce840 remove old transactions to lighten the memory 2018-09-30 12:14:45 -04:00
Jonathan Rainville
e3a41509a3 conflict in saga 2018-09-30 12:14:45 -04:00
Jonathan Rainville
bfe17e1ad1 watch oracle changes 2018-09-30 12:14:45 -04:00
Jonathan Rainville
3c046187a9 conflicts in reducer and saga 2018-09-30 12:14:45 -04:00
Jonathan Rainville
23a44f614b fix ws ping and add wait calculation 2018-09-30 12:14:45 -04:00
Jonathan Rainville
d83bced73e add transactionTracker to track transactions and their time 2018-09-30 12:13:29 -04:00
Jonathan Rainville
713015811c add gasPrice to transactions for contracts 2018-09-30 12:13:08 -04:00
Anthony Laibe
e6e9fdc2bc File explorer 2018-09-30 12:13:08 -04:00
Anthony Laibe
96987a63c0 Handle string 2018-09-30 12:13:08 -04:00
Anthony Laibe
3419b99e13 All command available in backend tab console 2018-09-30 12:11:13 -04:00
Anthony Laibe
c898d5024c Fix profile command (rebase issue) 2018-09-30 12:10:05 -04:00
Anthony Laibe
9da12450c5 Add back console command 2018-09-30 12:09:56 -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
afff55fe1b 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-09-30 12:08:53 -04:00
Anthony Laibe
e30bdf1222 Remove last fiddle, and use code to compile 2018-09-30 12:08:53 -04:00
emizzle
3898686c7b Handle use cases that were failing
1) hanlde case when temp.sol doesn’t exist
2) delete all code - shouldn’t return last fiddle
3) Switch to different tab (ie contracts) then back to fiddle - fiddle should now remain.
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
290cbfa32a Remove ‘async’ from function name and remove comments 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
emizzle
937e41ecdf add contract class for assisted construction
# Conflicts:
#	package-lock.json
2018-09-30 12:05:59 -04:00
Jonathan Rainville
650a097ea8 add back return all errors 2018-09-30 11:48:39 -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
Iuri Matias
0c586a2b64 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