{"id":15696185,"url":"https://github.com/rubilmax/ethers-types","last_synced_at":"2025-05-06T20:45:32.872Z","repository":{"id":173084691,"uuid":"648115549","full_name":"Rubilmax/ethers-types","owner":"Rubilmax","description":"🛟 Making web3 more predictable \u0026 safer, 1 type at a time!","archived":false,"fork":false,"pushed_at":"2025-01-09T17:08:50.000Z","size":1378,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T01:26:23.540Z","etag":null,"topics":["blockchain","contracts","erc20","ethers","evm","protocol","provider","smart-contracts","types","typescript","web3"],"latest_commit_sha":null,"homepage":"https://github.com/Rubilmax/ethers-types","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rubilmax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T08:39:41.000Z","updated_at":"2025-01-09T17:08:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2acacee-f6f0-4f03-ba2d-9c91870c8fdc","html_url":"https://github.com/Rubilmax/ethers-types","commit_stats":null,"previous_names":["rubilmax/ethers-types"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubilmax%2Fethers-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubilmax%2Fethers-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubilmax%2Fethers-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubilmax%2Fethers-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rubilmax","download_url":"https://codeload.github.com/Rubilmax/ethers-types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769128,"owners_count":21801373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","contracts","erc20","ethers","evm","protocol","provider","smart-contracts","types","typescript","web3"],"created_at":"2024-10-03T19:08:13.038Z","updated_at":"2025-05-06T20:45:32.846Z","avatar_url":"https://github.com/Rubilmax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ethers-types\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n[![Commitizen Friendly][commitizen-img]][commitizen-url]\n[![Semantic Release][semantic-release-img]][semantic-release-url]\n\n\u003e 🛟 Making web3 more predictable \u0026 safer, 1 type at a time!\n\n## Install\n\n```bash\nnpm install ethers-types\n```\n\n```bash\nyarn add ethers-types\n```\n\n---\n\n## Getting Started\n\nImport your favorite protocol's contract types directly into your TypeScript code:\n\n```typescript\nimport { getDefaultProvider } from \"ethers\";\nimport { MorphoAaveV3__factory } from \"ethers-types/factories/protocols/morpho/aave-v3/MorphoAaveV3__factory\";\nimport { ERC20__factory } from \"ethers-types/factories/token/ERC20/ERC20__factory\";\n\nconst provider = getDefaultProvider();\n\nconst dai = ERC20__factory.connect(\"0x6B175474E89094C44Da98b954EedeAC495271d0F\", provider);\nconst ma3Eth = MorphoAaveV3__factory.connect(\"0x33333aea097c193e66081E930c33020272b33333\", provider);\n```\n\nYou can even use [ethers-multicall-provider](https://github.com/Rubilmax/ethers-multicall-provider) to batch your RPC calls and load responses faster!\n\n```typescript\nimport { getDefaultProvider } from \"ethers\";\nimport { MorphoAaveV3__factory } from \"ethers-types/factories/protocols/morpho/aave-v3/MorphoAaveV3__factory\";\nimport { ERC20__factory } from \"ethers-types/factories/token/ERC20/ERC20__factory\";\n\nconst provider = MulticallWrapper.wrap(getDefaultProvider());\n\nconst dai = ERC20__factory.connect(\"0x6B175474E89094C44Da98b954EedeAC495271d0F\", provider);\n\ndai.symbol().then(console.log);\ndai.decimals().then(console.log);\n```\n\n[build-img]: https://github.com/Rubilmax/ethers-types/actions/workflows/release.yml/badge.svg\n[build-url]: https://github.com/Rubilmax/ethers-types/actions/workflows/release.yml\n[downloads-img]: https://img.shields.io/npm/dt/ethers-types\n[downloads-url]: https://www.npmtrends.com/ethers-types\n[npm-img]: https://img.shields.io/npm/v/ethers-types\n[npm-url]: https://www.npmjs.com/package/ethers-types\n[issues-img]: https://img.shields.io/github/issues/Rubilmax/ethers-types\n[issues-url]: https://github.com/Rubilmax/ethers-types/issues\n[semantic-release-img]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]: https://github.com/semantic-release/semantic-release\n[commitizen-img]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]: http://commitizen.github.io/cz-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubilmax%2Fethers-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubilmax%2Fethers-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubilmax%2Fethers-types/lists"}