(
state: InterfaceState,
name: string,
value: Type | null,
diff --git a/ui/helpers/utils/permission.js b/ui/helpers/utils/permission.js
index 62d3dca494d3..2a0720d815fe 100644
--- a/ui/helpers/utils/permission.js
+++ b/ui/helpers/utils/permission.js
@@ -251,6 +251,14 @@ export const PERMISSION_DESCRIPTIONS = deepFreeze({
leftIcon: IconName.Global,
weight: PermissionWeight.snap_getLocale,
}),
+ [RestrictedMethods.snap_getPreferences]: ({ t, subjectName }) => ({
+ label: t('permission_getPreferences'),
+ description: t('permission_getPreferencesDescription', [
+ getSnapNameComponent(subjectName),
+ ]),
+ leftIcon: IconName.Customize,
+ weight: 4,
+ }),
[RestrictedMethods.wallet_snap]: ({ t, permissionValue, getSubjectName }) => {
const snaps = permissionValue.caveats[0].value;
const baseDescription = {
diff --git a/ui/pages/confirmations/confirmation/confirmation.js b/ui/pages/confirmations/confirmation/confirmation.js
index 2f5fc3b08bb8..a1fc6bc5c7af 100644
--- a/ui/pages/confirmations/confirmation/confirmation.js
+++ b/ui/pages/confirmations/confirmation/confirmation.js
@@ -13,6 +13,7 @@ import { isEqual } from 'lodash';
import { produce } from 'immer';
import log from 'loglevel';
import { ApprovalType } from '@metamask/controller-utils';
+import { DIALOG_APPROVAL_TYPES } from '@metamask/snaps-rpc-methods';
import fetchWithCache from '../../../../shared/lib/fetch-with-cache';
import Box from '../../../components/ui/box';
import {
@@ -42,6 +43,7 @@ import { SnapUIRenderer } from '../../../components/app/snaps/snap-ui-renderer';
import { SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES } from '../../../../shared/constants/app';
///: END:ONLY_INCLUDE_IF
import { DAY } from '../../../../shared/constants/time';
+import { BlockSize } from '../../../helpers/constants/design-system';
import ConfirmationFooter from './components/confirmation-footer';
import {
getTemplateValues,
@@ -248,17 +250,9 @@ export default function ConfirmationPage({
const name = snapsMetadata[pendingConfirmation?.origin]?.name;
- const SNAP_DIALOG_TYPE = [
- ApprovalType.SnapDialogAlert,
- ApprovalType.SnapDialogConfirmation,
- ApprovalType.SnapDialogPrompt,
- ];
+ const SNAP_DIALOG_TYPE = Object.values(DIALOG_APPROVAL_TYPES);
- const SNAP_CUSTOM_UI_DIALOG = [
- ApprovalType.SnapDialogAlert,
- ApprovalType.SnapDialogConfirmation,
- ApprovalType.SnapDialogPrompt,
- ];
+ const SNAP_CUSTOM_UI_DIALOG = Object.values(DIALOG_APPROVAL_TYPES);
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
SNAP_DIALOG_TYPE.push(
@@ -272,23 +266,15 @@ export default function ConfirmationPage({
);
const isSnapPrompt =
pendingConfirmation?.type === ApprovalType.SnapDialogPrompt;
- let useSnapHeader = isSnapDialog;
+
+ const isSnapDefaultDialog =
+ pendingConfirmation?.type === DIALOG_APPROVAL_TYPES.default;
// When pendingConfirmation is undefined, this will also be undefined
const snapName = isSnapDialog && name;
const INPUT_STATE_CONFIRMATIONS = [ApprovalType.SnapDialogPrompt];
- ///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
- if (
- Object.values(SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES).includes(
- pendingConfirmation?.type,
- )
- ) {
- useSnapHeader = false;
- }
- ///: END:ONLY_INCLUDE_IF
-
// Generating templatedValues is potentially expensive, and if done on every render
// will result in a new object. Avoiding calling this generation unnecessarily will
// improve performance and prevent unnecessary draws.
@@ -474,6 +460,13 @@ export default function ConfirmationPage({
}
};
+ const handleSnapDialogCancel =
+ templatedValues.onCancel ||
+ // /!\ Treat cancel as submit only if approval type is appropriate /!\
+ (pendingConfirmation?.type === ApprovalType.SnapDialogAlert
+ ? handleSubmit
+ : null);
+
return (
{pendingConfirmations.length > 1 && (
@@ -508,47 +501,37 @@ export default function ConfirmationPage({
)}
+ {isSnapCustomUIDialog && (
+
+
+
+ )}
{templatedValues.networkDisplay ? (
) : null}
- {useSnapHeader && (
-
- )}
- {isSnapCustomUIDialog ? (
-
-
-
) : (
)}
+
{showWarningModal && (
{
@@ -560,50 +543,57 @@ export default function ConfirmationPage({
/>
)}
- alert.dismissed === false)
- .map((alert, idx, filtered) => (
- dismissAlert(alert.id)}
- isFirst={idx === 0}
- isLast={idx === filtered.length - 1}
- isMultiple={filtered.length > 1}
- >
-
-
- ))
- }
- style={
- isSnapDialog
- ? {
- boxShadow: 'var(--shadow-size-lg) var(--color-shadow-default)',
- }
- : {}
- }
- actionsStyle={
- isSnapDialog
- ? {
- borderTop: 0,
- }
- : {}
- }
- onSubmit={!templatedValues.hideSubmitButton && handleSubmit}
- onCancel={templatedValues.onCancel}
- submitText={templatedValues.submitText}
- cancelText={templatedValues.cancelText}
- loadingText={loadingText || templatedValues.loadingText}
- loading={loading}
- submitAlerts={submitAlerts.map((alert, idx) => (
-
-
-
- ))}
- />
+ {!isSnapDefaultDialog && (
+ alert.dismissed === false)
+ .map((alert, idx, filtered) => (
+ dismissAlert(alert.id)}
+ isFirst={idx === 0}
+ isLast={idx === filtered.length - 1}
+ isMultiple={filtered.length > 1}
+ >
+
+
+ ))
+ }
+ style={
+ isSnapDialog
+ ? {
+ boxShadow:
+ 'var(--shadow-size-lg) var(--color-shadow-default)',
+ }
+ : {}
+ }
+ actionsStyle={
+ isSnapDialog
+ ? {
+ borderTop: 0,
+ }
+ : {}
+ }
+ onSubmit={!templatedValues.hideSubmitButton && handleSubmit}
+ onCancel={templatedValues.onCancel}
+ submitText={templatedValues.submitText}
+ cancelText={templatedValues.cancelText}
+ loadingText={loadingText || templatedValues.loadingText}
+ loading={loading}
+ submitAlerts={submitAlerts.map((alert, idx) => (
+
+
+
+ ))}
+ />
+ )}
);
}
diff --git a/ui/pages/confirmations/confirmation/templates/index.js b/ui/pages/confirmations/confirmation/templates/index.js
index ba193811cb02..c49f34ca69ca 100644
--- a/ui/pages/confirmations/confirmation/templates/index.js
+++ b/ui/pages/confirmations/confirmation/templates/index.js
@@ -1,5 +1,6 @@
import { omit, pick } from 'lodash';
import { ApprovalType } from '@metamask/controller-utils';
+import { DIALOG_APPROVAL_TYPES } from '@metamask/snaps-rpc-methods';
import {
deleteInterface,
rejectPendingApproval,
@@ -27,6 +28,7 @@ import error from './error';
import snapAlert from './snaps/snap-alert/snap-alert';
import snapConfirmation from './snaps/snap-confirmation/snap-confirmation';
import snapPrompt from './snaps/snap-prompt/snap-prompt';
+import snapDefault from './snaps/snap-default/snap-default';
/**
* Approval templates that will be prioritized ahead of transaction and signature confirmations.
@@ -46,6 +48,7 @@ const APPROVAL_TEMPLATES = {
[ApprovalType.SnapDialogAlert]: snapAlert,
[ApprovalType.SnapDialogConfirmation]: snapConfirmation,
[ApprovalType.SnapDialogPrompt]: snapPrompt,
+ [DIALOG_APPROVAL_TYPES.default]: snapDefault,
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
[SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES.confirmAccountCreation]:
createSnapAccount,
diff --git a/ui/pages/confirmations/confirmation/templates/snaps/snap-default/snap-default.js b/ui/pages/confirmations/confirmation/templates/snaps/snap-default/snap-default.js
new file mode 100644
index 000000000000..4bd7a8c60944
--- /dev/null
+++ b/ui/pages/confirmations/confirmation/templates/snaps/snap-default/snap-default.js
@@ -0,0 +1,17 @@
+function getValues(pendingApproval, _t, actions) {
+ const {
+ requestData: { id },
+ } = pendingApproval;
+ return {
+ onCancel: () => {
+ actions.resolvePendingApproval(pendingApproval.id, null);
+ actions.deleteInterface(id);
+ },
+ };
+}
+
+const snapDefault = {
+ getValues,
+};
+
+export default snapDefault;
diff --git a/yarn.lock b/yarn.lock
index e9ceb9a926c9..a66ead175712 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4879,7 +4879,7 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/approval-controller@npm:^7.0.0, @metamask/approval-controller@npm:^7.0.1":
+"@metamask/approval-controller@npm:^7.0.0, @metamask/approval-controller@npm:^7.0.1, @metamask/approval-controller@npm:^7.0.2":
version: 7.0.2
resolution: "@metamask/approval-controller@npm:7.0.2"
dependencies:
@@ -5605,19 +5605,7 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/json-rpc-middleware-stream@npm:^7.0.1":
- version: 7.0.1
- resolution: "@metamask/json-rpc-middleware-stream@npm:7.0.1"
- dependencies:
- "@metamask/json-rpc-engine": "npm:^8.0.1"
- "@metamask/safe-event-emitter": "npm:^3.0.0"
- "@metamask/utils": "npm:^8.3.0"
- readable-stream: "npm:^3.6.2"
- checksum: 10/1df955cd6c39fb40388e1b656b401d94da1a6c9a780be0b17cff7d6ed8d63a6960e0693c18778e7acc79e3eec183df524ca711d98e17e0eefbaab5f4fe8a2fc4
- languageName: node
- linkType: hard
-
-"@metamask/json-rpc-middleware-stream@npm:^8.0.0":
+"@metamask/json-rpc-middleware-stream@npm:^8.0.1, @metamask/json-rpc-middleware-stream@npm:^8.0.2":
version: 8.0.2
resolution: "@metamask/json-rpc-middleware-stream@npm:8.0.2"
dependencies:
@@ -5629,7 +5617,7 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/key-tree@npm:^9.1.1, @metamask/key-tree@npm:^9.1.2":
+"@metamask/key-tree@npm:^9.1.2":
version: 9.1.2
resolution: "@metamask/key-tree@npm:9.1.2"
dependencies:
@@ -6016,7 +6004,7 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/phishing-controller@npm:^10.0.0":
+"@metamask/phishing-controller@npm:^10.1.1":
version: 10.1.1
resolution: "@metamask/phishing-controller@npm:10.1.1"
dependencies:
@@ -6180,24 +6168,24 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/providers@npm:^17.0.0":
- version: 17.0.0
- resolution: "@metamask/providers@npm:17.0.0"
+"@metamask/providers@npm:^17.1.2":
+ version: 17.1.2
+ resolution: "@metamask/providers@npm:17.1.2"
dependencies:
- "@metamask/json-rpc-engine": "npm:^8.0.1"
- "@metamask/json-rpc-middleware-stream": "npm:^7.0.1"
+ "@metamask/json-rpc-engine": "npm:^9.0.1"
+ "@metamask/json-rpc-middleware-stream": "npm:^8.0.1"
"@metamask/object-multiplex": "npm:^2.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
+ "@metamask/rpc-errors": "npm:^6.3.1"
"@metamask/safe-event-emitter": "npm:^3.1.1"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/utils": "npm:^9.0.0"
detect-browser: "npm:^5.2.0"
- extension-port-stream: "npm:^3.0.0"
+ extension-port-stream: "npm:^4.1.0"
fast-deep-equal: "npm:^3.1.3"
is-stream: "npm:^2.0.0"
readable-stream: "npm:^3.6.2"
peerDependencies:
webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0
- checksum: 10/9e6b84120276035c9d7e776da4f7e18243116c53fd0c33efca17034971981164720e808dff055e871d08b9ed9d78dc9ebd0d974238baa599d7d91e1560fc1abb
+ checksum: 10/bf555f9774e340d4497c09c980094e759a198f11c5a78b403e639cf01904b9ec3b19a5e9f53567465dd8739da4138e2021ac9a404a99b1a6022add12a4b19a31
languageName: node
linkType: hard
@@ -6308,6 +6296,13 @@ __metadata:
languageName: node
linkType: hard
+"@metamask/slip44@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "@metamask/slip44@npm:4.0.0"
+ checksum: 10/3e47e8834b0fbdabe1f126fd78665767847ddc1f9ccc8defb23007dd71fcd2e4899c8ca04857491be3630668a3765bad1e40fdfca9a61ef33236d8d08e51535e
+ languageName: node
+ linkType: hard
+
"@metamask/smart-transactions-controller@npm:^11.0.0":
version: 11.0.0
resolution: "@metamask/smart-transactions-controller@npm:11.0.0"
@@ -6331,24 +6326,24 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/snaps-controllers@npm:9.2.0":
- version: 9.2.0
- resolution: "@metamask/snaps-controllers@npm:9.2.0"
+"@metamask/snaps-controllers@npm:9.4.0":
+ version: 9.4.0
+ resolution: "@metamask/snaps-controllers@npm:9.4.0"
dependencies:
- "@metamask/approval-controller": "npm:^7.0.0"
- "@metamask/base-controller": "npm:^6.0.0"
- "@metamask/json-rpc-engine": "npm:^9.0.0"
- "@metamask/json-rpc-middleware-stream": "npm:^8.0.0"
+ "@metamask/approval-controller": "npm:^7.0.2"
+ "@metamask/base-controller": "npm:^6.0.2"
+ "@metamask/json-rpc-engine": "npm:^9.0.2"
+ "@metamask/json-rpc-middleware-stream": "npm:^8.0.2"
"@metamask/object-multiplex": "npm:^2.0.0"
- "@metamask/permission-controller": "npm:^10.0.0"
- "@metamask/phishing-controller": "npm:^10.0.0"
+ "@metamask/permission-controller": "npm:^11.0.0"
+ "@metamask/phishing-controller": "npm:^10.1.1"
"@metamask/post-message-stream": "npm:^8.1.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/snaps-registry": "npm:^3.1.0"
- "@metamask/snaps-rpc-methods": "npm:^9.1.4"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/snaps-utils": "npm:^7.7.0"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/snaps-registry": "npm:^3.2.1"
+ "@metamask/snaps-rpc-methods": "npm:^11.0.0"
+ "@metamask/snaps-sdk": "npm:^6.2.0"
+ "@metamask/snaps-utils": "npm:^8.0.0"
+ "@metamask/utils": "npm:^9.1.0"
"@xstate/fsm": "npm:^2.0.0"
browserify-zlib: "npm:^0.2.0"
concat-stream: "npm:^2.0.0"
@@ -6360,32 +6355,32 @@ __metadata:
readable-web-to-node-stream: "npm:^3.0.2"
tar-stream: "npm:^3.1.7"
peerDependencies:
- "@metamask/snaps-execution-environments": ^6.5.0
+ "@metamask/snaps-execution-environments": ^6.6.2
peerDependenciesMeta:
"@metamask/snaps-execution-environments":
optional: true
- checksum: 10/3926bdfc3f064d57162825028aca2cf433e7adfe02ecdade174e2c75686c3dff407ee195f352662754846fc4edad8d2c6c5ce73471e3a09191a91070a98ba046
+ checksum: 10/36c9fb83c675443b1dd9f2bf9eccd1eda1648c5c451bb93e432a358377557f7953b96579d2b5d9605f39bfb96062968a8e612b9500c14fb1fb7bb15d176bd7a1
languageName: node
linkType: hard
-"@metamask/snaps-controllers@patch:@metamask/snaps-controllers@npm%3A9.2.0#~/.yarn/patches/@metamask-snaps-controllers-npm-9.2.0-09a31bab4f.patch":
- version: 9.2.0
- resolution: "@metamask/snaps-controllers@patch:@metamask/snaps-controllers@npm%3A9.2.0#~/.yarn/patches/@metamask-snaps-controllers-npm-9.2.0-09a31bab4f.patch::version=9.2.0&hash=6a6349"
+"@metamask/snaps-controllers@patch:@metamask/snaps-controllers@npm%3A9.4.0#~/.yarn/patches/@metamask-snaps-controllers-npm-9.4.0-7c3abbbea6.patch":
+ version: 9.4.0
+ resolution: "@metamask/snaps-controllers@patch:@metamask/snaps-controllers@npm%3A9.4.0#~/.yarn/patches/@metamask-snaps-controllers-npm-9.4.0-7c3abbbea6.patch::version=9.4.0&hash=ef8724"
dependencies:
- "@metamask/approval-controller": "npm:^7.0.0"
- "@metamask/base-controller": "npm:^6.0.0"
- "@metamask/json-rpc-engine": "npm:^9.0.0"
- "@metamask/json-rpc-middleware-stream": "npm:^8.0.0"
+ "@metamask/approval-controller": "npm:^7.0.2"
+ "@metamask/base-controller": "npm:^6.0.2"
+ "@metamask/json-rpc-engine": "npm:^9.0.2"
+ "@metamask/json-rpc-middleware-stream": "npm:^8.0.2"
"@metamask/object-multiplex": "npm:^2.0.0"
- "@metamask/permission-controller": "npm:^10.0.0"
- "@metamask/phishing-controller": "npm:^10.0.0"
+ "@metamask/permission-controller": "npm:^11.0.0"
+ "@metamask/phishing-controller": "npm:^10.1.1"
"@metamask/post-message-stream": "npm:^8.1.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/snaps-registry": "npm:^3.1.0"
- "@metamask/snaps-rpc-methods": "npm:^9.1.4"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/snaps-utils": "npm:^7.7.0"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/snaps-registry": "npm:^3.2.1"
+ "@metamask/snaps-rpc-methods": "npm:^11.0.0"
+ "@metamask/snaps-sdk": "npm:^6.2.0"
+ "@metamask/snaps-utils": "npm:^8.0.0"
+ "@metamask/utils": "npm:^9.1.0"
"@xstate/fsm": "npm:^2.0.0"
browserify-zlib: "npm:^0.2.0"
concat-stream: "npm:^2.0.0"
@@ -6397,34 +6392,34 @@ __metadata:
readable-web-to-node-stream: "npm:^3.0.2"
tar-stream: "npm:^3.1.7"
peerDependencies:
- "@metamask/snaps-execution-environments": ^6.5.0
+ "@metamask/snaps-execution-environments": ^6.6.2
peerDependenciesMeta:
"@metamask/snaps-execution-environments":
optional: true
- checksum: 10/2df9b875d8a985a6d305f86e2b13e088843040ccde1b4d7d4d5dc7c06116dafa6b4edc2de84086b10c3fe59ab780d74f177dd789a788ea930c5d6477c01e4d0c
+ checksum: 10/b97867e92de6e4c3aca6e5e0dc5f44aca826a038eb2660e5757bb713ab612ca55a58af91750fe5b6e085d23d00fb7df901f2c18e2bade0210ad99ada69b7a3e9
languageName: node
linkType: hard
-"@metamask/snaps-execution-environments@npm:^6.5.0":
- version: 6.5.0
- resolution: "@metamask/snaps-execution-environments@npm:6.5.0"
+"@metamask/snaps-execution-environments@npm:^6.6.2":
+ version: 6.6.2
+ resolution: "@metamask/snaps-execution-environments@npm:6.6.2"
dependencies:
- "@metamask/json-rpc-engine": "npm:^9.0.0"
+ "@metamask/json-rpc-engine": "npm:^9.0.2"
"@metamask/object-multiplex": "npm:^2.0.0"
"@metamask/post-message-stream": "npm:^8.1.0"
- "@metamask/providers": "npm:^17.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/snaps-utils": "npm:^7.7.0"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/providers": "npm:^17.1.2"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/snaps-sdk": "npm:^6.1.0"
+ "@metamask/snaps-utils": "npm:^7.8.1"
+ "@metamask/superstruct": "npm:^3.1.0"
+ "@metamask/utils": "npm:^9.1.0"
nanoid: "npm:^3.1.31"
readable-stream: "npm:^3.6.2"
- superstruct: "npm:^1.0.3"
- checksum: 10/f502fb1ff1c7c574bf4b7e189cc636d85aacb9e86116720a8c6305ce2054a3ebd966b2f73be242bf5f8f301c79f6b3461a7d2c631301b6593ad1d3f09e100c21
+ checksum: 10/b06b03f784b7c20ac9f39f9bec8a7e2e06ebcd8678659e01745d73f1c08bd2605352144bc8ecab7d6b0a7db69ebf62febad517a5c8a1309aa1e173049ce350e7
languageName: node
linkType: hard
-"@metamask/snaps-registry@npm:^3.1.0, @metamask/snaps-registry@npm:^3.2.1":
+"@metamask/snaps-registry@npm:^3.2.1":
version: 3.2.1
resolution: "@metamask/snaps-registry@npm:3.2.1"
dependencies:
@@ -6436,67 +6431,36 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/snaps-rpc-methods@npm:^9.1.4":
- version: 9.1.4
- resolution: "@metamask/snaps-rpc-methods@npm:9.1.4"
+"@metamask/snaps-rpc-methods@npm:^11.0.0":
+ version: 11.0.0
+ resolution: "@metamask/snaps-rpc-methods@npm:11.0.0"
dependencies:
- "@metamask/key-tree": "npm:^9.1.1"
- "@metamask/permission-controller": "npm:^10.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/snaps-utils": "npm:^7.7.0"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/key-tree": "npm:^9.1.2"
+ "@metamask/permission-controller": "npm:^11.0.0"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/snaps-sdk": "npm:^6.2.0"
+ "@metamask/snaps-utils": "npm:^8.0.0"
+ "@metamask/superstruct": "npm:^3.1.0"
+ "@metamask/utils": "npm:^9.1.0"
"@noble/hashes": "npm:^1.3.1"
- superstruct: "npm:^1.0.3"
- checksum: 10/db4963c2eaf1763ca48be4f095b0adae29596efc9ebf7876ac92fa6e3ef8d2bc5d45634293566b8a4703109c569f2666b4350700139d0566cb29f65be77a17f1
- languageName: node
- linkType: hard
-
-"@metamask/snaps-sdk@npm:^6.0.0":
- version: 6.0.0
- resolution: "@metamask/snaps-sdk@npm:6.0.0"
- dependencies:
- "@metamask/key-tree": "npm:^9.1.1"
- "@metamask/providers": "npm:^17.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/utils": "npm:^8.3.0"
- superstruct: "npm:^1.0.3"
- checksum: 10/91774ea791423a3cfef4ddbe30fc0351d9bfb9bad071ebce6a74be85cdd9b864b2666785cb6f0e8257a9778bc630f2de71544258d0367a93917ffe3d72ef90a5
+ checksum: 10/2e594d7f9fde910e87525a6ded9a162d2ea8631249b7868ca710df0d8d25c127674079956976c7443e30c96bedb84bf818748a01aad41cfe69f88524781b994f
languageName: node
linkType: hard
-"@metamask/snaps-utils@npm:7.7.0":
- version: 7.7.0
- resolution: "@metamask/snaps-utils@npm:7.7.0"
+"@metamask/snaps-sdk@npm:^6.2.1":
+ version: 6.2.1
+ resolution: "@metamask/snaps-sdk@npm:6.2.1"
dependencies:
- "@babel/core": "npm:^7.23.2"
- "@babel/types": "npm:^7.23.0"
- "@metamask/base-controller": "npm:^6.0.0"
- "@metamask/key-tree": "npm:^9.1.1"
- "@metamask/permission-controller": "npm:^10.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/slip44": "npm:^3.1.0"
- "@metamask/snaps-registry": "npm:^3.1.0"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/utils": "npm:^8.3.0"
- "@noble/hashes": "npm:^1.3.1"
- "@scure/base": "npm:^1.1.1"
- chalk: "npm:^4.1.2"
- cron-parser: "npm:^4.5.0"
- fast-deep-equal: "npm:^3.1.3"
- fast-json-stable-stringify: "npm:^2.1.0"
- fast-xml-parser: "npm:^4.3.4"
- marked: "npm:^12.0.1"
- rfdc: "npm:^1.3.0"
- semver: "npm:^7.5.4"
- ses: "npm:^1.1.0"
- superstruct: "npm:^1.0.3"
- validate-npm-package-name: "npm:^5.0.0"
- checksum: 10/ac5b216b81157f71244e5922befccb214be402f0f5b784086cea46d7b0142f14f555ec7986cb7c867d1b99bfe43b08a687d8db22db85fada55764c2f4afcff97
+ "@metamask/key-tree": "npm:^9.1.2"
+ "@metamask/providers": "npm:^17.1.2"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/superstruct": "npm:^3.1.0"
+ "@metamask/utils": "npm:^9.1.0"
+ checksum: 10/95728ff7cb5646d04221230c1368f84b1aef931a361ef79689d32426f9f86c6524345e3bd387221a8e7ee0d47e15d1797665bf244566b94cacc09bd643567f05
languageName: node
linkType: hard
-"@metamask/snaps-utils@npm:^7.8.1":
+"@metamask/snaps-utils@npm:^7.4.0, @metamask/snaps-utils@npm:^7.8.1":
version: 7.8.1
resolution: "@metamask/snaps-utils@npm:7.8.1"
dependencies:
@@ -6527,34 +6491,34 @@ __metadata:
languageName: node
linkType: hard
-"@metamask/snaps-utils@patch:@metamask/snaps-utils@npm%3A7.7.0#~/.yarn/patches/@metamask-snaps-utils-npm-7.7.0-2cc1f044af.patch":
- version: 7.7.0
- resolution: "@metamask/snaps-utils@patch:@metamask/snaps-utils@npm%3A7.7.0#~/.yarn/patches/@metamask-snaps-utils-npm-7.7.0-2cc1f044af.patch::version=7.7.0&hash=5f2735"
+"@metamask/snaps-utils@npm:^8.0.0, @metamask/snaps-utils@npm:^8.0.1":
+ version: 8.0.1
+ resolution: "@metamask/snaps-utils@npm:8.0.1"
dependencies:
"@babel/core": "npm:^7.23.2"
"@babel/types": "npm:^7.23.0"
- "@metamask/base-controller": "npm:^6.0.0"
- "@metamask/key-tree": "npm:^9.1.1"
- "@metamask/permission-controller": "npm:^10.0.0"
- "@metamask/rpc-errors": "npm:^6.2.1"
- "@metamask/slip44": "npm:^3.1.0"
- "@metamask/snaps-registry": "npm:^3.1.0"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/utils": "npm:^8.3.0"
+ "@metamask/base-controller": "npm:^6.0.2"
+ "@metamask/key-tree": "npm:^9.1.2"
+ "@metamask/permission-controller": "npm:^11.0.0"
+ "@metamask/rpc-errors": "npm:^6.3.1"
+ "@metamask/slip44": "npm:^4.0.0"
+ "@metamask/snaps-registry": "npm:^3.2.1"
+ "@metamask/snaps-sdk": "npm:^6.2.1"
+ "@metamask/superstruct": "npm:^3.1.0"
+ "@metamask/utils": "npm:^9.1.0"
"@noble/hashes": "npm:^1.3.1"
"@scure/base": "npm:^1.1.1"
chalk: "npm:^4.1.2"
cron-parser: "npm:^4.5.0"
fast-deep-equal: "npm:^3.1.3"
fast-json-stable-stringify: "npm:^2.1.0"
- fast-xml-parser: "npm:^4.3.4"
+ fast-xml-parser: "npm:^4.4.1"
marked: "npm:^12.0.1"
rfdc: "npm:^1.3.0"
semver: "npm:^7.5.4"
ses: "npm:^1.1.0"
- superstruct: "npm:^1.0.3"
validate-npm-package-name: "npm:^5.0.0"
- checksum: 10/9ac16da1c2c1c7e2b857078ff4d9d450db8d5dbf650143ffc7953d2aea70fd58c87d1c1f2429a5a1c1418334d27e87d4a6a03089a55ba86840c417dfdb73b2fe
+ checksum: 10/4c0d58ad04f1e4c625dd01aaf171de0f538afc2003ac928159deee5ebed6d490ccd50575ad585b4f6846aa8d00bccd8f1ea4b32f124e6427873fb985cae8513f
languageName: node
linkType: hard
@@ -18943,6 +18907,17 @@ __metadata:
languageName: node
linkType: hard
+"extension-port-stream@npm:^4.1.0":
+ version: 4.2.0
+ resolution: "extension-port-stream@npm:4.2.0"
+ dependencies:
+ readable-stream: "npm:^3.6.2 || ^4.4.2"
+ peerDependencies:
+ webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0
+ checksum: 10/85559c82e3f3aa21462e234b30b7d53872708893664cd03f2f848af556cf0730cf2243b089efc9d40bbe9a4f73bd8fd19684db5a985329b0c4402b4f2fe26358
+ languageName: node
+ linkType: hard
+
"extglob@npm:^0.3.1":
version: 0.3.2
resolution: "extglob@npm:0.3.2"
@@ -19144,7 +19119,7 @@ __metadata:
languageName: node
linkType: hard
-"fast-xml-parser@npm:^4.3.4":
+"fast-xml-parser@npm:^4.3.4, fast-xml-parser@npm:^4.4.1":
version: 4.4.1
resolution: "fast-xml-parser@npm:4.4.1"
dependencies:
@@ -26060,11 +26035,11 @@ __metadata:
"@metamask/selected-network-controller": "npm:^15.0.2"
"@metamask/signature-controller": "npm:^17.0.0"
"@metamask/smart-transactions-controller": "npm:^11.0.0"
- "@metamask/snaps-controllers": "npm:^9.2.0"
- "@metamask/snaps-execution-environments": "npm:^6.5.0"
- "@metamask/snaps-rpc-methods": "npm:^9.1.4"
- "@metamask/snaps-sdk": "npm:^6.0.0"
- "@metamask/snaps-utils": "patch:@metamask/snaps-utils@npm%3A7.7.0#~/.yarn/patches/@metamask-snaps-utils-npm-7.7.0-2cc1f044af.patch"
+ "@metamask/snaps-controllers": "npm:^9.4.0"
+ "@metamask/snaps-execution-environments": "npm:^6.6.2"
+ "@metamask/snaps-rpc-methods": "npm:^11.0.0"
+ "@metamask/snaps-sdk": "npm:^6.2.1"
+ "@metamask/snaps-utils": "npm:^8.0.1"
"@metamask/test-bundler": "npm:^1.0.0"
"@metamask/test-dapp": "npm:^8.4.0"
"@metamask/transaction-controller": "npm:^34.0.0"