35 Commits

Author SHA1 Message Date
emizzle
c64b007d98 Small fixes
fix for showing compiled in compilation summary

fix for className in compilation api endpoint

For profile of non-deployed contract, return empty response if the compiled contract has no classname (ie probably not a successful compilation).
2018-09-04 23:02:18 +10:00
emizzle
7899a03fac Fiddle contract profile without deploy
Fiddle contracts can now be profiled without being deployed.

This allows display of the ContractFunctions component.

Needs work to show constructor args and deploy button in this component.

Also needs work to migrate 500/400 status errors.
2018-09-04 16:40:14 +10:00
emizzle
9f264dc0d4 Better error handling for API
Updated error entities so that they work on an api failure (status code != 200). This works with the sagas much better to watch for FAILURE/SUCCESS. http browser errors can be avoided by checking api params.

Added timestamp for most of the fiddle calls, to allow for accurate selecting.

Add request payload to errors for better error entity selection.
2018-09-04 12:41:00 +10:00
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
Anthony Laibe
a622e6c4bb Fix profile command (rebase issue) 2018-08-31 13:11:33 +01:00
Jonathan Rainville
d09077ea0a fix most rebase issues 2018-08-27 16:22:53 -04:00
Anthony Laibe
3300a7754b Fix fuzzer for bytes and uint 2018-08-22 19:18:19 -04:00
Iuri Matias
9c197f23fb refactor format params 2018-08-22 19:18:13 -04:00
Iuri Matias
2915a608a1 refactor profile caller 2018-08-22 19:18:13 -04:00
Iuri Matias
33306887f8 use json in table generation 2018-08-22 19:18:13 -04:00
Iuri Matias
bb53b1b6ef return profiler object instead of text 2018-08-22 19:18:13 -04:00
Iuri Matias
5421aa1240 define api for profiler 2018-08-22 19:18:12 -04:00
Jonathan Rainville
33009c9917 fix eslint on EVERYTHING 2018-08-22 19:18:11 -04:00
Anthony Laibe
0924f2dfd0 Apply feedback 2018-08-21 16:09:48 -04:00
Anthony Laibe
27933774a9 Console command connect to ipc 2018-08-21 16:09:48 -04:00
Anthony Laibe
f0f9840757 Fix fuzzer while profiling 2018-08-21 16:09:13 -04:00
Anthony Laibe
7a34b9d675 Fix profile command
In case the contract don't exist or the profile
command don't have argument, embark don't crash
and return an error
2018-08-21 15:47:05 -04:00
Anthony Laibe
b679d3031a Remove code dependencies to underscore 2018-08-21 15:47:05 -04:00
Iuri Matias
d5278b41de move fuzer & gasEstimator to profiler module 2018-08-21 15:30:10 -04:00
VoR0220
ad6a6cf328 small fixes to ensure something of a better experience for error reporting on the profiler side
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-15 15:22:27 -05:00
Iuri Matias
1dcd30b3a8 don't crash and instead inform user if contract cannot be profiled 2018-06-12 13:24:21 -04:00
VoR0220
a601541bb0 get rid of one more line and get rid of unused cb
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 12:12:37 -05:00
VoR0220
43c8525d48 fix callbacks in gas estimator, add more fallback support and clean up console logs to better display potential errors
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 12:10:35 -05:00
VoR0220
57f098239d add support for null inputs and fallback and constructor types
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 10:36:41 -05:00
VoR0220
0ff39f48b3 fix the callback schema for async and pretty it up a bit
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 10:36:41 -05:00
VoR0220
5c7e9f0054 changes to the logic around gas estimator and profiler
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 10:36:41 -05:00
VoR0220
fedbe0d2bc first attempt at gas estimation using a 3 round fuzzer and linking it into the profiler
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-06-12 10:36:41 -05:00
Iuri Matias
b43a766de7 cleanup module call 2018-05-30 13:38:08 -04:00
VoR0220
dc0c8c5622 fix profiler and this is ready to go
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-18 10:41:23 -05:00
VoR0220
8411f36e06 trying this
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-18 10:18:00 -05:00
VoR0220
5af4eb5b25 now profiler and other plugins will be able to benefit from undefined return output for logs only plugins
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-18 08:54:25 -05:00
Jonathan Rainville
edbc77afca hotfix console 2018-05-08 14:51:51 -04:00
VoR0220
cdf46f2b30 fix linting errors and clean up ze code
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-08 10:53:34 -05:00
VoR0220
ab53bfba0c fix linting errors
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-08 10:41:38 -05:00
VoR0220
819dec1bc3 profile me officer, here's a new module
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-08 10:30:46 -05:00