Alex Browne
ef61c3543f
Fix linter errors
2018-06-14 16:38:21 -07:00
Alex Browne
897560745a
De-duplicate code by refactoring subprovider classes
2018-06-14 16:33:09 -07:00
Alex Browne
d9292a70bf
Remove unused variables and other small fixes
2018-06-14 16:00:24 -07:00
Alex Browne
a9c23b7c28
Reverse order of stack trace to match behavior of most other language stack traces
2018-06-14 15:50:54 -07:00
Alex Browne
263bfb1bda
Fix a bug in revert_trace.ts
2018-06-14 15:46:59 -07:00
Alex Browne
7ab921669b
Introduce subprovider for printing revert stack traces
2018-06-14 13:58:54 -07:00
perissology
7a41a5249f
Collect coverage for provided sources
...
When solidity generates source maps during contract compilation, the
contracts are referred to by an id, which corresponds to an array index.
We may not want to cover all sources that were included in a compilation,
but because we use array indexes (vs. the id that is provided by solidity
compiler) to map the contract to the sourceMap, the provided sourceCodes
array must include the code at the correct index. This can result in
empty slots in the sourceCodes array.
This commit allows the coverage to only be collected for the contracts
with provided sourceCode.
2018-06-14 11:17:04 -07:00
Alex Browne
82743cca92
Rename _coverageCollector -> _profilerCollector in TraceCollectionSubprovider
2018-06-12 15:46:41 -07:00
Alex Browne
d0c348e595
Refactor sol-cov to de-duplicate code for coverage and profiling
2018-06-12 15:40:18 -07:00
Alex Browne
627ea6c860
Rename computeCoverageAsync -> computeSingleTraceCoverageAsync
2018-06-12 14:11:11 -07:00
Alex Browne
bcc76b3764
Fix linter errors
2018-06-12 14:09:42 -07:00
Alex Browne
33f0669100
Refactor sol-cov to avoid keeping traceInfo in memory
2018-06-12 12:42:14 -07:00
Leonid Logvinov
787015f537
Upgrade solidity-parser-entlr 0.2.11 => 0.2.12
2018-06-12 10:22:15 -07:00
Leonid Logvinov
387c80e00a
Merge pull request #690 from 0xProject/feature/truffle-sol-cov-fixes
...
Sol-cov fixes
2018-06-11 21:55:38 -07:00
Leonid Logvinov
05c914691f
Add CHANGELOGs
2018-06-11 18:12:32 -07:00
Leonid Logvinov
94398d70f4
Speed-up sol-cov
2018-06-11 18:01:33 -07:00
Leonid Logvinov
f4a61b4c70
Don't throw when no config file is found
2018-06-11 16:10:56 -07:00
Fabio Berger
bc0ae6be31
Merge pull request #684 from 0xProject/fix/contract-wrappers/exchangeTransferSimulator
...
Move ExchangeTransferSimulator & OrderValidationUtils to Order-Utils
2018-06-12 00:14:19 +02:00
Fabio Berger
e1879ef4d9
Fix no-unused-variable tslint rule to include parameters and fix issues
2018-06-11 23:42:30 +02:00
Leonid Logvinov
e0c0584c59
Add EmitStatement to ASTVisitor
2018-06-11 11:14:49 -07:00
Leonid Logvinov
927ccc489c
Fix a bug in SolCompilerArtifacts adapter config overriding
2018-06-11 10:28:30 -07:00
Leonid Logvinov
cdb165af7f
Remove some copy-paste code
2018-06-08 14:56:46 -07:00
Leonid Logvinov
1c3dc757c3
Fix typos
2018-06-08 14:56:45 -07:00
Leonid Logvinov
b6c8d8e971
Await fake transactions
2018-06-08 14:56:45 -07:00
Leonid Logvinov
ab94b0b231
Fix a typo
2018-06-08 14:56:45 -07:00
Leonid Logvinov
760bab8f86
Implement SolidityProfiler & adapt sol-cov to work with Geth
2018-06-08 14:56:45 -07:00
Alex Browne
05fe8792ea
Merge pull request #676 from 0xProject/feature/mocha-source-maps
...
Use source-map-support package to include correct line numbers in mocha
2018-06-07 11:55:47 -07:00
Alex Browne
d299458084
Use source-map-support package to include correct line numbers in mocha
2018-06-06 16:54:20 -07:00
fragosti
037912ccab
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/improve-linting
2018-06-06 10:20:35 -07:00
Fabio Berger
271fa26890
merge v2-prototype
2018-06-06 12:31:30 +02:00
Fabio Berger
787eec8be4
Merge v2-prototype
2018-06-06 11:30:57 +02:00
Fabio Berger
25f62daf14
- Rename watch to watch_without_deps in sub-packages, so dev's don't confuse running watch from root dir, with sub-package dir
...
- stop using special prebuild script name and run pre_build steps for `watch` and `build` commands
- Remove `clean` step from `build`/`watch`
2018-06-05 15:38:40 +02:00
Fabio Berger
86a6a5b826
Replace - with _ in yarn script name so that we are consistent across yarn script names
2018-06-05 12:20:23 +02:00
fragosti
9778695b4a
Try enabling no-unused-variable...
2018-06-04 19:48:21 -07:00
Alex Browne
c4538cada7
Don't automatically rebuild when running yarn test
2018-06-04 14:13:17 -07:00
Leonid Logvinov
a2fc9a964b
Fix linter errors
2018-05-31 11:19:18 -07:00
Leonid Logvinov
fa3d011f68
Add ethereum-types to extraFileIncludes
2018-05-31 11:04:05 -07:00
Leonid Logvinov
a7fc9caacb
Introduce ethereum-types package
2018-05-31 11:04:05 -07:00
Leonid Logvinov
1a3958ed60
Remove some types
2018-05-31 10:20:36 -07:00
Leonid Logvinov
bf18a90da7
Upgrade solidity parser
2018-05-23 11:21:33 -07:00
Leonid Logvinov
2ddd53b355
Fix trace test
2018-05-23 10:49:08 -07:00
Leonid Logvinov
c9aef16649
Fix linter issues
2018-05-23 10:39:56 -07:00
Leonid Logvinov
ebc750d5bf
Address feedback
2018-05-22 17:41:48 -07:00
Leonid Logvinov
d49f2c40ae
Parse compiler.json in SolCompilerArtifactsAdapter
2018-05-22 16:41:50 -07:00
Leonid Logvinov
8c7f0902c0
Add a more verbose comment for self-destruct
2018-05-22 16:29:10 -07:00
Leonid Logvinov
6e0aef5f2b
Fix depth tracking in a tracer
2018-05-22 15:27:18 -07:00
Leonid Logvinov
127b3e7d60
Fix sol-compiler version
2018-05-22 15:27:17 -07:00
Leonid Logvinov
9740199870
Fix sol-cov tests
2018-05-22 15:27:17 -07:00
Leonid Logvinov
06be580d2c
Fix a bug in CALL-like opcode handling
2018-05-22 15:27:17 -07:00
Leonid Logvinov
6540343f45
Remove trace.json
2018-05-22 15:27:17 -07:00