@metamask-previews/keyring-controller 25.2.0-preview-f1592e178 → 25.2.0-preview-bce8c098b

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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - Add `accountSupports7702` method and `KeyringController:accountSupports7702` messenger action to check whether an account's keyring supports EIP-7702 authorization signing ([#8388](https://github.com/MetaMask/core/pull/8388))
13
+
10
14
  ### Changed
11
15
 
12
16
  - Bump `@metamask/messenger` from `^1.0.0` to `^1.1.1` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373))
@@ -1022,6 +1022,11 @@ class KeyringController extends base_controller_1.BaseController {
1022
1022
  const keyring = (await this.getKeyringForAccount(account));
1023
1023
  return keyring.type;
1024
1024
  }
1025
+ async accountSupports7702(account) {
1026
+ const keyringType = await this.getAccountKeyringType(account);
1027
+ return (keyringType === KeyringTypes.hd ||
1028
+ keyringType === KeyringTypes.simple);
1029
+ }
1025
1030
  }
1026
1031
  exports.KeyringController = KeyringController;
1027
1032
  _KeyringController_controllerOperationMutex = new WeakMap(), _KeyringController_vaultOperationMutex = new WeakMap(), _KeyringController_keyringBuilders = new WeakMap(), _KeyringController_encryptor = new WeakMap(), _KeyringController_keyrings = new WeakMap(), _KeyringController_unsupportedKeyrings = new WeakMap(), _KeyringController_encryptionKey = new WeakMap(), _KeyringController_instances = new WeakSet(), _KeyringController_getKeyringForAccount = async function _KeyringController_getKeyringForAccount(account) {
@@ -1066,6 +1071,7 @@ _KeyringController_controllerOperationMutex = new WeakMap(), _KeyringController_
1066
1071
  this.messenger.registerActionHandler(`${name}:createNewVaultAndKeychain`, this.createNewVaultAndKeychain.bind(this));
1067
1072
  this.messenger.registerActionHandler(`${name}:createNewVaultAndRestore`, this.createNewVaultAndRestore.bind(this));
1068
1073
  this.messenger.registerActionHandler(`${name}:removeAccount`, this.removeAccount.bind(this));
1074
+ this.messenger.registerActionHandler(`${name}:accountSupports7702`, this.accountSupports7702.bind(this));
1069
1075
  }, _KeyringController_selectKeyring =
1070
1076
  /**
1071
1077
  * Select a keyring using a selector without acquiring the controller lock.