diff --git a/packages/snap/package.json b/packages/snap/package.json index 95626a1..d9316a9 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -42,7 +42,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": "^3.0.0", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^5.42.1", diff --git a/yarn.lock b/yarn.lock index d648c13..e0231ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3490,7 +3490,7 @@ __metadata: "@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": ^3.0.0 "@metamask/snaps-types": ^3.0.1 "@metamask/snaps-ui": ^3.0.1 @@ -4045,6 +4045,16 @@ __metadata: languageName: node linkType: hard +"@metamask/base-controller@npm:^4.0.0, @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.1.0 resolution: "@metamask/browser-passworder@npm:4.1.0" @@ -4067,6 +4077,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" @@ -4165,6 +4190,16 @@ __metadata: languageName: node linkType: hard +"@metamask/eth-query@npm:^4.0.0": + version: 4.0.0 + resolution: "@metamask/eth-query@npm:4.0.0" + dependencies: + json-rpc-random-id: ^1.0.0 + xtend: ^4.0.1 + checksum: f2e529cf2aa362c20b81433f69840c2830444b3e060a3d9cc778235b8f595f4e1e3a6505b7f14930c4e1566efc9de0ee879e4566f3a6ab184521bdf40f5895d4 + languageName: node + linkType: hard + "@metamask/eth-sig-util@npm:^7.0.0": version: 7.0.0 resolution: "@metamask/eth-sig-util@npm:7.0.0" @@ -4180,6 +4215,16 @@ __metadata: languageName: node linkType: hard +"@metamask/ethjs-unit@npm:^0.2.1": + version: 0.2.1 + resolution: "@metamask/ethjs-unit@npm:0.2.1" + dependencies: + bn.js: 4.11.6 + number-to-bn: 1.7.0 + checksum: 0c8bbbe06000f647b46701fcf976e29b67c7362b3ae252d8d4fe2feb74f3988c1203eb03cc34bb899101f01812c8c300158d75bc721d649124c048e8b149b557 + languageName: node + linkType: hard + "@metamask/json-rpc-engine@npm:^7.1.0, @metamask/json-rpc-engine@npm:^7.1.1": version: 7.2.0 resolution: "@metamask/json-rpc-engine@npm:7.2.0" @@ -4191,6 +4236,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" @@ -4246,6 +4302,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:^7.0.0": version: 7.0.1 resolution: "@metamask/phishing-controller@npm:7.0.1" @@ -4308,6 +4383,26 @@ __metadata: languageName: node linkType: hard +"@metamask/providers@npm:^14.0.2": + version: 14.0.2 + resolution: "@metamask/providers@npm:14.0.2" + dependencies: + "@metamask/json-rpc-engine": ^7.1.1 + "@metamask/object-multiplex": ^2.0.0 + "@metamask/rpc-errors": ^6.0.0 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^8.1.0 + detect-browser: ^5.2.0 + extension-port-stream: ^3.0.0 + fast-deep-equal: ^3.1.3 + is-stream: ^2.0.0 + json-rpc-middleware-stream: ^5.0.1 + readable-stream: ^3.6.2 + webextension-polyfill: ^0.10.0 + checksum: 4111e4f9eae53b461a5318e2bdc90189837bc781a89a3904670a2449dfd3f2985b89183655f39ab4c63e6162d7c9ffd10d8a16335f2351ba2bb32365acd454f7 + languageName: node + linkType: hard + "@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.1.0": version: 6.1.0 resolution: "@metamask/rpc-errors@npm:6.1.0" @@ -4342,9 +4437,16 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-cli@npm:^3.0.1": - version: 3.0.1 - resolution: "@metamask/snaps-cli@npm:3.0.1" +"@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 @@ -4354,9 +4456,10 @@ __metadata: "@babel/plugin-transform-runtime": ^7.13.2 "@babel/preset-env": ^7.23.2 "@babel/preset-typescript": ^7.23.2 - "@metamask/snaps-utils": ^3.1.0 - "@metamask/snaps-webpack-plugin": ^3.0.1 - "@metamask/utils": ^8.1.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 assert: ^2.0.0 babelify: ^10.0.0 @@ -4396,7 +4499,7 @@ __metadata: yargs: ^17.7.1 bin: mm-snap: ./dist/cjs/main.js - checksum: 9dffe74889965a87bdc1c72d93f2a6aa27b00a6e3543e179ef4498b4c485c1dcba983dbfc860a6e7fbbcfcb30020af4b06a9f1896dc3452068f74d9d7f93acf3 + checksum: 770976b326678beca685e6f5cacbb32e6a5107069a9f13d55ac823b591659244c9515c1079de74f312dded5e692a48fafc4e360a94afb0f4aefc8773486a65aa languageName: node linkType: hard @@ -4488,6 +4591,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.1.0, @metamask/snaps-rpc-methods@npm:^3.2.0": version: 3.2.1 resolution: "@metamask/snaps-rpc-methods@npm:3.2.1" @@ -4504,6 +4619,20 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-sdk@npm:^1.2.0, @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.2.0": version: 2.2.0 resolution: "@metamask/snaps-simulator@npm:2.2.0" @@ -4598,14 +4727,45 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-webpack-plugin@npm:^3.0.1": - version: 3.0.1 - resolution: "@metamask/snaps-webpack-plugin@npm:3.0.1" +"@metamask/snaps-utils@npm:^5.0.0, @metamask/snaps-utils@npm:^5.1.2": + version: 5.1.2 + resolution: "@metamask/snaps-utils@npm:5.1.2" dependencies: - "@metamask/snaps-utils": ^3.1.0 - "@metamask/utils": ^8.1.0 + "@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" + dependencies: + "@metamask/snaps-sdk": ^1.2.0 + "@metamask/snaps-utils": ^5.0.0 + "@metamask/utils": ^8.2.1 webpack-sources: ^3.2.3 - checksum: d07f1184e1db5dfd88888fc06d9f23f6af7c361846cfe5b50b94a983c5553c46b693812071bff5d796a40b87dc3fe52a6871c0e65b05e8ca8b05459a63e781ba + checksum: b18fd2fe1a0ec68b8ef529f5a57d88bf7a54ca108861ccce901cec562b0431e798beace18899b0112443ac6aef4b83a291f4ca013040944b10e3b2c374521324 languageName: node linkType: hard @@ -4652,6 +4812,22 @@ __metadata: languageName: node linkType: hard +"@metamask/utils@npm:^8.2.0, @metamask/utils@npm:^8.2.1": + version: 8.2.1 + resolution: "@metamask/utils@npm:8.2.1" + 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: 36a714a17e4949d2040bedb28d4373a22e7e86bb797aa2d59223f9799fd76e662443bcede113719c4e200f5e9d90a9d62feafad5028fff8b9a7a85fface097ca + 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" @@ -4806,6 +4982,15 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.2.0": + version: 1.3.0 + resolution: "@noble/curves@npm:1.3.0" + dependencies: + "@noble/hashes": 1.3.3 + checksum: b65342ee66c4a440eee2978524412eabba9a9efdd16d6370e15218c6a7d80bddf35e66bb57ed52c0dfd32cb9a717b439ab3a72db618f1a0066dfebe3fd12a421 + languageName: node + linkType: hard + "@noble/ed25519@npm:^1.6.0": version: 1.7.3 resolution: "@noble/ed25519@npm:1.7.3" @@ -4820,6 +5005,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1.3.2": + version: 1.3.3 + resolution: "@noble/hashes@npm:1.3.3" + checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b + languageName: node + linkType: hard + "@noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1, @noble/hashes@npm:~1.3.2": version: 1.3.2 resolution: "@noble/hashes@npm:1.3.2"