Replies: 1 comment 1 reply
-
Factories are also exported as part of the import { HifiPool__factory } from "@hifi/amm/dist/types"; Does this make this issue any better? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love the automatic generation of factories that is included with
@typechain/ethers-v5
. But the fact that the factories are nested in thetypes
directory makes for deeply nested paths. For example, this is what I ended up writing in the usage guide for one of the Hifi packages:That is rather verbose, and in a way it feels like a contract factory should not be placed under a directory called "types". It's not a basic type - it's a class that can create objects (instances).
My feature request is to let us provide a custom path for the
factories
output directory, just like we can currently do that for the basic types (via theoutDir
config option in Hardhat).Beta Was this translation helpful? Give feedback.
All reactions