diff --git a/packages/snap/package.json b/packages/snap/package.json index 1b4761c..559b895 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -41,7 +41,7 @@ "@metamask/eslint-config-jest": "^12.0.0", "@metamask/eslint-config-nodejs": "^12.0.0", "@metamask/eslint-config-typescript": "^12.0.0", - "@metamask/snaps-cli": "^3.0.1", + "@metamask/snaps-cli": "^6.0.1", "@metamask/snaps-jest": "^4.0.1", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^5.42.1", diff --git a/yarn.lock b/yarn.lock index c06c183..413e958 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3052,6 +3052,13 @@ __metadata: languageName: node linkType: hard +"@endo/env-options@npm:^1.1.1": + version: 1.1.1 + resolution: "@endo/env-options@npm:1.1.1" + checksum: 9b3c313180182d60fcb30ab8d601de8bdf5161bce10513c6fec70da2c80416f6e3969d2097a3504e37a1861f7dca9c8223efc74499e19fb0ffb96761cc577c91 + languageName: node + linkType: hard + "@es-joy/jsdoccomment@npm:~0.37.0": version: 0.37.1 resolution: "@es-joy/jsdoccomment@npm:0.37.1" @@ -4139,6 +4146,16 @@ __metadata: languageName: node linkType: hard +"@metamask/base-controller@npm:^4.1.0, @metamask/base-controller@npm:^4.1.1": + version: 4.1.1 + resolution: "@metamask/base-controller@npm:4.1.1" + dependencies: + "@metamask/utils": ^8.3.0 + immer: ^9.0.6 + checksum: adfbc9815506f41342036743b481236179ffd8378e58dad4ffd5b55158d1a5d5509b113d17af5fe1de35d02c448a7c92fffd5234da1893374aab498356585f76 + languageName: node + linkType: hard + "@metamask/browser-passworder@npm:^4.1.0": version: 4.3.0 resolution: "@metamask/browser-passworder@npm:4.3.0" @@ -4178,6 +4195,21 @@ __metadata: languageName: node linkType: hard +"@metamask/controller-utils@npm:^8.0.3": + version: 8.0.3 + resolution: "@metamask/controller-utils@npm:8.0.3" + dependencies: + "@metamask/eth-query": ^4.0.0 + "@metamask/ethjs-unit": ^0.3.0 + "@metamask/utils": ^8.3.0 + "@spruceid/siwe-parser": 1.1.3 + eth-ens-namehash: ^2.0.8 + ethereumjs-util: ^7.0.10 + fast-deep-equal: ^3.1.3 + checksum: a84e4c0d5f30022a3aa2fed0d59265be268f6d35662c88ef9243e213af7472d008304c648ae6b305388a61335345f6a27fcb6de9b91978ed2252e3c86f58119a + languageName: node + linkType: hard + "@metamask/eslint-config-browser@npm:^12.1.0": version: 12.1.0 resolution: "@metamask/eslint-config-browser@npm:12.1.0" @@ -4310,6 +4342,18 @@ __metadata: languageName: node linkType: hard +"@metamask/ethjs-unit@npm:^0.3.0": + version: 0.3.0 + resolution: "@metamask/ethjs-unit@npm:0.3.0" + dependencies: + "@metamask/number-to-bn": ^1.7.1 + bn.js: ^5.2.1 + peerDependencies: + "@babel/runtime": ^7.0.0 + checksum: 9eb4f894b24c43b7b14a9180cebb0603d4a07c1af583b0c4a36d58f24e202831bbdf98888666b4a3ea2e4d4a9fef4c6cc55d09379870b20b080ea5582764e622 + languageName: node + linkType: hard + "@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.0": version: 7.3.0 resolution: "@metamask/json-rpc-engine@npm:7.3.0" @@ -4321,6 +4365,17 @@ __metadata: languageName: node linkType: hard +"@metamask/json-rpc-engine@npm:^7.3.2": + version: 7.3.2 + resolution: "@metamask/json-rpc-engine@npm:7.3.2" + dependencies: + "@metamask/rpc-errors": ^6.1.0 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^8.3.0 + checksum: 396861afc72944af410d5b06c81806db2fd9812206dbf799438f42d974edac6931f6814133adf52d6aa233d5ea3f3629663ef4f54a0cf9ccb948ce9b527137fd + languageName: node + linkType: hard + "@metamask/key-tree@npm:^9.0.0": version: 9.0.0 resolution: "@metamask/key-tree@npm:9.0.0" @@ -4335,6 +4390,16 @@ __metadata: 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" + dependencies: + bn.js: 5.2.1 + strip-hex-prefix: 1.0.0 + checksum: e3c198c7ab4783757b36413d67d917f5fd5cadd01ebd7d92ae1ab6cbb11f11bfe9fae89ed849f8d7b0120c3746c58d87e9950df167bd342f0a6e590590d4e0ce + languageName: node + linkType: hard + "@metamask/object-multiplex@npm:^1.1.0": version: 1.3.0 resolution: "@metamask/object-multiplex@npm:1.3.0" @@ -4396,6 +4461,25 @@ __metadata: languageName: node linkType: hard +"@metamask/permission-controller@npm:^8.0.1": + version: 8.0.1 + resolution: "@metamask/permission-controller@npm:8.0.1" + dependencies: + "@metamask/base-controller": ^4.1.1 + "@metamask/controller-utils": ^8.0.3 + "@metamask/json-rpc-engine": ^7.3.2 + "@metamask/rpc-errors": ^6.2.1 + "@metamask/utils": ^8.3.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": ^5.1.2 + checksum: a8d0b85c04cf5cbebd32bacaacba85be467796e543b123c6f4caac245e7c78541c93ca4dba2a0516d36607e819f0e8435b5f25fced531aa4debc4ed8fe5f1ba1 + languageName: node + linkType: hard + "@metamask/phishing-controller@npm:^8.0.0": version: 8.0.0 resolution: "@metamask/phishing-controller@npm:8.0.0" @@ -4468,6 +4552,16 @@ __metadata: languageName: node linkType: hard +"@metamask/rpc-errors@npm:^6.2.1": + version: 6.2.1 + resolution: "@metamask/rpc-errors@npm:6.2.1" + dependencies: + "@metamask/utils": ^8.3.0 + fast-safe-stringify: ^2.0.6 + checksum: a9223c3cb9ab05734ea0dda990597f90a7cdb143efa0c026b1a970f2094fe5fa3c341ed39b1e7623be13a96b98fb2c697ef51a2e2b87d8f048114841d35ee0a9 + languageName: node + linkType: hard + "@metamask/safe-event-emitter@npm:^2.0.0": version: 2.0.0 resolution: "@metamask/safe-event-emitter@npm:2.0.0" @@ -4492,9 +4586,16 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-cli@npm:^3.0.1": - version: 3.0.5 - resolution: "@metamask/snaps-cli@npm:3.0.5" +"@metamask/slip44@npm:^3.1.0": + version: 3.1.0 + resolution: "@metamask/slip44@npm:3.1.0" + checksum: 63de4b85448990bde7760704d2f646ff33b34b22799b570c0bb1f7f08b1ebea9784495759611979ca4a5872094b093b63c28c6f6d94aa614cbd692576fcb134f + languageName: node + linkType: hard + +"@metamask/snaps-cli@npm:^6.0.1": + version: 6.0.1 + resolution: "@metamask/snaps-cli@npm:6.0.1" dependencies: "@babel/core": ^7.23.2 "@babel/plugin-transform-class-properties": ^7.22.5 @@ -4504,10 +4605,10 @@ __metadata: "@babel/plugin-transform-runtime": ^7.13.2 "@babel/preset-env": ^7.23.2 "@babel/preset-typescript": ^7.23.2 - "@metamask/snaps-sdk": ^1.2.0 - "@metamask/snaps-utils": ^5.0.0 - "@metamask/snaps-webpack-plugin": ^3.1.1 - "@metamask/utils": ^8.2.1 + "@metamask/snaps-sdk": ^3.0.1 + "@metamask/snaps-utils": ^7.0.1 + "@metamask/snaps-webpack-plugin": ^4.0.1 + "@metamask/utils": ^8.3.0 "@swc/core": 1.3.78 assert: ^2.0.0 babelify: ^10.0.0 @@ -4515,7 +4616,6 @@ __metadata: browserify-zlib: ^0.2.0 buffer: ^6.0.3 chalk: ^4.1.2 - chokidar: ^3.5.2 console-browserify: ^1.2.0 constants-browserify: ^1.0.0 crypto-browserify: ^3.12.0 @@ -4534,6 +4634,7 @@ __metadata: stream-browserify: ^3.0.0 stream-http: ^3.2.0 string_decoder: ^1.3.0 + strip-ansi: ^6.0.1 superstruct: ^1.0.3 swc-loader: ^0.2.3 terser-webpack-plugin: ^5.3.9 @@ -4546,8 +4647,8 @@ __metadata: webpack-merge: ^5.9.0 yargs: ^17.7.1 bin: - mm-snap: ./dist/cjs/main.js - checksum: f49447ca6abd5c4672f3a059c955cb01ac85a8bca3348d5805b1dcc42e20f70e2361fb2cbfa0cdc23b9b07d1ea228d9293b214d4db94c3b9fc01a032db9151ee + mm-snap: ./dist/main.js + checksum: eb40e6ed0d81ec3eb17090a5b42b3df2e163a4152c341d4baccb0791b4ae8164556cd6c97493a3232c2acaeac34411f1c5c5235f8fe8367477ee0e5deca7c35b languageName: node linkType: hard @@ -4640,6 +4741,18 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-registry@npm:^3.0.0": + version: 3.0.0 + resolution: "@metamask/snaps-registry@npm:3.0.0" + dependencies: + "@metamask/utils": ^8.1.0 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + superstruct: ^1.0.3 + checksum: d816190ee4f345f04b1dcdbbee48fc7153c12192e2deca16f7947c9f3ee437dddc286fd66c21cdf02d18798c4df799bbc377bc839c11a419226aa00b95b645b0 + languageName: node + linkType: hard + "@metamask/snaps-rpc-methods@npm:^3.3.0": version: 3.3.0 resolution: "@metamask/snaps-rpc-methods@npm:3.3.0" @@ -4686,6 +4799,20 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-sdk@npm:^3.0.1": + version: 3.0.1 + resolution: "@metamask/snaps-sdk@npm:3.0.1" + dependencies: + "@metamask/key-tree": ^9.0.0 + "@metamask/providers": ^14.0.2 + "@metamask/rpc-errors": ^6.2.1 + "@metamask/utils": ^8.3.0 + fast-xml-parser: ^4.3.4 + superstruct: ^1.0.3 + checksum: d0194083232c21d1f61cffede73935966c1eae7c638e086ce8414c7eede8f47b87e5388ec2f5e35f4ba639712167c7aed8184d239f462905606a501233ee9e09 + languageName: node + linkType: hard + "@metamask/snaps-simulator@npm:^2.4.1": version: 2.4.2 resolution: "@metamask/snaps-simulator@npm:2.4.2" @@ -4809,15 +4936,44 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-webpack-plugin@npm:^3.1.1": - version: 3.1.1 - resolution: "@metamask/snaps-webpack-plugin@npm:3.1.1" +"@metamask/snaps-utils@npm:^7.0.1": + version: 7.0.1 + resolution: "@metamask/snaps-utils@npm:7.0.1" dependencies: - "@metamask/snaps-sdk": ^1.2.0 - "@metamask/snaps-utils": ^5.0.0 - "@metamask/utils": ^8.2.1 + "@babel/core": ^7.23.2 + "@babel/types": ^7.23.0 + "@metamask/base-controller": ^4.1.0 + "@metamask/key-tree": ^9.0.0 + "@metamask/permission-controller": ^8.0.1 + "@metamask/rpc-errors": ^6.2.1 + "@metamask/slip44": ^3.1.0 + "@metamask/snaps-registry": ^3.0.0 + "@metamask/snaps-sdk": ^3.0.1 + "@metamask/utils": ^8.3.0 + "@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 + rfdc: ^1.3.0 + semver: ^7.5.4 + ses: ^1.1.0 + superstruct: ^1.0.3 + validate-npm-package-name: ^5.0.0 + checksum: f4d00488963e530384eded380a8086acfb051609a4548c9b57b67abd8fd47d33e21bc8858d735441748778158753c28d9bac9f2ce621e01892010211c6a7db1e + languageName: node + linkType: hard + +"@metamask/snaps-webpack-plugin@npm:^4.0.1": + version: 4.0.1 + resolution: "@metamask/snaps-webpack-plugin@npm:4.0.1" + dependencies: + "@metamask/snaps-sdk": ^3.0.1 + "@metamask/snaps-utils": ^7.0.1 + "@metamask/utils": ^8.3.0 webpack-sources: ^3.2.3 - checksum: b18fd2fe1a0ec68b8ef529f5a57d88bf7a54ca108861ccce901cec562b0431e798beace18899b0112443ac6aef4b83a291f4ca013040944b10e3b2c374521324 + checksum: b22a6b03db2b285942a05995f5077ab954ba2b5737f500af653b09a27ed2c35fcc7b8f5c933f558f343f191199437d380d3ebfa9d179ee67a9b395a8fc0634c6 languageName: node linkType: hard @@ -4864,6 +5020,22 @@ __metadata: languageName: node linkType: hard +"@metamask/utils@npm:^8.3.0": + version: 8.3.0 + resolution: "@metamask/utils@npm:8.3.0" + dependencies: + "@ethereumjs/tx": ^4.2.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 + superstruct: ^1.0.3 + checksum: cd60c49b4c0397fb31e6b38937a0d9346cbb8337cb8add59db8db0e0e2156fb063ff4df93a26410157f0cc02aa9a9b785fc1b53cfc4ab73204462893ed11cacb + languageName: node + linkType: hard + "@minoru/react-dnd-treeview@npm:^3.4.4": version: 3.4.4 resolution: "@minoru/react-dnd-treeview@npm:3.4.4" @@ -9000,6 +9172,13 @@ __metadata: languageName: node linkType: hard +"bn.js@npm:5.2.1, bn.js@npm:^5.0.0, bn.js@npm:^5.1.2, bn.js@npm:^5.2.0, bn.js@npm:^5.2.1": + version: 5.2.1 + resolution: "bn.js@npm:5.2.1" + checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 + languageName: node + linkType: hard + "bn.js@npm:^4.0.0, bn.js@npm:^4.1.0, bn.js@npm:^4.11.9": version: 4.12.0 resolution: "bn.js@npm:4.12.0" @@ -9007,13 +9186,6 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.0.0, bn.js@npm:^5.1.2, bn.js@npm:^5.2.0, bn.js@npm:^5.2.1": - version: 5.2.1 - resolution: "bn.js@npm:5.2.1" - checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 - languageName: node - linkType: hard - "body-parser@npm:1.20.1": version: 1.20.1 resolution: "body-parser@npm:1.20.1" @@ -9778,7 +9950,7 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:^3.4.2, chokidar@npm:^3.5.2, chokidar@npm:^3.5.3": +"chokidar@npm:^3.4.2, chokidar@npm:^3.5.3": version: 3.5.3 resolution: "chokidar@npm:3.5.3" dependencies: @@ -13106,6 +13278,17 @@ __metadata: languageName: node linkType: hard +"fast-xml-parser@npm:^4.3.4": + version: 4.3.5 + resolution: "fast-xml-parser@npm:4.3.5" + dependencies: + strnum: ^1.0.5 + bin: + fxparser: src/cli/cli.js + checksum: 852064985ca56aa2078be02c92509a675408b57bb9862f696689301bf7df786f9ce9116b812b032c627979a4de5755f9cbfeecc4b90ed9d56be76deccd97c0c6 + languageName: node + linkType: hard + "fastest-levenshtein@npm:^1.0.12": version: 1.0.16 resolution: "fastest-levenshtein@npm:1.0.16" @@ -21362,6 +21545,15 @@ __metadata: languageName: node linkType: hard +"ses@npm:^1.1.0": + version: 1.3.0 + resolution: "ses@npm:1.3.0" + dependencies: + "@endo/env-options": ^1.1.1 + checksum: 863dd02b49ced847471b6c5a265d3bb0eedc91f06cc15fbba19cf61ce4615c307327f65a2762d801e642de933edd224528afccee06995f30ef62aecea1609739 + languageName: node + linkType: hard + "set-blocking@npm:^2.0.0": version: 2.0.0 resolution: "set-blocking@npm:2.0.0" @@ -21678,7 +21870,7 @@ __metadata: "@metamask/eslint-config-nodejs": ^12.0.0 "@metamask/eslint-config-typescript": ^12.0.0 "@metamask/key-tree": ^9.0.0 - "@metamask/snaps-cli": ^3.0.1 + "@metamask/snaps-cli": ^6.0.1 "@metamask/snaps-jest": ^4.0.1 "@metamask/snaps-types": ^3.0.1 "@metamask/snaps-ui": ^3.0.1