Skip to content

Commit d4a65de

Browse files
committed
Merge branch '230113-consolidate-TokenDetectionController-DetectTokensController' into 231220-TokensController-v2-migration
2 parents 2575c72 + ca19f99 commit d4a65de

50 files changed

Lines changed: 2602 additions & 729 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "111.0.0",
3+
"version": "112.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {
@@ -25,7 +25,7 @@
2525
"lint:dependencies:fix": "depcheck && yarn dedupe",
2626
"lint:eslint": "eslint . --cache --ext js,ts",
2727
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix",
28-
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore",
28+
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore",
2929
"prepack": "./scripts/prepack.sh",
3030
"prepare-preview-builds": "./scripts/prepare-preview-builds.sh",
3131
"publish-previews": "yarn workspaces foreach --parallel --verbose run publish:preview",

packages/accounts-controller/CHANGELOG.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -7,82 +8,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
78
## [Unreleased]
89

910
## [10.0.0]
11+
1012
### Changed
13+
1114
- **BREAKING:** Bump `@metamask/keyring-controller` peer dependency to `^12.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
1215
- Bump `@metamask/base-controller` to `^4.1.1` ([#3821](https://github.com/MetaMask/core/pull/3821))
1316

1417
## [9.0.0]
18+
1519
### Added
20+
1621
- Add methods to support ERC-4337 accounts ([#3602](https://github.com/MetaMask/core/pull/3602))
1722
- Add getAccount action to AccountsController ([#1892](https://github.com/MetaMask/core/pull/1892))
1823

1924
### Changed
20-
- **BREAKING:** Bump `@metamask/keyring-controller` peer dependency to ^12.1.0 ([#3747](https://github.com/MetaMask/core/pull/3747), [#3810](https://github.com/MetaMask/core/pull/3810))
21-
- **BREAKING:** Bump `@metamask/snaps-controllers` peer dependency to ^4.0.0 ([#3747](https://github.com/MetaMask/core/pull/3747))
25+
26+
- **BREAKING:** Bump `@metamask/keyring-controller` peer dependency to ^12.1.0 ([#3747](https://github.com/MetaMask/core/pull/3747), [#3810](https://github.com/MetaMask/core/pull/3810))
27+
- **BREAKING:** Bump `@metamask/snaps-controllers` peer dependency to ^4.0.0 ([#3747](https://github.com/MetaMask/core/pull/3747))
2228
- Bump `@metamask/keyring-api` to ^3.0.0 ([#3747](https://github.com/MetaMask/core/pull/3747))
2329
- Bump `@metamask/utils` to `^8.3.0`([#3769](https://github.com/MetaMask/core/pull/3769))
2430

2531
### Fixed
32+
2633
- Fix quick succession of submit password causing Accounts Controller state to be cleared ([#3802](https://github.com/MetaMask/core/pull/3802))
2734

2835
## [8.0.0]
36+
2937
### Changed
38+
3039
- **BREAKING:** Bump `@metamask/keyring-controller` to ^12.0.0
3140

3241
## [7.0.1]
42+
3343
### Changed
44+
3445
- Bump snaps dependencies ([#3734](https://github.com/MetaMask/core/pull/3734))
3546

3647
## [7.0.0]
48+
3749
### Changed
50+
3851
- **BREAKING:** Bump `@metamask/keyring-controller` peer dependency from `^10.0.0` to `^11.0.0` ([#3695](https://github.com/MetaMask/core/pull/3695))
3952
- **BREAKING:** Add `@metamask/snaps-controllers` as a peer dependency ([#3607](https://github.com/MetaMask/core/pull/3607))
4053
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
4154

4255
## [6.0.0]
56+
4357
### Changed
58+
4459
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
4560
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
4661
- Bump `@metamask/keyring-controller` to ^10.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
4762

4863
## [5.0.0]
64+
4965
### Changed
66+
5067
- **BREAKING:** Bump dependency and peer dependency on `@metamask/keyring-controller` to ^9.0.0
5168
- Bump `@metamask/snaps-utils` and `@metamask/snaps-controller` to 3.2.0 ([#1917](https://github.com/MetaMask/core/pull/1917), [#1944](https://github.com/MetaMask/core/pull/1944), [#1977](https://github.com/MetaMask/core/pull/1977))
5269
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
5370
- Bump @metamask/keyring-api from 1.0.0 to 1.1.0 ([#1951](https://github.com/MetaMask/core/pull/1951))
5471

5572
## [4.0.0]
73+
5674
### Changed
75+
5776
- **BREAKING** Update the `onKeyringStateChange` and `onSnapStateChange` methods, and remove the `keyringApiEnabled` from the AccountsController ([#1839](https://github.com/MetaMask/core/pull/1839))
5877
- Add getSelectedAccount and getAccountByAddress actions to AccountsController ([#1858](https://github.com/MetaMask/core/pull/1858))
5978

6079
## [3.0.0]
80+
6181
### Changed
82+
6283
- **BREAKING:** Bump dependency on `@metamask/eth-snap-keyring` to ^1.0.0 ([#1735](https://github.com/MetaMask/core/pull/1735))
6384
- **BREAKING:** Bump dependency on `@metamask/keyring-api` to ^1.0.0 ([#1735](https://github.com/MetaMask/core/pull/1735))
6485
- **BREAKING:** Bump dependency on `@metamask/snaps-utils` to ^3.0.0 ([#1735](https://github.com/MetaMask/core/pull/1735))
6586
- Bump dependency and peer dependency on `@metamask/keyring-controller` to ^8.0.3
6687

6788
## [2.0.2]
89+
6890
### Changed
91+
6992
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
7093
- Bump dependency on `@metamask/base-controller` to ^3.2.3
7194
- Bump peer dependency on `@metamask/keyring-controller` to ^8.0.2
7295

7396
## [2.0.1]
97+
7498
### Changed
99+
75100
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
76101

77102
### Fixed
103+
78104
- Remove unused `selectedAccount` from state metadata ([#1734](https://github.com/MetaMask/core/pull/1734))
79105

80106
## [2.0.0]
107+
81108
### Changed
109+
82110
- **BREAKING:** Bump peer dependency on `@metamask/keyring-controller` to ^8.0.0
83111

84112
## [1.0.0]
113+
85114
### Added
115+
86116
- Initial release ([#1637](https://github.com/MetaMask/core/pull/1637))
87117

88118
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@10.0.0...HEAD

packages/address-book-controller/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -7,73 +8,101 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
78
## [Unreleased]
89

910
## [3.1.7]
11+
1012
### Changed
13+
1114
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
1215
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
1316
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
1417

1518
## [3.1.6]
19+
1620
### Changed
21+
1722
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
1823
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580))
1924

2025
## [3.1.5]
26+
2127
### Changed
28+
2229
- Bump `@metamask/utils` to ^8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
2330
- Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
2431
- This is not a breaking change because this controller still inherits from BaseController v1.
2532
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
2633

2734
## [3.1.4]
35+
2836
### Changed
37+
2938
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
3039
- Bump dependency on `@metamask/base-controller` to ^3.2.3
3140
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
3241

3342
## [3.1.3]
43+
3444
### Changed
45+
3546
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
3647

3748
## [3.1.2]
49+
3850
### Changed
51+
3952
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
4053

4154
## [3.1.1]
55+
4256
### Changed
57+
4358
- Bump dependency on `@metamask/base-controller` to ^3.2.1
4459
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
4560

4661
## [3.1.0]
62+
4763
### Changed
64+
4865
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
4966

5067
## [3.0.0]
68+
5169
### Changed
70+
5271
- **BREAKING:**: Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
5372
- **BREAKING:** The `addressBook` state property is now keyed by `Hex` chain ID rather than `string`, and the `chainId` property of each address book entry is also `Hex` rather than `string`.
5473
- This requires a state migration ([#1367](https://github.com/MetaMask/core/pull/1367))
5574
- **BREAKING:** The methods `delete` and `set` now except the chain ID as `Hex` rather than as a decimal string ([#1367](https://github.com/MetaMask/core/pull/1367))
5675
- Add `@metamask/utils` dependency ([#1367](https://github.com/MetaMask/core/pull/1367))
5776

5877
## [2.0.0]
78+
5979
### Removed
80+
6081
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
6182
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
6283

6384
## [1.1.0]
85+
6486
### Changed
87+
6588
- Add optional `addressType` property to address book entries ([#828](https://github.com/MetaMask/controllers/pull/828), [#1068](https://github.com/MetaMask/core/pull/1068))
6689
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
6790
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
6891

6992
## [1.0.1]
93+
7094
### Changed
95+
7196
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
7297

7398
## [1.0.0]
99+
74100
### Added
101+
75102
- Initial release
103+
76104
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
105+
77106
- `src/user/AddressBookController.ts`
78107
- `src/user/AddressBookController.test.ts`
79108

packages/announcement-controller/CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -7,46 +8,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
78
## [Unreleased]
89

910
## [5.0.2]
11+
1012
### Changed
13+
1114
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
1215

1316
## [5.0.1]
17+
1418
### Changed
19+
1520
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
1621

1722
## [5.0.0]
23+
1824
### Changed
25+
1926
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
2027
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
2128

2229
## [4.0.3]
30+
2331
### Changed
32+
2433
- Bump dependency on `@metamask/base-controller` to ^3.2.3 ([#1747](https://github.com/MetaMask/core/pull/1747))
2534

2635
## [4.0.2]
36+
2737
### Changed
38+
2839
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
2940

3041
## [4.0.1]
42+
3143
### Changed
44+
3245
- Bump dependency on `@metamask/base-controller` to ^3.2.1
3346

3447
## [4.0.0]
48+
3549
### Changed
50+
3651
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
3752

3853
## [3.0.0]
54+
3955
### Removed
56+
4057
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
4158
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
4259

4360
## [2.0.1]
61+
4462
### Changed
63+
4564
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
46-
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
65+
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
4766

4867
## [2.0.0]
68+
4969
### Changed
70+
5071
- **BREAKING:** Migrate to BaseControllerV2 ([#959](https://github.com/MetaMask/controllers/pull/959))
5172
- The announcement controller now extends `BaseControllerV2` rather than `BaseController`, which includes the following changes:
5273
- The constructor now accepts a single "args" object rather than positional parameters.
@@ -67,13 +88,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6788
- The `name` property is now readonly.
6889

6990
## [1.0.1]
91+
7092
### Changed
93+
7194
- Relax dependency on `@metamask/base-controller` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
7295

7396
## [1.0.0]
97+
7498
### Added
99+
75100
- Initial release
101+
76102
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
103+
77104
- Everything in `src/announcement`
78105

79106
All changes listed after this point were applied to this package following the monorepo conversion.

0 commit comments

Comments
 (0)