mojtaba-eshghie / HighGuard

The runtime monitoring tool for smart contracts business logic.
https://dl.acm.org/doi/abs/10.1145/3691620.3695356
MIT License
6 stars 2 forks source link

Add caching capability for fetching specific Solidity compiler version #104

Closed mojtaba-eshghie closed 6 months ago

mojtaba-eshghie commented 6 months ago

Right now every time a contract is deployed for monitoring and exploitation (on defined environments under CI/envs), the exact compiler version matched is downloaded and used. We need a caching mechanism to cache already pulled compilers in a directory such as cache/compilers. This will most probably only affect the following file: https://github.com/mojtaba-eshghie/HighGuard/blob/eb149b58a25fd020109054a4ad901811b86c623b/lib/web3/deploy.js#L46C16-L46C34