40 Commits

Author SHA1 Message Date
emizzle
d6c2035b54 feat(@embark/embark-solc): Support recursively remapping imports
Changes include:
- Before compilation, for each contract file being compiled, recursively remaps the contract's imports.
- Allowed directories for compilation updated based on the remapped import paths for the contract file.
- Support for code coverage flag.
- Fix for unhandled promise rejection when attempting to use an insufficient version of solc.
2019-02-01 16:07:58 +11:00
Jonathan Rainville
fa05706f47 fix: add link references to compiled object 2019-01-21 15:52:56 -05:00
Jonathan Rainville
722c123c72 fix: fix race condition by using the new compiler api 2019-01-18 09:01:41 -05:00
Jonathan Rainville
3dfb0ad6ab fix(compiler): fix hang when there is no error 2018-12-11 15:20:43 -05:00
Jonathan Rainville
374cc6cb6d feat: fallback to embark's solcjs when not the right version
Fixes #14
2018-12-07 10:27:26 -05:00
Jonathan Rainville
2dbbba017f fix(compiler): fix outputBinary write file 2018-11-29 11:18:03 -05:00
Jonathan Rainville
c42854f878 refactor(compiler): run only once with all files configured
Fixes #13
2018-11-29 11:18:03 -05:00
Jonathan Rainville
4ee9ac7c56 fix(compiler): adds originalFileName to compiled object 2018-11-19 13:53:25 -05:00
Iuri Matias
72f5373789
Merge pull request #12 from embark-framework/bug_fix/plugin-ignores-files
Fix remappings not working and error reporting
2018-11-18 12:28:47 -05:00
Jonathan Rainville
cf0dc1de99 review comment fixes 2018-11-16 10:20:45 -05:00
Jonathan Rainville
e9c2b0dce6 chore(readme): improve readme 2018-11-15 12:03:17 -05:00
Jonathan Rainville
2e4022a38d fix(compiler): fixes allowed paths and remappings
Fixes #9
Fixes the use of node_module and http urls
Makes sure to have all remappings before compiling
2018-11-15 12:03:17 -05:00
Jonathan Rainville
d8e281ac36 fix(compiler): display errors that before were not showing 2018-11-09 11:49:32 -05:00
Jonathan Rainville
9bd6834603 feat(solc): switch to standard JSON for remapping 2018-11-08 17:24:01 -05:00
Iuri Matias
e4838a177a
Merge pull request #10 from embark-framework/bug_fix/version-match
Check solc version and add eslintrc
2018-11-08 17:10:50 -05:00
Jonathan Rainville
1e02abf864 fix(embark-solc): stop embark when solc version too low
Fixes #8
2018-11-07 14:50:30 -05:00
Jonathan Rainville
011b344591 chore(embark-solc): add eslintrc and fix linting errors 2018-11-07 14:48:52 -05:00
Iuri Matias
fc576ab661 update to 1.0.0 1.0.0 2018-09-22 10:29:41 -04:00
Iuri Matias
6a85876498
Merge pull request #6 from embark-framework/bug_fix/undefined_binary
Fix undefined in generated .bin file
2018-09-22 10:27:01 -04:00
Richard Ramos
b0a798c466
Fix undefined in generated .bin file 2018-09-21 15:41:22 -04:00
Iuri Matias
2ad9a015fc
Merge pull request #4 from embark-framework/bug_fix/no-exit
Add options arg and do not exit on error
2018-09-15 09:36:05 -04:00
Jonathan Rainville
eb0c51fe30 do not exit on not installed 2018-09-12 09:38:03 -04:00
Jonathan Rainville
eb7a0b905c fix missing argument 2018-09-12 09:37:27 -04:00
Richard Ramos
d07d5d4b4b v number 2018-07-24 13:58:16 -04:00
Richard Ramos
456b143f56
Merge pull request #2 from embark-framework/map-paths
Add directories inside contracts/ to list of allowed paths for solc
2018-07-24 13:48:28 -04:00
Richard Ramos
f852bf3da0 Added duplicated contract warning 2018-07-24 13:37:59 -04:00
Richard Ramos
98890beb46 Filtering duplicated contracts dirs 2018-07-24 12:05:42 -04:00
Richard Ramos
21d65e8f8c Add directory list to list of allowed paths 2018-07-24 11:56:35 -04:00
Richard Ramos
3f69a5c2e4 Changes based on code review 2018-07-24 10:12:36 -04:00
Richard Ramos
31b2cfc7f6 Writing .bin after output is complete 2018-07-24 10:12:36 -04:00
Richard Ramos
74fbf9d046 Update README.md 2018-07-24 10:12:36 -04:00
Richard Ramos
34b053c8cf Can specify "outputBinary" config to gen a .bin file of contract 2018-07-24 10:12:36 -04:00
Richard Ramos
dadf7dcd32 Added keyword 2018-06-19 19:13:20 -04:00
Richard Ramos
f8be1fbea4 0.2.1 2018-06-19 19:10:21 -04:00
Richard Ramos
a7f14881fc 0.2.0 2018-06-19 19:10:15 -04:00
Richard Ramos
b75cff1184 0.1.0 2018-06-19 19:09:59 -04:00
Richard Ramos
52173fb496 0.0.6 2018-06-19 19:06:09 -04:00
Iuri Matias
536b47141d
Update README.md 2018-06-15 16:37:20 -04:00
Richard Ramos
3da50e6104 Detecting if solc is installed 2018-05-30 15:52:42 -04:00
Richard Ramos
e2a076df12 Initial version of solc plugin 2018-05-26 12:31:46 -04:00