-
Notifications
You must be signed in to change notification settings - Fork 561
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 extend-runtime endowment #1624
base: main
Are you sure you want to change the base?
Conversation
0fa9fad
to
4d4d465
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1624 +/- ##
==========================================
+ Coverage 95.74% 95.80% +0.06%
==========================================
Files 239 241 +2
Lines 5410 5489 +79
Branches 837 853 +16
==========================================
+ Hits 5180 5259 +79
Misses 230 230
☔ View full report in Codecov by Sentry. |
619a337
to
9d3a7e4
Compare
3133d99
to
ee368d0
Compare
d002508
to
ece95a7
Compare
0e79062
to
951d6f1
Compare
Update coverage Add working proof of concept Update coverage and tests Refactor and fix tests Add test to the SnapController.test.ts and refactor Update coverage thresholds Add endowment:extend-runtime specification builder Update shasum of examples Code refactoring and improvements (1) Update coverage thresholds (increase) Rename endowment (longRunningJob => extendRuntime) Refactor the names of the timer events and similar Update examples shasum Minor endowment refactoring Add mechanism for resuming the timer of snaps that does not return in time Fix unit test Add some security mechanisms to prevent multiple calls Small refactoring Update shasums after rebase Update coverage thresholds Add new endowment to hardening tests Add mechanism to prevent endowment to be used multiple times per one request Update coverage thresholds Update after rebase Update tests and logic
27d016b
to
3ec8449
Compare
Fixes: #1604
PR for extension: MetaMask/metamask-extension#20543
This PR will add implementation for a new endowment that will allow snaps to run computation-heavy => time consuming tasks for a longer time.
The approach for dynamic extension of a snap runtime to a certain levels is accomplished by setting up a new way of communication channel through the notification system between Execution Environment and Snap Controller.