Open smartcontracts opened 2 years ago
+1, I've run into issues with bundle size and conflicting ethers packages. This would at least prevent the number of packages that need to be cross-installed.
+1 this would be a nice improvement to remove "ethers" dependency
Few things that may help with reducing bundle sizes further:
ERC20__factory.connect(address, provider)
, it also touches the bytecode hence bundler has to include it. This might need a simple ERC20__contract
which only touches abi.
Hi! Optimism is in the process of trying to reduce bundle sizes for down-stream users of our contract packages. TypeChain currently imports
ethers
in its entirety into typing files but could instead import specific sub-packages. For example, contract type files import the following:This can be replaced with