This solution is good but I’m always the special case ! Let me explain.
I deploy my contract using ethers. I only compile them whit truffle. Now for all the unique contract that I deploy myself, your solution is good.
But then when I release my app at large, the user will be able to deploy precompiled contract from there app. Technically they dont see the contract even if I provide them the source.
And I went to all the effort to make my app 0 dev knowledge friendly. The users can deploy an use contract within a few clicks. So I’m looking for a way to get these contract verified.
They will all be identical.
I don’t mind going the extra mile and save the trouble to all my users, this is the goal.
Should I start looking into etherscan api for that or do you have another solution for me?
Even if it mean’s I have some files that are deploy with my app only to validate the source code with import that are not conflicting.