-1

I have contract compiled via hardhat and types generated via typechain. In my typescript code I am using await MyContract__factory.deploy() to deploy the contract.

Is there a way / library / etc to use the contract factory (which contains the ABI and bytecode) + the source *.sol files to verify the contract on Etherscan?

Ideally I would like to avoid dependencies on hardhat (@nomiclabs/hardhat-etherscan) so that verification can be performed with only the .sol and typechain files.

Milk
  • 421
  • 2
  • 11

1 Answers1

1

You can possibly go through the plugin's source code to see what it does and adjust it to your needs. Or then check Etherscan's APIs directly and use those.

Lauri Peltonen
  • 29,391
  • 3
  • 20
  • 57
  • Thanks. Working on this now. Will release as a general solution if I don't find anything else along the way – Milk Apr 13 '23 at 19:23