wighawag / hardhat-deploy-ethers

MIT License
70 stars 25 forks source link

feat: add typechain support to factory functions #5

Closed TomAFrench closed 3 years ago

TomAFrench commented 3 years ago

Following on from #4, I've added the same typechain support for contract factories and also applied these types to the tests.

wighawag commented 3 years ago

Cool, thanks for adding the types to the tests. this is very useful. Could you remove the typechain via .gitignore (and if needed ensure they are generated before running the test) ?

wighawag commented 3 years ago

Thanks @TomAFrench

By the way, I am planning to move hardhat-deploy-ethers away from being a fork of https://github.com/nomiclabs/hardhat/tree/master/packages/hardhat-ethers

The plan is to make hardhat-deploy-ethers an extension of hardhat-ethers It is not fully possible due to some missing features in hardhat in regard to plugin capabilities

Why I mention that here, is that once hardhat-deploy-ethers become simply an extension to add hardhat-deploy specific function like ethers.getContract the other functions will be coming from hardhat-ethers and so the changes made here and in the other PR, would have to be ported over to hardhat-ethers

heri16 commented 3 years ago

@wighawag Has this PR been released on npm?

wighawag commented 3 years ago

@heri16 thanks for the reminder

I just published "0.3.0-beta.8" that contains it