Skip to content

Commit 2239728

Browse files
authored
Merge branch 'main' into refactor/update-allowance-logic
2 parents a81bce1 + 3656f13 commit 2239728

File tree

293 files changed

+4758
-6767
lines changed

Some content is hidden

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

293 files changed

+4758
-6767
lines changed

.github/CODEOWNERS

Lines changed: 172 additions & 183 deletions
Large diffs are not rendered by default.

.github/workflows/changelog-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ name: Check Changelog
33
on:
44
pull_request:
55
types: [opened, synchronize, labeled, unlabeled]
6-
merge_group:
76

87
jobs:
98
check_changelog:
10-
if: github.event_name != 'merge_group'
119
uses: MetaMask/github-tools/.github/workflows/changelog-check.yml@fc6fe1a3fb591f6afa61f0dbbe7698bd50fab9c7
1210
with:
1311
action-sha: fc6fe1a3fb591f6afa61f0dbbe7698bd50fab9c7

.github/workflows/ensure-blocking-pr-labels-absent.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ on:
66
- synchronize
77
- labeled
88
- unlabeled
9-
merge_group:
109

1110
jobs:
1211
ensure-blocking-pr-labels-absent:
13-
if: github.event_name != 'merge_group'
1412
runs-on: ubuntu-latest
1513
permissions:
1614
pull-requests: read

.github/workflows/main.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
merge_group:
87

98
concurrency:
109
group: ${{ github.workflow }}-${{ github.ref }}
@@ -24,17 +23,17 @@ jobs:
2423
run: ${{ steps.download-actionlint.outputs.executable }} -color
2524
shell: bash
2625

27-
# analyse-code:
28-
# name: Code scanner
29-
# needs: check-workflows
30-
# uses: ./.github/workflows/security-code-scanner.yml
31-
# permissions:
32-
# actions: read
33-
# contents: read
34-
# security-events: write
35-
# secrets:
36-
# SECURITY_SCAN_METRICS_TOKEN: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
37-
# APPSEC_BOT_SLACK_WEBHOOK: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
26+
analyse-code:
27+
name: Code scanner
28+
needs: check-workflows
29+
uses: ./.github/workflows/security-code-scanner.yml
30+
permissions:
31+
actions: read
32+
contents: read
33+
security-events: write
34+
secrets:
35+
SECURITY_SCAN_METRICS_TOKEN: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
36+
APPSEC_BOT_SLACK_WEBHOOK: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
3837

