@metamask/wallet 12.0.1 → 12.0.3
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 +25 -1
- package/dist/initialization/instances/accounts-controller/accounts-controller.cjs +0 -1
- package/dist/initialization/instances/accounts-controller/accounts-controller.cjs.map +1 -1
- package/dist/initialization/instances/accounts-controller/accounts-controller.mjs +0 -1
- package/dist/initialization/instances/accounts-controller/accounts-controller.mjs.map +1 -1
- package/dist/initialization/instances/config-registry-controller/config-registry-controller.cjs +0 -1
- package/dist/initialization/instances/config-registry-controller/config-registry-controller.cjs.map +1 -1
- package/dist/initialization/instances/config-registry-controller/config-registry-controller.mjs +0 -1
- package/dist/initialization/instances/config-registry-controller/config-registry-controller.mjs.map +1 -1
- package/dist/initialization/instances/network-controller/network-controller.cjs +3 -1
- package/dist/initialization/instances/network-controller/network-controller.cjs.map +1 -1
- package/dist/initialization/instances/network-controller/network-controller.d.cts.map +1 -1
- package/dist/initialization/instances/network-controller/network-controller.d.mts.map +1 -1
- package/dist/initialization/instances/network-controller/network-controller.mjs +3 -1
- package/dist/initialization/instances/network-controller/network-controller.mjs.map +1 -1
- package/dist/initialization/instances/shield-controller/shield-controller.cjs +0 -2
- package/dist/initialization/instances/shield-controller/shield-controller.cjs.map +1 -1
- package/dist/initialization/instances/shield-controller/shield-controller.mjs +0 -2
- package/dist/initialization/instances/shield-controller/shield-controller.mjs.map +1 -1
- package/dist/initialization/instances/transaction-controller/transaction-controller.cjs +0 -1
- package/dist/initialization/instances/transaction-controller/transaction-controller.cjs.map +1 -1
- package/dist/initialization/instances/transaction-controller/transaction-controller.mjs +0 -1
- package/dist/initialization/instances/transaction-controller/transaction-controller.mjs.map +1 -1
- package/package.json +12 -12
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
|
+
## [12.0.3]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/claims-controller` from `^0.6.0` to `^0.6.1` ([#9972](https://github.com/MetaMask/core/pull/9972))
|
|
15
|
+
- Bump `@metamask/shield-controller` from `^6.0.0` to `^6.0.1` ([#9972](https://github.com/MetaMask/core/pull/9972))
|
|
16
|
+
- Bump `@metamask/subscription-controller` from `^8.0.0` to `^8.0.1` ([#9972](https://github.com/MetaMask/core/pull/9972))
|
|
17
|
+
- Bump `@metamask/remote-feature-flag-controller` from `^6.0.0` to `^6.1.1` ([#9980](https://github.com/MetaMask/core/pull/9980), [#10129](https://github.com/MetaMask/core/pull/10129))
|
|
18
|
+
- Bump `@metamask/transaction-controller` from `^69.6.1` to `^69.8.1` ([#10046](https://github.com/MetaMask/core/pull/10046), [#10080](https://github.com/MetaMask/core/pull/10080), [#10124](https://github.com/MetaMask/core/pull/10124))
|
|
19
|
+
- Bump `@metamask/utils` from `^11.11.0` to `^11.12.0` ([#10076](https://github.com/MetaMask/core/pull/10076))
|
|
20
|
+
|
|
21
|
+
## [12.0.2]
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Bump `@metamask/passkey-controller` from `^3.0.0` to `^3.1.0`. ([#9952](https://github.com/MetaMask/core/pull/9952))
|
|
26
|
+
- Bump `@metamask/transaction-controller` from `^69.5.2` to `^69.6.1` ([#9960](https://github.com/MetaMask/core/pull/9960), [#9969](https://github.com/MetaMask/core/pull/9969))
|
|
27
|
+
- Bump `@metamask/accounts-controller` from `^39.1.0` to `^39.1.1` ([#9969](https://github.com/MetaMask/core/pull/9969))
|
|
28
|
+
- Bump `@metamask/config-registry-controller` from `^3.0.0` to `^3.1.0` ([#9969](https://github.com/MetaMask/core/pull/9969))
|
|
29
|
+
- Bump `@metamask/gas-fee-controller` from `^26.3.1` to `^26.3.2` ([#9969](https://github.com/MetaMask/core/pull/9969))
|
|
30
|
+
- Bump `@metamask/network-controller` from `^35.0.1` to `^36.0.0` ([#9969](https://github.com/MetaMask/core/pull/9969))
|
|
31
|
+
|
|
10
32
|
## [12.0.1]
|
|
11
33
|
|
|
12
34
|
### Changed
|
|
@@ -197,7 +219,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
197
219
|
|
|
198
220
|
- Initial release ([#8838](https://github.com/MetaMask/core/pull/8838))
|
|
199
221
|
|
|
200
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/wallet@12.0.
|
|
222
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/wallet@12.0.3...HEAD
|
|
223
|
+
[12.0.3]: https://github.com/MetaMask/core/compare/@metamask/wallet@12.0.2...@metamask/wallet@12.0.3
|
|
224
|
+
[12.0.2]: https://github.com/MetaMask/core/compare/@metamask/wallet@12.0.1...@metamask/wallet@12.0.2
|
|
201
225
|
[12.0.1]: https://github.com/MetaMask/core/compare/@metamask/wallet@12.0.0...@metamask/wallet@12.0.1
|
|
202
226
|
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@11.0.0...@metamask/wallet@12.0.0
|
|
203
227
|
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/wallet@10.0.0...@metamask/wallet@11.0.0
|
|
@@ -23,7 +23,6 @@ exports.accountsController = {
|
|
|
23
23
|
events: [
|
|
24
24
|
// AccountsController subscribes to :stateChange internally; the
|
|
25
25
|
// delegation must match until that package migrates to :stateChanged.
|
|
26
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
27
26
|
'KeyringController:stateChange',
|
|
28
27
|
'SnapAccountService:accountAssetListUpdated',
|
|
29
28
|
'SnapAccountService:accountBalancesUpdated',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/accounts-controller/accounts-controller.ts"],"names":[],"mappings":";;;AAAA,uEAGuC;AACvC,mDAAgD;AASnC,QAAA,kBAAkB,GAG3B;IACF,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAC7B,IAAI,wCAAkB,CAAC;QACrB,KAAK;QACL,SAAS;KACV,CAAC;IACJ,YAAY,EAAE,CAAC,MAAoD,EAAE,EAAE;QACrE,MAAM,2BAA2B,GAC/B,IAAI,qBAAS,CAAC;YACZ,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,qCAAqC;aACtC;YACD,MAAM,EAAE;gBACN,gEAAgE;gBAChE,sEAAsE;
|
|
1
|
+
{"version":3,"file":"accounts-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/accounts-controller/accounts-controller.ts"],"names":[],"mappings":";;;AAAA,uEAGuC;AACvC,mDAAgD;AASnC,QAAA,kBAAkB,GAG3B;IACF,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAC7B,IAAI,wCAAkB,CAAC;QACrB,KAAK;QACL,SAAS;KACV,CAAC;IACJ,YAAY,EAAE,CAAC,MAAoD,EAAE,EAAE;QACrE,MAAM,2BAA2B,GAC/B,IAAI,qBAAS,CAAC;YACZ,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,qCAAqC;aACtC;YACD,MAAM,EAAE;gBACN,gEAAgE;gBAChE,sEAAsE;gBAEtE,+BAA+B;gBAC/B,4CAA4C;gBAC5C,2CAA2C;gBAC3C,+CAA+C;gBAC/C,8CAA8C;aAC/C;SACF,CAAC,CAAC;QAEH,OAAO,2BAA2B,CAAC;IACrC,CAAC;CACF,CAAC","sourcesContent":["import {\n AccountsController,\n AccountsControllerMessenger,\n} from '@metamask/accounts-controller';\nimport { Messenger } from '@metamask/messenger';\n\nimport type {\n DefaultActions,\n DefaultEvents,\n RootMessenger,\n} from '../../defaults.js';\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport const accountsController: InitializationConfiguration<\n AccountsController,\n AccountsControllerMessenger\n> = {\n name: 'AccountsController',\n init: ({ state, messenger }) =>\n new AccountsController({\n state,\n messenger,\n }),\n getMessenger: (parent: RootMessenger<DefaultActions, DefaultEvents>) => {\n const accountsControllerMessenger: AccountsControllerMessenger =\n new Messenger({\n namespace: 'AccountsController',\n parent,\n });\n\n parent.delegate({\n messenger: accountsControllerMessenger,\n actions: [\n 'KeyringController:getState',\n 'KeyringController:getKeyringsByType',\n ],\n events: [\n // AccountsController subscribes to :stateChange internally; the\n // delegation must match until that package migrates to :stateChanged.\n\n 'KeyringController:stateChange',\n 'SnapAccountService:accountAssetListUpdated',\n 'SnapAccountService:accountBalancesUpdated',\n 'SnapAccountService:accountTransactionsUpdated',\n 'MultichainNetworkController:networkDidChange',\n ],\n });\n\n return accountsControllerMessenger;\n },\n};\n"]}
|
|
@@ -20,7 +20,6 @@ export const accountsController = {
|
|
|
20
20
|
events: [
|
|
21
21
|
// AccountsController subscribes to :stateChange internally; the
|
|
22
22
|
// delegation must match until that package migrates to :stateChanged.
|
|
23
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
24
23
|
'KeyringController:stateChange',
|
|
25
24
|
'SnapAccountService:accountAssetListUpdated',
|
|
26
25
|
'SnapAccountService:accountBalancesUpdated',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/accounts-controller/accounts-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,sCAAsC;AACvC,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAShD,MAAM,CAAC,MAAM,kBAAkB,GAG3B;IACF,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAC7B,IAAI,kBAAkB,CAAC;QACrB,KAAK;QACL,SAAS;KACV,CAAC;IACJ,YAAY,EAAE,CAAC,MAAoD,EAAE,EAAE;QACrE,MAAM,2BAA2B,GAC/B,IAAI,SAAS,CAAC;YACZ,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,qCAAqC;aACtC;YACD,MAAM,EAAE;gBACN,gEAAgE;gBAChE,sEAAsE;
|
|
1
|
+
{"version":3,"file":"accounts-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/accounts-controller/accounts-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,sCAAsC;AACvC,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAShD,MAAM,CAAC,MAAM,kBAAkB,GAG3B;IACF,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAC7B,IAAI,kBAAkB,CAAC;QACrB,KAAK;QACL,SAAS;KACV,CAAC;IACJ,YAAY,EAAE,CAAC,MAAoD,EAAE,EAAE;QACrE,MAAM,2BAA2B,GAC/B,IAAI,SAAS,CAAC;YACZ,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,qCAAqC;aACtC;YACD,MAAM,EAAE;gBACN,gEAAgE;gBAChE,sEAAsE;gBAEtE,+BAA+B;gBAC/B,4CAA4C;gBAC5C,2CAA2C;gBAC3C,+CAA+C;gBAC/C,8CAA8C;aAC/C;SACF,CAAC,CAAC;QAEH,OAAO,2BAA2B,CAAC;IACrC,CAAC;CACF,CAAC","sourcesContent":["import {\n AccountsController,\n AccountsControllerMessenger,\n} from '@metamask/accounts-controller';\nimport { Messenger } from '@metamask/messenger';\n\nimport type {\n DefaultActions,\n DefaultEvents,\n RootMessenger,\n} from '../../defaults.js';\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport const accountsController: InitializationConfiguration<\n AccountsController,\n AccountsControllerMessenger\n> = {\n name: 'AccountsController',\n init: ({ state, messenger }) =>\n new AccountsController({\n state,\n messenger,\n }),\n getMessenger: (parent: RootMessenger<DefaultActions, DefaultEvents>) => {\n const accountsControllerMessenger: AccountsControllerMessenger =\n new Messenger({\n namespace: 'AccountsController',\n parent,\n });\n\n parent.delegate({\n messenger: accountsControllerMessenger,\n actions: [\n 'KeyringController:getState',\n 'KeyringController:getKeyringsByType',\n ],\n events: [\n // AccountsController subscribes to :stateChange internally; the\n // delegation must match until that package migrates to :stateChanged.\n\n 'KeyringController:stateChange',\n 'SnapAccountService:accountAssetListUpdated',\n 'SnapAccountService:accountBalancesUpdated',\n 'SnapAccountService:accountTransactionsUpdated',\n 'MultichainNetworkController:networkDidChange',\n ],\n });\n\n return accountsControllerMessenger;\n },\n};\n"]}
|
package/dist/initialization/instances/config-registry-controller/config-registry-controller.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-registry-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/config-registry-controller/config-registry-controller.ts"],"names":[],"mappings":";;;AAAA,qFAAgF;AAEhF,mDAAgD;AAMnC,QAAA,wBAAwB,GAGjC;IACF,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,qDAAwB,CAAC;QAC3B,SAAS;QACT,KAAK;QACL,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAsC,IAAI,qBAAS,CAAC;YACjE,SAAS,EAAE,0BAA0B;YACrC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,sCAAsC;gBACtC,sCAAsC;aACvC;YACD,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,wBAAwB;
|
|
1
|
+
{"version":3,"file":"config-registry-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/config-registry-controller/config-registry-controller.ts"],"names":[],"mappings":";;;AAAA,qFAAgF;AAEhF,mDAAgD;AAMnC,QAAA,wBAAwB,GAGjC;IACF,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,qDAAwB,CAAC;QAC3B,SAAS;QACT,KAAK;QACL,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAsC,IAAI,qBAAS,CAAC;YACjE,SAAS,EAAE,0BAA0B;YACrC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,sCAAsC;gBACtC,sCAAsC;aACvC;YACD,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,wBAAwB;gBAExB,yCAAyC;aAC1C;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { ConfigRegistryController } from '@metamask/config-registry-controller';\nimport type { ConfigRegistryControllerMessenger } from '@metamask/config-registry-controller';\nimport { Messenger } from '@metamask/messenger';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { ConfigRegistryControllerInstanceOptions } from './types.js';\n\nexport const configRegistryController: InitializationConfiguration<\n ConfigRegistryController,\n ConfigRegistryControllerMessenger\n> = {\n name: 'ConfigRegistryController',\n init: ({ state, messenger, options }) =>\n new ConfigRegistryController({\n messenger,\n state,\n pollingInterval: options.pollingInterval,\n fallbackConfig: options.fallbackConfig,\n }),\n getMessenger: (parent) => {\n const messenger: ConfigRegistryControllerMessenger = new Messenger({\n namespace: 'ConfigRegistryController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'KeyringController:getState',\n 'RemoteFeatureFlagController:getState',\n 'ConfigRegistryApiService:fetchConfig',\n ],\n events: [\n 'KeyringController:unlock',\n 'KeyringController:lock',\n\n 'RemoteFeatureFlagController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
|
package/dist/initialization/instances/config-registry-controller/config-registry-controller.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-registry-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/config-registry-controller/config-registry-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,6CAA6C;AAEhF,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAMhD,MAAM,CAAC,MAAM,wBAAwB,GAGjC;IACF,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,wBAAwB,CAAC;QAC3B,SAAS;QACT,KAAK;QACL,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAsC,IAAI,SAAS,CAAC;YACjE,SAAS,EAAE,0BAA0B;YACrC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,sCAAsC;gBACtC,sCAAsC;aACvC;YACD,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,wBAAwB;
|
|
1
|
+
{"version":3,"file":"config-registry-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/config-registry-controller/config-registry-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,6CAA6C;AAEhF,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAMhD,MAAM,CAAC,MAAM,wBAAwB,GAGjC;IACF,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,wBAAwB,CAAC;QAC3B,SAAS;QACT,KAAK;QACL,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAAsC,IAAI,SAAS,CAAC;YACjE,SAAS,EAAE,0BAA0B;YACrC,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,4BAA4B;gBAC5B,sCAAsC;gBACtC,sCAAsC;aACvC;YACD,MAAM,EAAE;gBACN,0BAA0B;gBAC1B,wBAAwB;gBAExB,yCAAyC;aAC1C;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { ConfigRegistryController } from '@metamask/config-registry-controller';\nimport type { ConfigRegistryControllerMessenger } from '@metamask/config-registry-controller';\nimport { Messenger } from '@metamask/messenger';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { ConfigRegistryControllerInstanceOptions } from './types.js';\n\nexport const configRegistryController: InitializationConfiguration<\n ConfigRegistryController,\n ConfigRegistryControllerMessenger\n> = {\n name: 'ConfigRegistryController',\n init: ({ state, messenger, options }) =>\n new ConfigRegistryController({\n messenger,\n state,\n pollingInterval: options.pollingInterval,\n fallbackConfig: options.fallbackConfig,\n }),\n getMessenger: (parent) => {\n const messenger: ConfigRegistryControllerMessenger = new Messenger({\n namespace: 'ConfigRegistryController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'KeyringController:getState',\n 'RemoteFeatureFlagController:getState',\n 'ConfigRegistryApiService:fetchConfig',\n ],\n events: [\n 'KeyringController:unlock',\n 'KeyringController:lock',\n\n 'RemoteFeatureFlagController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
|
|
@@ -22,11 +22,13 @@ exports.networkController = {
|
|
|
22
22
|
actions: [
|
|
23
23
|
'AnalyticsController:getState',
|
|
24
24
|
'AnalyticsController:trackEvent',
|
|
25
|
+
'ConfigRegistryController:getState',
|
|
26
|
+
'ConfigRegistryController:getNetworkConfigByCaip2ChainId',
|
|
25
27
|
'ConnectivityController:getState',
|
|
26
28
|
'RemoteFeatureFlagController:getState',
|
|
27
29
|
],
|
|
28
30
|
events: [
|
|
29
|
-
|
|
31
|
+
'ConfigRegistryController:stateChanged',
|
|
30
32
|
'RemoteFeatureFlagController:stateChange',
|
|
31
33
|
],
|
|
32
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,qEAGsC;AAIzB,QAAA,iBAAiB,GAG1B;IACF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,sCAAiB,CAAC;QACpB,KAAK;QACL,SAAS;QACT,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,0BAA0B,GAC9B,IAAI,qBAAS,CAAC;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE;gBACP,8BAA8B;gBAC9B,gCAAgC;gBAChC,iCAAiC;gBACjC,sCAAsC;aACvC;YAED,MAAM,EAAE;gBACN,
|
|
1
|
+
{"version":3,"file":"network-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,qEAGsC;AAIzB,QAAA,iBAAiB,GAG1B;IACF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,sCAAiB,CAAC;QACpB,KAAK;QACL,SAAS;QACT,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,0BAA0B,GAC9B,IAAI,qBAAS,CAAC;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE;gBACP,8BAA8B;gBAC9B,gCAAgC;gBAChC,mCAAmC;gBACnC,yDAAyD;gBACzD,iCAAiC;gBACjC,sCAAsC;aACvC;YAED,MAAM,EAAE;gBACN,uCAAuC;gBAEvC,yCAAyC;aAC1C;SACF,CAAC,CAAC;QAEH,OAAO,0BAA0B,CAAC;IACpC,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport {\n NetworkController,\n NetworkControllerMessenger,\n} from '@metamask/network-controller';\n\nimport { InitializationConfiguration } from '../../types.js';\n\nexport const networkController: InitializationConfiguration<\n NetworkController,\n NetworkControllerMessenger\n> = {\n name: 'NetworkController',\n init: ({ state, messenger, options }) =>\n new NetworkController({\n state,\n messenger,\n infuraProjectId: options.infuraProjectId,\n failoverUrls: options.failoverUrls,\n analyticsOptions: options.analyticsOptions,\n }),\n getMessenger: (parent) => {\n const networkControllerMessenger: NetworkControllerMessenger =\n new Messenger({\n namespace: 'NetworkController',\n parent,\n });\n\n parent.delegate({\n messenger: networkControllerMessenger,\n actions: [\n 'AnalyticsController:getState',\n 'AnalyticsController:trackEvent',\n 'ConfigRegistryController:getState',\n 'ConfigRegistryController:getNetworkConfigByCaip2ChainId',\n 'ConnectivityController:getState',\n 'RemoteFeatureFlagController:getState',\n ],\n\n events: [\n 'ConfigRegistryController:stateChanged',\n\n 'RemoteFeatureFlagController:stateChange',\n ],\n });\n\n return networkControllerMessenger;\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-controller.d.cts","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC3B,qCAAqC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,wBAAuB;AAE7D,eAAO,MAAM,iBAAiB,EAAE,2BAA2B,CACzD,iBAAiB,EACjB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"network-controller.d.cts","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC3B,qCAAqC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,wBAAuB;AAE7D,eAAO,MAAM,iBAAiB,EAAE,2BAA2B,CACzD,iBAAiB,EACjB,0BAA0B,CAsC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-controller.d.mts","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC3B,qCAAqC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,wBAAuB;AAE7D,eAAO,MAAM,iBAAiB,EAAE,2BAA2B,CACzD,iBAAiB,EACjB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"network-controller.d.mts","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC3B,qCAAqC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,wBAAuB;AAE7D,eAAO,MAAM,iBAAiB,EAAE,2BAA2B,CACzD,iBAAiB,EACjB,0BAA0B,CAsC3B,CAAC"}
|
|
@@ -19,11 +19,13 @@ export const networkController = {
|
|
|
19
19
|
actions: [
|
|
20
20
|
'AnalyticsController:getState',
|
|
21
21
|
'AnalyticsController:trackEvent',
|
|
22
|
+
'ConfigRegistryController:getState',
|
|
23
|
+
'ConfigRegistryController:getNetworkConfigByCaip2ChainId',
|
|
22
24
|
'ConnectivityController:getState',
|
|
23
25
|
'RemoteFeatureFlagController:getState',
|
|
24
26
|
],
|
|
25
27
|
events: [
|
|
26
|
-
|
|
28
|
+
'ConfigRegistryController:stateChanged',
|
|
27
29
|
'RemoteFeatureFlagController:stateChange',
|
|
28
30
|
],
|
|
29
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAChD,OAAO,EACL,iBAAiB,EAElB,qCAAqC;AAItC,MAAM,CAAC,MAAM,iBAAiB,GAG1B;IACF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,iBAAiB,CAAC;QACpB,KAAK;QACL,SAAS;QACT,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,0BAA0B,GAC9B,IAAI,SAAS,CAAC;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE;gBACP,8BAA8B;gBAC9B,gCAAgC;gBAChC,iCAAiC;gBACjC,sCAAsC;aACvC;YAED,MAAM,EAAE;gBACN,
|
|
1
|
+
{"version":3,"file":"network-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/network-controller/network-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAChD,OAAO,EACL,iBAAiB,EAElB,qCAAqC;AAItC,MAAM,CAAC,MAAM,iBAAiB,GAG1B;IACF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,iBAAiB,CAAC;QACpB,KAAK;QACL,SAAS;QACT,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,0BAA0B,GAC9B,IAAI,SAAS,CAAC;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM;SACP,CAAC,CAAC;QAEL,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE;gBACP,8BAA8B;gBAC9B,gCAAgC;gBAChC,mCAAmC;gBACnC,yDAAyD;gBACzD,iCAAiC;gBACjC,sCAAsC;aACvC;YAED,MAAM,EAAE;gBACN,uCAAuC;gBAEvC,yCAAyC;aAC1C;SACF,CAAC,CAAC;QAEH,OAAO,0BAA0B,CAAC;IACpC,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport {\n NetworkController,\n NetworkControllerMessenger,\n} from '@metamask/network-controller';\n\nimport { InitializationConfiguration } from '../../types.js';\n\nexport const networkController: InitializationConfiguration<\n NetworkController,\n NetworkControllerMessenger\n> = {\n name: 'NetworkController',\n init: ({ state, messenger, options }) =>\n new NetworkController({\n state,\n messenger,\n infuraProjectId: options.infuraProjectId,\n failoverUrls: options.failoverUrls,\n analyticsOptions: options.analyticsOptions,\n }),\n getMessenger: (parent) => {\n const networkControllerMessenger: NetworkControllerMessenger =\n new Messenger({\n namespace: 'NetworkController',\n parent,\n });\n\n parent.delegate({\n messenger: networkControllerMessenger,\n actions: [\n 'AnalyticsController:getState',\n 'AnalyticsController:trackEvent',\n 'ConfigRegistryController:getState',\n 'ConfigRegistryController:getNetworkConfigByCaip2ChainId',\n 'ConnectivityController:getState',\n 'RemoteFeatureFlagController:getState',\n ],\n\n events: [\n 'ConfigRegistryController:stateChanged',\n\n 'RemoteFeatureFlagController:stateChange',\n ],\n });\n\n return networkControllerMessenger;\n },\n};\n"]}
|
|
@@ -28,9 +28,7 @@ exports.shieldController = {
|
|
|
28
28
|
events: [
|
|
29
29
|
// ShieldController subscribes to :stateChange internally; the
|
|
30
30
|
// delegation must match until those controllers migrate to :stateChanged.
|
|
31
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
32
31
|
'TransactionController:stateChange',
|
|
33
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
34
32
|
'SignatureController:stateChange',
|
|
35
33
|
],
|
|
36
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shield-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/shield-controller/shield-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,mEAA+D;AAMlD,QAAA,gBAAgB,GAGzB;IACF,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,oCAAgB,CAAC;QACnB,SAAS;QACT,KAAK;QACL,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QACxD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAA8B,IAAI,qBAAS,CAAC;YACzD,SAAS,EAAE,kBAAkB;YAC7B,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,gCAAgC;gBAChC,yCAAyC;gBACzC,+BAA+B;gBAC/B,iCAAiC;aAClC;YACD,MAAM,EAAE;gBACN,8DAA8D;gBAC9D,0EAA0E;
|
|
1
|
+
{"version":3,"file":"shield-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/shield-controller/shield-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,mEAA+D;AAMlD,QAAA,gBAAgB,GAGzB;IACF,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,oCAAgB,CAAC;QACnB,SAAS;QACT,KAAK;QACL,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QACxD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAA8B,IAAI,qBAAS,CAAC;YACzD,SAAS,EAAE,kBAAkB;YAC7B,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,gCAAgC;gBAChC,yCAAyC;gBACzC,+BAA+B;gBAC/B,iCAAiC;aAClC;YACD,MAAM,EAAE;gBACN,8DAA8D;gBAC9D,0EAA0E;gBAE1E,mCAAmC;gBAEnC,iCAAiC;aAClC;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport type { ShieldControllerMessenger } from '@metamask/shield-controller';\nimport { ShieldController } from '@metamask/shield-controller';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { ShieldControllerInstanceOptions } from './types.js';\n\nexport const shieldController: InitializationConfiguration<\n ShieldController,\n ShieldControllerMessenger\n> = {\n name: 'ShieldController',\n init: ({ state, messenger, options }) =>\n new ShieldController({\n messenger,\n state,\n transactionHistoryLimit: options.transactionHistoryLimit,\n coverageHistoryLimit: options.coverageHistoryLimit,\n normalizeSignatureRequest: options.normalizeSignatureRequest,\n }),\n getMessenger: (parent) => {\n const messenger: ShieldControllerMessenger = new Messenger({\n namespace: 'ShieldController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'ShieldApiService:checkCoverage',\n 'ShieldApiService:checkSignatureCoverage',\n 'ShieldApiService:logSignature',\n 'ShieldApiService:logTransaction',\n ],\n events: [\n // ShieldController subscribes to :stateChange internally; the\n // delegation must match until those controllers migrate to :stateChanged.\n\n 'TransactionController:stateChange',\n\n 'SignatureController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
|
|
@@ -25,9 +25,7 @@ export const shieldController = {
|
|
|
25
25
|
events: [
|
|
26
26
|
// ShieldController subscribes to :stateChange internally; the
|
|
27
27
|
// delegation must match until those controllers migrate to :stateChanged.
|
|
28
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
29
28
|
'TransactionController:stateChange',
|
|
30
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
31
29
|
'SignatureController:stateChange',
|
|
32
30
|
],
|
|
33
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shield-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/shield-controller/shield-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAEhD,OAAO,EAAE,gBAAgB,EAAE,oCAAoC;AAM/D,MAAM,CAAC,MAAM,gBAAgB,GAGzB;IACF,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,gBAAgB,CAAC;QACnB,SAAS;QACT,KAAK;QACL,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QACxD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAA8B,IAAI,SAAS,CAAC;YACzD,SAAS,EAAE,kBAAkB;YAC7B,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,gCAAgC;gBAChC,yCAAyC;gBACzC,+BAA+B;gBAC/B,iCAAiC;aAClC;YACD,MAAM,EAAE;gBACN,8DAA8D;gBAC9D,0EAA0E;
|
|
1
|
+
{"version":3,"file":"shield-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/shield-controller/shield-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAEhD,OAAO,EAAE,gBAAgB,EAAE,oCAAoC;AAM/D,MAAM,CAAC,MAAM,gBAAgB,GAGzB;IACF,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CACtC,IAAI,gBAAgB,CAAC;QACnB,SAAS;QACT,KAAK;QACL,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QACxD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC;IACJ,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QACvB,MAAM,SAAS,GAA8B,IAAI,SAAS,CAAC;YACzD,SAAS,EAAE,kBAAkB;YAC7B,MAAM;SACP,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC;YACd,SAAS;YACT,OAAO,EAAE;gBACP,gCAAgC;gBAChC,yCAAyC;gBACzC,+BAA+B;gBAC/B,iCAAiC;aAClC;YACD,MAAM,EAAE;gBACN,8DAA8D;gBAC9D,0EAA0E;gBAE1E,mCAAmC;gBAEnC,iCAAiC;aAClC;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC","sourcesContent":["import { Messenger } from '@metamask/messenger';\nimport type { ShieldControllerMessenger } from '@metamask/shield-controller';\nimport { ShieldController } from '@metamask/shield-controller';\n\nimport type { InitializationConfiguration } from '../../types.js';\n\nexport type { ShieldControllerInstanceOptions } from './types.js';\n\nexport const shieldController: InitializationConfiguration<\n ShieldController,\n ShieldControllerMessenger\n> = {\n name: 'ShieldController',\n init: ({ state, messenger, options }) =>\n new ShieldController({\n messenger,\n state,\n transactionHistoryLimit: options.transactionHistoryLimit,\n coverageHistoryLimit: options.coverageHistoryLimit,\n normalizeSignatureRequest: options.normalizeSignatureRequest,\n }),\n getMessenger: (parent) => {\n const messenger: ShieldControllerMessenger = new Messenger({\n namespace: 'ShieldController',\n parent,\n });\n\n parent.delegate({\n messenger,\n actions: [\n 'ShieldApiService:checkCoverage',\n 'ShieldApiService:checkSignatureCoverage',\n 'ShieldApiService:logSignature',\n 'ShieldApiService:logTransaction',\n ],\n events: [\n // ShieldController subscribes to :stateChange internally; the\n // delegation must match until those controllers migrate to :stateChanged.\n\n 'TransactionController:stateChange',\n\n 'SignatureController:stateChange',\n ],\n });\n\n return messenger;\n },\n};\n"]}
|
|
@@ -39,7 +39,6 @@ exports.transactionController = {
|
|
|
39
39
|
events: [
|
|
40
40
|
'AccountActivityService:transactionUpdated',
|
|
41
41
|
// TODO: Replace with `NetworkController:stateChanged` once TransactionController migrates.
|
|
42
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
43
42
|
'NetworkController:stateChange',
|
|
44
43
|
],
|
|
45
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,6EAAyE;AAM5D,QAAA,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,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,8CAAqB,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,qBAAS,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;
|
|
1
|
+
{"version":3,"file":"transaction-controller.cjs","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,6EAAyE;AAM5D,QAAA,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,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,8CAAqB,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,qBAAS,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 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"]}
|
|
@@ -36,7 +36,6 @@ export const transactionController = {
|
|
|
36
36
|
events: [
|
|
37
37
|
'AccountActivityService:transactionUpdated',
|
|
38
38
|
// TODO: Replace with `NetworkController:stateChanged` once TransactionController migrates.
|
|
39
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
40
39
|
'NetworkController:stateChange',
|
|
41
40
|
],
|
|
42
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAEhD,OAAO,EAAE,qBAAqB,EAAE,yCAAyC;AAMzE,MAAM,CAAC,MAAM,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,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;
|
|
1
|
+
{"version":3,"file":"transaction-controller.mjs","sourceRoot":"","sources":["../../../../src/initialization/instances/transaction-controller/transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B;AAEhD,OAAO,EAAE,qBAAqB,EAAE,yCAAyC;AAMzE,MAAM,CAAC,MAAM,qBAAqB,GAG9B;IACF,IAAI,EAAE,uBAAuB;IAC7B,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 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/wallet",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "Provides a shared framework for building MetaMask wallets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -55,28 +55,28 @@
|
|
|
55
55
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@metamask/accounts-controller": "^39.1.
|
|
58
|
+
"@metamask/accounts-controller": "^39.1.1",
|
|
59
59
|
"@metamask/address-book-controller": "^7.1.2",
|
|
60
60
|
"@metamask/approval-controller": "^9.0.2",
|
|
61
61
|
"@metamask/base-controller": "^9.1.0",
|
|
62
62
|
"@metamask/browser-passworder": "^6.0.0",
|
|
63
|
-
"@metamask/claims-controller": "^0.6.
|
|
64
|
-
"@metamask/config-registry-controller": "^3.
|
|
63
|
+
"@metamask/claims-controller": "^0.6.1",
|
|
64
|
+
"@metamask/config-registry-controller": "^3.1.0",
|
|
65
65
|
"@metamask/connectivity-controller": "^0.3.0",
|
|
66
66
|
"@metamask/controller-utils": "^12.3.0",
|
|
67
|
-
"@metamask/gas-fee-controller": "^26.3.
|
|
67
|
+
"@metamask/gas-fee-controller": "^26.3.2",
|
|
68
68
|
"@metamask/keyring-controller": "^27.1.1",
|
|
69
69
|
"@metamask/messenger": "^2.0.0",
|
|
70
|
-
"@metamask/network-controller": "^
|
|
71
|
-
"@metamask/passkey-controller": "^3.
|
|
72
|
-
"@metamask/remote-feature-flag-controller": "^6.
|
|
70
|
+
"@metamask/network-controller": "^36.0.0",
|
|
71
|
+
"@metamask/passkey-controller": "^3.1.0",
|
|
72
|
+
"@metamask/remote-feature-flag-controller": "^6.1.1",
|
|
73
73
|
"@metamask/scure-bip39": "^2.1.1",
|
|
74
74
|
"@metamask/seedless-onboarding-controller": "^10.1.1",
|
|
75
|
-
"@metamask/shield-controller": "^6.0.
|
|
75
|
+
"@metamask/shield-controller": "^6.0.1",
|
|
76
76
|
"@metamask/storage-service": "^1.0.2",
|
|
77
|
-
"@metamask/subscription-controller": "^8.0.
|
|
78
|
-
"@metamask/transaction-controller": "^69.
|
|
79
|
-
"@metamask/utils": "^11.
|
|
77
|
+
"@metamask/subscription-controller": "^8.0.1",
|
|
78
|
+
"@metamask/transaction-controller": "^69.8.1",
|
|
79
|
+
"@metamask/utils": "^11.12.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@metamask/auto-changelog": "^6.1.0",
|