@metamask-previews/wallet 20.0.0-preview-35f016caa → 21.0.0-preview-72009a9

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,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [21.0.0]
11
+
10
12
  ### Added
11
13
 
12
14
  - **BREAKING:** Add `NetworkEnablementController` to the default initialization configurations ([#10997](https://github.com/MetaMask/core/pull/10997))
@@ -15,11 +17,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
17
 
16
18
  ### Changed
17
19
 
20
+ - **BREAKING:** Delegate `SentinelApiService:simulateTransactions` from the wallet root messenger to `TransactionController` ([#9476](https://github.com/MetaMask/core/pull/9476))
21
+ - `TransactionController` now performs transaction simulation through this action.
22
+ - The wallet does not construct `SentinelApiService`. Clients must register that action on the Wallet messenger.
18
23
  - Add `@metamask/network-enablement-controller` as a dependency ([#10997](https://github.com/MetaMask/core/pull/10997))
19
24
  - Bump `@metamask/claims-controller` from `^1.0.4` to `^1.1.0` ([#11092](https://github.com/MetaMask/core/pull/11092))
20
- - Bump `@metamask/shield-controller` from `^7.0.5` to `^7.1.0` ([#11092](https://github.com/MetaMask/core/pull/11092))
21
- - Bump `@metamask/subscription-controller` from `^15.0.0` to `^15.1.1` ([#11092](https://github.com/MetaMask/core/pull/11092), [#11120](https://github.com/MetaMask/core/pull/11120))
25
+ - Bump `@metamask/shield-controller` from `^7.0.5` to `^7.1.1` ([#11092](https://github.com/MetaMask/core/pull/11092), [#11203](https://github.com/MetaMask/core/pull/11203))
26
+ - Bump `@metamask/subscription-controller` from `^15.0.0` to `^15.1.2` ([#11092](https://github.com/MetaMask/core/pull/11092), [#11120](https://github.com/MetaMask/core/pull/11120), [#11203](https://github.com/MetaMask/core/pull/11203))
27
+ - Bump `@metamask/transaction-controller` from `^72.2.1` to `^73.0.0` ([#11154](https://github.com/MetaMask/core/pull/11154), [#11203](https://github.com/MetaMask/core/pull/11203))
22
28
  - Bump `@metamask/utils` from `^12.0.0` to `^12.0.1` ([#11107](https://github.com/MetaMask/core/pull/11107))
29
+ - Bump `@metamask/permission-controller` from `^14.0.0` to `^14.1.0` ([#11157](https://github.com/MetaMask/core/pull/11157))
30
+ - Bump `@metamask/network-enablement-controller` from `^7.0.2` to `^7.1.0` ([#11203](https://github.com/MetaMask/core/pull/11203))
23
31
 
24
32
  ## [20.0.0]
25
33
 
@@ -438,7 +446,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
438
446
 
439
447
  - Initial release ([#8838](https://github.com/MetaMask/core/pull/8838))
440
448
 
441
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/wallet@20.0.0...HEAD
449
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/wallet@21.0.0...HEAD
450
+ [21.0.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@20.0.0...@metamask/wallet@21.0.0
442
451
  [20.0.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@19.1.0...@metamask/wallet@20.0.0
443
452
  [19.1.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@19.0.0...@metamask/wallet@19.1.0
444
453
  [19.0.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@18.0.1...@metamask/wallet@19.0.0
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-controller.d.ts","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAElE,YAAY,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAEvE,eAAO,MAAM,qBAAqB,EAAE,2BAA2B,CAC7D,qBAAqB,EACrB,8BAA8B,CA+C/B,CAAC"}
1
+ {"version":3,"file":"transaction-controller.d.ts","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAElE,YAAY,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAEvE,eAAO,MAAM,qBAAqB,EAAE,2BAA2B,CAC7D,qBAAqB,EACrB,8BAA8B,CAgD/B,CAAC"}
@@ -33,6 +33,7 @@ export const transactionController = {
33
33
  'NetworkController:getNetworkClientRegistry',
34
34
  'NetworkController:getState',
35
35
  'RemoteFeatureFlagController:getState',
36
+ 'SentinelApiService:simulateTransactions',
36
37
  ],
37
38
  events: [
38
39
  'AccountActivityService:transactionUpdated',
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-controller.js","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAMzE,MAAM,CAAC,MAAM,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,MAAM,EAAE,YAAY,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;QAElD,OAAO,IAAI,qBAAqB,CAAC;YAC/B,GAAG,IAAI;YACP,YAAY;YACZ,SAAS;YACT,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IACD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAmC,IAAI,SAAS,CAAC;YAC9D,SAAS,EAAE,uBAAuB;YAClC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,uCAAuC;gBACvC,6BAA6B;gBAC7B,+BAA+B;gBAC/B,uCAAuC;gBACvC,4BAA4B;gBAC5B,4CAA4C;gBAC5C,mCAAmC;gBACnC,gDAAgD;gBAChD,2CAA2C;gBAC3C,wCAAwC;gBACxC,4CAA4C;gBAC5C,4BAA4B;gBAC5B,sCAAsC;aACvC;YACD,MAAM,EAAE;gBACN,2CAA2C;gBAC3C,2FAA2F;gBAE3F,+BAA+B;aAChC;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport type { TransactionControllerMessenger } from '@metamask/transaction-controller';\nimport { TransactionController } from '@metamask/transaction-controller';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { TransactionControllerInstanceOptions } from './types.js';\n\nexport const transactionController: InitializationConfiguration<\n TransactionController,\n TransactionControllerMessenger\n> = {\n name: 'TransactionController',\n reference: TransactionController,\n init: ({ state, messenger, options }) => {\n const { disableSwaps = false, ...rest } = options;\n\n return new TransactionController({\n ...rest,\n disableSwaps,\n messenger,\n state,\n });\n },\n getMessenger: (parent) => {\n const messenger: TransactionControllerMessenger = new Messenger({\n namespace: 'TransactionController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'AccountsController:getSelectedAccount',\n 'AccountsController:getState',\n 'ApprovalController:addRequest',\n 'GasFeeController:fetchGasFeeEstimates',\n 'KeyringController:getState',\n 'KeyringController:signEip7702Authorization',\n 'KeyringController:signTransaction',\n 'NetworkController:findNetworkClientIdByChainId',\n 'NetworkController:getEIP1559Compatibility',\n 'NetworkController:getNetworkClientById',\n 'NetworkController:getNetworkClientRegistry',\n 'NetworkController:getState',\n 'RemoteFeatureFlagController:getState',\n ],\n events: [\n 'AccountActivityService:transactionUpdated',\n // TODO: Replace with `NetworkController:stateChanged` once TransactionController migrates.\n\n 'NetworkController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
1
+ {"version":3,"file":"transaction-controller.js","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAMzE,MAAM,CAAC,MAAM,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,MAAM,EAAE,YAAY,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;QAElD,OAAO,IAAI,qBAAqB,CAAC;YAC/B,GAAG,IAAI;YACP,YAAY;YACZ,SAAS;YACT,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IACD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAmC,IAAI,SAAS,CAAC;YAC9D,SAAS,EAAE,uBAAuB;YAClC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,uCAAuC;gBACvC,6BAA6B;gBAC7B,+BAA+B;gBAC/B,uCAAuC;gBACvC,4BAA4B;gBAC5B,4CAA4C;gBAC5C,mCAAmC;gBACnC,gDAAgD;gBAChD,2CAA2C;gBAC3C,wCAAwC;gBACxC,4CAA4C;gBAC5C,4BAA4B;gBAC5B,sCAAsC;gBACtC,yCAAyC;aAC1C;YACD,MAAM,EAAE;gBACN,2CAA2C;gBAC3C,2FAA2F;gBAE3F,+BAA+B;aAChC;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport type { TransactionControllerMessenger } from '@metamask/transaction-controller';\nimport { TransactionController } from '@metamask/transaction-controller';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { TransactionControllerInstanceOptions } from './types.js';\n\nexport const transactionController: InitializationConfiguration<\n TransactionController,\n TransactionControllerMessenger\n> = {\n name: 'TransactionController',\n reference: TransactionController,\n init: ({ state, messenger, options }) => {\n const { disableSwaps = false, ...rest } = options;\n\n return new TransactionController({\n ...rest,\n disableSwaps,\n messenger,\n state,\n });\n },\n getMessenger: (parent) => {\n const messenger: TransactionControllerMessenger = new Messenger({\n namespace: 'TransactionController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'AccountsController:getSelectedAccount',\n 'AccountsController:getState',\n 'ApprovalController:addRequest',\n 'GasFeeController:fetchGasFeeEstimates',\n 'KeyringController:getState',\n 'KeyringController:signEip7702Authorization',\n 'KeyringController:signTransaction',\n 'NetworkController:findNetworkClientIdByChainId',\n 'NetworkController:getEIP1559Compatibility',\n 'NetworkController:getNetworkClientById',\n 'NetworkController:getNetworkClientRegistry',\n 'NetworkController:getState',\n 'RemoteFeatureFlagController:getState',\n 'SentinelApiService:simulateTransactions',\n ],\n events: [\n 'AccountActivityService:transactionUpdated',\n // TODO: Replace with `NetworkController:stateChanged` once TransactionController migrates.\n\n 'NetworkController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/wallet",
3
- "version": "20.0.0-preview-35f016caa",
3
+ "version": "21.0.0-preview-72009a9",
4
4
  "description": "Provides a shared framework for building MetaMask wallets",
5
5
  "keywords": [
6
6
  "Ethereum",
@@ -67,17 +67,17 @@
67
67
  "@metamask/logging-controller": "^10.0.0",
68
68
  "@metamask/messenger": "^3.0.0",
69
69
  "@metamask/network-controller": "^37.1.1",
70
- "@metamask/network-enablement-controller": "^7.0.2",
70
+ "@metamask/network-enablement-controller": "^7.1.0",
71
71
  "@metamask/passkey-controller": "^4.1.0",
72
- "@metamask/permission-controller": "^14.0.0",
72
+ "@metamask/permission-controller": "^14.1.0",
73
73
  "@metamask/remote-feature-flag-controller": "^7.0.0",
74
74
  "@metamask/scure-bip39": "^2.1.1",
75
75
  "@metamask/seedless-onboarding-controller": "^12.0.0",
76
76
  "@metamask/selected-network-controller": "^27.0.0",
77
- "@metamask/shield-controller": "^7.1.0",
77
+ "@metamask/shield-controller": "^7.1.1",
78
78
  "@metamask/storage-service": "^2.0.0",
79
- "@metamask/subscription-controller": "^15.1.1",
80
- "@metamask/transaction-controller": "^72.2.1",
79
+ "@metamask/subscription-controller": "^15.1.2",
80
+ "@metamask/transaction-controller": "^73.0.0",
81
81
  "@metamask/utils": "^12.0.1"
82
82
  },
83
83
  "devDependencies": {