I'm going straight to the point : I want to verify a solidity contract using the solc compiler, specifically i'm using solc-js (along with the standard JSON input) option to load a remote version of the compiler. Until here no problem at all. I am able indeed to verify simple contracts such as Greeter.sol.
The problem that arise is the following: whenever a contract has an import statement such as import @openzeppelin/contracts/token/ERC20/ERC20.sol;. I cannot find a way to dynamically load the references that a contract might have.
Things I have already tried : using URLS in the input JSON --> end up in an error --> File callback import not supported
This is the creation of the JSON input file, then, what follows is the actual compilation of the contract:
I am aware that there is the possibility to add a so called "import callback" but i'm can't get it to work. The docs are really poor and I am really struggling with that.
My goal would be to dynamically load every possible import statement of the input contract.
Hope the description of my problem is detailed enough! Thanks in advance

