TypeChain
TypeChain copied to clipboard
🔌 TypeScript bindings for Ethereum smart contracts
The TypeChain Hardhat plugin seems incompatible with [hardhat-exposed](https://github.com/frangio/hardhat-exposed). Using the instructions here I could reproduce the issue: https://github.com/frangio/hardhat-exposed/issues/9#issuecomment-1124249292 The stack trace points to TypeChain code so you may have a...
This is admittedly a very edge case, but anyway: if you have a Hardhat project with a single, empty contract: ```solidity contract Foo {} ``` And you generate the types,...
When importing `import "@0x/utils/blabla.sol";` there is an error: ```ts SyntaxError: An identifier or keyword cannot immediately follow a numeric literal. (4:19) 2 | /* tslint:disable */ 3 | /* eslint-disable...
Can be replicated with below repo. https://github.com/penandlim/TestVyperPlugins After successfully generating types, there are typescript errors in `build/typechain/factories/HelloVyper.vy/HelloVyper__factory.ts`. Due to this type error, running test task results in errors. ``` npm...
If I run `npx hardhat clean` followed by `npx hardhat test` I receive the following: ```bash % npx hardhat test Generating typings for: 60 artifacts in dir: ./types for target:...
Fails to compile the output when conflicting events contain multi dimensional arrays inside. ## Example Source ```solidity event BatchUpdate( address indexed operator, address[][] accounts, bytes32[] access ); event BatchUpdate( address...
I have some contracts using a library structure data storage, compiled using an older version of Solidity, but which throw an error asking me to make a report here. In...
In the [description of @truffle/contract](https://www.npmjs.com/package/@truffle/contract) under "Calling getters" the documentation makes clear you can do something like ```js instance.getValue.call().then(function(val) { // val represents the `value` storage object in the solidity...
Config - TypechainUserConfig is missing options interface does not need contractName and shouldn't have it. - ethers.interface is a representation of ABI standard and abstracts them - contract and contractFactory...
I was able to replicate this with typechain 8.0.0, @nomiclabs/hardhat-vyper 3.0.0, https://github.com/penandlim/TestVyperPlugins Compiling the repo will result in correct artifacts from both solidity and vyper files but only has types...