aragon / radspec

🤘 Radspec is a safe interpreter for Ethereum's NatSpec
MIT License
139 stars 34 forks source link

alternitives to web3.js #85

Closed jvluso closed 4 years ago

jvluso commented 4 years ago

Web3.js is a very large dependency. It would be nice for some applications, like frame and for a radspec metamask plugin to not need it. Would you be interested in a refactor of radspec that uses an alternative like ethers.js instead of web3?

sohkai commented 4 years ago

I'm not sure ethers.js would be any smaller and in fact... quite a large portion of the dependency size already comes from ethers.js due to web3.js@1 now relying on ethers' abi module (see https://bundlephobia.com/result?p=radspec@1.6.1).

We only really use the abi encoder, some utils, and web3.eth.call, so we may be have to shave some size off.

But neither of those applications, Frame or metamask plugins, really need an optimization in bundle size AFAIK (maybe the metamask plugin if it's loaded per-site?).

sohkai commented 4 years ago

Closing for now; we will evaluate moving to ethers in the future.