Uniswap / v3-sdk

🛠 An SDK for building applications on top of Uniswap V3
MIT License
544 stars 416 forks source link

Package Size #186

Closed Florian-S-A-W closed 10 months ago

Florian-S-A-W commented 10 months ago

The sdk has a very large package size because of the ABI imports, mainly from swaprouter contracts (around 11 MB) and also from the periphery contracts (around 5 MB). Most of that is the bytedata from the contract creation and not the actual ABI.

Is there any reason to keep it like this? The JSON files are currently compiled when the package is published as far as I understand. If there is no good reason to do that, it would be possible to reduce the package size by 80-90% by hardcoding the ABIs. The contracts are not upgradable anyways.