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

[Flask] snaps integration #6262

Closed
wants to merge 17 commits into from
Closed

[Flask] snaps integration #6262

wants to merge 17 commits into from

Conversation

owencraston
Copy link
Contributor

@owencraston owencraston commented Apr 24, 2023

No description provided.

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@owencraston owencraston mentioned this pull request Apr 24, 2023
3 tasks
@owencraston owencraston added the DO-NOT-MERGE Pull requests that should not be merged label Apr 27, 2023
@socket-security
Copy link

socket-security bot commented Apr 27, 2023

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Issue Package Version Note Source
Deprecated text-encoding 0.7.0
  • Reason: no longer maintained
package.json
Unmaintained text-encoding 0.7.0
  • Last Publish: 9/28/2018, 4:06:19 AM
package.json
Deprecated webextension-polyfill-ts 0.22.0
  • Reason: This project has moved to @types/webextension-polyfill
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained webextension-polyfill-ts 0.22.0
  • Last Publish: 7/3/2021, 1:09:26 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Deprecated webextension-polyfill-ts 0.25.0
  • Reason: This project has moved to @types/webextension-polyfill
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained webextension-polyfill-ts 0.25.0
  • Last Publish: 7/3/2021, 1:09:26 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Filesystem access @babel/helpers 7.21.5 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Filesystem access @metamask/snaps-utils 0.26.2 package.json via @metamask/[email protected], @metamask/[email protected]
No contributors or author data @metamask/snaps-utils 0.26.2 package.json via @metamask/[email protected], @metamask/[email protected]
Shell access @metamask/snaps-utils 0.26.2 package.json via @metamask/[email protected], @metamask/[email protected]
Filesystem access browserify-zlib 0.1.4 package.json via @metamask/[email protected]
Unmaintained browserify-zlib 0.1.4
  • Last Publish: 6/3/2017, 4:02:05 PM
package.json via @metamask/[email protected]
Filesystem access cron-parser 4.7.0 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Filesystem access gunzip-maybe 1.4.2 package.json via @metamask/[email protected]
Unmaintained gunzip-maybe 1.4.2
  • Last Publish: 4/22/2020, 3:00:03 PM
package.json via @metamask/[email protected]
Network access @metamask/snaps-execution-environments 0.26.2 package.json via @metamask/[email protected]
No contributors or author data @metamask/snaps-execution-environments 0.26.2 package.json via @metamask/[email protected]
Network access micro-ftch 0.3.1
  • Module: globalThis["fetch"]
  • Location: index.js
package.json via @metamask/[email protected]
No bug tracker micro-ftch 0.3.1 package.json via @metamask/[email protected]
Unmaintained micro-ftch 0.3.1
  • Last Publish: 7/8/2021, 4:10:57 AM
package.json via @metamask/[email protected]
New author @metamask/object-multiplex 1.2.0 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
No contributors or author data @metamask/object-multiplex 1.2.0 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained @metamask/object-multiplex 1.2.0
  • Last Publish: 6/1/2021, 6:49:00 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
New author @metamask/post-message-stream 6.0.0 package.json via @metamask/[email protected]
No contributors or author data @metamask/post-message-stream 6.0.0 package.json via @metamask/[email protected]
New author @metamask/utils 2.1.0 package.json via @metamask/[email protected], @metamask/[email protected]
New author ses 0.17.0 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
New author @metamask/slip44 3.0.0 package.json
New author validate-npm-package-name 5.0.0 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
New author string_decoder 1.0.3 package.json via @metamask/[email protected], @metamask/[email protected]
No contributors or author data @metamask/rpc-methods 0.26.2 package.json via @metamask/[email protected]
No contributors or author data @metamask/snaps-controllers 0.26.2 package.json
Shell access @metamask/snaps-controllers 0.26.2 package.json
No contributors or author data @metamask/snaps-types 0.26.2 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
No contributors or author data @metamask/subject-metadata-controller 1.0.2 package.json via @metamask/[email protected]
No contributors or author data builtins 5.0.1 package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained builtins 5.0.1
  • Last Publish: 4/20/2022, 8:30:41 AM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
No bug tracker @chainsafe/ssz 0.11.1 package.json via @metamask/[email protected]
No bug tracker @metamask/browser-passworder 4.1.0 package.json via @metamask/[email protected]
Unmaintained readable-web-to-node-stream 3.0.2
  • Last Publish: 7/11/2021, 6:52:55 PM
