@metamask-previews/eth-hd-keyring 7.0.1-preview-e65b905 → 7.0.4-84e4c35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.0.4]
11
+
12
+ ### Changed
13
+
14
+ - Bump `sinon` and `@types/sinon` to latest versions ([#51](https://github.com/MetaMask/accounts/pull/51))
15
+ - Add `syncpack` and sync dependencies ([#53](https://github.com/metamask/accounts/pull/53))
16
+
17
+ ## [7.0.3]
18
+
19
+ ### Changed
20
+
21
+ - Bump `@metamask/*` and `@lavamoat/*` dependencies ([#46](https://github.com/MetaMask/accounts/pull/46))
22
+ - Move `deepmerge` to `devDependencies` ([#44](https://github.com/MetaMask/accounts/pull/44))
23
+
24
+ ## [7.0.2]
25
+
26
+ ### Changed
27
+
28
+ - Convert to monorepo
29
+ - Package name does not change (`@metamask/eth-hd-keyring`) and sources have been moved to: `packages/keyring-eth-hd`.
30
+ - You can find all the changes [here](https://github.com/MetaMask/accounts/compare/6da58b4...38794aa).
31
+
10
32
  ## [7.0.1]
11
33
 
12
34
  ### Changed
@@ -108,7 +130,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
108
130
  - Deserialize method (and `HdKeyring` constructor by extension) can no longer be passed an options object containing a value for `numberOfAccounts` if it is not also containing a value for `mnemonic`.
109
131
  - Package name changed from `eth-hd-keyring` to `@metamask/eth-hd-keyring`.
110
132
 
111
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.1...HEAD
133
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.4...HEAD
134
+ [7.0.4]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.3...@metamask/eth-hd-keyring@7.0.4
135
+ [7.0.3]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.2...@metamask/eth-hd-keyring@7.0.3
136
+ [7.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.1...@metamask/eth-hd-keyring@7.0.2
112
137
  [7.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@7.0.0...@metamask/eth-hd-keyring@7.0.1
113
138
  [7.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@6.0.2...@metamask/eth-hd-keyring@7.0.0
114
139
  [6.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-hd-keyring@6.0.1...@metamask/eth-hd-keyring@6.0.2
package/index.js CHANGED
@@ -1,6 +1,3 @@
1
- const { HDKey } = require('ethereum-cryptography/hdkey');
2
- const { keccak256 } = require('ethereum-cryptography/keccak');
3
- const { bytesToHex } = require('ethereum-cryptography/utils');
4
1
  const {
5
2
  privateToPublic,
6
3
  publicToAddress,
@@ -8,8 +5,6 @@ const {
8
5
  arrToBufArr,
9
6
  bufferToHex,
10
7
  } = require('@ethereumjs/util');
11
- const bip39 = require('@metamask/scure-bip39');
12
- const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
13
8
  const {
14
9
  concatSig,
15
10
  decrypt,
@@ -19,7 +14,12 @@ const {
19
14
  signTypedData,
20
15
  SignTypedDataVersion,
21
16
  } = require('@metamask/eth-sig-util');
17
+ const bip39 = require('@metamask/scure-bip39');
18
+ const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
22
19
  const { assertIsHexString, remove0x } = require('@metamask/utils');
20
+ const { HDKey } = require('ethereum-cryptography/hdkey');
21
+ const { keccak256 } = require('ethereum-cryptography/keccak');
22
+ const { bytesToHex } = require('ethereum-cryptography/utils');
23
23
 
24
24
  // Options:
25
25
  const hdPathString = `m/44'/60'/0'/0`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/eth-hd-keyring",
3
- "version": "7.0.1-preview-e65b905",
3
+ "version": "7.0.4-84e4c35",
4
4
  "description": "A simple standard interface for a seed phrase generated set of Ethereum accounts.",
5
5
  "keywords": [
6
6
  "ethereum",
@@ -30,21 +30,21 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@ethereumjs/util": "^8.1.0",
33
- "@metamask/eth-sig-util": "^7.0.0",
34
- "@metamask/scure-bip39": "^2.1.0",
35
- "@metamask/utils": "^8.1.0",
36
- "deepmerge": "^4.2.2",
33
+ "@metamask/eth-sig-util": "^7.0.3",
34
+ "@metamask/scure-bip39": "^2.1.1",
35
+ "@metamask/utils": "^9.2.1",
37
36
  "ethereum-cryptography": "^2.1.2"
38
37
  },
39
38
  "devDependencies": {
40
- "@ethereumjs/tx": "^4.0.1",
41
- "@lavamoat/allow-scripts": "^3.0.4",
42
- "@lavamoat/preinstall-always-fail": "^1.0.0",
39
+ "@ethereumjs/tx": "^4.2.0",
40
+ "@lavamoat/allow-scripts": "^3.2.1",
41
+ "@lavamoat/preinstall-always-fail": "^2.1.0",
43
42
  "@metamask/auto-changelog": "^3.4.4",
44
43
  "@metamask/bip39": "^4.0.0",
45
44
  "@metamask/eth-hd-keyring": "4.0.1",
46
- "@types/jest": "^29.4.0",
47
- "jest": "^29.4.3"
45
+ "@types/jest": "^29.5.12",
46
+ "deepmerge": "^4.2.2",
47
+ "jest": "^29.5.0"
48
48
  },
49
49
  "engines": {
50
50
  "node": "^18.18 || >=20"
package/test/index.js CHANGED
@@ -1,3 +1,16 @@
1
+ const {
2
+ TransactionFactory,
3
+ Transaction: EthereumTx,
4
+ } = require('@ethereumjs/tx');
5
+ const {
6
+ isValidAddress,
7
+ bufferToHex,
8
+ toBuffer,
9
+ ecrecover,
10
+ pubToAddress,
11
+ } = require('@ethereumjs/util');
12
+ const oldMMForkBIP39 = require('@metamask/bip39');
13
+ const OldHdKeyring = require('@metamask/eth-hd-keyring');
1
14
  const {
2
15
  normalize,
3
16
  personalSign,
@@ -8,21 +21,8 @@ const {
8
21
  encrypt,
9
22
  } = require('@metamask/eth-sig-util');
10
23
  const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
11
- const oldMMForkBIP39 = require('@metamask/bip39');
12
- const {
13
- isValidAddress,
14
- bufferToHex,
15
- toBuffer,
16
- ecrecover,
17
- pubToAddress,
18
- } = require('@ethereumjs/util');
19
- const {
20
- TransactionFactory,
21
- Transaction: EthereumTx,
22
- } = require('@ethereumjs/tx');
23
-
24
- const OldHdKeyring = require('@metamask/eth-hd-keyring');
25
24
  const { keccak256 } = require('ethereum-cryptography/keccak');
25
+
26
26
  const HdKeyring = require('..');
27
27
 
28
28
  // Sample account: