-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"packagizing" the useCompiler
#1348
Comments
userCompiler
useCompiler
My proposal is to build this package with the idea of shipping multiple compilers in mind. For example doing something like this: https://github.com/lodash/lodash/tree/4.5.0-npm-packages. (We can actually do the same thing just by having multiple compilers under The final objective should be being able to do something like this in
And something like this in the browser
And something like this in the lambda function
|
I'm adding here more context regarding this task after analyzing #1665 and #1784 New package:
|
We use a function
useCompiler
in various places to compile contracts. This function provides a small wrapper around the solc compiler in order to download it and invoke the compilation.The code was duplicated across multiple places, namely in the tests of
lib-sourcify
, inserverless/compiler-lambda
and in the server code. In order to minimize the effort for maintenance and synchronization of these code parts, they should be moved into a public package. Basically the content ofservices/server/src/server/services/compiler/local/solidityCompiler.ts
should be the content of the new package.Tasks
The text was updated successfully, but these errors were encountered: