diff --git a/app/scripts/lib/transaction/MultichainTransactionsController.ts b/app/scripts/lib/transaction/MultichainTransactionsController.ts index 814066d681ac..237e27d0b821 100644 --- a/app/scripts/lib/transaction/MultichainTransactionsController.ts +++ b/app/scripts/lib/transaction/MultichainTransactionsController.ts @@ -8,11 +8,11 @@ import { } from '@metamask/base-controller'; import { BtcAccountType, - KeyringClient, - type InternalAccount, isEvmAccountType, SolAccountType, } from '@metamask/keyring-api'; +import { KeyringClient } from '@metamask/keyring-snap-client'; +import { type InternalAccount } from '@metamask/keyring-internal-api'; import type { HandleSnapRequest } from '@metamask/snaps-controllers'; import type { SnapId } from '@metamask/snaps-sdk'; import { HandlerType } from '@metamask/snaps-utils'; diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 15d4c4e9173f..82075f709022 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -1558,9 +1558,9 @@ }, "packages": { "@metamask/base-controller": true, + "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/network-controller": true, - "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>@noble/ciphers": true, "@noble/hashes": true, "browserify>buffer": true, diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 15d4c4e9173f..82075f709022 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -1558,9 +1558,9 @@ }, "packages": { "@metamask/base-controller": true, + "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/network-controller": true, - "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>@noble/ciphers": true, "@noble/hashes": true, "browserify>buffer": true, diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 15d4c4e9173f..82075f709022 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -1558,9 +1558,9 @@ }, "packages": { "@metamask/base-controller": true, + "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/network-controller": true, - "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>@noble/ciphers": true, "@noble/hashes": true, "browserify>buffer": true, diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index ac1da0bc565b..a2453b1686dc 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -899,104 +899,14 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@metamask/base-controller": true, + "@metamask/eth-snap-keyring": true, + "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/utils": true, "@ethereumjs/tx>ethereum-cryptography": true, "uuid": true } }, - "@metamask/accounts-controller>@metamask/eth-snap-keyring": { - "globals": { - "URL": true, - "console.error": true - }, - "packages": { - "@ethereumjs/tx": true, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/utils": true, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": true, - "@metamask/accounts-controller>@metamask/keyring-api": true, - "@metamask/utils>@metamask/superstruct": true, - "webpack>events": true - } - }, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/eth-sig-util": { - "packages": { - "@ethereumjs/tx>@ethereumjs/util": true, - "@ethereumjs/tx>ethereum-cryptography": true, - "@metamask/abi-utils": true, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/eth-sig-util>@metamask/utils": true, - "@metamask/eth-sig-util>tweetnacl": true, - "@metamask/utils>@scure/base": true, - "browserify>buffer": true - } - }, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/eth-sig-util>@metamask/utils": { - "globals": { - "TextDecoder": true, - "TextEncoder": true - }, - "packages": { - "@metamask/utils>@metamask/superstruct": true, - "@metamask/utils>@scure/base": true, - "@metamask/utils>pony-cause": true, - "@noble/hashes": true, - "browserify>buffer": true, - "nock>debug": true, - "semver": true - } - }, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>@metamask/utils": { - "globals": { - "TextDecoder": true, - "TextEncoder": true - }, - "packages": { - "@metamask/utils>@metamask/superstruct": true, - "@metamask/utils>@scure/base": true, - "@metamask/utils>pony-cause": true, - "@noble/hashes": true, - "browserify>buffer": true, - "nock>debug": true, - "semver": true - } - }, - "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": { - "globals": { - "crypto": true - } - }, - "@metamask/accounts-controller>@metamask/keyring-api": { - "globals": { - "URL": true - }, - "packages": { - "@metamask/accounts-controller>@metamask/keyring-api>@metamask/utils": true, - "@metamask/accounts-controller>@metamask/keyring-api>uuid": true, - "@metamask/keyring-api>bech32": true, - "@metamask/utils>@metamask/superstruct": true - } - }, - "@metamask/accounts-controller>@metamask/keyring-api>@metamask/utils": { - "globals": { - "TextDecoder": true, - "TextEncoder": true - }, - "packages": { - "@metamask/utils>@metamask/superstruct": true, - "@metamask/utils>@scure/base": true, - "@metamask/utils>pony-cause": true, - "@noble/hashes": true, - "browserify>buffer": true, - "nock>debug": true, - "semver": true - } - }, - "@metamask/accounts-controller>@metamask/keyring-api>uuid": { - "globals": { - "crypto": true - } - }, "@metamask/address-book-controller": { "packages": { "@metamask/base-controller": true, @@ -1740,9 +1650,9 @@ }, "packages": { "@metamask/base-controller": true, + "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/network-controller": true, - "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>@noble/ciphers": true, "@noble/hashes": true, "browserify>buffer": true, diff --git a/ui/selectors/accounts.ts b/ui/selectors/accounts.ts index 2a8dd1ac8c36..7515a68e04e5 100644 --- a/ui/selectors/accounts.ts +++ b/ui/selectors/accounts.ts @@ -1,4 +1,8 @@ -import { EthAccountType, BtcAccountType, SolAccountType } from '@metamask/keyring-api'; +import { + EthAccountType, + BtcAccountType, + SolAccountType, +} from '@metamask/keyring-api'; import { InternalAccount } from '@metamask/keyring-internal-api'; import { AccountsControllerState } from '@metamask/accounts-controller'; import {