-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Geth "Miner and DAG" management API's implemented (web3-eth-miner) #2660
Conversation
If this has to get to through web3.eth you have to add this to the Eth typings class or it wont be exposed in the global scope when ts users try to use it. https://github.com/ethereum/web3.js/blob/1.0/packages/web3-eth/types/index.d.ts Please add it |
Why it is so, web3-eth-miner is an independent module and it has it's own typing class. So, what's the need to check type in web3-eth. This is same for web3-eth-personal and all other modules. I think this dependency should be removed. Correct me if I am wrong @joshstevens19. |
@princesinha19 @nivida that's not true. If you want to get to In code you have to write I am not saying check types in If you remove this it will break and not compile in typescript. You need to expose this on the web3-eth typing's interface if you want people to be able to get to it through there like personal. If you don't want We can not remove |
@joshstevens19 can you please review this too? |
…8/web3.js into miner-methods
You have some conflicts to resolve @princesinha19 👍 |
…cesinha18/web3.js into miner-methods" This reverts commit 17f94a6, reversing changes made to 97963f2.
Description
I implemented all miner management API's provided by geth.
https://github.com/ethereum/go-ethereum/wiki/Management-APIs#list-of-management-apis
Fixes #2637 Partially
Type of change
Checklist:
npm run test
in the root folder with success and extended the tests if necessary.npm run build
in the root folder and tested it in the browser and with node.npm run dtslint
in the root folder and tested that all my types are correct