package.json via @metamask/[email protected]
Unmaintained is-gzip 1.0.0
  • Last Publish: 8/13/2017, 3:56:02 PM
package.json via @metamask/[email protected]
Unmaintained extension-port-stream 2.0.1
  • Last Publish: 4/30/2021, 12:55:22 AM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained rfdc 1.3.0
  • Last Publish: 3/14/2021, 7:11:21 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained pumpify 1.5.1
  • Last Publish: 10/1/2019, 1:53:36 PM
package.json via @metamask/[email protected]
Unmaintained peek-stream 1.1.3
  • Last Publish: 3/21/2018, 11:11:47 PM
package.json via @metamask/[email protected]
Unmaintained constants 0.0.2
  • Last Publish: 4/18/2014, 3:28:57 PM
package.json
Unmaintained is-deflate 1.0.0
  • Last Publish: 1/23/2016, 11:45:25 PM
package.json via @metamask/[email protected]
Unmaintained @types/filesystem 0.0.32
  • Last Publish: 7/6/2021, 8:54:33 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]
Unmaintained @types/filewriter 0.0.29
  • Last Publish: 3/25/2021, 5:32:06 PM
package.json via @metamask/[email protected], @metamask/[email protected], @metamask/[email protected]

Next steps

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

What are unmaintained packages?

Package has not been updated in more than a year and may be unmaintained. Problems with the package may go unaddressed.

Package should publish periodic maintenance releases if they are maintained, or deprecate if they have no intention in further maintenance.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

Why is contributor and author data important?

Package does not specify a list of contributors or an author in package.json.

Add a author field or contributors array to package.json.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is network access?

This module accesses the network.

Packages should remove all network access that isn't functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Why are bug trackers important?

Package does not have a linked bug tracker in package.json.

Add a bugs field to package.json. https://docs.npmjs.com/cli/v8/configuring-npm/package-json#bugs

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore [email protected] bar@* or ignore all packages with @SocketSecurity ignore-all

@socket-security
Copy link

socket-security bot commented Jun 5, 2023

New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives1 Size Publisher
@metamask/snaps-controllers 🆕 0.26.2 eval, network, shell +76 29.7 MB metamaskbot
@metamask/snaps-utils 🆕 0.26.2 eval, filesystem, shell, environment +46 18.4 MB metamaskbot
@metamask/rpc-methods 🆕 0.26.2 eval +51 19.4 MB metamaskbot
@metamask/post-message-stream 🆕 6.0.0 None +4 257 kB gudahtt
@metamask/slip44 🆕 3.0.0 None +0 124 kB metamaskbot
constants 🆕 0.0.2 None +0 7.17 kB dominicbarnes
@metamask/subject-metadata-controller 🆕 1.0.2 None +2 468 kB metamaskbot
@metamask/utils 🆕 5.0.1 network +13 4.27 MB metamaskbot
text-encoding 🆕 0.7.0 None +0 650 kB inexorabletash
@types/readable-stream 🆕 2.3.15 None +0 24.6 kB types
@types/react ⬆️ 17.0.14...17.0.59 None +0/-0 169 kB types

Footnotes

  1. https://docs.socket.dev

