diff --git a/package.json b/package.json index 72e0b96..23690b3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "dependencies": { "@ethereumjs/tx": "^5.1.0", "@ethereumjs/util": "^9.0.1", - "@metamask/keyring-api": "^4.0.1", + "@metamask/keyring-api": "^8.1.3", "@metamask/snaps-sdk": "^6.2.1", "@metamask/utils": "^8.3.0", "ethers": "^5.7.2", diff --git a/snap.manifest.json b/snap.manifest.json index ed6d06a..c032e4b 100644 --- a/snap.manifest.json +++ b/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/metamask/snap-watch-only.git" }, "source": { - "shasum": "GJ83dOQVJCYPnH1z5hKmfTlRiX8O2hu7d1Rs+LC8nHQ=", + "shasum": "M2ANbkJ5NpNPliqP/8Hcfaez9XyHWF9idjZJNXRLwtk=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/yarn.lock b/yarn.lock index 8b6bc87..be1bca4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2344,7 +2344,7 @@ __metadata: "@metamask/eslint-config-jest": ^12.1.0 "@metamask/eslint-config-nodejs": ^12.1.0 "@metamask/eslint-config-typescript": ^12.1.0 - "@metamask/keyring-api": ^4.0.1 + "@metamask/keyring-api": ^8.1.3 "@metamask/snaps-cli": ^6.2.1 "@metamask/snaps-jest": ^6.0.1 "@metamask/snaps-sdk": ^6.2.1 @@ -2630,7 +2630,7 @@ __metadata: languageName: node linkType: hard -"@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.0, @metamask/json-rpc-engine@npm:^7.3.2": +"@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.0": version: 7.3.3 resolution: "@metamask/json-rpc-engine@npm:7.3.3" dependencies: @@ -2663,18 +2663,6 @@ __metadata: 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" - dependencies: - "@metamask/json-rpc-engine": ^7.3.2 - "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.3.0 - readable-stream: ^3.6.2 - checksum: e831041b03e9f48f584f4425188f72b58974f95b60429c9fe8b5561da69c6bbfad2f2b2199acdff06ee718967214b65c05604d4f85f3287186619683487f1060 - languageName: node - linkType: hard - "@metamask/json-rpc-middleware-stream@npm:^7.0.1": version: 7.0.2 resolution: "@metamask/json-rpc-middleware-stream@npm:7.0.2" @@ -2712,17 +2700,19 @@ __metadata: languageName: node linkType: hard -"@metamask/keyring-api@npm:^4.0.1": - version: 4.0.2 - resolution: "@metamask/keyring-api@npm:4.0.2" +"@metamask/keyring-api@npm:^8.1.3": + version: 8.1.3 + resolution: "@metamask/keyring-api@npm:8.1.3" dependencies: - "@metamask/providers": ^15.0.0 - "@metamask/snaps-sdk": ^3.1.1 - "@metamask/utils": ^8.3.0 - "@types/uuid": ^9.0.1 - superstruct: ^1.0.3 - uuid: ^9.0.0 - checksum: 0e15d7d7d6e35c62f5ab9dcee834113d14ef1cee87682efbd05407eda74edc7c6c504769108274e3fc5077c32c41b00ba00dda2e262af58ee2ca2208eae02551 + "@metamask/snaps-sdk": ^6.5.1 + "@metamask/superstruct": ^3.1.0 + "@metamask/utils": ^9.2.1 + "@types/uuid": ^9.0.8 + bech32: ^2.0.0 + uuid: ^9.0.1 + peerDependencies: + "@metamask/providers": ^17.2.0 + checksum: 5943878fa9e47aae1c5ef49a2bcdf7f69fd68532cc9ca8ab1b8d2682cd91c1ac9a6db8219df6365d71b3dcf29731f854699c74f2b3bf68a9d03ebecc5fb71e30 languageName: node linkType: hard @@ -2857,26 +2847,6 @@ __metadata: languageName: node linkType: hard -"@metamask/providers@npm:^15.0.0": - version: 15.0.0 - resolution: "@metamask/providers@npm:15.0.0" - dependencies: - "@metamask/json-rpc-engine": ^7.3.2 - "@metamask/json-rpc-middleware-stream": ^6.0.2 - "@metamask/object-multiplex": ^2.0.0 - "@metamask/rpc-errors": ^6.2.1 - "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.3.0 - detect-browser: ^5.2.0 - extension-port-stream: ^3.0.0 - fast-deep-equal: ^3.1.3 - is-stream: ^2.0.0 - readable-stream: ^3.6.2 - webextension-polyfill: ^0.10.0 - checksum: 42571450e79d69d943384f557f6a61e0f73101d49804fb6e8075d791959f76c42b8ff626f711d434674792d77aead6cb8a32b04a3dcd53598c8aff24cbb1ad25 - languageName: node - linkType: hard - "@metamask/providers@npm:^16.0.0": version: 16.1.0 resolution: "@metamask/providers@npm:16.1.0" @@ -3159,7 +3129,7 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-sdk@npm:^3.0.1, @metamask/snaps-sdk@npm:^3.1.1, @metamask/snaps-sdk@npm:^3.2.0": +"@metamask/snaps-sdk@npm:^3.0.1, @metamask/snaps-sdk@npm:^3.2.0": version: 3.2.0 resolution: "@metamask/snaps-sdk@npm:3.2.0" dependencies: @@ -3199,6 +3169,19 @@ __metadata: languageName: node linkType: hard +"@metamask/snaps-sdk@npm:^6.5.1": + version: 6.6.0 + resolution: "@metamask/snaps-sdk@npm:6.6.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: 5ed1681b0456cdfbb0fdaf32dd7b5f1e12ed62acaec17d462ed1d4579ac4c2de9543e4c92fed04774c5cf7864a522100d0c3560fb643e13c34f51296087abe65 + languageName: node + linkType: hard + "@metamask/snaps-types@npm:^3.1.0": version: 3.1.0 resolution: "@metamask/snaps-types@npm:3.1.0" @@ -3335,6 +3318,23 @@ __metadata: languageName: node linkType: hard +"@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 + "@noble/curves@npm:1.4.2, @noble/curves@npm:^1.2.0, @noble/curves@npm:~1.4.0": version: 1.4.2 resolution: "@noble/curves@npm:1.4.2" @@ -4016,7 +4016,7 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^9.0.1": +"@types/uuid@npm:^9.0.8": version: 9.0.8 resolution: "@types/uuid@npm:9.0.8" checksum: b8c60b7ba8250356b5088302583d1704a4e1a13558d143c549c408bf8920535602ffc12394ede77f8a8083511b023704bc66d1345792714002bfa261b17c5275 @@ -4918,6 +4918,13 @@ __metadata: languageName: node linkType: hard +"bech32@npm:^2.0.0": + version: 2.0.0 + resolution: "bech32@npm:2.0.0" + checksum: fa15acb270b59aa496734a01f9155677b478987b773bf701f465858bf1606c6a970085babd43d71ce61895f1baa594cb41a2cd1394bd2c6698f03cc2d811300e + languageName: node + linkType: hard + "bin-links@npm:4.0.4": version: 4.0.4 resolution: "bin-links@npm:4.0.4"