4170 Commits

Author SHA1 Message Date
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
76650ac2c7 add gas station to Contract functions 2018-09-30 12:13:08 -04:00
Jonathan Rainville
713015811c add gasPrice to transactions for contracts 2018-09-30 12:13:08 -04:00
Jonathan Rainville
1d841a3d5c copy to clipboard gasPrice 2018-09-30 12:13:08 -04:00
Jonathan Rainville
ea2fea0896 fix firefox and ie 2018-09-30 12:13:08 -04:00
Jonathan Rainville
615318b103 conflict in css 2018-09-30 12:13:08 -04:00
Jonathan Rainville
c29908bbad add gas station component 2018-09-30 12:13:08 -04:00
Jonathan Rainville
610ec80191 conflicts in action and saga 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
9491f083a6 Fix order of command 2018-09-30 12:10:05 -04:00
Anthony Laibe
d58dbaa352 Adding overflow to console 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
fb740c3ae4 Hide deploy button when not successfully compiled
Bug that cropped up in the refactor. Deploy button was showing if there warnings, but no errors. Have changed this to only show the deploy button if there is a compilation result (returned from the api) instead.
2018-09-30 12:08:53 -04:00
emizzle
4bd5239669 Remove lodash 2018-09-30 12:08:53 -04:00
emizzle
4b05c398fb Refactor logic to FiddleContainer
Refactored fiddle logic to be contained in the `FiddleContainer` and the components as purely presentational.

Added scroll from summary to errors/warnings/fatal/deployed cards.

Added fatal error support (ie network error in api)

Removed `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
293fa89184 Fix bug with deleting all code 2018-09-30 12:08:41 -04:00
emizzle
7ac43b307c Hide deployment section in UI for fiddle contracts 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
a4c82e5e5d finish removing loading entities 2018-09-30 12:07:57 -04:00
emizzle
91a311196f Removed loadingEntities and added to FiddleContainer 2018-09-30 12:07:57 -04:00
emizzle
a3784cfca5 loading entity work 2018-09-30 12:07:57 -04:00
emizzle
e3a66228d8 Start with reducer/selector for loading entity 2018-09-30 12:07:57 -04:00
emizzle
838662f0a2 Added loading entities
Moved functionality out of FiddleDeployButton component

Added loading entities (WIP) to separate loading messages
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
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
Anthony Laibe
758b3caf38 Show functions 2018-09-30 11:36:59 -04:00
Anthony Laibe
bf77c2b010 Show sources 2018-09-30 11:36:59 -04:00