owencraston and others added 9 commits June 15, 2023 15:55
commit 64fac61
Author: Owen Craston <[email protected]>
Date:   Tue Apr 11 14:57:18 2023 -0700

    [Feature] execute snaps methods from Dapp on iOS (#6049)

    * Remove custom handlers and add PermissionMiddleware to SnapBridge RPC engine

    * exportMnemonic

    * Polyfill TextEncoder

    * slightly better UX

    * Add SnapMethodMiddleware to SnapBridge

    * fetch files based on manifest location

    * check source shasum

    ---------

    Co-authored-by: Gustavo Antunes <[email protected]>

commit b90e6a2
Author: Owen Craston <[email protected]>
Date:   Wed Apr 5 14:49:05 2023 -0700

    add native module to xcodeproject (#6133)

commit 4d36535
Merge: 5ec6a86 8aac1e0
Author: Gustavo Antunes <[email protected]>
Date:   Fri Mar 31 14:21:56 2023 -0300

    Merge main

commit 5ec6a86
Author: Owen Craston <[email protected]>
Date:   Mon Mar 27 18:15:16 2023 -0400

    [Patch fix] Android build for snaps integration system (#6053)

    * swap for rn-fetch-blob

    * remove unused file

commit 4ffc810
Author: Owen Craston <[email protected]>
Date:   Mon Mar 27 12:09:28 2023 -0400

    Install snap from a Dapp (#6002)

    - extract icon from tar file
    - show request permissions for install snap and account access
    - move snap webview to the root of the app and make it invisible
    - create RPC method handlers to register snaps rpc methods

commit e6eb204
Author: Owen Craston <[email protected]>
Date:   Thu Mar 23 19:20:12 2023 -0400

    [FEATURE] Create detectSnapLocation method to install a Snap From NPM iOS (#5926)

    * Install a Snap From NPM iOS

    - Create NPMLocation class
    - Create a custom fetch function for the npm logic as we have slightly
      different logic
    - create a swift native module to read a .tgz file and decompress it
    - read the decompressed folder data and pass it to snaps
    - swiftlint

commit d7adb30
Author: Gustavo Antunes <[email protected]>
Date:   Sun Mar 19 10:59:25 2023 -0300

    Fix SnapBridge network bug

commit e03b85e
Author: Gustavo Antunes <[email protected]>
Date:   Sun Mar 19 10:58:46 2023 -0300

    Integrate SubjectMetadataController

commit 639b9bd
Author: Owen Craston <[email protected]>
Date:   Fri Mar 17 14:00:12 2023 -0700

    [FEATURE] Create detectSnapLocation method to install a Local Snap (#5923)

    * Local snaps install with controller version 0.26.2

commit 437d572
Author: Gustavo Antunes <[email protected]>
Date:   Thu Mar 16 01:40:36 2023 -0300

    Add new allow action

commit f6cf4bf
Merge: c93bfa8 49a6305
Author: Gustavo Antunes <[email protected]>
Date:   Thu Mar 16 00:57:33 2023 -0300

    Rebase

commit c93bfa8
Merge: f83cbb2 0c4f95a
Author: Gustavo Antunes <[email protected]>
Date:   Wed Mar 15 08:49:21 2023 -0300

    Rebase

commit f83cbb2
Merge: 8acc208 f46e93e
Author: Gustavo Antunes <[email protected]>
Date:   Mon Mar 13 23:41:52 2023 -0300

    Rebase

commit 8acc208
Merge: 3b4b499 65ef08a
Author: Gustavo Antunes <[email protected]>
Date:   Wed Mar 8 12:47:57 2023 -0300

    Rebase

commit 3b4b499
Merge: 334768d cd02e01
Author: Gustavo Antunes <[email protected]>
Date:   Thu Feb 23 12:53:10 2023 -0300

    Merge main

commit 334768d
Author: Gustavo Antunes <[email protected]>
Date:   Mon Feb 20 18:35:43 2023 -0300

    Update patch

commit 202f2cf
Author: Gustavo Antunes <[email protected]>
Date:   Mon Feb 20 18:34:38 2023 -0300

    Update snaps-controller package

commit 3adc234
Author: Gustavo Antunes <[email protected]>
Date:   Mon Feb 20 18:33:01 2023 -0300

    Update snaps-controller package

commit 9c1c91b
Merge: 0d0152b 0275732
Author: Gustavo Antunes <[email protected]>
Date:   Sat Feb 18 20:12:08 2023 -0300

    Merge main

commit 0d0152b
Author: Gustavo Antunes <[email protected]>
Date:   Wed Feb 15 15:37:01 2023 -0300

    Remove unnecessary code

commit 9800a4d
Merge: 22e3562 b0b8d9f
Author: Gustavo Antunes <[email protected]>
Date:   Wed Feb 15 10:07:49 2023 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into feat/snaps-system-integration

commit 22e3562
Author: Gustavo Antunes <[email protected]>
Date:   Tue Feb 14 13:14:06 2023 -0300

    Fix styles

commit dc68ac6
Merge: 4bdde30 264a509
Author: Gustavo Antunes <[email protected]>
Date:   Tue Feb 14 12:35:50 2023 -0300

    Merge main and solve conflicts

commit 4bdde30
Author: Gustavo Antunes <[email protected]>
Date:   Fri Feb 3 13:32:10 2023 -0300

    Fix permission bug

commit 65f15a2
Author: Gustavo Antunes <[email protected]>
Date:   Fri Feb 3 13:14:33 2023 -0300

    Fix imports

commit 3cc578e
Author: Gustavo Antunes <[email protected]>
Date:   Fri Feb 3 12:50:21 2023 -0300

    Integrate PS

commit 044bc01
Author: Gustavo Antunes <[email protected]>
Date:   Fri Feb 3 00:45:56 2023 -0300

    Solve merge bugs

commit 985c726
Merge: e2ddafc 6e062b6
Author: Gustavo Antunes <[email protected]>
Date:   Fri Feb 3 00:37:28 2023 -0300

    Merge main

commit e2ddafc
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 16:13:52 2023 -0300

    Update dependency

commit 260d4d0
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 15:13:16 2023 -0300

    Revert "Remove logs"

    This reverts commit 106523e.

commit 894fc4e
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:23:51 2023 -0300

    Update structure

commit 3d4e72c
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:23:37 2023 -0300

    Update SnapController

commit 376f2bf
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:23:17 2023 -0300

    Update permissions

commit f389429
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:23:05 2023 -0300

    Update styles

commit 567f8a5
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 13:37:31 2023 -0300

    Add error to alert

commit 9858364
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 12:05:10 2023 -0300

    Clean up SnapElement code

commit 106523e
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 09:54:26 2023 -0300

    Remove logs

commit 85c7ea3
Author: Gustavo Antunes <[email protected]>
Date:   Sun Jan 29 23:09:12 2023 -0300

    Update UI

commit c4d3252
Author: Gustavo Antunes <[email protected]>
Date:   Sun Jan 29 02:02:25 2023 -0300

    Snaps developer UI

commit 1506ca5
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:55:00 2023 -0300

    Add snap UI (base)

commit 46fb0f8
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:52:51 2023 -0300

    Merge main

commit 7abbc1b
Author: Gustavo Antunes <[email protected]>
Date:   Mon Jan 30 14:37:50 2023 -0300

    Merge main

commit 80e3b6c
Merge: cb8a52b 91e2ed8
Author: Gustavo Antunes <[email protected]>
Date:   Wed Jan 11 15:51:40 2023 -0300

    Solve conflicts

commit cb8a52b
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 28 18:50:01 2022 -0300

    Clean fetchNPMPackage file

commit 086b4f8
Merge: a27596c e94e0f0
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 28 18:04:02 2022 -0300

    Solve conflicts

commit a27596c
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 21 14:45:17 2022 -0300

    Include SnapController to engine init

commit 2fcdc5a
Merge: 950446c c0122b1
Author: Gustavo Antunes <[email protected]>
Date:   Sat Dec 17 22:11:18 2022 -0300

    Merge main

commit 950446c
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 18:13:42 2022 -0300

    Update logs and add test code

commit 0ea4d63
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 18:13:20 2022 -0300

    Update patch

commit 4f450b2
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 01:33:59 2022 -0300

    Skip logic to destroy WebviewPostMessageStream

commit 241fd9e
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 01:33:32 2022 -0300

    Add logic to destroy SnapDuplex stream

commit 1da4e65
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 01:32:31 2022 -0300

    Remove snapExecutionService method

commit 2da9fc4
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 01:31:57 2022 -0300

    Send valid method

commit 2c98d4f
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 00:15:36 2022 -0300

    Add styles to SnapsExecutionWebView for debugging

commit d3f676a
Author: Gustavo Antunes <[email protected]>
Date:   Fri Dec 16 00:14:59 2022 -0300

    Map current Snap Duplex streams

commit 7340e20
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 15:42:31 2022 -0300

    Update structure

commit 0935e49
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 15:42:07 2022 -0300

    Move Snaps WebView to different component

commit 1689a4b
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 12:02:08 2022 -0300

    Remoce POC code

commit aee140f
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:49:19 2022 -0300

    Update utils directory

commit 0a017ec
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:44:39 2022 -0300

    Move fetchNPMPackage to utils/snaps

commit a60eb5c
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:34:51 2022 -0300

    Update paths

commit 0e3e974
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:34:28 2022 -0300

    Upadte Snaps core index

commit 3a60a88
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:33:55 2022 -0300

    Delete SnapExecutionService

commit 11b672c
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:33:32 2022 -0300

    Move SnapBridge to core

commit eb257db
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:33:06 2022 -0300

    Move WebviewPostMessageStream to core

commit 15d33e3
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:32:47 2022 -0300

    Move WebviewExecutionService to core

commit 87736ac
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:32:29 2022 -0300

    Move SnapWebviewPostMessageStream to core

commit 05f100e
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:32:05 2022 -0300

    Move SnapDuplex to core

commit 6922dda
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:08:09 2022 -0300

    Comment terminateSnap method

commit 8a1854f
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 15 11:07:46 2022 -0300

    Add action to get installed snaps

commit 244743c
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 17:48:37 2022 -0300

    Add log

commit 2b1c876
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:23:26 2022 -0300

    Update patch

commit 0781cd2
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:20:49 2022 -0300

    Update logs in SnapBridge

commit bc957c3
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:20:11 2022 -0300

    Delete log

commit 45426b0
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:19:57 2022 -0300

    Update logs in Engine

commit ffc31d4
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:19:42 2022 -0300

    Update logs in WebviewPostMessageStream

commit 6959c8c
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:19:17 2022 -0300

    Update logs in WebviewExecutionService

commit cd822dc
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:18:49 2022 -0300

    Add logs to SnapWebviewPostMessageStream

commit 9b94d26
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:18:29 2022 -0300

    Update test UI

commit 209d663
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:17:11 2022 -0300

    Update test UI

commit a524fca
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 14:16:46 2022 -0300

    Remove logs from SnapWebviewPostMessageStream

commit 2255d22
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 01:34:55 2022 -0300

    Add mock methods

commit 12ae8f0
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 01:34:35 2022 -0300

    Terminate snap after install

commit 2c247d5
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:31:01 2022 -0300

    Update SnapController patch

commit e743773
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:19:27 2022 -0300

    Remove test code

commit de535e4
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:19:11 2022 -0300

    Update WebviewPostMessageStream

commit d2f84ec
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:17:11 2022 -0300

    Update WebviewExecutionService

commit df937db
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:16:48 2022 -0300

    Add SnapWebviewPostMessageStream

commit e5c92b0
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:16:35 2022 -0300

    Update log

commit 9855337
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:15:33 2022 -0300

    Add SnapDuplex

commit 8e101a9
Author: Gustavo Antunes <[email protected]>
Date:   Wed Dec 14 00:14:10 2022 -0300

    Update code to test snap

commit 7e93e07
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 11:39:31 2022 -0300

    Working version

commit 92dbeb0
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 00:10:29 2022 -0300

    Update SnapController patch

commit 0f8d29d
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 00:10:11 2022 -0300

    Add SnapBridge

commit 440d6df
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 00:09:42 2022 -0300

    Ideas to install a snap from NPM

commit ffd7409
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 00:08:05 2022 -0300

    setup SnapProvider using SnapBridge

commit ebde0c8
Author: Gustavo Antunes <[email protected]>
Date:   Tue Dec 13 00:07:28 2022 -0300

    Add method to install snap from localhost

commit 177576a
Author: Gustavo Antunes <[email protected]>
Date:   Mon Dec 12 19:15:48 2022 -0300

    Fix _initEnvStream bug

commit 143d838
Author: Gustavo Antunes <[email protected]>
Date:   Mon Dec 12 19:15:02 2022 -0300

    Update logic to call SnapController

commit 97d603e
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 8 10:29:14 2022 -0300

    Add @metamask/snap-controllers patch

commit 73ac81f
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 8 10:28:50 2022 -0300

    Update logic

commit ae2159b
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 8 10:28:15 2022 -0300

    Add tar-stream module

commit 3aaef89
Merge: f61362b e4d3820
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 8 01:32:03 2022 -0300

    Merge main

commit f61362b
Author: Gustavo Antunes <[email protected]>
Date:   Sun Dec 4 01:16:56 2022 -0300

    Update

commit 6201277
Author: Gustavo Antunes <[email protected]>
Date:   Sun Dec 4 01:15:48 2022 -0300

    Update mock id

commit 624d108
Author: Gustavo Antunes <[email protected]>
Date:   Sun Dec 4 01:15:20 2022 -0300

    Add methods to fetch snap

commit 8d7d835
Author: Gustavo Antunes <[email protected]>
Date:   Sun Dec 4 01:04:41 2022 -0300

    Add pako module

commit fdf6f25
Author: Gustavo Antunes <[email protected]>
Date:   Sun Dec 4 01:03:42 2022 -0300

    Add config to resolve stream

commit 1ed7066
Merge: 83f71fd 09b2cbc
Author: Gustavo Antunes <[email protected]>
Date:   Thu Dec 1 22:54:07 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit 83f71fd
Merge: 07f62b5 e29a423
Author: Gustavo Antunes <[email protected]>
Date:   Wed Nov 30 18:38:57 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit 07f62b5
Author: Gustavo Antunes <[email protected]>
Date:   Mon Nov 28 01:13:56 2022 -0300

    Fix comments indentation

commit 62efd1c
Merge: fc2c74b db811ad
Author: Gustavo Antunes <[email protected]>
Date:   Sun Nov 27 20:30:18 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit fc2c74b
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 26 09:18:23 2022 -0300

    Add commented code to mock snap install

commit 0a56825
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 26 09:17:31 2022 -0300

    Fix interface name

commit 4daa547
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 26 09:17:10 2022 -0300

    Update UI

commit 988b4c6
Author: Andre Pimenta <[email protected]>
Date:   Thu Nov 24 16:43:51 2022 +0000

    Update Engine.js

commit 2c1eb44
Author: Andre Pimenta <[email protected]>
Date:   Thu Nov 24 16:42:01 2022 +0000

    Adding missing files

commit 3f7a5b5
Merge: b9e3e82 87c644a
Author: Andre Pimenta <[email protected]>
Date:   Thu Nov 24 16:26:19 2022 +0000

    Merge branch 'snaps/exec-env' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit b9e3e82
Author: Andre Pimenta <[email protected]>
Date:   Thu Nov 24 16:26:13 2022 +0000

    WebviewPostMessageStream

commit 87c644a
Merge: 9e8734c 1c0ebb4
Author: Gustavo Antunes <[email protected]>
Date:   Wed Nov 23 23:27:28 2022 -0300

    Solve conflicts

commit 9e8734c
Author: Gustavo Antunes <[email protected]>
Date:   Wed Nov 23 15:22:21 2022 -0300

    Update POC

commit c411873
Merge: 311ecff b79dad0
Author: Gustavo Antunes <[email protected]>
Date:   Tue Nov 22 20:56:27 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit 311ecff
Merge: ceeb009 42f06f7
Author: Gustavo Antunes <[email protected]>
Date:   Tue Nov 22 17:06:02 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit ceeb009
Author: Gustavo Antunes <[email protected]>
Date:   Mon Nov 21 11:50:48 2022 -0300

    Update code

commit ca86eeb
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:48:16 2022 -0300

    Add SnapController (commented)

commit 828b132
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:47:41 2022 -0300

    Add SnapExecutionService

commit 71913df
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:47:26 2022 -0300

    Add snap utils methods

commit e08f36f
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:46:59 2022 -0300

    Add snap permissions

commit 1834503
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:46:47 2022 -0300

    Add SNAP_BLOCKLIST

commit 404529b
Author: Gustavo Antunes <[email protected]>
Date:   Sat Nov 19 22:45:59 2022 -0300

    Update dependencies

commit 27df777
Author: Gustavo Antunes <[email protected]>
Date:   Fri Nov 18 18:35:54 2022 -0300

    Update metro file to avoid loading issue

commit 76dfc27
Author: Gustavo Antunes <[email protected]>
Date:   Fri Nov 18 11:03:22 2022 -0300

    Update script

commit 4aeed70
Author: Gustavo Antunes <[email protected]>
Date:   Fri Nov 18 11:03:05 2022 -0300

    Add new file for communication

commit 5c30f89
Author: Gustavo Antunes <[email protected]>
Date:   Fri Nov 18 11:02:42 2022 -0300

    Remove code

commit 831a33b
Author: Gustavo Antunes <[email protected]>
Date:   Fri Nov 18 11:02:22 2022 -0300

    Update @types/react

commit ec1addb
Merge: 0c3c990 239d0a3
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 23:44:42 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit 0c3c990
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 20:42:03 2022 -0300

    Update base html

commit 958f0a3
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 20:27:13 2022 -0300

    Update example iframe

commit 7905892
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 20:26:56 2022 -0300

    Add start snap command

commit 0efa08d
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 17:13:22 2022 -0300

    Update bundle helloWorld_snap

commit 9506d07
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 17:09:03 2022 -0300

    Update bundle helloWorld_snap

commit 85569ec
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 17:01:14 2022 -0300

    Add helloWorld_snap bundle

commit a1c2401
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 17:00:17 2022 -0300

    Update eslint ignorePattern (revert later)

commit 383395b
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:41:59 2022 -0300

    Remove eslint disable comment

commit 8f0c085
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:41:20 2022 -0300

    Delete old file

commit 54f6f40
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:41:03 2022 -0300

    Create HTML files for testing

commit f328854
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:40:36 2022 -0300

    Move utils to new file

commit 5818c8a
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:40:25 2022 -0300

    Update POC code with new solution

commit a41ee36
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:39:51 2022 -0300

    Move mockss to new file

commit ac86447
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 17 14:39:40 2022 -0300

    Move constants to new file

commit 25497aa
Merge: 247e73b 0e50c07
Author: Gustavo Antunes <[email protected]>
Date:   Mon Nov 14 18:55:43 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit 247e73b
Merge: bd8cfcb 4cd929b
Author: Gustavo Antunes <[email protected]>
Date:   Mon Nov 14 12:19:09 2022 -0300

    Merge branch 'main' of https://github.com/MetaMask/metamask-mobile into snaps/exec-env

commit bd8cfcb
Author: Gustavo Antunes <[email protected]>
Date:   Thu Nov 10 22:40:28 2022 -0300

    Add some poc code
* inject postMessage into webView

* remove patches

* create object for test urls
* RNTar native module

* test android native module

* lots of try/catch

* use nio
* call removeSnap

* pass in initial state

* stop snap
* wire up settings view

* proper navigation options

* check dev to show install input

* properly type props

* wire up settings for a specific snap

* info container

* snap version

* create components folder

* componentize everything

* add a v before version

* remove section finished

* description section

* description section

* format date

* rename main snaps settings page

* get permission data

* permissions cells

* test snapdetails

* test version badge

* snap decsription test

* test SnapElement

* change folder to not be ignored

* testing snap settins

* fix header

* snap permissions test

* snaps settings list tests

* strings

* snap details strings

* snap permissions strings

* snap settings string

* version strings

* snaps permission titles

* more permissions test

* cleanup

* custom component

* fix tests

* render different permissions for rpc

* render different permissions for different protocols

* fix tests

* derive title from path

* handle invalid paths

* test all the bip32 options

* test invalid bip32 public key

* document functions

* memoize

* SnapPermissions readme

* cleanup

* reset MainNavigator.js

* move SnapsSettingsList into its own folder

* migrate snappermissions to useStyles pattern

* fully migrate to use styles

* disable snap

* SnapVersionTag

* use label

* wrap icon in background

* cleanup
…ssions UI (#6533)

* create custom component for snaps cell

* rendering permissions from permissions controller

* bip32

* testing

* use a switch statement

* dont check for the types

* handler functions

* fix snapsettings test

* cleanup

* function to check the types

* readme update
* new flask target

* all icon sizes

* build.sh flaskBuild

* remove absolute path

* new info.plist for flask

* update info.plist path

* update project
* create android flask assets

* build scripts

* change launcher path

* change display name
* basic pipeline scaffold

* flask release ios

* android release scripts

* check for sentry props on flask build

* bitrise certificate

* debug/release provisioning profiles

* basic build steps

* flask pipelines

* fix yaml

* remap flask variables

* remove pubnub keys

* add deploy pipelines

* fix file paths and undo edits to qa build

* new flask release pipelines

* update set-versions script and try to fix sourcemaps for flask

* try a different sourcemp filepath

* upgrade ruby version

* update signing

* set env to flask

* square icons

* manually remove icon alpha

* add archive path var

* introduce build types in build pipeline

* remove echo

* pass params to derive sentry environment and tests

* new build numbers

* fix: update cookie-tough dependency (#6772)

* move versions into product flavours

* test prod build with flask variables

* cleanup deriveSentryEnvironment function

* cleanup comment

* reset build numbers

* enable deploy to android and pass in env variable

* new syntax

* is expand true

---------
@owencraston owencraston force-pushed the flask branch 2 times, most recently from 5d808d9 to 7ec3cd3 Compare August 18, 2023 22:57
@owencraston
Copy link
Contributor Author

closing in favour of: #7526

@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DO-NOT-MERGE Pull requests that should not be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants