This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-45
lines changed Expand file tree Collapse file tree 4 files changed +7
-45
lines changed Original file line number Diff line number Diff line change @@ -82,27 +82,13 @@ Please go to [./docs/classes/ethereumhdkey.md](./docs/classes/ethereumhdkey.md)
82
82
83
83
## Provider Engine
84
84
85
- The Wallet can be easily plugged into [ provider-engine] ( https://github.com/metamask/provider-engine ) to provide signing:
85
+ Provider Engine is
86
+ [ not very actively maintained] ( https://github.com/MetaMask/web3-provider-engine#web3-providerengine )
87
+ and support has been removed along ` v1.0.0 ` release, see
88
+ issue [ #115 ] ( https://github.com/ethereumjs/ethereumjs-wallet/issues/115 ) for context.
86
89
87
- Node.js / ES5:
88
-
89
- ``` js
90
- const { WalletSubprovider } = require (' ethereumjs-wallet' )
91
-
92
- < engine> .addProvider (new WalletSubprovider (< wallet instance> ))
93
- ```
94
-
95
- ESM / TypeScript:
96
-
97
- ``` js
98
- import { WalletSubprovider } from ' ethereumjs-wallet'
99
-
100
- < engine> .addProvider (new WalletSubprovider (< wallet instance> ))
101
- ```
102
-
103
- Note it only supports the basic wallet. With a HD Wallet, call ` getWallet() ` first.
104
-
105
- Please go to [ ./docs/classes/walletsubprovider.md] ( ./docs/README.md ) for more info.
90
+ You can use the the old ` src/provider-engine.ts ` code (see associated PR) as some boilerplate
91
+ for your own integration if needed.
106
92
107
93
### Remarks about ` toV3 `
108
94
Original file line number Diff line number Diff line change 51
51
"hdkey" : " ^1.1.1" ,
52
52
"randombytes" : " ^2.0.6" ,
53
53
"utf8" : " ^3.0.0" ,
54
- "uuid" : " ^3.3.2" ,
55
- "web3-provider-engine" : " ^15.0.7"
54
+ "uuid" : " ^3.3.2"
56
55
},
57
56
"devDependencies" : {
58
57
"@ethereumjs/config-nyc" : " ^1.1.1" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as crypto from 'crypto'
2
2
import * as ethUtil from 'ethereumjs-util'
3
3
4
4
export { default as hdkey } from './hdkey'
5
- export { default as WalletSubprovider } from './provider-engine'
6
5
export { default as thirdparty } from './thirdparty'
7
6
8
7
const bs58check = require ( 'bs58check' )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments