-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use patched @metamask/keyring-controller
- Loading branch information
1 parent
9469435
commit 40b1e8b
Showing
10 changed files
with
1,167 additions
and
490 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
.yarn/patches/@metamask-keyring-controller-npm-7.0.0-962008b200.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
diff --git a/dist/KeyringController.d.ts b/dist/KeyringController.d.ts | ||
index 82de83a7bb1ad14bb23f3b6274e0c4d5bb773382..35ec924d1530eb944c77c9605a1fb1dda58ebcaf 100644 | ||
--- a/dist/KeyringController.d.ts | ||
+++ b/dist/KeyringController.d.ts | ||
@@ -1,10 +1,10 @@ | ||
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'; | ||
import type { PersonalMessageParams, TypedMessageParams } from '@metamask/message-manager'; | ||
import type { PreferencesController } from '@metamask/preferences-controller'; | ||
-import { type Hex, type Keyring, type Json } from '@metamask/utils'; | ||
+import type { Hex, Keyring, Json } from '@metamask/utils'; | ||
import type { Patch } from 'immer'; | ||
declare const name = "KeyringController"; | ||
/** | ||
@@ -135,6 +135,10 @@ export declare class KeyringController extends BaseControllerV2<typeof name, Key | ||
* @param opts.state - Initial state to set on this controller. | ||
*/ | ||
constructor({ removeIdentity, syncIdentities, updateIdentities, setSelectedAddress, setAccountLabel, encryptor, keyringBuilders, cacheEncryptionKey, messenger, state, }: KeyringControllerOptions); | ||
+ /** | ||
+ * Gets the internal keyring controller. | ||
+ */ | ||
+ getEthKeyringController(): any; | ||
/** | ||
* Adds a new account to the default (first) HD seed phrase keyring. | ||
* | ||
diff --git a/dist/KeyringController.js b/dist/KeyringController.js | ||
index 54d39d266425b45ed1008cecb16e78cf831c75d7..0ddded415bf71716c27ed3bf7bd1c5a79b11be13 100644 | ||
--- a/dist/KeyringController.js | ||
+++ b/dist/KeyringController.js | ||
@@ -153,6 +153,12 @@ class KeyringController extends base_controller_1.BaseControllerV2 { | ||
this.setSelectedAddress = setSelectedAddress; | ||
this.setAccountLabel = setAccountLabel; | ||
} | ||
+ /** | ||
+ * Gets the internal keyring controller. | ||
+ */ | ||
+ getEthKeyringController() { | ||
+ return __classPrivateFieldGet(this, _KeyringController_keyring, "f"); | ||
+ } | ||
/** | ||
* Adds a new account to the default (first) HD seed phrase keyring. | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.