Typechain 8.1.x no longer generates types for ethers-v5-target
See original GitHub issueWe use hardhat/typechain to generate TypeScript types from Solidity source code and JSON ABIs.
require('@typechain/hardhat');
const path = require('path');
typechain: {
outDir: 'src/types',
target: 'ethers-v5',
externalArtifacts: [path.join(__dirname, 'src/contracts/**/*.json')],
},
};
module.exports = config;
It stops working after upgrading to:
@typechain/ethers-v5 | ~10.0.0 -> ~10.1.0 | | | | – | – | – | – | – | – @typechain/hardhat | ~6.0.0 -> ~6.1.0 | | | | typechain | ~8.0.0 -> ~8.1.0
No errors are given, but src/types
are not generated.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[ethers-v5] Contract types not exported in generated index.ts
The index.ts only reexports the factory types, it does not export the contract ... I'm using a private npm package where the TypeChain-generated...
Read more >typechain | Yarn - Package Manager
Step by step guide. Install TypeChain with npm install --save-dev typechain and install desired target. Run typechain --target=your_target (you might need to ...
Read more >@typechain/hardhat - npm
Automatically generate TypeScript bindings for smartcontracts while using Hardhat. Installation. If you use Ethers/Waffle do: npm install --save ...
Read more >I can't get "Typechain" folder when I install dependencies ...
Run npx hardhat compile to generate the typechain folder when using hardhat with solidity. As seen in the "Tasks" section of ...
Read more >Introducing TypeChain — Typescript bindings for Ethereum ...
But the situation becomes even more complicated when you work with dynamically generated types such as smart contract wrappers.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🥇
This was added so that our new plugin, a bundle of recommended plugins, could always install Typechain and not annoy js users. I moved that logic to the toolbox itself.