From 971bb2bbe17abd34eaf1695849a482acada274bd Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Tue, 26 Sep 2023 15:17:10 +0200 Subject: [PATCH] refactor: use keyring-controller v8 --- ...ing-controller-npm-8.0.0-806630ae4e.patch} | 15 ++-- app/scripts/controllers/app-state.js | 5 ++ app/scripts/metamask-controller.js | 30 ++++--- package.json | 4 +- yarn.lock | 82 +++++++++++-------- 5 files changed, 78 insertions(+), 58 deletions(-) rename .yarn/patches/{@metamask-keyring-controller-npm-7.4.0-5dd5df31c7.patch => @metamask-keyring-controller-npm-8.0.0-806630ae4e.patch} (68%) diff --git a/.yarn/patches/@metamask-keyring-controller-npm-7.4.0-5dd5df31c7.patch b/.yarn/patches/@metamask-keyring-controller-npm-8.0.0-806630ae4e.patch similarity index 68% rename from .yarn/patches/@metamask-keyring-controller-npm-7.4.0-5dd5df31c7.patch rename to .yarn/patches/@metamask-keyring-controller-npm-8.0.0-806630ae4e.patch index 4b9ccd4f64d9..331eea84d518 100644 --- a/.yarn/patches/@metamask-keyring-controller-npm-7.4.0-5dd5df31c7.patch +++ b/.yarn/patches/@metamask-keyring-controller-npm-8.0.0-806630ae4e.patch @@ -1,13 +1,8 @@ diff --git a/dist/KeyringController.d.ts b/dist/KeyringController.d.ts -index d6d70eea2de56310b49fa9dcf1e90afae3ddb202..4518aed8e03376d76e5ab6ef0971529e65563fd3 100644 +index 44c6427ec774475b87f60995738f736611875194..d359269ad413a0a626d06e44a84eb0cbbdb8c7b0 100644 --- a/dist/KeyringController.d.ts +++ b/dist/KeyringController.d.ts -@@ -1,10 +1,11 @@ - import type { TxData, TypedTransaction } from '@ethereumjs/tx'; --import { type MetaMaskKeyring as QRKeyring, type IKeyringState as IQRKeyringState } from '@keystonehq/metamask-airgapped-keyring'; -+import type { MetaMaskKeyring as QRKeyring, IKeyringState as IQRKeyringState } from '@keystonehq/metamask-airgapped-keyring'; - import type { RestrictedControllerMessenger } from '@metamask/base-controller'; - import { BaseControllerV2 } from '@metamask/base-controller'; +@@ -5,6 +5,7 @@ import { BaseControllerV2 } from '@metamask/base-controller'; import type { PersonalMessageParams, TypedMessageParams } from '@metamask/message-manager'; import type { PreferencesController } from '@metamask/preferences-controller'; import type { Eip1024EncryptedData, Hex, Keyring, Json } from '@metamask/utils'; @@ -15,7 +10,7 @@ index d6d70eea2de56310b49fa9dcf1e90afae3ddb202..4518aed8e03376d76e5ab6ef0971529e import type { Patch } from 'immer'; declare const name = "KeyringController"; /** -@@ -155,6 +156,10 @@ export declare class KeyringController extends BaseControllerV2