3938
lint-build-test:
4039
name: Lint, build, and test
@@ -77,7 +76,7 @@ jobs:
7776
name: All jobs complete
7877
runs-on: ubuntu-latest
7978
needs:
80-
# - analyse-code
79+
- analyse-code
8180
- lint-build-test
8281
outputs:
8382
passed: ${{ steps.set-output.outputs.passed }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v24.7.0
1+
lts/*

eslint-warning-thresholds.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
"no-shadow": 2
1616
},
1717
"packages/assets-controllers/src/CurrencyRateController.test.ts": {
18-
"import-x/order": 1,
1918
"jest/no-conditional-in-test": 1
2019
},
21-
"packages/assets-controllers/src/CurrencyRateController.ts": {
22-
"jsdoc/check-tag-names": 6
23-
},
2420
"packages/assets-controllers/src/NftController.test.ts": {
2521
"import-x/namespace": 9,
2622
"jest/no-conditional-in-test": 6
@@ -59,9 +55,6 @@
5955
"import-x/order": 2,
6056
"jest/no-conditional-in-test": 2
6157
},
62-
"packages/assets-controllers/src/TokenRatesController.test.ts": {
63-
"import-x/order": 3
64-
},
6558
"packages/assets-controllers/src/TokenRatesController.ts": {
6659
"@typescript-eslint/prefer-readonly": 1,
6760
"jsdoc/check-tag-names": 11
@@ -86,16 +79,10 @@
8679
"packages/assets-controllers/src/multicall.test.ts": {
8780
"@typescript-eslint/prefer-promise-reject-errors": 2
8881
},
89-
"packages/assets-controllers/src/token-prices-service/codefi-v2.test.ts": {
90-
"jsdoc/require-returns": 1
91-
},
9282
"packages/assets-controllers/src/token-prices-service/codefi-v2.ts": {
9383
"jsdoc/tag-lines": 2
9484
},
9585
"packages/base-controller/src/BaseController.test.ts": {
96-
"import-x/namespace": 15
97-
},
98-
"packages/base-controller/src/next/BaseController.test.ts": {
9986
"import-x/namespace": 13
10087
},
10188
"packages/build-utils/src/transforms/remove-fenced-code.test.ts": {

jest.config.packages.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ module.exports = {
8080
// Here we ensure that Jest resolves `@metamask/*` imports to the uncompiled source code for packages that live in this repo.
8181
// NOTE: This must be synchronized with the `paths` option in `tsconfig.packages.json`.
8282
moduleNameMapper: {
83-
'^@metamask/base-controller/next': [
84-
'<rootDir>/../base-controller/src/next',
85-
],
8683
'^@metamask/(.+)$': [
8784
'<rootDir>/../$1/src',
8885
// Some @metamask/* packages we are referencing aren't in this monorepo,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "641.0.0",
3+
"version": "647.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {

packages/account-tree-controller/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.0.0]
11+
1012
### Changed
1113

1214
- **BREAKING:** Use new `Messenger` from `@metamask/messenger` ([#6380](https://github.com/MetaMask/core/pull/6380))
1315
- Previously, `AccountTreeController` accepted a `RestrictedMessenger` instance from `@metamask/base-controller`.
16+
- **BREAKING:** Bump `@metamask/accounts-controller` from `^33.0.0` to `^34.0.0` ([#6962](https://github.com/MetaMask/core/pull/6962))
17+
- **BREAKING:** Bump `@metamask/keyring-controller` from `^23.0.0` to `^24.0.0` ([#6962](https://github.com/MetaMask/core/pull/6962))
18+
- **BREAKING:** Bump `@metamask/multichain-account-service` from `^1.0.0` to `^2.0.0` ([#6962](https://github.com/MetaMask/core/pull/6962))
19+
- **BREAKING:** Bump `@metamask/profile-sync-controller` from `^25.0.0` to `^26.0.0` ([#6962](https://github.com/MetaMask/core/pull/6962))
20+
- Bump `@metamask/base-controller` from `^8.4.2` to `^9.0.0` ([#6962](https://github.com/MetaMask/core/pull/6962))
1421

1522
## [1.6.0]
1623

@@ -386,7 +393,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
386393
- Initial release ([#5847](https://github.com/MetaMask/core/pull/5847))
387394
- Grouping accounts into 3 main categories: Entropy source, Snap ID, keyring types.
388395

389-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@1.6.0...HEAD
396+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@2.0.0...HEAD
397+
[2.0.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@1.6.0...@metamask/account-tree-controller@2.0.0
390398
[1.6.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@1.5.0...@metamask/account-tree-controller@1.6.0
391399
[1.5.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@1.4.2...@metamask/account-tree-controller@1.5.0
392400
[1.4.2]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@1.4.1...@metamask/account-tree-controller@1.4.2

packages/account-tree-controller/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/account-tree-controller",
3-
"version": "1.6.0",
3+
"version": "2.0.0",
44
"description": "Controller to group account together based on some pre-defined rules",
55
"keywords": [
66
"MetaMask",
@@ -47,7 +47,7 @@
4747
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
4848
},
4949
"dependencies": {
50-
"@metamask/base-controller": "^8.4.2",
50+
"@metamask/base-controller": "^9.0.0",
5151
"@metamask/messenger": "^0.3.0",
5252
"@metamask/snaps-sdk": "^9.0.0",
5353
"@metamask/snaps-utils": "^11.0.0",
@@ -58,12 +58,12 @@
5858
},
5959
"devDependencies": {
6060
"@metamask/account-api": "^0.12.0",
61-
"@metamask/accounts-controller": "^33.2.0",
61+
"@metamask/accounts-controller": "^34.0.0",
6262
"@metamask/auto-changelog": "^3.4.4",
6363
"@metamask/keyring-api": "^21.0.0",
64-
"@metamask/keyring-controller": "^23.2.0",
65-
"@metamask/multichain-account-service": "^1.6.2",
66-
"@metamask/profile-sync-controller": "^25.1.2",
64+
"@metamask/keyring-controller": "^24.0.0",
65+
"@metamask/multichain-account-service": "^2.0.0",
66+
"@metamask/profile-sync-controller": "^26.0.0",
6767
"@metamask/providers": "^22.1.0",
6868
"@metamask/snaps-controllers": "^14.0.1",
6969
"@types/jest": "^27.4.1",
@@ -77,10 +77,10 @@
7777
},
7878
"peerDependencies": {
7979
"@metamask/account-api": "^0.12.0",
80-
"@metamask/accounts-controller": "^33.0.0",
81-
"@metamask/keyring-controller": "^23.0.0",
82-
"@metamask/multichain-account-service": "^1.0.0",
83-
"@metamask/profile-sync-controller": "^25.0.0",
80+
"@metamask/accounts-controller": "^34.0.0",
81+
"@metamask/keyring-controller": "^24.0.0",
82+
"@metamask/multichain-account-service": "^2.0.0",
83+
"@metamask/profile-sync-controller": "^26.0.0",
8484
"@metamask/providers": "^22.0.0",
8585
"@metamask/snaps-controllers": "^14.0.0",
8686
"webextension-polyfill": "^0.10.0 || ^0.11.0 || ^0.12.0"

0 commit comments

Comments
 (0)