Xianny
7423028fea
Replace lodash with built-ins where possible to reduce bundle size ( #1766 )
...
* add tslint rule to disallow lodash.isUndefined
* add tslint rule to disallow lodash.isNull
* apply fixes
2019-04-10 09:36:32 -07:00
Leonid Logvinov
fa36c91bd6
Remove legacy entries from AST Visitor
2019-03-20 14:50:26 +01:00
Leonid Logvinov
8369bcb605
Fix linter issues
2019-02-28 22:37:32 -08:00
Leonid Logvinov
46bc5463ca
Change the way we access the stack in traces
2019-02-28 20:19:05 -08:00
Leonid Logvinov
808ce969d9
Fix a bug with OpCode gas costs being incorrect or NaN
2019-02-28 16:53:59 -08:00
Leonid Logvinov
16f8339f3c
Add HEX_BASE to constants
2019-02-28 16:52:18 -08:00
Leonid Logvinov
25d68c3904
Add opCodeToGasCost and opCodeToParamToStackOffset to constants
2019-02-28 16:51:29 -08:00
Leonid Logvinov
77ad8e1a80
Fix a bug when TruffleArtifactAdapter wasn't correctly parsing solc config in the pre 5.0 version of trufle
2019-02-28 16:46:08 -08:00
Leonid Logvinov
40a4b4fa7a
Add an explanatory comment
2019-02-27 12:28:41 -08:00
Leonid Logvinov
f21a9d16d0
Fix a bug when TruffleArtifactAdapter was incorrectly parsing the truffle config of the newest version
2019-02-26 16:16:44 -08:00
Leonid Logvinov
3f0db92be6
Fix prettier
2019-02-26 14:50:34 -08:00
Leonid Logvinov
d2dc64aa2d
Rename idx to index
2019-02-26 13:25:26 -08:00
Fabio B
edb2a34c51
Update packages/sol-tracing-utils/src/utils.ts
...
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-02-26 13:13:56 -08:00
Leonid Logvinov
c3b758845d
Refactor structLogs normalization to handle ganache
2019-02-26 10:55:58 -08:00
Leonid Logvinov
4d770549fc
Fix stack content reporting in custom JS tracer
2019-02-26 10:55:40 -08:00
Leonid Logvinov
462a61da73
Move structLogs normalization right after we fetch the trace
2019-02-26 10:54:00 -08:00
Leonid Logvinov
7067d4a499
Fix prettier
2019-02-25 12:53:42 -08:00
Leonid Logvinov
4169a41eda
Rename traceInfo.data to traceInfo.dataIfExists
2019-02-25 12:40:10 -08:00
Leonid Logvinov
eda8dc278b
Remove excesive exports
2019-02-22 18:01:19 -08:00
Leonid Logvinov
23a7ffb167
Fix linter
2019-02-22 17:35:14 -08:00
Leonid Logvinov
83b5a2709d
Remove commented code
2019-02-22 16:57:50 -08:00
Leonid Logvinov
04d8f46ff3
Major sol-profiler overhaul
2019-02-22 16:16:03 -08:00
Fabio Berger
1fa82c1077
Fix up missing Provider interfaces and refactor providerUtils.standardizeOrThrow()
2019-02-19 22:34:31 -08:00
Fabio Berger
5db20bbbe8
Add support for EIP1193 providers and clean up provider standardization logic
2019-02-18 15:12:29 -08:00
Leonid Logvinov
4febabd3e7
Merge pull request #1583 from reserve-protocol/development
...
Fix default gas limit for fake txs in TraceCollectionSubprovider
2019-02-05 12:28:05 +01:00
Jeremy Schlatter
3d2ed57c08
Hook eth_sendRawTransaction in addition to eth_sendTransaction
2019-02-04 14:33:13 -08:00
Jeremy Schlatter
d0b0c4a917
Fix default gas limit for fake txs in TraceCollectionSubprovider
...
This hex string is required to be prefixed with '0x'. If it does not have that
prefix, then the call to unmarshalTxData below will fail with:
BigNumber Error: new BigNumber() not a number: 5b8d80
This default value is overridden if the incoming call already has a gas
estimate, in which case the parse error above does not happen. This is probably
why the error wasn't previously noticed.
2019-02-04 13:22:36 -08:00
Jeremy Schlatter
76a1ff7c40
fix typo
2019-01-31 12:35:26 -08:00
Leonid Logvinov
ea5e78b217
Improve error messages when unable to find bytecode
2019-01-30 14:12:31 +01:00
Leonid Logvinov
e23f90e41c
Fix the cannot read property range of null bug
2019-01-30 14:04:19 +01:00
Leonid Logvinov
3e910c0e03
Refactor out isInterfaceContract
2019-01-22 21:20:02 +01:00
Leonid Logvinov
7c47c52fac
Fix a typo
2019-01-22 21:11:55 +01:00
Fabio B
19f929761b
Update packages/sol-tracing-utils/src/collect_coverage_entries.ts
...
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-01-22 15:10:05 +01:00
Leonid Logvinov
7015fc4dbc
Fix tests
2019-01-22 13:02:16 +01:00
Leonid Logvinov
e5c4390489
Fix a bug when some parts of the profiling report were missing because of the coverage ignore lines
2019-01-21 16:32:12 +01:00
Leonid Logvinov
61910f264c
Print reasonable warnings on bytecode collisions
2019-01-21 15:55:06 +01:00
Leonid Logvinov
ddb0e29253
SolCompilerArtifactAdapter now doesn't return the ContractData for interfaces
2019-01-21 15:52:37 +01:00
Leonid Logvinov
9d9ab2f1ee
Cache bytecode lookup
2019-01-21 15:44:08 +01:00
Leonid Logvinov
ce65ac0c1c
SolCompilerArtifactsAdapter now uses SolResolver under the hood which allows to resolve NPM dependencies properly
2019-01-21 15:28:39 +01:00
Leonid Logvinov
8b69d918a9
Fix linter
2019-01-17 15:38:09 +01:00
Fabio B
92ec4f5772
Update packages/sol-tracing-utils/src/trace_collection_subprovider.ts
...
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-01-17 15:06:42 +01:00
Leonid Logvinov
fcdd0de9ee
Fix/simplify handling of revert trace snippets
2019-01-17 14:37:15 +01:00
Leonid Logvinov
4c5bde1b54
Fix a bug when TraceCollectionSubprovider was hanging on the fake Geth snapshot transaction
2019-01-17 14:36:23 +01:00
Leonid Logvinov
83f77a2d56
Fix a bug when a custom Geth tracer didn't return stack entries for DELEGATECALL
2019-01-17 14:28:16 +01:00
Fabio B
64d99dc07c
Update packages/sol-tracing-utils/src/trace_collection_subprovider.ts
...
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-01-15 14:44:52 +01:00
Leonid Logvinov
63a63543be
Make mapping namings direct
2019-01-15 13:37:10 +01:00
Leonid Logvinov
75a4bbc5f2
Remove unused tslint disable
2019-01-15 12:09:48 +01:00
Leonid Logvinov
c2ec4174b7
Revert "Remove logAsyncErrors hack"
...
This reverts commit 7ea274b7316ddc40298a66278a14a735cfd314de.
2019-01-15 12:09:17 +01:00
Leonid Logvinov
7ea274b731
Remove logAsyncErrors hack
2019-01-15 11:55:06 +01:00
Leonid Logvinov
d9675ad6d3
Refactor logAsyncErrors to follow our conventions
2019-01-15 11:48:04 +01:00