Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump Snaps packages #28678

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/scripts/controllers/permissions/specifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ export const unrestrictedMethods = Object.freeze([
'snap_createInterface',
'snap_updateInterface',
'snap_getInterfaceState',
'snap_getInterfaceContext',
'snap_resolveInterface',
'snap_getCurrencyRate',
///: BEGIN:ONLY_INCLUDE_IF(build-mmi)
Expand Down
18 changes: 16 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,11 @@ export default class MetamaskController extends EventEmitter {

this.controllerMessenger.subscribe(
`${this.snapController.name}:snapInstalled`,
(truncatedSnap, origin) => {
(truncatedSnap, origin, preinstalled) => {
if (preinstalled) {
return;
}

const snapId = truncatedSnap.id;
const snapCategory = this._getSnapMetadata(snapId)?.category;
this.metaMetricsController.trackEvent({
Expand All @@ -3042,7 +3046,11 @@ export default class MetamaskController extends EventEmitter {

this.controllerMessenger.subscribe(
`${this.snapController.name}:snapUpdated`,
(newSnap, oldVersion, origin) => {
(newSnap, oldVersion, origin, preinstalled) => {
if (preinstalled) {
return;
}

const snapId = newSnap.id;
const snapCategory = this._getSnapMetadata(snapId)?.category;
this.metaMetricsController.trackEvent({
Expand Down Expand Up @@ -6089,6 +6097,12 @@ export default class MetamaskController extends EventEmitter {
origin,
...args,
).state,
getInterfaceContext: (...args) =>
this.controllerMessenger.call(
'SnapInterfaceController:getInterface',
origin,
...args,
).context,
createInterface: this.controllerMessenger.call.bind(
this.controllerMessenger,
'SnapInterfaceController:createInterface',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"[email protected]": "^7.5.4",
"@trezor/schema-utils@npm:1.0.2": "patch:@trezor/schema-utils@npm%3A1.0.2#~/.yarn/patches/@trezor-schema-utils-npm-1.0.2-7dd48689b2.patch",
"lavamoat-core@npm:^15.1.1": "patch:lavamoat-core@npm%3A15.1.1#~/.yarn/patches/lavamoat-core-npm-15.1.1-51fbe39988.patch",
"@metamask/snaps-sdk": "^6.11.0",
"@metamask/snaps-sdk": "^6.12.0",
"@swc/[email protected]": "^0.1.6",
"@babel/core": "patch:@babel/core@npm%3A7.25.9#~/.yarn/patches/@babel-core-npm-7.25.9-4ae3bff7f3.patch",
"@babel/runtime": "patch:@babel/runtime@npm%3A7.25.9#~/.yarn/patches/@babel-runtime-npm-7.25.9-fe8c62510a.patch",
Expand Down Expand Up @@ -349,10 +349,10 @@
"@metamask/selected-network-controller": "^18.0.2",
"@metamask/signature-controller": "^23.0.0",
"@metamask/smart-transactions-controller": "^13.0.0",
"@metamask/snaps-controllers": "^9.13.0",
"@metamask/snaps-controllers": "^9.14.0",
"@metamask/snaps-execution-environments": "^6.10.0",
"@metamask/snaps-rpc-methods": "^11.5.1",
"@metamask/snaps-sdk": "^6.11.0",
"@metamask/snaps-rpc-methods": "^11.6.0",
"@metamask/snaps-sdk": "^6.12.0",
"@metamask/snaps-utils": "^8.6.0",
"@metamask/solana-wallet-snap": "^0.1.9",
"@metamask/transaction-controller": "^40.0.0",
Expand Down
46 changes: 23 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6457,9 +6457,9 @@ __metadata:
linkType: hard

"@metamask/slip44@npm:^4.0.0":
version: 4.0.0
resolution: "@metamask/slip44@npm:4.0.0"
checksum: 10/3e47e8834b0fbdabe1f126fd78665767847ddc1f9ccc8defb23007dd71fcd2e4899c8ca04857491be3630668a3765bad1e40fdfca9a61ef33236d8d08e51535e
version: 4.1.0
resolution: "@metamask/slip44@npm:4.1.0"
checksum: 10/4265254a1800a24915bd1de15f86f196737132f9af2a084c2efc885decfc5dd87ad8f0687269d90b35e2ec64d3ea4fbff0caa793bcea6e585b1f3a290952b750
languageName: node
linkType: hard

Expand All @@ -6486,9 +6486,9 @@ __metadata:
languageName: node
linkType: hard

"@metamask/snaps-controllers@npm:^9.10.0, @metamask/snaps-controllers@npm:^9.13.0":
version: 9.13.0
resolution: "@metamask/snaps-controllers@npm:9.13.0"
"@metamask/snaps-controllers@npm:^9.10.0, @metamask/snaps-controllers@npm:^9.14.0":
version: 9.14.0
resolution: "@metamask/snaps-controllers@npm:9.14.0"
dependencies:
"@metamask/approval-controller": "npm:^7.1.1"
"@metamask/base-controller": "npm:^7.0.2"
Expand All @@ -6500,8 +6500,8 @@ __metadata:
"@metamask/post-message-stream": "npm:^8.1.1"
"@metamask/rpc-errors": "npm:^7.0.1"
"@metamask/snaps-registry": "npm:^3.2.2"
"@metamask/snaps-rpc-methods": "npm:^11.5.1"
"@metamask/snaps-sdk": "npm:^6.11.0"
"@metamask/snaps-rpc-methods": "npm:^11.6.0"
"@metamask/snaps-sdk": "npm:^6.12.0"
"@metamask/snaps-utils": "npm:^8.6.0"
"@metamask/utils": "npm:^10.0.0"
"@xstate/fsm": "npm:^2.0.0"
Expand All @@ -6520,7 +6520,7 @@ __metadata:
peerDependenciesMeta:
"@metamask/snaps-execution-environments":
optional: true
checksum: 10/bcf60b61de067f89439cb15acbdf6f808b4bcda8e1cbc9debd693ca2c545c9d38c4e6f380191c4703bd9d28d7dd41e4ce5111664d7b474d5e86e460bcefc3637
checksum: 10/cce5a4d7af65d70a2a2902f9a89b15145590edccf8171b3994e2ddde74c6700abf49d7b800275d7ab3b216ef3dfca3be82c4145b5986d20ec1df8b4c50b95314
languageName: node
linkType: hard

Expand Down Expand Up @@ -6555,32 +6555,32 @@ __metadata:
languageName: node
linkType: hard

"@metamask/snaps-rpc-methods@npm:^11.5.1":
version: 11.5.1
resolution: "@metamask/snaps-rpc-methods@npm:11.5.1"
"@metamask/snaps-rpc-methods@npm:^11.6.0":
version: 11.6.0
resolution: "@metamask/snaps-rpc-methods@npm:11.6.0"
dependencies:
"@metamask/key-tree": "npm:^9.1.2"
"@metamask/permission-controller": "npm:^11.0.3"
"@metamask/rpc-errors": "npm:^7.0.1"
"@metamask/snaps-sdk": "npm:^6.10.0"
"@metamask/snaps-utils": "npm:^8.5.0"
"@metamask/snaps-sdk": "npm:^6.12.0"
"@metamask/snaps-utils": "npm:^8.6.0"
"@metamask/superstruct": "npm:^3.1.0"
"@metamask/utils": "npm:^10.0.0"
"@noble/hashes": "npm:^1.3.1"
checksum: 10/0f999a5dd64f1b1123366f448ae833f0e95a415791600bb535959ba67d2269fbe3c4504d47f04db71bafa79a9a87d6b832fb2e2b5ef29567078c95bce2638f35
checksum: 10/6788717e1ccab8eb40876fce15a4b66b44f267b33fe953efa56c0fee94f651391704556eaf9f3f9e6787e0bbbe6b0fb470a9da45d68d78b587ad96b6a3f246ac
languageName: node
linkType: hard

"@metamask/snaps-sdk@npm:^6.11.0":
version: 6.11.0
resolution: "@metamask/snaps-sdk@npm:6.11.0"
"@metamask/snaps-sdk@npm:^6.12.0":
version: 6.12.0
resolution: "@metamask/snaps-sdk@npm:6.12.0"
dependencies:
"@metamask/key-tree": "npm:^9.1.2"
"@metamask/providers": "npm:^18.1.1"
"@metamask/rpc-errors": "npm:^7.0.1"
"@metamask/superstruct": "npm:^3.1.0"
"@metamask/utils": "npm:^10.0.0"
checksum: 10/0f9b507139d1544b1b3d85ff8de81b800d543012d3ee9414c607c23abe9562e0dca48de089ed94be69f5ad981730a0f443371edfe6bc2d5ffb140b28e437bfd2
checksum: 10/b0e24fee2c90ac2f456aeb5babc180c74f56b8cf94f38abdd9b022c65a9cac4a10015e3d4053784292c184238f97704cb2b6a41f6e7a04f23ffaa8d519d2a39e
languageName: node
linkType: hard

Expand Down Expand Up @@ -6615,7 +6615,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/snaps-utils@npm:^8.3.0, @metamask/snaps-utils@npm:^8.5.0, @metamask/snaps-utils@npm:^8.6.0":
"@metamask/snaps-utils@npm:^8.3.0, @metamask/snaps-utils@npm:^8.6.0":
version: 8.6.0
resolution: "@metamask/snaps-utils@npm:8.6.0"
dependencies:
Expand Down Expand Up @@ -26883,10 +26883,10 @@ __metadata:
"@metamask/selected-network-controller": "npm:^18.0.2"
"@metamask/signature-controller": "npm:^23.0.0"
"@metamask/smart-transactions-controller": "npm:^13.0.0"
"@metamask/snaps-controllers": "npm:^9.13.0"
"@metamask/snaps-controllers": "npm:^9.14.0"
"@metamask/snaps-execution-environments": "npm:^6.10.0"
"@metamask/snaps-rpc-methods": "npm:^11.5.1"
"@metamask/snaps-sdk": "npm:^6.11.0"
"@metamask/snaps-rpc-methods": "npm:^11.6.0"
"@metamask/snaps-sdk": "npm:^6.12.0"
"@metamask/snaps-utils": "npm:^8.6.0"
"@metamask/solana-wallet-snap": "npm:^0.1.9"
"@metamask/test-bundler": "npm:^1.0.0"
Expand Down
Loading