[ethers] generate typings for the contract-returning methods
See original GitHub issueThe ethers main Contract
class has a bunch of methods that return another instance of the same contract, e.g.
connect(signerOrProvider: Signer | Provider | string): Contract;
attach(addressOrName: string): Contract;
These methods should also be included in the generated .d.ts
contract files, so the returned instances are also properly typed. What do you think? I could maybe make a PR for this some time.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Improve typings for contracts #1384 - ethers-io/ethers.js - GitHub
Hey Richard! I am the maintainer of TypeChain and I would like to forward some ideas that would greatly improve our generated types....
Read more >Documentation - Ethers.js
Returns a new Wallet with a random private key, generated from cryptographically secure entropy sources. If the current environment does not have a...
Read more >TypeChain target Ethers-v5 - npm
Contract typings. The main files generated by this target are <contract-name>.ts . They declare typesafe interfaces for your contracts on top of ...
Read more >Contracts — ethers.js 4.0.0 documentation
A Non-Constant method requires a fee (in Ether) to be paid, but may perform any ... Binary Interface (ABI), usually generated from the...
Read more >Introducing TypeChain — Typescript bindings for Ethereum ...
... typings build in. For others you can find typings on npm. ... It uses provided ABI files to generate typed wrappers for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @quezak for this! I will release new verion tmrw.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
The funding of 200.0 DAI (200.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @quezak.