tate
@taytems.eth
devs using ethers v5, will u be upgrading to ethers v6? or moving to viem?
4 replies
1 recast
2 reactions
Elie
@elie
What’s the story with viem? I see good sponsors. Strong team. And no bignumber is nice. Any other major benefits to be aware of? Think I’m already on v6 ethers
2 replies
0 recast
1 reaction
tate
@taytems.eth
other benefits to viem are extra type-safety, faster ens resolution, bundle size, also used in wagmi (important if you’re already using wagmi)
1 reply
0 recast
0 reaction
Elie
@elie
Ya using wagmi. What sort of migration curve is it? How does it do ens faster
2 replies
0 recast
0 reaction
tate
@taytems.eth
migration depends on how many ethers functions you’re using in your own code. viem is fundamentally quite different to ethers in that there are no classes, and functions are generally stateless. as long as your code doesn’t depend on classes from ethers, it’s relatively simple.
1 reply
0 recast
1 reaction
tate
@taytems.eth
as for ens resolution, viem uses the universalresolver for on-chain resolution. meaning it only takes 1 RPC call for resolving name/address/text/avatar. ethers doesn’t use that so takes 4-5+ calls. it could be implemented in the future but atm support for it isn’t there.
0 reply
0 recast
1 reaction