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

Add support for preinstalled snaps #2008

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Dec 4, 2023

Adds the notion of preinstalled snaps, these are snaps that will be automatically inserted into the SnapController state on boot and made available for execution. This proves useful for platforms where installing arbitrary snaps is not supported or for shipping MetaMask-built functionality as snaps.

Closes https://github.com/MetaMask/MetaMask-planning/issues/1742

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (552c161) 96.32% compared to head (c61303f) 96.32%.

Files Patch % Lines
...ages/snaps-controllers/src/snaps/SnapController.ts 98.07% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2008   +/-   ##
=======================================
  Coverage   96.32%   96.32%           
=======================================
  Files         271      271           
  Lines        6361     6399   +38     
  Branches     1034     1043    +9     
=======================================
+ Hits         6127     6164   +37     
- Misses        234      235    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

packages/snaps-controllers/src/snaps/SnapController.ts Outdated Show resolved Hide resolved
packages/snaps-controllers/src/snaps/SnapController.ts Outdated Show resolved Hide resolved
packages/snaps-utils/src/snaps.ts Show resolved Hide resolved
packages/snaps-utils/src/snaps.ts Show resolved Hide resolved
packages/snaps-controllers/src/snaps/SnapController.ts Outdated Show resolved Hide resolved
@FrederikBolding FrederikBolding marked this pull request as ready for review January 10, 2024 13:48
@FrederikBolding FrederikBolding requested a review from a team as a code owner January 10, 2024 13:48
@tilemanrenovations

This comment was marked as spam.

@FrederikBolding FrederikBolding merged commit 4de5137 into main Jan 10, 2024
141 checks passed
@FrederikBolding FrederikBolding deleted the fb/preinstalled-snaps branch January 10, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants