mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
[FLASK] Bump Snaps packages (#20230)
* Bump Snaps packages * Add endowment:lifecycle-hooks permission * Run yarn lint:fix * Fix unit test * Update LavaMoat policies --------- Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
This commit is contained in:
parent
8e24c2130c
commit
7447fe14a9
8
app/_locales/en/messages.json
generated
8
app/_locales/en/messages.json
generated
@ -3163,6 +3163,14 @@
|
|||||||
"message": "Allow the snap to derive arbitrary keys unique to this snap, without exposing them. These keys are separate from your MetaMask account(s) and not related to your private keys or Secret Recovery Phrase. Other snaps cannot access this information.",
|
"message": "Allow the snap to derive arbitrary keys unique to this snap, without exposing them. These keys are separate from your MetaMask account(s) and not related to your private keys or Secret Recovery Phrase. Other snaps cannot access this information.",
|
||||||
"description": "An extended description for the `snap_getEntropy` permission"
|
"description": "An extended description for the `snap_getEntropy` permission"
|
||||||
},
|
},
|
||||||
|
"permission_lifecycleHooks": {
|
||||||
|
"message": "Use lifecycle hooks.",
|
||||||
|
"description": "The description for the `endowment:lifecycle-hooks` permission"
|
||||||
|
},
|
||||||
|
"permission_lifecycleHooksDescription": {
|
||||||
|
"message": "Allow the snap to use lifecycle hooks to run code at specific times during its lifecycle.",
|
||||||
|
"description": "An extended description for the `endowment:lifecycle-hooks` permission"
|
||||||
|
},
|
||||||
"permission_longRunning": {
|
"permission_longRunning": {
|
||||||
"message": "Run indefinitely.",
|
"message": "Run indefinitely.",
|
||||||
"description": "The description for the `endowment:long-running` permission"
|
"description": "The description for the `endowment:long-running` permission"
|
||||||
|
@ -934,6 +934,8 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
'ExecutionService:unhandledError',
|
'ExecutionService:unhandledError',
|
||||||
'ExecutionService:outboundRequest',
|
'ExecutionService:outboundRequest',
|
||||||
'ExecutionService:outboundResponse',
|
'ExecutionService:outboundResponse',
|
||||||
|
'SnapController:snapInstalled',
|
||||||
|
'SnapController:snapUpdated',
|
||||||
],
|
],
|
||||||
allowedActions: [
|
allowedActions: [
|
||||||
`${this.permissionController.name}:getEndowments`,
|
`${this.permissionController.name}:getEndowments`,
|
||||||
|
@ -52,7 +52,7 @@ buildTypes:
|
|||||||
- SEGMENT_FLASK_WRITE_KEY
|
- SEGMENT_FLASK_WRITE_KEY
|
||||||
- ALLOW_LOCAL_SNAPS: true
|
- ALLOW_LOCAL_SNAPS: true
|
||||||
- REQUIRE_SNAPS_ALLOWLIST: false
|
- REQUIRE_SNAPS_ALLOWLIST: false
|
||||||
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/0.37.1-flask.1/index.html
|
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/0.38.0-flask.1/index.html
|
||||||
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
|
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
|
||||||
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
|
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
|
||||||
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
|
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
|
||||||
@ -71,7 +71,7 @@ buildTypes:
|
|||||||
- SEGMENT_FLASK_WRITE_KEY
|
- SEGMENT_FLASK_WRITE_KEY
|
||||||
- ALLOW_LOCAL_SNAPS: true
|
- ALLOW_LOCAL_SNAPS: true
|
||||||
- REQUIRE_SNAPS_ALLOWLIST: false
|
- REQUIRE_SNAPS_ALLOWLIST: false
|
||||||
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/0.37.1-flask.1/index.html
|
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/0.38.0-flask.1/index.html
|
||||||
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
|
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
|
||||||
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
|
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
|
||||||
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
|
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
|
||||||
|
@ -1978,6 +1978,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -2150,13 +2153,47 @@
|
|||||||
"@metamask/key-tree": true,
|
"@metamask/key-tree": true,
|
||||||
"@metamask/key-tree>@noble/hashes": true,
|
"@metamask/key-tree>@noble/hashes": true,
|
||||||
"@metamask/permission-controller": true,
|
"@metamask/permission-controller": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": true,
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils>@metamask/snaps-ui": true,
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-utils": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
"eth-rpc-errors": true,
|
"eth-rpc-errors": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": {
|
||||||
|
"packages": {
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
|
"superstruct": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-utils": {
|
||||||
|
"globals": {
|
||||||
|
"TextDecoder": true,
|
||||||
|
"URL": true,
|
||||||
|
"console.error": true,
|
||||||
|
"console.log": true,
|
||||||
|
"console.warn": true,
|
||||||
|
"document.body.appendChild": true,
|
||||||
|
"document.createElement": true
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"@metamask/key-tree": true,
|
||||||
|
"@metamask/key-tree>@noble/hashes": true,
|
||||||
|
"@metamask/key-tree>@scure/base": true,
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
|
"@metamask/snaps-utils-flask>is-svg": true,
|
||||||
|
"@metamask/snaps-utils>cron-parser": true,
|
||||||
|
"@metamask/snaps-utils>fast-json-stable-stringify": true,
|
||||||
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
|
"semver": true,
|
||||||
|
"superstruct": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": {
|
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"TextDecoder": true,
|
"TextDecoder": true,
|
||||||
@ -2178,6 +2215,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -2392,6 +2432,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -3562,6 +3605,22 @@
|
|||||||
"document.createElement": true
|
"document.createElement": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"chalk": {
|
||||||
|
"packages": {
|
||||||
|
"chalk>ansi-styles": true,
|
||||||
|
"chalk>supports-color": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk>ansi-styles": {
|
||||||
|
"packages": {
|
||||||
|
"chalk>ansi-styles>color-convert": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk>ansi-styles>color-convert": {
|
||||||
|
"packages": {
|
||||||
|
"jest-canvas-mock>moo-color>color-name": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"classnames": {
|
"classnames": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"classNames": "write",
|
"classNames": "write",
|
||||||
|
@ -1978,6 +1978,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -2150,13 +2153,47 @@
|
|||||||
"@metamask/key-tree": true,
|
"@metamask/key-tree": true,
|
||||||
"@metamask/key-tree>@noble/hashes": true,
|
"@metamask/key-tree>@noble/hashes": true,
|
||||||
"@metamask/permission-controller": true,
|
"@metamask/permission-controller": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": true,
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils>@metamask/snaps-ui": true,
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-utils": true,
|
||||||
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
"eth-rpc-errors": true,
|
"eth-rpc-errors": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": {
|
||||||
|
"packages": {
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
|
"superstruct": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-utils": {
|
||||||
|
"globals": {
|
||||||
|
"TextDecoder": true,
|
||||||
|
"URL": true,
|
||||||
|
"console.error": true,
|
||||||
|
"console.log": true,
|
||||||
|
"console.warn": true,
|
||||||
|
"document.body.appendChild": true,
|
||||||
|
"document.createElement": true
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"@metamask/key-tree": true,
|
||||||
|
"@metamask/key-tree>@noble/hashes": true,
|
||||||
|
"@metamask/key-tree>@scure/base": true,
|
||||||
|
"@metamask/snaps-controllers-flask>@metamask/utils": true,
|
||||||
|
"@metamask/snaps-utils-flask>is-svg": true,
|
||||||
|
"@metamask/snaps-utils>cron-parser": true,
|
||||||
|
"@metamask/snaps-utils>fast-json-stable-stringify": true,
|
||||||
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
|
"semver": true,
|
||||||
|
"superstruct": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": {
|
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"TextDecoder": true,
|
"TextDecoder": true,
|
||||||
@ -2178,6 +2215,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -2392,6 +2432,9 @@
|
|||||||
"@metamask/snaps-utils>rfdc": true,
|
"@metamask/snaps-utils>rfdc": true,
|
||||||
"@metamask/snaps-utils>validate-npm-package-name": true,
|
"@metamask/snaps-utils>validate-npm-package-name": true,
|
||||||
"browserify>buffer": true,
|
"browserify>buffer": true,
|
||||||
|
"browserify>path-browserify": true,
|
||||||
|
"browserify>process": true,
|
||||||
|
"chalk": true,
|
||||||
"semver": true,
|
"semver": true,
|
||||||
"superstruct": true
|
"superstruct": true
|
||||||
}
|
}
|
||||||
@ -3562,6 +3605,22 @@
|
|||||||
"document.createElement": true
|
"document.createElement": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"chalk": {
|
||||||
|
"packages": {
|
||||||
|
"chalk>ansi-styles": true,
|
||||||
|
"chalk>supports-color": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk>ansi-styles": {
|
||||||
|
"packages": {
|
||||||
|
"chalk>ansi-styles>color-convert": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk>ansi-styles>color-convert": {
|
||||||
|
"packages": {
|
||||||
|
"jest-canvas-mock>moo-color>color-name": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"classnames": {
|
"classnames": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"classNames": "write",
|
"classNames": "write",
|
||||||
|
@ -258,18 +258,18 @@
|
|||||||
"@metamask/providers": "^11.1.0",
|
"@metamask/providers": "^11.1.0",
|
||||||
"@metamask/rate-limit-controller": "^3.0.0",
|
"@metamask/rate-limit-controller": "^3.0.0",
|
||||||
"@metamask/rpc-methods": "^1.0.0-prerelease.1",
|
"@metamask/rpc-methods": "^1.0.0-prerelease.1",
|
||||||
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.37.1-flask.1",
|
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.37.2-flask.1",
|
||||||
"@metamask/safe-event-emitter": "^2.0.0",
|
"@metamask/safe-event-emitter": "^2.0.0",
|
||||||
"@metamask/scure-bip39": "^2.0.3",
|
"@metamask/scure-bip39": "^2.0.3",
|
||||||
"@metamask/signature-controller": "^4.0.1",
|
"@metamask/signature-controller": "^4.0.1",
|
||||||
"@metamask/slip44": "^3.0.0",
|
"@metamask/slip44": "^3.0.0",
|
||||||
"@metamask/smart-transactions-controller": "^3.1.0",
|
"@metamask/smart-transactions-controller": "^3.1.0",
|
||||||
"@metamask/snaps-controllers": "^1.0.0-prerelease.1",
|
"@metamask/snaps-controllers": "^1.0.0-prerelease.1",
|
||||||
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.37.1-flask.1",
|
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.38.0-flask.1",
|
||||||
"@metamask/snaps-ui": "^1.0.0-prerelease.1",
|
"@metamask/snaps-ui": "^1.0.0-prerelease.1",
|
||||||
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.37.1-flask.1",
|
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.37.3-flask.1",
|
||||||
"@metamask/snaps-utils": "^1.0.0-prerelease.1",
|
"@metamask/snaps-utils": "^1.0.0-prerelease.1",
|
||||||
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.37.1-flask.1",
|
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.38.0-flask.1",
|
||||||
"@metamask/subject-metadata-controller": "^2.0.0",
|
"@metamask/subject-metadata-controller": "^2.0.0",
|
||||||
"@metamask/utils": "^5.0.0",
|
"@metamask/utils": "^5.0.0",
|
||||||
"@ngraveio/bc-ur": "^1.1.6",
|
"@ngraveio/bc-ur": "^1.1.6",
|
||||||
|
@ -9,10 +9,12 @@ import {
|
|||||||
|
|
||||||
describe('EndowmentPermissions', () => {
|
describe('EndowmentPermissions', () => {
|
||||||
it('has the expected permission keys', () => {
|
it('has the expected permission keys', () => {
|
||||||
// Since long-running is fenced out this causes problems with the test, we re-add it here.
|
// Since some permissions are fenced out, this causes problems with the
|
||||||
|
// test, so we re-add them here.
|
||||||
expect(Object.keys(EndowmentPermissions).sort()).toStrictEqual(
|
expect(Object.keys(EndowmentPermissions).sort()).toStrictEqual(
|
||||||
[
|
[
|
||||||
'endowment:long-running',
|
'endowment:long-running',
|
||||||
|
'endowment:lifecycle-hooks',
|
||||||
...Object.keys(endowmentPermissionBuilders).filter(
|
...Object.keys(endowmentPermissionBuilders).filter(
|
||||||
(targetName) =>
|
(targetName) =>
|
||||||
!Object.keys(ExcludedSnapEndowments).includes(targetName),
|
!Object.keys(ExcludedSnapEndowments).includes(targetName),
|
||||||
|
@ -7,6 +7,7 @@ export const EndowmentPermissions = Object.freeze({
|
|||||||
'endowment:webassembly': 'endowment:webassembly',
|
'endowment:webassembly': 'endowment:webassembly',
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-flask)
|
///: BEGIN:ONLY_INCLUDE_IN(build-flask)
|
||||||
'endowment:long-running': 'endowment:long-running',
|
'endowment:long-running': 'endowment:long-running',
|
||||||
|
'endowment:lifecycle-hooks': 'endowment:lifecycle-hooks',
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
} as const);
|
} as const);
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ export const ExcludedSnapPermissions = Object.freeze({
|
|||||||
'This permission is still in development and therefore not available.',
|
'This permission is still in development and therefore not available.',
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
eth_accounts:
|
eth_accounts:
|
||||||
'eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps-monorepo/issues/990.',
|
'eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps/issues/990.',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ExcludedSnapEndowments = Object.freeze({
|
export const ExcludedSnapEndowments = Object.freeze({
|
||||||
@ -26,7 +27,9 @@ export const ExcludedSnapEndowments = Object.freeze({
|
|||||||
'endowment:keyring':
|
'endowment:keyring':
|
||||||
'This endowment is still in development therefore not available.',
|
'This endowment is still in development therefore not available.',
|
||||||
'endowment:long-running':
|
'endowment:long-running':
|
||||||
'endowment:long-running is deprecated. For more information please see https://github.com/MetaMask/snaps-monorepo/issues/945.',
|
'endowment:long-running is deprecated. For more information please see https://github.com/MetaMask/snaps/issues/945.',
|
||||||
|
'endowment:lifecycle-hooks':
|
||||||
|
'This endowment is experimental and therefore not available.',
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -389,6 +389,12 @@ export const PERMISSION_DESCRIPTIONS = deepFreeze({
|
|||||||
|
|
||||||
return results;
|
return results;
|
||||||
},
|
},
|
||||||
|
[EndowmentPermissions['endowment:lifecycle-hooks']]: ({ t }) => ({
|
||||||
|
label: t('permission_lifecycleHooks'),
|
||||||
|
description: t('permission_lifecycleHooksDescription'),
|
||||||
|
leftIcon: IconName.Hierarchy,
|
||||||
|
weight: 3,
|
||||||
|
}),
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(keyring-snaps)
|
///: BEGIN:ONLY_INCLUDE_IN(keyring-snaps)
|
||||||
[RestrictedMethods.snap_manageAccounts]: ({ t }) => ({
|
[RestrictedMethods.snap_manageAccounts]: ({ t }) => ({
|
||||||
|
107
yarn.lock
107
yarn.lock
@ -4683,20 +4683,20 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/rpc-methods-flask@npm:@metamask/rpc-methods@0.37.1-flask.1, @metamask/rpc-methods@npm:^0.37.1-flask.1":
|
"@metamask/rpc-methods-flask@npm:@metamask/rpc-methods@0.37.2-flask.1, @metamask/rpc-methods@npm:^0.37.2-flask.1":
|
||||||
version: 0.37.1-flask.1
|
version: 0.37.2-flask.1
|
||||||
resolution: "@metamask/rpc-methods@npm:0.37.1-flask.1"
|
resolution: "@metamask/rpc-methods@npm:0.37.2-flask.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/key-tree": ^9.0.0
|
"@metamask/key-tree": ^9.0.0
|
||||||
"@metamask/permission-controller": ^4.0.0
|
"@metamask/permission-controller": ^4.0.0
|
||||||
"@metamask/snaps-ui": ^0.37.1-flask.1
|
"@metamask/snaps-ui": ^0.37.2-flask.1
|
||||||
"@metamask/snaps-utils": ^0.37.1-flask.1
|
"@metamask/snaps-utils": ^0.37.2-flask.1
|
||||||
"@metamask/types": ^1.1.0
|
"@metamask/types": ^1.1.0
|
||||||
"@metamask/utils": ^6.0.1
|
"@metamask/utils": ^6.0.1
|
||||||
"@noble/hashes": ^1.3.1
|
"@noble/hashes": ^1.3.1
|
||||||
eth-rpc-errors: ^4.0.3
|
eth-rpc-errors: ^4.0.3
|
||||||
superstruct: ^1.0.3
|
superstruct: ^1.0.3
|
||||||
checksum: 75515666e9347d59f5c4658c85daec061839f80279164e05d1950d2c83e29e19a37230d03f6d373ad48eab271579a19e8b93fe89ff5f2068633496cf3169848b
|
checksum: f5b955c3a7b7c042c27aa5d9464ea5d9135104c20af3315ea00d8941c5c6379c12c82c0988bc5c21409f4dd8b740bb93b387e2ee115c914b434e28101cd9d877
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -4825,19 +4825,19 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-controllers-flask@npm:@metamask/snaps-controllers@0.37.1-flask.1":
|
"@metamask/snaps-controllers-flask@npm:@metamask/snaps-controllers@0.38.0-flask.1":
|
||||||
version: 0.37.1-flask.1
|
version: 0.38.0-flask.1
|
||||||
resolution: "@metamask/snaps-controllers@npm:0.37.1-flask.1"
|
resolution: "@metamask/snaps-controllers@npm:0.38.0-flask.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/approval-controller": ^3.0.0
|
"@metamask/approval-controller": ^3.0.0
|
||||||
"@metamask/base-controller": ^3.0.0
|
"@metamask/base-controller": ^3.0.0
|
||||||
"@metamask/object-multiplex": ^1.2.0
|
"@metamask/object-multiplex": ^1.2.0
|
||||||
"@metamask/permission-controller": ^4.0.0
|
"@metamask/permission-controller": ^4.0.0
|
||||||
"@metamask/post-message-stream": ^6.1.2
|
"@metamask/post-message-stream": ^6.1.2
|
||||||
"@metamask/rpc-methods": ^0.37.1-flask.1
|
"@metamask/rpc-methods": ^0.37.2-flask.1
|
||||||
"@metamask/snaps-execution-environments": ^0.37.1-flask.1
|
"@metamask/snaps-execution-environments": ^0.38.0-flask.1
|
||||||
"@metamask/snaps-registry": ^1.2.1
|
"@metamask/snaps-registry": ^1.2.1
|
||||||
"@metamask/snaps-utils": ^0.37.1-flask.1
|
"@metamask/snaps-utils": ^0.38.0-flask.1
|
||||||
"@metamask/utils": ^6.0.1
|
"@metamask/utils": ^6.0.1
|
||||||
"@xstate/fsm": ^2.0.0
|
"@xstate/fsm": ^2.0.0
|
||||||
concat-stream: ^2.0.0
|
concat-stream: ^2.0.0
|
||||||
@ -4851,7 +4851,7 @@ __metadata:
|
|||||||
pump: ^3.0.0
|
pump: ^3.0.0
|
||||||
readable-web-to-node-stream: ^3.0.2
|
readable-web-to-node-stream: ^3.0.2
|
||||||
tar-stream: ^2.2.0
|
tar-stream: ^2.2.0
|
||||||
checksum: f36e2cb69569d950b6da6f977be2dabe2cb28aa69a14d252834b5a6be3ce631337ca5ab9b997fb1cc56c1c070e595efebf9e525ce0a59b18b84fda9a0c8bb731
|
checksum: 538d2fc5295f094d5852c8385b99c60daf3874628f6627926b10412a309d86a7ee3e5bcb61f8c3fdd40b403d6ea08795aa2d338271924c36c6204d65adfcacd6
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -4936,15 +4936,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-execution-environments@npm:^0.37.1-flask.1":
|
"@metamask/snaps-execution-environments@npm:^0.38.0-flask.1":
|
||||||
version: 0.37.1-flask.1
|
version: 0.38.0-flask.1
|
||||||
resolution: "@metamask/snaps-execution-environments@npm:0.37.1-flask.1"
|
resolution: "@metamask/snaps-execution-environments@npm:0.38.0-flask.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/object-multiplex": ^1.2.0
|
"@metamask/object-multiplex": ^1.2.0
|
||||||
"@metamask/post-message-stream": ^6.1.2
|
"@metamask/post-message-stream": ^6.1.2
|
||||||
"@metamask/providers": ^11.0.0
|
"@metamask/providers": ^11.0.0
|
||||||
"@metamask/rpc-methods": ^0.37.1-flask.1
|
"@metamask/rpc-methods": ^0.37.2-flask.1
|
||||||
"@metamask/snaps-utils": ^0.37.1-flask.1
|
"@metamask/snaps-utils": ^0.38.0-flask.1
|
||||||
"@metamask/utils": ^6.0.1
|
"@metamask/utils": ^6.0.1
|
||||||
eth-rpc-errors: ^4.0.3
|
eth-rpc-errors: ^4.0.3
|
||||||
json-rpc-engine: ^6.1.0
|
json-rpc-engine: ^6.1.0
|
||||||
@ -4953,7 +4953,7 @@ __metadata:
|
|||||||
ses: ^0.18.1
|
ses: ^0.18.1
|
||||||
stream-browserify: ^3.0.0
|
stream-browserify: ^3.0.0
|
||||||
superstruct: ^1.0.3
|
superstruct: ^1.0.3
|
||||||
checksum: 4a02b82fd83e957029bbab0d96001221ae82e81c68f38394915946983f1a66f96faa2dc16946c01b962463ee202825529ff9d115836e56a99f658848e0367da8
|
checksum: 725163d03c3c17d0a67ad5829adf69da8bcd2d3890efd984ff5954a19aeeeb4e024a96810d9ae9d5f095f1e39965376f62d41637ff61c59519f46c093f05b0f9
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -4988,13 +4988,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-ui-flask@npm:@metamask/snaps-ui@0.37.1-flask.1, @metamask/snaps-ui@npm:^0.37.1-flask.1":
|
"@metamask/snaps-ui-flask@npm:@metamask/snaps-ui@0.37.3-flask.1, @metamask/snaps-ui@npm:^0.37.3-flask.1":
|
||||||
version: 0.37.1-flask.1
|
version: 0.37.3-flask.1
|
||||||
resolution: "@metamask/snaps-ui@npm:0.37.1-flask.1"
|
resolution: "@metamask/snaps-ui@npm:0.37.3-flask.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/utils": ^6.0.1
|
"@metamask/utils": ^6.0.1
|
||||||
superstruct: ^1.0.3
|
superstruct: ^1.0.3
|
||||||
checksum: d4f32e56fb5a2fcb1b45ff12fe995d4f3dd812520d397094f69a31087d0923c5111b8727bbec3d1ab93db911d23994b56f1f2a6136703208307b2bed440ef662
|
checksum: 0b93f6edeca18afc799f16be8b4e4d758800ea0d68298c70492dc85f74ec9f79c2aa32749f6725bb83a4896fdb1ec95a7d19a10a617484e0a7574ddad7969bd3
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -5008,6 +5008,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@metamask/snaps-ui@npm:^0.37.2-flask.1":
|
||||||
|
version: 0.37.2-flask.1
|
||||||
|
resolution: "@metamask/snaps-ui@npm:0.37.2-flask.1"
|
||||||
|
dependencies:
|
||||||
|
"@metamask/utils": ^6.0.1
|
||||||
|
superstruct: ^1.0.3
|
||||||
|
checksum: a52a887411d689a7a0b017b3741c76819567416c7943ca3c71f5b5f8b623605689f370f70caa8a22531d711d10738c913b0d561fcda09a92c38e288d115e6bac
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-ui@npm:^1.0.0-prerelease.1":
|
"@metamask/snaps-ui@npm:^1.0.0-prerelease.1":
|
||||||
version: 1.0.0-prerelease.1
|
version: 1.0.0-prerelease.1
|
||||||
resolution: "@metamask/snaps-ui@npm:1.0.0-prerelease.1"
|
resolution: "@metamask/snaps-ui@npm:1.0.0-prerelease.1"
|
||||||
@ -5018,9 +5028,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-utils-flask@npm:@metamask/snaps-utils@0.37.1-flask.1, @metamask/snaps-utils@npm:^0.37.1-flask.1":
|
"@metamask/snaps-utils-flask@npm:@metamask/snaps-utils@0.38.0-flask.1, @metamask/snaps-utils@npm:^0.38.0-flask.1":
|
||||||
version: 0.37.1-flask.1
|
version: 0.38.0-flask.1
|
||||||
resolution: "@metamask/snaps-utils@npm:0.37.1-flask.1"
|
resolution: "@metamask/snaps-utils@npm:0.38.0-flask.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/core": ^7.20.12
|
"@babel/core": ^7.20.12
|
||||||
"@babel/types": ^7.18.7
|
"@babel/types": ^7.18.7
|
||||||
@ -5029,21 +5039,22 @@ __metadata:
|
|||||||
"@metamask/permission-controller": ^4.0.0
|
"@metamask/permission-controller": ^4.0.0
|
||||||
"@metamask/providers": ^11.0.0
|
"@metamask/providers": ^11.0.0
|
||||||
"@metamask/snaps-registry": ^1.2.1
|
"@metamask/snaps-registry": ^1.2.1
|
||||||
"@metamask/snaps-ui": ^0.37.1-flask.1
|
"@metamask/snaps-ui": ^0.37.3-flask.1
|
||||||
"@metamask/utils": ^6.0.1
|
"@metamask/utils": ^6.0.1
|
||||||
"@noble/hashes": ^1.3.1
|
"@noble/hashes": ^1.3.1
|
||||||
"@scure/base": ^1.1.1
|
"@scure/base": ^1.1.1
|
||||||
|
chalk: ^4.1.2
|
||||||
cron-parser: ^4.5.0
|
cron-parser: ^4.5.0
|
||||||
eth-rpc-errors: ^4.0.3
|
eth-rpc-errors: ^4.0.3
|
||||||
fast-deep-equal: ^3.1.3
|
fast-deep-equal: ^3.1.3
|
||||||
fast-json-stable-stringify: ^2.1.0
|
fast-json-stable-stringify: ^2.1.0
|
||||||
is-svg: ^4.4.0
|
is-svg: ^4.4.0
|
||||||
rfdc: ^1.3.0
|
rfdc: ^1.3.0
|
||||||
semver: ^7.3.7
|
semver: ^7.5.4
|
||||||
ses: ^0.18.1
|
ses: ^0.18.1
|
||||||
superstruct: ^1.0.3
|
superstruct: ^1.0.3
|
||||||
validate-npm-package-name: ^5.0.0
|
validate-npm-package-name: ^5.0.0
|
||||||
checksum: 3c49e5ac9c01d2f3db497dc5e1c6557641dcc35d358b35f4a244235b7e0c855e8bb7e582cd28d33647295838e31cd679225c5496ca67060b7088c4644d9ba335
|
checksum: 9b79feabcf3a99f0faa53c87711e0de155807d49dd3a9117933b9636d529fa3f3449bd563535f056fc7cbb3eaffcd9e9703b02985bdb6cfdc090d096d76dad8e
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -5076,6 +5087,36 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@metamask/snaps-utils@npm:^0.37.2-flask.1":
|
||||||
|
version: 0.37.2-flask.1
|
||||||
|
resolution: "@metamask/snaps-utils@npm:0.37.2-flask.1"
|
||||||
|
dependencies:
|
||||||
|
"@babel/core": ^7.20.12
|
||||||
|
"@babel/types": ^7.18.7
|
||||||
|
"@metamask/base-controller": ^3.0.0
|
||||||
|
"@metamask/key-tree": ^9.0.0
|
||||||
|
"@metamask/permission-controller": ^4.0.0
|
||||||
|
"@metamask/providers": ^11.0.0
|
||||||
|
"@metamask/snaps-registry": ^1.2.1
|
||||||
|
"@metamask/snaps-ui": ^0.37.2-flask.1
|
||||||
|
"@metamask/utils": ^6.0.1
|
||||||
|
"@noble/hashes": ^1.3.1
|
||||||
|
"@scure/base": ^1.1.1
|
||||||
|
chalk: ^4.1.2
|
||||||
|
cron-parser: ^4.5.0
|
||||||
|
eth-rpc-errors: ^4.0.3
|
||||||
|
fast-deep-equal: ^3.1.3
|
||||||
|
fast-json-stable-stringify: ^2.1.0
|
||||||
|
is-svg: ^4.4.0
|
||||||
|
rfdc: ^1.3.0
|
||||||
|
semver: ^7.3.7
|
||||||
|
ses: ^0.18.1
|
||||||
|
superstruct: ^1.0.3
|
||||||
|
validate-npm-package-name: ^5.0.0
|
||||||
|
checksum: eeb31013a8af39b5488fdb8a6a72e11c54274e423e0f2560fd5cf4ea0278e278aff60be070c1e5b847d84220f15338e01c4725ce7ebb5f3fc614553ae4235f44
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@metamask/snaps-utils@npm:^1.0.0-prerelease.1":
|
"@metamask/snaps-utils@npm:^1.0.0-prerelease.1":
|
||||||
version: 1.0.0-prerelease.1
|
version: 1.0.0-prerelease.1
|
||||||
resolution: "@metamask/snaps-utils@npm:1.0.0-prerelease.1"
|
resolution: "@metamask/snaps-utils@npm:1.0.0-prerelease.1"
|
||||||
@ -24716,18 +24757,18 @@ __metadata:
|
|||||||
"@metamask/providers": ^11.1.0
|
"@metamask/providers": ^11.1.0
|
||||||
"@metamask/rate-limit-controller": ^3.0.0
|
"@metamask/rate-limit-controller": ^3.0.0
|
||||||
"@metamask/rpc-methods": ^1.0.0-prerelease.1
|
"@metamask/rpc-methods": ^1.0.0-prerelease.1
|
||||||
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.37.1-flask.1"
|
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.37.2-flask.1"
|
||||||
"@metamask/safe-event-emitter": ^2.0.0
|
"@metamask/safe-event-emitter": ^2.0.0
|
||||||
"@metamask/scure-bip39": ^2.0.3
|
"@metamask/scure-bip39": ^2.0.3
|
||||||
"@metamask/signature-controller": ^4.0.1
|
"@metamask/signature-controller": ^4.0.1
|
||||||
"@metamask/slip44": ^3.0.0
|
"@metamask/slip44": ^3.0.0
|
||||||
"@metamask/smart-transactions-controller": ^3.1.0
|
"@metamask/smart-transactions-controller": ^3.1.0
|
||||||
"@metamask/snaps-controllers": ^1.0.0-prerelease.1
|
"@metamask/snaps-controllers": ^1.0.0-prerelease.1
|
||||||
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.37.1-flask.1"
|
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.38.0-flask.1"
|
||||||
"@metamask/snaps-ui": ^1.0.0-prerelease.1
|
"@metamask/snaps-ui": ^1.0.0-prerelease.1
|
||||||
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.37.1-flask.1"
|
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.37.3-flask.1"
|
||||||
"@metamask/snaps-utils": ^1.0.0-prerelease.1
|
"@metamask/snaps-utils": ^1.0.0-prerelease.1
|
||||||
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.37.1-flask.1"
|
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.38.0-flask.1"
|
||||||
"@metamask/subject-metadata-controller": ^2.0.0
|
"@metamask/subject-metadata-controller": ^2.0.0
|
||||||
"@metamask/test-dapp": ^7.0.1
|
"@metamask/test-dapp": ^7.0.1
|
||||||
"@metamask/utils": ^5.0.0
|
"@metamask/utils": ^5.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user