Skip to content

Commit

Permalink
[FLASK] Bump snaps packages (#20976)
Browse files Browse the repository at this point in the history
* integrate snaps release 8.0

* update yarn.lock

* rebuilt policy

* fix url

* ran policy generation again

* Revert "rebuilt policy"

This reverts commit a7e53dd.

* Add missing events

---------

Co-authored-by: Matthew Walsh <[email protected]>
  • Loading branch information
hmalik88 and matthewwalsh0 authored Sep 21, 2023
1 parent 8fb1935 commit 91a0064
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 140 deletions.
2 changes: 2 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,8 @@ export default class MetamaskController extends EventEmitter {
'SnapController:snapInstalled',
'SnapController:snapUpdated',
'SnapController:snapRemoved',
'SnapController:snapEnabled',
'SnapController:snapDisabled',
],
allowedActions: [
`${this.permissionController.name}:getPermissions`,
Expand Down
4 changes: 2 additions & 2 deletions builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ buildTypes:
- SEGMENT_FLASK_WRITE_KEY
- ALLOW_LOCAL_SNAPS: true
- REQUIRE_SNAPS_ALLOWLIST: false
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.consensys.io/0.38.3-flask.1/index.html
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.consensys.io/0.39.0-flask.1/index.html
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
Expand All @@ -77,7 +77,7 @@ buildTypes:
- SEGMENT_FLASK_WRITE_KEY
- ALLOW_LOCAL_SNAPS: true
- REQUIRE_SNAPS_ALLOWLIST: false
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.consensys.io/0.38.3-flask.1/index.html
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.consensys.io/0.39.0-flask.1/index.html
- SUPPORT_LINK: https://metamask-flask.zendesk.com/hc
- SUPPORT_REQUEST_LINK: https://metamask-flask.zendesk.com/hc/en-us/requests/new
- INFURA_ENV_KEY_REF: INFURA_FLASK_PROJECT_ID
Expand Down
53 changes: 7 additions & 46 deletions lavamoat/browserify/desktop/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2059,20 +2059,7 @@
},
"@metamask/rpc-methods-flask>@metamask/snaps-ui": {
"packages": {
"@metamask/rpc-methods-flask>@metamask/snaps-ui>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/rpc-methods-flask>@metamask/snaps-ui>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"@metamask/rpc-methods-flask>@metamask/utils": true,
"superstruct": true
}
},
Expand Down Expand Up @@ -2217,6 +2204,7 @@
"@metamask/providers>@metamask/object-multiplex": true,
"@metamask/snaps-controllers-flask>@metamask/post-message-stream": true,
"@metamask/snaps-controllers-flask>@metamask/rpc-methods": true,
"@metamask/snaps-controllers-flask>@metamask/snaps-registry": true,
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"@metamask/snaps-controllers-flask>concat-stream": true,
Expand All @@ -2225,11 +2213,10 @@
"@metamask/snaps-controllers>gunzip-maybe": true,
"@metamask/snaps-controllers>readable-web-to-node-stream": true,
"@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-utils>@metamask/snaps-registry": true,
"eth-rpc-errors": true,
"json-rpc-engine": true,
"json-rpc-middleware-stream": true,
"pump": true
"stream-browserify": true
}
},
"@metamask/snaps-controllers-flask>@metamask/post-message-stream": {
Expand Down Expand Up @@ -2274,20 +2261,14 @@
},
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": {
"packages": {
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui>@metamask/utils": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"@metamask/snaps-controllers-flask>@metamask/snaps-registry": {
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"@metamask/key-tree>@noble/secp256k1": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"superstruct": true
}
},
Expand Down Expand Up @@ -2559,26 +2540,6 @@
"@metamask/snaps-utils-flask>is-svg>fast-xml-parser>strnum": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/key-tree>@noble/secp256k1": true,
"@metamask/snaps-utils>@metamask/snaps-registry>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"superstruct": true
}
},
"@metamask/snaps-utils>cron-parser": {
"packages": {
"browserify>browser-resolve": true,
Expand Down
53 changes: 7 additions & 46 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,20 +2075,7 @@
},
"@metamask/rpc-methods-flask>@metamask/snaps-ui": {
"packages": {
"@metamask/rpc-methods-flask>@metamask/snaps-ui>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/rpc-methods-flask>@metamask/snaps-ui>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"@metamask/rpc-methods-flask>@metamask/utils": true,
"superstruct": true
}
},
Expand Down Expand Up @@ -2233,6 +2220,7 @@
"@metamask/providers>@metamask/object-multiplex": true,
"@metamask/snaps-controllers-flask>@metamask/post-message-stream": true,
"@metamask/snaps-controllers-flask>@metamask/rpc-methods": true,
"@metamask/snaps-controllers-flask>@metamask/snaps-registry": true,
"@metamask/snaps-controllers-flask>@metamask/snaps-utils": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"@metamask/snaps-controllers-flask>concat-stream": true,
Expand All @@ -2241,11 +2229,10 @@
"@metamask/snaps-controllers>gunzip-maybe": true,
"@metamask/snaps-controllers>readable-web-to-node-stream": true,
"@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-utils>@metamask/snaps-registry": true,
"eth-rpc-errors": true,
"json-rpc-engine": true,
"json-rpc-middleware-stream": true,
"pump": true
"stream-browserify": true
}
},
"@metamask/snaps-controllers-flask>@metamask/post-message-stream": {
Expand Down Expand Up @@ -2290,20 +2277,14 @@
},
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui": {
"packages": {
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui>@metamask/utils": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-controllers-flask>@metamask/rpc-methods>@metamask/snaps-ui>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"@metamask/snaps-controllers-flask>@metamask/snaps-registry": {
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"@metamask/key-tree>@noble/secp256k1": true,
"@metamask/snaps-controllers-flask>@metamask/utils": true,
"superstruct": true
}
},
Expand Down Expand Up @@ -2575,26 +2556,6 @@
"@metamask/snaps-utils-flask>is-svg>fast-xml-parser>strnum": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/key-tree>@noble/secp256k1": true,
"@metamask/snaps-utils>@metamask/snaps-registry>@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true,
"superstruct": true
}
},
"@metamask/snaps-utils>cron-parser": {
"packages": {
"browserify>browser-resolve": true,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,19 +268,19 @@
"@metamask/providers": "^11.1.0",
"@metamask/rate-limit-controller": "^3.0.0",
"@metamask/rpc-methods": "^1.0.2",
"@metamask/rpc-methods-flask": "npm:@metamask/[email protected].2-flask.1",
"@metamask/rpc-methods-flask": "npm:@metamask/[email protected].3-flask.1",
"@metamask/safe-event-emitter": "^2.0.0",
"@metamask/scure-bip39": "^2.0.3",
"@metamask/selected-network-controller": "^1.0.0",
"@metamask/signature-controller": "^5.3.0",
"@metamask/slip44": "^3.0.0",
"@metamask/smart-transactions-controller": "^4.0.0",
"@metamask/snaps-controllers": "^1.0.2",
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.38.3-flask.1",
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.39.0-flask.1",
"@metamask/snaps-ui": "^1.0.2",
"@metamask/snaps-ui-flask": "npm:@metamask/[email protected].4-flask.1",
"@metamask/snaps-ui-flask": "npm:@metamask/[email protected].5-flask.1",
"@metamask/snaps-utils": "^1.0.2",
"@metamask/snaps-utils-flask": "npm:@metamask/[email protected].3-flask.1",
"@metamask/snaps-utils-flask": "npm:@metamask/[email protected].4-flask.1",
"@metamask/subject-metadata-controller": "^2.0.0",
"@metamask/utils": "^5.0.0",
"@ngraveio/bc-ur": "^1.1.6",
Expand Down
Loading

0 comments on commit 91a0064

Please sign in to comment.