3558 Commits

Author SHA1 Message Date
emizzle
69aea01b8b Added contract profile api for fiddle
Compiled fiddles are automatically profiled on response of compilation via saga. The profile is passed to the ContractFunctions component for constructor/function view.
2018-09-04 12:40:59 +10:00
emizzle
ea63e406e7 Add compiled contract card to fiddle results
Not wired up properly yet. WIP.
2018-09-04 12:38:28 +10:00
Iuri Matias
a5a767f059
Merge pull request #42 from status-im/features/upgraded-gas-station
Upgraded gas station
2018-09-03 14:40:13 -04:00
Jonathan Rainville
d5fb2b9d4f add package lock 2018-08-31 16:51:47 -04:00
Jonathan Rainville
abc8925821 add gas station container 2018-08-31 16:49:32 -04:00
Jonathan Rainville
28ca30cab2 conflict in reducer 2018-08-31 16:49:28 -04:00
Jonathan Rainville
549e314ed0 filter values 2018-08-31 16:49:04 -04:00
Jonathan Rainville
b6746f043a remove old transactions to lighten the memory 2018-08-31 16:49:03 -04:00
Jonathan Rainville
bad6eb3e04 conflict in saga 2018-08-31 16:48:59 -04:00
Jonathan Rainville
79ccd6ec80 watch oracle changes 2018-08-31 16:48:03 -04:00
Jonathan Rainville
47a5c36057 conflicts in reducer and saga 2018-08-31 16:47:58 -04:00
Jonathan Rainville
3666108e15 fix ws ping and add wait calculation 2018-08-31 16:45:23 -04:00
Jonathan Rainville
c70021a28a add transactionTracker to track transactions and their time 2018-08-31 16:45:23 -04:00
Jonathan Rainville
fc44666f69 add gas station to Contract functions 2018-08-31 16:45:23 -04:00
Jonathan Rainville
25ed1c65ea add gasPrice to transactions for contracts 2018-08-31 16:45:23 -04:00
Jonathan Rainville
35f545a235 copy to clipboard gasPrice 2018-08-31 16:45:23 -04:00
Jonathan Rainville
8b313f5d78 fix firefox and ie 2018-08-31 16:45:23 -04:00
Jonathan Rainville
e5d6341013 conflict in css 2018-08-31 16:45:17 -04:00
Jonathan Rainville
913d34fccc add gas station component 2018-08-31 16:44:48 -04:00
Jonathan Rainville
0b7b112e67 conflicts in action and saga 2018-08-31 16:44:43 -04:00
Iuri Matias
39013d60e2
Merge pull request #40 from status-im/feature/backend_tab/file_explorer
File explorer
2018-08-31 08:35:40 -04:00
Anthony Laibe
b123e665be File explorer 2018-08-31 13:21:37 +01:00
Iuri Matias
a823c2ef2a
Merge pull request #41 from status-im/bugfix/console
Fixes
2018-08-31 08:14:22 -04:00
Anthony Laibe
5a455bb5d4 Handle string 2018-08-31 13:11:33 +01:00
Anthony Laibe
295f254ea9 Fix double stringify 2018-08-31 13:11:33 +01:00
Anthony Laibe
4eed27a55a All command available in backend tab console 2018-08-31 13:11:33 +01:00
Anthony Laibe
a622e6c4bb Fix profile command (rebase issue) 2018-08-31 13:11:33 +01:00
Anthony Laibe
92470bd346 Fix order of command 2018-08-31 13:11:33 +01:00
Anthony Laibe
64dea63457 Adding overflow to console 2018-08-31 13:11:33 +01:00
Anthony Laibe
bf5efab091 Add back console command 2018-08-31 13:10:18 +01:00
Iuri Matias
6d1c1def79
Merge pull request #37 from status-im/features/backend_tab/fiddle
Complete Fiddle integration and function testing
2018-08-31 07:59:38 -04:00
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
489f619c29 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-08-31 08:40:51 +10:00
emizzle
b0fba12de7 Remove lodash 2018-08-30 21:41:19 +10:00
emizzle
c6f1f9b3eb 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-08-30 21:15:28 +10:00
emizzle
f92d18d624 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-08-30 21:15:28 +10:00
Anthony Laibe
ab25436a98 Remove last fiddle, and use code to compile 2018-08-30 21:15:28 +10:00
emizzle
3216d4169e 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-08-30 21:15:28 +10:00
emizzle
58086fac96 change registerAPICall to hang off embark 2018-08-30 21:14:51 +10:00
emizzle
76f8c53c5d Fix bug with deleting all code 2018-08-30 21:14:51 +10:00
emizzle
d7f1749d3a Hide deployment section in UI for fiddle contracts 2018-08-30 21:14:51 +10:00
emizzle
bdb1dadefb Remove ‘async’ from function name and remove comments 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
1c4ec58c4a finish removing loading entities 2018-08-30 21:14:50 +10:00
emizzle
2edec6f878 Removed loadingEntities and added to FiddleContainer 2018-08-30 21:14:50 +10:00
emizzle
438da83359 loading entity work 2018-08-30 21:14:50 +10:00
emizzle
ae826522a1 Start with reducer/selector for loading entity 2018-08-30 21:14:50 +10:00
emizzle
7a298b61f9 Added loading entities
Moved functionality out of FiddleDeployButton component

Added loading entities (WIP) to separate loading messages
2018-08-30 21:14:50 +10:00