Comments (2)
No, there's no caching of any kind. loadRemoteVersion()
is a very simple function that makes a HTTP request and stores the obtained binary in memory, without ever writing it to disk:
Lines 43 to 69 in d6fee85
Each time you execute it, it will download the binary again.
If you want to load multiple versions and manage them in some way, you have do it on your own. The loaded binary as a JS module is passed to the callback you provide. Then you can do whatever you want with it.
Running
solcjs --version
, I only see the newest version available:
Yes, this returns only the version of the current binary. And by "current" I mean the one that is stored in soljson.js
on disk. solcjs
is a simple command-line wrapper that mimics the interface of native solc
.
It never downloads the compiler, neither via loadRemoteVersion()
or otherwise. Latest binary is always included in the npm package and if you're using the repo directly, you can use downloadCurrentVersion.ts
to download that binary. solcjs
works with only one version at at time but you can freely swap the file on disk for something else between invocations.
from solc-js.
Okay, thanks for the info! @cameel
from solc-js.
Related Issues (20)
- Switch to audited and fast version of sha3/keccak HOT 4
- Exception in an import callback leaves the compiler in an inconsistent state, leading to `You shall not have another CompilerStack aside me` error on next compilation HOT 13
- Different bytecode when compiling from both solc-js and remix IDE
- cannot uninstall HOT 2
- OSError: [Errno 86] Bad CPU type in executable: HOT 1
- Cannot remap openzeppelin to use when I compile with solc HOT 1
- Release types on npm HOT 3
- Handle standard JSON transalation with `outputSelection` for `=<0.4.19`
- Failed to compile large json inputs HOT 1
- Callback not supported... HOT 2
- Identifier already declared HOT 2
- solc-select is out of date. Please run `solc-select upgrade` HOT 1
- Support for `--metadata` flag HOT 4
- 0.8.23 npm release won't install on Windows due to a stray dependency HOT 3
- findImports fallback on webWorkers not working HOT 5
- loadRemoteVersion is not working with jest test HOT 3
- 'Expected Pragma' error in solc but same code compiles in remix HOT 1
- Improvement: `content` not a key in solidity `input description` in solidity official doc (except under `destructible`) .
- Web3ContractError: code couldn't be stored HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solc-js.