Registry
Explore community-led codemods to migrate, optimize, and transform your codebase.
Ready to contribute?
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
EtherMod — automatically migrate ethers.js v5 to v6. Handles utils/providers namespace flattening, BigNumber → bigint, Web3Provider → BrowserProvider, and import cleanup.
Build your own codemod and share it with the community.
1 import { ethers } from "ethers";
2 import { formatEther } from "ethers/lib/utils";
3
4 const provider = new ethers.providers.JsonRpcProvider("https://rpc.url");
5 const amount = ethers.BigNumber.from("1000");
6 const zero = ethers.constants.AddressZero;
7 const hash = ethers.constants.HashZero;
8 const gas = await provider.getGasPrice();
9 const encoded = ethers.utils.formatBytes32String("hello");
10 const decoded = ethers.utils.parseBytes32String(bytes);
11