138 Commits

Author SHA1 Message Date
Jonathan Rainville
520495ef64 filter values 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
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
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
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
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
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
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
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
Anthony Laibe
d82c5f93fc Display error + lint 2018-09-30 11:36:59 -04:00
Anthony Laibe
f7bdbb68a2 Fix naming 2018-09-30 11:36:59 -04:00
Anthony Laibe
cd2a208099 Rever fiddle order 2018-09-30 11:34:15 -04:00
Anthony Laibe
1fc5dac03f Fix typo 2018-09-30 11:34:15 -04:00
Anthony Laibe
57b93692d6 Use subdomain 2018-09-30 11:34:15 -04:00
Anthony Laibe
f84f246580 Misc fixes after rebase 2018-09-30 11:34:15 -04:00
Anthony Laibe
a47a6a5fe0 Lint 2018-09-30 11:34:15 -04:00
Anthony Laibe
853a655a84 Register and resolve 2018-09-30 11:34:15 -04:00
Anthony Laibe
5edbe10ad3 Show ENS records 2018-09-30 11:34:15 -04:00
Anthony Laibe
9194bff673 Add actions/api/reducers/sagas 2018-09-30 11:34:15 -04:00
Anthony Laibe
e6dc284211 Add plugins and versions to backend tab 2018-09-30 11:34:15 -04:00
emizzle
b4580c364c Fix react ‘key’ error 2018-09-30 11:34:15 -04:00
emizzle
e61449bc4e Make linter happy 2018-09-30 11:34:15 -04:00