diff --git a/packages/snap/package.json b/packages/snap/package.json index 1b4761c..1b174ee 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": "^4.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..7e4da5d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4139,6 +4139,16 @@ __metadata: languageName: node linkType: hard +"@metamask/base-controller@npm:^4.0.1": + version: 4.0.1 + resolution: "@metamask/base-controller@npm:4.0.1" + dependencies: + "@metamask/utils": ^8.2.0 + immer: ^9.0.6 + checksum: d86a7dbe5f23daf56677fe14192d08c9b38c993e8c05a36afa2d7995bb7b272be8d182450c509ed605e73256d32fef55eea5814130d2381259e30751be3d9f2c + 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 +4188,21 @@ __metadata: languageName: node linkType: hard +"@metamask/controller-utils@npm:^8.0.1": + version: 8.0.1 + resolution: "@metamask/controller-utils@npm:8.0.1" + dependencies: + "@metamask/eth-query": ^4.0.0 + "@metamask/ethjs-unit": ^0.2.1 + "@metamask/utils": ^8.2.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: 3e8537ecec3ce5961e46a84f33cb8165830c893caf49d68816f55f5a190e162bca54df29c7655d1d8d8de91568fcb45ad700a94511e2f52080894f667daa2b83 + 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" @@ -4321,6 +4346,17 @@ __metadata: languageName: node linkType: hard +"@metamask/json-rpc-engine@npm:^7.3.1": + version: 7.3.1 + resolution: "@metamask/json-rpc-engine@npm:7.3.1" + dependencies: + "@metamask/rpc-errors": ^6.1.0 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^8.2.0 + checksum: 4952eb4e70c0011d334fb4a9bf56aa2d68bef745c892dddd06f6ed7e6303fb95b3b60b4e32c88b6d77bfc5091acc8e71ad274f389419e4bdcc5741ef49cde87d + languageName: node + linkType: hard + "@metamask/key-tree@npm:^9.0.0": version: 9.0.0 resolution: "@metamask/key-tree@npm:9.0.0" @@ -4396,6 +4432,25 @@ __metadata: languageName: node linkType: hard +"@metamask/permission-controller@npm:^7.1.0": + version: 7.1.0 + resolution: "@metamask/permission-controller@npm:7.1.0" + dependencies: + "@metamask/base-controller": ^4.0.1 + "@metamask/controller-utils": ^8.0.1 + "@metamask/json-rpc-engine": ^7.3.1 + "@metamask/rpc-errors": ^6.1.0 + "@metamask/utils": ^8.2.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.1 + checksum: 889213cca32cbf5b32b7e71c70ded0aeea32eae169ec67fb0d0bc8dcaa183b222f9d5417f657e331d7fb21ecb71f250cf1c932110d4b1e2167972b30bd012098 + languageName: node + linkType: hard + "@metamask/phishing-controller@npm:^8.0.0": version: 8.0.0 resolution: "@metamask/phishing-controller@npm:8.0.0" @@ -4492,9 +4547,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:^4.0.1": + version: 4.0.1 + resolution: "@metamask/snaps-cli@npm:4.0.1" dependencies: "@babel/core": ^7.23.2 "@babel/plugin-transform-class-properties": ^7.22.5 @@ -4504,8 +4566,8 @@ __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-sdk": ^1.3.2 + "@metamask/snaps-utils": ^5.1.2 "@metamask/snaps-webpack-plugin": ^3.1.1 "@metamask/utils": ^8.2.1 "@swc/core": 1.3.78 @@ -4547,7 +4609,7 @@ __metadata: yargs: ^17.7.1 bin: mm-snap: ./dist/cjs/main.js - checksum: f49447ca6abd5c4672f3a059c955cb01ac85a8bca3348d5805b1dcc42e20f70e2361fb2cbfa0cdc23b9b07d1ea228d9293b214d4db94c3b9fc01a032db9151ee + checksum: 770976b326678beca685e6f5cacbb32e6a5107069a9f13d55ac823b591659244c9515c1079de74f312dded5e692a48fafc4e360a94afb0f4aefc8773486a65aa languageName: node linkType: hard @@ -4640,6 +4702,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 +4760,20 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-sdk@npm:^1.3.2": + version: 1.3.2 + resolution: "@metamask/snaps-sdk@npm:1.3.2" + dependencies: + "@metamask/key-tree": ^9.0.0 + "@metamask/providers": ^14.0.2 + "@metamask/rpc-errors": ^6.1.0 + "@metamask/utils": ^8.2.1 + is-svg: ^4.4.0 + superstruct: ^1.0.3 + checksum: 6492e5aaa57ce3ccd057537890a57d2a1a1e3c442b7decb8bc734ba02c1eae172d58d27b8c4af449d57be6cfe55ba2ebe4f128d673b10baa2d5a32ed9e4181ff + languageName: node + linkType: hard + "@metamask/snaps-simulator@npm:^2.4.1": version: 2.4.2 resolution: "@metamask/snaps-simulator@npm:2.4.2" @@ -4809,6 +4897,36 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-utils@npm:^5.1.2": + version: 5.1.2 + resolution: "@metamask/snaps-utils@npm:5.1.2" + dependencies: + "@babel/core": ^7.23.2 + "@babel/types": ^7.23.0 + "@metamask/base-controller": ^4.0.0 + "@metamask/key-tree": ^9.0.0 + "@metamask/permission-controller": ^7.1.0 + "@metamask/rpc-errors": ^6.1.0 + "@metamask/slip44": ^3.1.0 + "@metamask/snaps-registry": ^3.0.0 + "@metamask/snaps-sdk": ^1.3.2 + "@metamask/utils": ^8.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 + is-svg: ^4.4.0 + rfdc: ^1.3.0 + semver: ^7.5.4 + ses: ^0.18.8 + superstruct: ^1.0.3 + validate-npm-package-name: ^5.0.0 + checksum: 746dcb2fa35d3aadeb45fac8543cecf928687ef82d55ddcd992cf2ea122090eae3b1820193fecbeb1c750a844476234affbb605bb1574aee6d9fd3a671fbc5c0 + 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" @@ -21678,7 +21796,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": ^4.0.1 "@metamask/snaps-jest": ^4.0.1 "@metamask/snaps-types": ^3.0.1 "@metamask/snaps-ui": ^3.0.1