Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for _extend #1182

Closed
Anemy opened this issue Nov 18, 2017 · 6 comments
Closed

Documentation for _extend #1182

Anemy opened this issue Nov 18, 2017 · 6 comments

Comments

@Anemy
Copy link

Anemy commented Nov 18, 2017

Introduced in PR #229

It's a pretty useful method and I only stumbled across it through a comment on a pr.
It may help people out to document it somewhere.

@Anemy Anemy changed the title Documentation for _extend Documentation for _extend Nov 18, 2017
@frozeman
Copy link
Contributor

Its described in the 1.0 here: http://web3js.readthedocs.io/en/1.0/web3.html#extend

And the old one has an example here: https://github.com/ethereum/go-ethereum/blob/master/internal/web3ext/web3ext.go#L36-L63

@yxliang01
Copy link
Contributor

@frozeman This documentation for _extend is now gone. Is there anything happened? Is it unavailable in the latest 1.0?

@ashish10677
Copy link

Even I can't find the extend function. Where is it now? Please help.

@yxliang01
Copy link
Contributor

yxliang01 commented Feb 20, 2019

@ashish10677 Actually I found it. So, they are in process of changing the web3 1.0 structure. We now should create a "Web3Module" if we want to add new methods, the extend way is deprecated. See https://medium.com/@samuel_91690/web3-js-v1-0-0-beta-38-8d2bb6e73d0b .

@ghost
Copy link

ghost commented Mar 12, 2019

@yxliang01 Hello, may I ask is there any source code for https://www.npmjs.com/package/web3-parity? Thanks.

@yxliang01
Copy link
Contributor

@btenterprise2020 It's not yet available. But anyways, I don't think we should hi-jack this issue here. If you want to discuss something about it, maybe can have a chat at https://gitter.im/yxliang01/community . PM there is also fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants