diff --git a/packages/snap/package.json b/packages/snap/package.json index 41d0cb1..9da6e81 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -39,7 +39,7 @@ "@metamask/eslint-config-nodejs": "^12.1.0", "@metamask/eslint-config-typescript": "^12.1.0", "@metamask/snaps-cli": "^6.2.0", - "@metamask/snaps-jest": "^7.0.0", + "@metamask/snaps-jest": "^8.3.1", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^5.42.1", "eslint": "^8.45.0", diff --git a/yarn.lock b/yarn.lock index 9e5086c..0e08b85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2578,25 +2578,25 @@ __metadata: languageName: node linkType: hard -"@metamask/abi-utils@npm:^2.0.2": - version: 2.0.2 - resolution: "@metamask/abi-utils@npm:2.0.2" +"@metamask/abi-utils@npm:^2.0.4": + version: 2.0.4 + resolution: "@metamask/abi-utils@npm:2.0.4" dependencies: - "@metamask/utils": ^8.0.0 - superstruct: ^1.0.3 - checksum: 5ec153e7691a4e1dc8738a0ba1a99a354ddb13851fa88a40a19f002f6308310e71c2cee28c3a25d9f7f67e839c7dffe4760e93e308dd17fa725b08d0dc73a3d4 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.0.0 + checksum: 85b15419248ddec1ab59ec5f3e41276f7509dadd9ced871658fa3cc04805ad35ace96986416aaecd24e3630e92b0ed078328966c92383ffa9b1cc3f0f357ad6c languageName: node linkType: hard -"@metamask/approval-controller@npm:^6.0.1": - version: 6.0.1 - resolution: "@metamask/approval-controller@npm:6.0.1" +"@metamask/approval-controller@npm:^7.0.2": + version: 7.0.3 + resolution: "@metamask/approval-controller@npm:7.0.3" dependencies: - "@metamask/base-controller": ^5.0.1 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/utils": ^8.3.0 + "@metamask/base-controller": ^7.0.0 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/utils": ^9.1.0 nanoid: ^3.1.31 - checksum: 743a06a11fe10f413631696a5ef74f225092ca5c1bef979b656215eccaffb5ad6eb31fc738d948e4668a62788175de246e692674886c397aa15587dc6667889c + checksum: 207f3592168ffbf03a8e8adb1ba1ae485f480c20ce918551dff460b7b1050a922c69f8da1e3152960a2410baf745d7d3a74fe083bd3818e2193e8151572ae6b5 languageName: node linkType: hard @@ -2635,6 +2635,26 @@ __metadata: languageName: node linkType: hard +"@metamask/base-controller@npm:^6.0.2": + version: 6.0.3 + resolution: "@metamask/base-controller@npm:6.0.3" + dependencies: + "@metamask/utils": ^9.1.0 + immer: ^9.0.6 + checksum: cb9f6a28ea4373e30dc5591d8b1b5516c703765f956e06823021274253a07b88945c5d9d247d3954501efcd21ccc390e1393f3c3cc6d669765d7dabb63f1fd45 + languageName: node + linkType: hard + +"@metamask/base-controller@npm:^7.0.0": + version: 7.0.0 + resolution: "@metamask/base-controller@npm:7.0.0" + dependencies: + "@metamask/utils": ^9.1.0 + immer: ^9.0.6 + checksum: e71d695fff2011e241862868c5771996204e5348ffb11f1beb229956e3d1f175d01915180c570f426cd5f09cdc7aca3a5d8b32342e89659cfdff1c66fba40fb7 + languageName: node + linkType: hard + "@metamask/controller-utils@npm:^11.0.0": version: 11.0.0 resolution: "@metamask/controller-utils@npm:11.0.0" @@ -2652,6 +2672,23 @@ __metadata: languageName: node linkType: hard +"@metamask/controller-utils@npm:^11.2.0": + version: 11.2.0 + resolution: "@metamask/controller-utils@npm:11.2.0" + dependencies: + "@ethereumjs/util": ^8.1.0 + "@metamask/eth-query": ^4.0.0 + "@metamask/ethjs-unit": ^0.3.0 + "@metamask/utils": ^9.1.0 + "@spruceid/siwe-parser": 2.1.0 + "@types/bn.js": ^5.1.5 + bn.js: ^5.2.1 + eth-ens-namehash: ^2.0.8 + fast-deep-equal: ^3.1.3 + checksum: 59e3d32754001b2ac008ca44338be948ec1b7648fe56a4dc38bcc61ae46afe410aa40eaad68562c34f872d2fccd792829d60fcf6b2ec5512a007cd4948c23316 + languageName: node + linkType: hard + "@metamask/controller-utils@npm:^9.0.1": version: 9.0.2 resolution: "@metamask/controller-utils@npm:9.0.2" @@ -2729,31 +2766,48 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-json-rpc-middleware@npm:^12.1.0": - version: 12.1.0 - resolution: "@metamask/eth-json-rpc-middleware@npm:12.1.0" - dependencies: - "@metamask/eth-json-rpc-provider": ^2.1.0 - "@metamask/eth-sig-util": ^7.0.0 - "@metamask/json-rpc-engine": ^7.1.1 - "@metamask/rpc-errors": ^6.0.0 - "@metamask/utils": ^8.1.0 - eth-block-tracker: ^8.0.0 +"@metamask/eth-block-tracker@npm:^11.0.1": + version: 11.0.1 + resolution: "@metamask/eth-block-tracker@npm:11.0.1" + dependencies: + "@metamask/eth-json-rpc-provider": ^4.1.1 + "@metamask/safe-event-emitter": ^3.1.1 + "@metamask/utils": ^9.1.0 + json-rpc-random-id: ^1.0.1 + pify: ^5.0.0 + checksum: 74c1259f7c2ee3074d5d5dc337fb81a89f562c755756210cd3eccc7fb9674c9101d58d88d6ac4c1a48a5676f85b99b87773819b26c52f41eae8e6ced454e11f9 + languageName: node + linkType: hard + +"@metamask/eth-json-rpc-middleware@npm:^14.0.0": + version: 14.0.1 + resolution: "@metamask/eth-json-rpc-middleware@npm:14.0.1" + dependencies: + "@metamask/eth-block-tracker": ^11.0.1 + "@metamask/eth-json-rpc-provider": ^4.1.1 + "@metamask/eth-sig-util": ^7.0.3 + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/utils": ^9.1.0 + "@types/bn.js": ^5.1.5 + bn.js: ^5.2.1 klona: ^2.0.6 pify: ^5.0.0 safe-stable-stringify: ^2.4.3 - checksum: de4f0afb80575d853901812406e9c58bafd3a1679164b2b9fa60dcfc8841c7e625661b9f1ebe5ef4d0d15b66736a7a5495388de879739689af9a9539daf1fdfa + checksum: ec5746e5389534412c6996031d893cc3859feaf2b1b550c332e14823018b4e1069e6545312646c6843227369d5c80243137ab85571dbb01f4a68234bdf190839 languageName: node linkType: hard -"@metamask/eth-json-rpc-provider@npm:^2.1.0": - version: 2.3.2 - resolution: "@metamask/eth-json-rpc-provider@npm:2.3.2" +"@metamask/eth-json-rpc-provider@npm:^4.1.1": + version: 4.1.3 + resolution: "@metamask/eth-json-rpc-provider@npm:4.1.3" dependencies: - "@metamask/json-rpc-engine": ^7.3.2 + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/rpc-errors": ^6.3.1 "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.3.0 - checksum: e6731271aad3b972d85b9230c26d35a9b88722f3bd3024675ad2f568e634e9fdfef4717ef2892f3cc512d381cf17a4e20dbd5eb808ced765082bea3379ad6ddc + "@metamask/utils": ^9.1.0 + uuid: ^8.3.2 + checksum: 788c1f983d8021a10922f414f7c5aa93f79e14000219bd5155f027c1964e73d08e931cb98749057f57fb4001441098724aedacbe2198ab5a0b28cc3fcb4d262d languageName: node linkType: hard @@ -2767,17 +2821,17 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-sig-util@npm:^7.0.0": - version: 7.0.1 - resolution: "@metamask/eth-sig-util@npm:7.0.1" +"@metamask/eth-sig-util@npm:^7.0.3": + version: 7.0.3 + resolution: "@metamask/eth-sig-util@npm:7.0.3" dependencies: "@ethereumjs/util": ^8.1.0 - "@metamask/abi-utils": ^2.0.2 - "@metamask/utils": ^8.1.0 + "@metamask/abi-utils": ^2.0.4 + "@metamask/utils": ^9.0.0 + "@scure/base": ~1.1.3 ethereum-cryptography: ^2.1.2 tweetnacl: ^1.0.3 - tweetnacl-util: ^0.15.1 - checksum: 98d056bd83aeb2d29ec3de09cd18e67d97ea295a59d405a9ce3fe274badd2d4f18da1fe530a266b4c777650855ed75ecd3577decd607a561e938dd7a808c5839 + checksum: fd4d0710857525815b241ddecce64988dd12303a9638577429baf180c62cf9cef9403aed01bc046b4860b332d455604c84e4b2a9b5997db16f444125b4b39398 languageName: node linkType: hard @@ -2793,7 +2847,7 @@ __metadata: languageName: node linkType: hard -"@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.2": +"@metamask/json-rpc-engine@npm:^7.3.2": version: 7.3.3 resolution: "@metamask/json-rpc-engine@npm:7.3.3" dependencies: @@ -2826,6 +2880,17 @@ __metadata: languageName: node linkType: hard +"@metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2": + version: 9.0.2 + resolution: "@metamask/json-rpc-engine@npm:9.0.2" + dependencies: + "@metamask/rpc-errors": ^6.3.1 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^9.1.0 + checksum: 4c852c9f30d05706ee497a2aca3ef6df12aabcff4a71a7426a27d95829f20cf2ff45c774eb9d95224bf16c9555a8cd7e44dccaea1bd44eda4dc43bf298885272 + languageName: node + linkType: hard + "@metamask/json-rpc-middleware-stream@npm:^6.0.2": version: 6.0.2 resolution: "@metamask/json-rpc-middleware-stream@npm:6.0.2" @@ -2850,6 +2915,18 @@ __metadata: languageName: node linkType: hard +"@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: + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^9.1.0 + readable-stream: ^3.6.2 + checksum: 0aa44b98e5832c158594e5b616d351c7c8da8f7bc8de0a14f91a043b92fd81f1a63eecac9b11f7ef4729f54d2f1ad1ae5b82db6188368cefac1ca31011b84730 + languageName: node + linkType: hard + "@metamask/key-tree@npm:^9.0.0": version: 9.0.0 resolution: "@metamask/key-tree@npm:9.0.0" @@ -2877,6 +2954,19 @@ __metadata: languageName: node linkType: hard +"@metamask/key-tree@npm:^9.1.2": + version: 9.1.2 + resolution: "@metamask/key-tree@npm:9.1.2" + dependencies: + "@metamask/scure-bip39": ^2.1.1 + "@metamask/utils": ^9.0.0 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + "@scure/base": ^1.0.0 + checksum: eb60bdbfa1806c2f248bf2602cd242e21b0fbe8bbb00ec97c3891739956a81e26c0dae125282a6207dbbe0643e727ff3574067b48210a0b01f12aae7b3159b77 + languageName: node + linkType: hard + "@metamask/number-to-bn@npm:^1.7.1": version: 1.7.1 resolution: "@metamask/number-to-bn@npm:1.7.1" @@ -2916,6 +3006,25 @@ __metadata: languageName: node linkType: hard +"@metamask/permission-controller@npm:^11.0.0": + version: 11.0.1 + resolution: "@metamask/permission-controller@npm:11.0.1" + dependencies: + "@metamask/base-controller": ^7.0.0 + "@metamask/controller-utils": ^11.2.0 + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/utils": ^9.1.0 + "@types/deep-freeze-strict": ^1.1.0 + deep-freeze-strict: ^1.1.1 + immer: ^9.0.6 + nanoid: ^3.1.31 + peerDependencies: + "@metamask/approval-controller": ^7.0.0 + checksum: 801960eeb6f76134b0f16d79a5a7dcb0cb9cb49b4550c58a862186b473990a80aa3cc0acd599fe766b113aa47951cac80bec569978135e779919214347554798 + languageName: node + linkType: hard + "@metamask/permission-controller@npm:^9.0.2": version: 9.0.2 resolution: "@metamask/permission-controller@npm:9.0.2" @@ -2935,26 +3044,29 @@ __metadata: languageName: node linkType: hard -"@metamask/phishing-controller@npm:^9.0.1": - version: 9.0.1 - resolution: "@metamask/phishing-controller@npm:9.0.1" +"@metamask/phishing-controller@npm:^12.0.2": + version: 12.0.2 + resolution: "@metamask/phishing-controller@npm:12.0.2" dependencies: - "@metamask/base-controller": ^5.0.1 - "@metamask/controller-utils": ^9.0.1 + "@metamask/base-controller": ^7.0.0 + "@metamask/controller-utils": ^11.2.0 + "@noble/hashes": ^1.4.0 "@types/punycode": ^2.1.0 eth-phishing-detect: ^1.2.0 + ethereum-cryptography: ^2.1.2 + fastest-levenshtein: ^1.0.16 punycode: ^2.1.1 - checksum: f8770b94d9d4e7f7daa5619d9bf32bc0909b6947dd72172ba76f085ca6e29bafa9d728f57e6ed296355f589ec6d267ee537587a7a70ccc2b2b971604e3ad0c8b + checksum: 47a923d9119f78c162be2d4b7f322fa2d2444c2c047c08bf915e8f7eda4d9570356526cc4b495808d1b14d40ec51550227edee6ddda25f15f13973a6709f3bfc languageName: node linkType: hard -"@metamask/post-message-stream@npm:^8.0.0": - version: 8.0.0 - resolution: "@metamask/post-message-stream@npm:8.0.0" +"@metamask/post-message-stream@npm:^8.1.1": + version: 8.1.1 + resolution: "@metamask/post-message-stream@npm:8.1.1" dependencies: - "@metamask/utils": ^8.1.0 + "@metamask/utils": ^9.0.0 readable-stream: 3.6.2 - checksum: 3016d8d5f8a5954fd146ce06c0b5fd7a9a070b43284e2bad140e179ee259146b666d56e6dbefa0277f56fbb67806970c9de3067c75f0e56886d0752e7c0f5e22 + checksum: ffdcda20fd3aad604de756199d77721e41051fb0fe3a424a448858f1731978f4aefe64758932ca1e5ffac12f0e52fd0d00619f11c3d7eeb4fc1dda250e4e06f6 languageName: node linkType: hard @@ -2999,7 +3111,28 @@ __metadata: languageName: node linkType: hard -"@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.2.1": +"@metamask/providers@npm:^17.1.2": + version: 17.2.0 + resolution: "@metamask/providers@npm:17.2.0" + dependencies: + "@metamask/json-rpc-engine": ^9.0.1 + "@metamask/json-rpc-middleware-stream": ^8.0.1 + "@metamask/object-multiplex": ^2.0.0 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/safe-event-emitter": ^3.1.1 + "@metamask/utils": ^9.0.0 + detect-browser: ^5.2.0 + extension-port-stream: ^4.1.0 + fast-deep-equal: ^3.1.3 + is-stream: ^2.0.0 + readable-stream: ^3.6.2 + peerDependencies: + webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0 + checksum: 56e5a974b91699b2d0c5541a61fc6672c34e93eac838cd157ad979847e8885210d90034c25b06856d65d2be6cf42e8047b15a50945fe39e84caadc1b206c1bf4 + languageName: node + linkType: hard + +"@metamask/rpc-errors@npm:^6.2.1": version: 6.2.1 resolution: "@metamask/rpc-errors@npm:6.2.1" dependencies: @@ -3009,6 +3142,16 @@ __metadata: languageName: node linkType: hard +"@metamask/rpc-errors@npm:^6.3.1": + version: 6.3.1 + resolution: "@metamask/rpc-errors@npm:6.3.1" + dependencies: + "@metamask/utils": ^9.0.0 + fast-safe-stringify: ^2.0.6 + checksum: 8761f5c0161cb3b342abd3ccccbd7b792f36a987e1f22c3f89b1bd29f72a2e35a2c91b58164fdd9dc3e5b67157500dcbdb5d04245117c14310c34cf42f7b8463 + languageName: node + linkType: hard + "@metamask/safe-event-emitter@npm:^3.0.0, @metamask/safe-event-emitter@npm:^3.1.1": version: 3.1.1 resolution: "@metamask/safe-event-emitter@npm:3.1.1" @@ -3033,6 +3176,13 @@ __metadata: languageName: node linkType: hard +"@metamask/slip44@npm:^4.0.0": + version: 4.0.0 + resolution: "@metamask/slip44@npm:4.0.0" + checksum: 48d8ccf84eefe7e3e5caeafed3bb2b624a27f6c633a571a249c617aac0dcc006742f45cc4d9594c3d7b5980cbabf91b685b0477ffd0c65d591d217480e78c746 + languageName: node + linkType: hard + "@metamask/snaps-cli@npm:^6.2.0": version: 6.2.0 resolution: "@metamask/snaps-cli@npm:6.2.0" @@ -3092,27 +3242,28 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-controllers@npm:^7.0.0": - version: 7.0.1 - resolution: "@metamask/snaps-controllers@npm:7.0.1" +"@metamask/snaps-controllers@npm:^9.6.0": + version: 9.6.0 + resolution: "@metamask/snaps-controllers@npm:9.6.0" dependencies: - "@metamask/approval-controller": ^6.0.1 - "@metamask/base-controller": ^5.0.1 - "@metamask/json-rpc-engine": ^8.0.1 - "@metamask/json-rpc-middleware-stream": ^7.0.1 + "@metamask/approval-controller": ^7.0.2 + "@metamask/base-controller": ^6.0.2 + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/json-rpc-middleware-stream": ^8.0.2 "@metamask/object-multiplex": ^2.0.0 - "@metamask/permission-controller": ^9.0.2 - "@metamask/phishing-controller": ^9.0.1 - "@metamask/post-message-stream": ^8.0.0 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/snaps-registry": ^3.1.0 - "@metamask/snaps-rpc-methods": ^8.0.0 - "@metamask/snaps-sdk": ^4.0.0 - "@metamask/snaps-utils": ^7.1.0 - "@metamask/utils": ^8.3.0 + "@metamask/permission-controller": ^11.0.0 + "@metamask/phishing-controller": ^12.0.2 + "@metamask/post-message-stream": ^8.1.1 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/snaps-registry": ^3.2.1 + "@metamask/snaps-rpc-methods": ^11.1.0 + "@metamask/snaps-sdk": ^6.4.0 + "@metamask/snaps-utils": ^8.1.0 + "@metamask/utils": ^9.2.1 "@xstate/fsm": ^2.0.0 browserify-zlib: ^0.2.0 concat-stream: ^2.0.0 + fast-deep-equal: ^3.1.3 get-npm-tarball-url: ^2.0.3 immer: ^9.0.6 nanoid: ^3.1.31 @@ -3120,61 +3271,63 @@ __metadata: readable-web-to-node-stream: ^3.0.2 tar-stream: ^3.1.7 peerDependencies: - "@metamask/snaps-execution-environments": ^6.0.0 + "@metamask/snaps-execution-environments": ^6.7.0 peerDependenciesMeta: "@metamask/snaps-execution-environments": optional: true - checksum: d8a23ebf81b5a3276cec041588e56b23a7b18cc7d6ea4b7b244aac6db6b9276db0687efc95de02043e8907d4b1ddf5de74b36e4f93b6f8aab121dc22ba5d43a1 + checksum: fbaa320567f453d2996b1af1b2e4d41f8d98c554cf25c1c8e085987de0f023e4d329f5e0f989b20b58784f307bb9b4025704e40fc1bcd311c4854431e83adf05 languageName: node linkType: hard -"@metamask/snaps-execution-environments@npm:^6.0.0": - version: 6.0.0 - resolution: "@metamask/snaps-execution-environments@npm:6.0.0" +"@metamask/snaps-execution-environments@npm:^6.7.0": + version: 6.7.0 + resolution: "@metamask/snaps-execution-environments@npm:6.7.0" dependencies: - "@metamask/json-rpc-engine": ^8.0.1 + "@metamask/json-rpc-engine": ^9.0.2 "@metamask/object-multiplex": ^2.0.0 - "@metamask/post-message-stream": ^8.0.0 - "@metamask/providers": ^16.0.0 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/snaps-sdk": ^4.0.0 - "@metamask/snaps-utils": ^7.1.0 - "@metamask/utils": ^8.3.0 + "@metamask/post-message-stream": ^8.1.1 + "@metamask/providers": ^17.1.2 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/snaps-sdk": ^6.4.0 + "@metamask/snaps-utils": ^8.1.0 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 nanoid: ^3.1.31 readable-stream: ^3.6.2 - superstruct: ^1.0.3 - checksum: 367e8f09843f36a74969ea09ba724ff66cea66ecadbd1306bbd1c43937cf51a22cf342f81a56f8f45abe2a2a914f9316dec3e9a9c64a8bb215957563c963ab51 + checksum: 769f9070494ef0cd522945758f47e9dc1233d0cfa6ab947bfc91af54e8dbb77a383a973d865f00a1ba4ff2f32a20fa09e2cbbcd3d80a374b2c9414ca32349100 languageName: node linkType: hard -"@metamask/snaps-jest@npm:^7.0.0": - version: 7.0.0 - resolution: "@metamask/snaps-jest@npm:7.0.0" +"@metamask/snaps-jest@npm:^8.3.1": + version: 8.3.1 + resolution: "@metamask/snaps-jest@npm:8.3.1" dependencies: "@jest/environment": ^29.5.0 "@jest/expect": ^29.5.0 "@jest/globals": ^29.5.0 - "@metamask/base-controller": ^5.0.1 - "@metamask/eth-json-rpc-middleware": ^12.1.0 - "@metamask/json-rpc-engine": ^8.0.1 - "@metamask/json-rpc-middleware-stream": ^7.0.1 - "@metamask/key-tree": ^9.0.0 - "@metamask/permission-controller": ^9.0.2 - "@metamask/snaps-controllers": ^7.0.0 - "@metamask/snaps-execution-environments": ^6.0.0 - "@metamask/snaps-rpc-methods": ^8.0.0 - "@metamask/snaps-sdk": ^4.0.0 - "@metamask/snaps-utils": ^7.1.0 - "@metamask/utils": ^8.3.0 + "@metamask/base-controller": ^6.0.2 + "@metamask/eth-json-rpc-middleware": ^14.0.0 + "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/json-rpc-middleware-stream": ^8.0.2 + "@metamask/key-tree": ^9.1.2 + "@metamask/permission-controller": ^11.0.0 + "@metamask/phishing-controller": ^12.0.2 + "@metamask/snaps-controllers": ^9.6.0 + "@metamask/snaps-execution-environments": ^6.7.0 + "@metamask/snaps-rpc-methods": ^11.1.0 + "@metamask/snaps-sdk": ^6.4.0 + "@metamask/snaps-utils": ^8.1.0 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 "@reduxjs/toolkit": ^1.9.5 express: ^4.18.2 jest-environment-node: ^29.5.0 jest-matcher-utils: ^29.5.0 + mime: ^3.0.0 readable-stream: ^3.6.2 redux: ^4.2.1 redux-saga: ^1.2.3 - superstruct: ^1.0.3 - checksum: aaf1d6541f3fd34173af454c6213a7934158c17577e6955d29ae89060eda281ab95fe00c4ac9b452e5d810f5e1ab8b0b0649e93c2e0f97780a845b1bb3014724 + checksum: fa33ac329936da820a67144b843f941f0e6078022b301d68a10aff474727355e0ee39bb56a669b8a708296c4f83dce2cde44b1e0ecd95a4f7617db50e7755f59 languageName: node linkType: hard @@ -3190,19 +3343,31 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-rpc-methods@npm:^8.0.0": - version: 8.0.0 - resolution: "@metamask/snaps-rpc-methods@npm:8.0.0" +"@metamask/snaps-registry@npm:^3.2.1": + version: 3.2.1 + resolution: "@metamask/snaps-registry@npm:3.2.1" dependencies: - "@metamask/key-tree": ^9.0.0 - "@metamask/permission-controller": ^9.0.2 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/snaps-sdk": ^4.0.0 - "@metamask/snaps-utils": ^7.1.0 - "@metamask/utils": ^8.3.0 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.0.0 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + checksum: d91f71ea1c8284b728c469adce60b771e683a5bd189f26742839e7948bc9a3bb1e9414275c579e0cab4042850122b78fcbd83c4a558fea6a3682eef4cc653b67 + languageName: node + linkType: hard + +"@metamask/snaps-rpc-methods@npm:^11.1.0": + version: 11.1.0 + resolution: "@metamask/snaps-rpc-methods@npm:11.1.0" + dependencies: + "@metamask/key-tree": ^9.1.2 + "@metamask/permission-controller": ^11.0.0 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/snaps-sdk": ^6.4.0 + "@metamask/snaps-utils": ^8.1.0 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 "@noble/hashes": ^1.3.1 - superstruct: ^1.0.3 - checksum: 219e166b9a1b0653db8c679319ee9022244e697575023dcccbab571faf9411bf88e1139049745a4d7949c1e6a4ae621e20a5e5e4c31f8b68e1f146117f0b8150 + checksum: 9761726b18df39f590becec5b540372ecd8657dfbc5681ce92ab7580cde26c112147eecf9de279cbf66f92e18def247fa73b0f88bd187bd223693d2605982557 languageName: node linkType: hard @@ -3220,20 +3385,6 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-sdk@npm:^4.0.0": - version: 4.0.0 - resolution: "@metamask/snaps-sdk@npm:4.0.0" - dependencies: - "@metamask/key-tree": ^9.0.0 - "@metamask/providers": ^16.0.0 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/utils": ^8.3.0 - fast-xml-parser: ^4.3.4 - superstruct: ^1.0.3 - checksum: 01b485b05715f7fff3527b8cac5be180f2443797b05839f615c59ac2c95860b68509c7e7c0eec0d921b04b099f5e7bc99bcb2447373e866649b8bc8f29b738ec - languageName: node - linkType: hard - "@metamask/snaps-sdk@npm:^4.1.0": version: 4.4.2 resolution: "@metamask/snaps-sdk@npm:4.4.2" @@ -3261,6 +3412,19 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-sdk@npm:^6.4.0": + version: 6.4.0 + resolution: "@metamask/snaps-sdk@npm:6.4.0" + dependencies: + "@metamask/key-tree": ^9.1.2 + "@metamask/providers": ^17.1.2 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 + checksum: 22f198c649ffd7b4a6cb11bb0d214142be48274d7602ba239acd4c638c364658a1f6a99066863c55df1785c37fa12030f86e6554713f6af2a91e7b0a28198fce + languageName: node + linkType: hard + "@metamask/snaps-utils@npm:^7.0.1": version: 7.0.4 resolution: "@metamask/snaps-utils@npm:7.0.4" @@ -3291,19 +3455,19 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-utils@npm:^7.1.0": - version: 7.1.0 - resolution: "@metamask/snaps-utils@npm:7.1.0" +"@metamask/snaps-utils@npm:^7.3.0": + version: 7.6.0 + resolution: "@metamask/snaps-utils@npm:7.6.0" dependencies: "@babel/core": ^7.23.2 "@babel/types": ^7.23.0 - "@metamask/base-controller": ^5.0.1 - "@metamask/key-tree": ^9.0.0 - "@metamask/permission-controller": ^9.0.2 + "@metamask/base-controller": ^6.0.0 + "@metamask/key-tree": ^9.1.1 + "@metamask/permission-controller": ^10.0.0 "@metamask/rpc-errors": ^6.2.1 "@metamask/slip44": ^3.1.0 "@metamask/snaps-registry": ^3.1.0 - "@metamask/snaps-sdk": ^4.0.0 + "@metamask/snaps-sdk": ^5.0.0 "@metamask/utils": ^8.3.0 "@noble/hashes": ^1.3.1 "@scure/base": ^1.1.1 @@ -3311,44 +3475,45 @@ __metadata: cron-parser: ^4.5.0 fast-deep-equal: ^3.1.3 fast-json-stable-stringify: ^2.1.0 + fast-xml-parser: ^4.3.4 marked: ^12.0.1 rfdc: ^1.3.0 semver: ^7.5.4 ses: ^1.1.0 superstruct: ^1.0.3 validate-npm-package-name: ^5.0.0 - checksum: ecd081596930d8337b9f054e2612f04bfdab1c4d46fb395a8ad8cb7263d0f5ebb6e7a1988168a46a794ca065fe3537959b68cb7b07a80346ff372be160d68601 + checksum: 53c215ef8eb899c3707b6279a15bc74e6f967b8f6d8471f74cf011321db54715eddbe4d445686471d416ff270664644808d5e2c4f8683d6511b5a570235e6ce7 languageName: node linkType: hard -"@metamask/snaps-utils@npm:^7.3.0": - version: 7.6.0 - resolution: "@metamask/snaps-utils@npm:7.6.0" +"@metamask/snaps-utils@npm:^8.1.0": + version: 8.1.0 + resolution: "@metamask/snaps-utils@npm:8.1.0" dependencies: "@babel/core": ^7.23.2 "@babel/types": ^7.23.0 - "@metamask/base-controller": ^6.0.0 - "@metamask/key-tree": ^9.1.1 - "@metamask/permission-controller": ^10.0.0 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/slip44": ^3.1.0 - "@metamask/snaps-registry": ^3.1.0 - "@metamask/snaps-sdk": ^5.0.0 - "@metamask/utils": ^8.3.0 + "@metamask/base-controller": ^6.0.2 + "@metamask/key-tree": ^9.1.2 + "@metamask/permission-controller": ^11.0.0 + "@metamask/rpc-errors": ^6.3.1 + "@metamask/slip44": ^4.0.0 + "@metamask/snaps-registry": ^3.2.1 + "@metamask/snaps-sdk": ^6.4.0 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 "@noble/hashes": ^1.3.1 "@scure/base": ^1.1.1 chalk: ^4.1.2 cron-parser: ^4.5.0 fast-deep-equal: ^3.1.3 fast-json-stable-stringify: ^2.1.0 - fast-xml-parser: ^4.3.4 + fast-xml-parser: ^4.4.1 marked: ^12.0.1 rfdc: ^1.3.0 semver: ^7.5.4 ses: ^1.1.0 - superstruct: ^1.0.3 validate-npm-package-name: ^5.0.0 - checksum: 53c215ef8eb899c3707b6279a15bc74e6f967b8f6d8471f74cf011321db54715eddbe4d445686471d416ff270664644808d5e2c4f8683d6511b5a570235e6ce7 + checksum: 8605f0cfa4480cc5ad18959a83091911a1492463658799afbca195d727e48f5fd31dc0b9b4b9e30a2b53d63a354060f014af95545f814c1a1266cdc7706b277d languageName: node linkType: hard @@ -3364,6 +3529,13 @@ __metadata: languageName: node linkType: hard +"@metamask/superstruct@npm:^3.1.0": + version: 3.1.0 + resolution: "@metamask/superstruct@npm:3.1.0" + checksum: 00e4d0c0aae8b25ccc1885c1db0bb4ed1590010570140c255e4deee3bf8a10c859c8fce5e475b4ae09c8a56316207af87585b91f7f5a5c028d668ccd111f19e3 + languageName: node + linkType: hard + "@metamask/utils@npm:^6.0.1": version: 6.2.0 resolution: "@metamask/utils@npm:6.2.0" @@ -3378,7 +3550,7 @@ __metadata: languageName: node linkType: hard -"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.3.0": +"@metamask/utils@npm:^8.3.0": version: 8.3.0 resolution: "@metamask/utils@npm:8.3.0" dependencies: @@ -3394,6 +3566,23 @@ __metadata: languageName: node linkType: hard +"@metamask/utils@npm:^9.0.0, @metamask/utils@npm:^9.1.0, @metamask/utils@npm:^9.2.1": + version: 9.2.1 + resolution: "@metamask/utils@npm:9.2.1" + dependencies: + "@ethereumjs/tx": ^4.2.0 + "@metamask/superstruct": ^3.1.0 + "@noble/hashes": ^1.3.1 + "@scure/base": ^1.1.3 + "@types/debug": ^4.1.7 + debug: ^4.3.4 + pony-cause: ^2.1.10 + semver: ^7.5.4 + uuid: ^9.0.1 + checksum: 1a0c842d6fe490bb068c74c6c0684a3e5fabdadcf653b1c83bc69832e9e515fbae5809be20ddfc5c31715cd3d90cf18b73088d9c81f99028ff7b2c7160358c4e + languageName: node + linkType: hard + "@mischnic/json-sourcemap@npm:^0.1.0": version: 0.1.0 resolution: "@mischnic/json-sourcemap@npm:0.1.0" @@ -3502,6 +3691,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:^1.4.0": + version: 1.5.0 + resolution: "@noble/hashes@npm:1.5.0" + checksum: 9cc031d5c888c455bfeef76af649b87f75380a4511405baea633c1e4912fd84aff7b61e99716f0231d244c9cfeda1fafd7d718963e6a0c674ed705e9b1b4f76b + languageName: node + linkType: hard + "@noble/secp256k1@npm:^1.5.5": version: 1.7.1 resolution: "@noble/secp256k1@npm:1.7.1" @@ -9713,19 +9909,6 @@ __metadata: languageName: node linkType: hard -"eth-block-tracker@npm:^8.0.0": - version: 8.1.0 - resolution: "eth-block-tracker@npm:8.1.0" - dependencies: - "@metamask/eth-json-rpc-provider": ^2.1.0 - "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.1.0 - json-rpc-random-id: ^1.0.1 - pify: ^5.0.0 - checksum: a7e1e8462995d2924a2daa3224539c120df6c07a26d68522f4338ca23189d4195545e6251b8e64f79dc99a685a8124efd496e25f7ee201dc273d92e3d9e90aad - languageName: node - linkType: hard - "eth-ens-namehash@npm:^2.0.8": version: 2.0.8 resolution: "eth-ens-namehash@npm:2.0.8" @@ -9936,6 +10119,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: ^3.6.2 || ^4.4.2 + peerDependencies: + webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0 + checksum: 85559c82e3f3aa21462e234b30b7d53872708893664cd03f2f848af556cf0730cf2243b089efc9d40bbe9a4f73bd8fd19684db5a985329b0c4402b4f2fe26358 + languageName: node + linkType: hard + "external-editor@npm:^3.0.3": version: 3.1.0 resolution: "external-editor@npm:3.1.0" @@ -10022,6 +10216,17 @@ __metadata: languageName: node linkType: hard +"fast-xml-parser@npm:^4.4.1": + version: 4.5.0 + resolution: "fast-xml-parser@npm:4.5.0" + dependencies: + strnum: ^1.0.5 + bin: + fxparser: src/cli/cli.js + checksum: 696dc98da46f0f48eb26dfe1640a53043ea64f2420056374e62abbb5e620f092f8df3c3ff3195505a2eefab2057db3bf0ebaac63557f277934f6cce4e7da027c + languageName: node + linkType: hard + "fastest-levenshtein@npm:^1.0.16": version: 1.0.16 resolution: "fastest-levenshtein@npm:1.0.16" @@ -13926,7 +14131,7 @@ __metadata: "@metamask/eslint-config-nodejs": ^12.1.0 "@metamask/eslint-config-typescript": ^12.1.0 "@metamask/snaps-cli": ^6.2.0 - "@metamask/snaps-jest": ^7.0.0 + "@metamask/snaps-jest": ^8.3.1 "@metamask/snaps-sdk": ^5.0.0 "@typescript-eslint/eslint-plugin": ^5.42.1 "@typescript-eslint/parser": ^5.42.1 @@ -18212,13 +18417,6 @@ __metadata: languageName: node linkType: hard -"tweetnacl-util@npm:^0.15.1": - version: 0.15.1 - resolution: "tweetnacl-util@npm:0.15.1" - checksum: ae6aa8a52cdd21a95103a4cc10657d6a2040b36c7a6da7b9d3ab811c6750a2d5db77e8c36969e75fdee11f511aa2b91c552496c6e8e989b6e490e54aca2864fc - languageName: node - linkType: hard - "tweetnacl@npm:^1.0.3": version: 1.0.3 resolution: "tweetnacl@npm:1.0.3" @@ -18665,6 +18863,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^9.0.1": + version: 9.0.1 + resolution: "uuid@npm:9.0.1" + bin: + uuid: dist/bin/uuid + checksum: 39931f6da74e307f51c0fb463dc2462807531dc80760a9bff1e35af4316131b4fc3203d16da60ae33f07fdca5b56f3f1dd662da0c99fea9aaeab2004780cc5f4 + languageName: node + linkType: hard + "v8-compile-cache@npm:^2.0.3": version: 2.3.0 resolution: "v8-compile-cache@npm:2.3.0"