3.18.1 • Published 6 months ago
ethers-types v3.18.1
ethers-types
🛟 Making web3 more predictable & safer, 1 type at a time!
Install
npm install ethers-types
yarn add ethers-types
Getting Started
Import your favorite protocol's contract types directly into your TypeScript code:
import { getDefaultProvider } from "ethers";
import { MorphoAaveV3__factory } from "ethers-types/factories/protocols/morpho/aave-v3/MorphoAaveV3__factory";
import { ERC20__factory } from "ethers-types/factories/token/ERC20/ERC20__factory";
const provider = getDefaultProvider();
const dai = ERC20__factory.connect("0x6B175474E89094C44Da98b954EedeAC495271d0F", provider);
const ma3Eth = MorphoAaveV3__factory.connect("0x33333aea097c193e66081E930c33020272b33333", provider);
You can even use ethers-multicall-provider to batch your RPC calls and load responses faster!
import { getDefaultProvider } from "ethers";
import { MorphoAaveV3__factory } from "ethers-types/factories/protocols/morpho/aave-v3/MorphoAaveV3__factory";
import { ERC20__factory } from "ethers-types/factories/token/ERC20/ERC20__factory";
const provider = MulticallWrapper.wrap(getDefaultProvider());
const dai = ERC20__factory.connect("0x6B175474E89094C44Da98b954EedeAC495271d0F", provider);
dai.symbol().then(console.log);
dai.decimals().then(console.log);
3.18.1
6 months ago
3.18.0
6 months ago
3.17.3
7 months ago
3.17.2
11 months ago
3.17.0
1 year ago
3.17.1
1 year ago
3.16.0
1 year ago
3.15.1
1 year ago
3.15.0
1 year ago
3.14.0
1 year ago
3.13.0
1 year ago
3.12.0
1 year ago
3.11.0
1 year ago
3.10.0
1 year ago
3.9.0
1 year ago
3.8.0
1 year ago
3.7.0
1 year ago
3.6.0
1 year ago
3.5.0
1 year ago
3.4.0
1 year ago
3.3.2
1 year ago
3.3.1
1 year ago
3.3.0
1 year ago
3.2.1
2 years ago
3.2.0
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.0
2 years ago
2.0.0
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago