After the previous refactor to remove the adapter pattern from the SDK, the next step is to migrate the usage of the ethers library to viem.
Viem is designed with performance in mind, providing optimized code for interacting with the blockchain. This can result in faster execution times for certain blockchain operations. It adopts as well a modular design, allowing developers to import only what they need. This can lead to smaller bundle sizes in web applications when compared to ethers, which tends to be more monolithic
Proposed solution
Remove ethers from the whole repo and substitute it for viem. This includes:
Context / issue
After the previous refactor to remove the adapter pattern from the SDK, the next step is to migrate the usage of the
ethers
library toviem
.Viem is designed with performance in mind, providing optimized code for interacting with the blockchain. This can result in faster execution times for certain blockchain operations. It adopts as well a modular design, allowing developers to import only what they need. This can lead to smaller bundle sizes in web applications when compared to
ethers
, which tends to be more monolithicProposed solution
Remove ethers from the whole repo and substitute it for viem. This includes:
Additional context
Research document Related update tests issue