Skip to content

Commit

Permalink
Remove dependency on @metamask/keyring-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Jan 10, 2025
1 parent cd4b9b3 commit bf37ae2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 583 deletions.
1 change: 0 additions & 1 deletion packages/snaps-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"@metamask/json-rpc-engine": "^10.0.1",
"@metamask/json-rpc-middleware-stream": "^8.0.5",
"@metamask/key-tree": "^10.0.1",
"@metamask/keyring-controller": "^19.0.2",
"@metamask/object-multiplex": "^2.0.0",
"@metamask/permission-controller": "^11.0.4",
"@metamask/phishing-controller": "^12.3.1",
Expand Down
8 changes: 6 additions & 2 deletions packages/snaps-controllers/src/snaps/SnapController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type {
} from '@metamask/base-controller';
import { BaseController } from '@metamask/base-controller';
import type { CryptographicFunctions } from '@metamask/key-tree';
import type { KeyringControllerLockEvent } from '@metamask/keyring-controller';
import type {
Caveat,
GetEndowments,
Expand Down Expand Up @@ -564,6 +563,11 @@ export type SnapControllerStateChangeEvent = ControllerStateChangeEvent<
SnapControllerState
>;

type KeyringControllerLock = {
type: 'KeyringController:lock';
payload: [];
};

export type SnapControllerEvents =
| SnapBlocked
| SnapInstalled
Expand Down Expand Up @@ -609,7 +613,7 @@ export type AllowedEvents =
| ExecutionServiceEvents
| SnapInstalled
| SnapUpdated
| KeyringControllerLockEvent;
| KeyringControllerLock;

type SnapControllerMessenger = RestrictedControllerMessenger<
typeof controllerName,
Expand Down
Loading

0 comments on commit bf37ae2

Please sign in to comment.