I have seen an Smart Contract that deploys new contracts, which are automatically verified in etherscan without doing anything special:
Contract contract = new Contract(a, b);
The contract is verified in Etherscan, and creates new contracts which are also verified. The project is built with Hardhat and I have been playing with it, deploying the first contract (which deploys contracts), but when I create a new contract it is not verified...
I have been researching, but I do not see anything in internet about automatic verification of Smart Contracts deployed from another Smart Contract.
I saw a hardhat verification script for an Smart Contract, deployed by the main contract. Once launched the script, next contract (deployed by the main contract) get automatically verified, because bytecode are same, just different param values. Once a child contract is verified, then next new created contracts are verified as well.