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

Feat: Add background events #2941

Merged
merged 44 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e3f6fb9
add background event method files
hmalik88 Dec 3, 2024
c7f173d
Merge branch 'main' into hm/background-events
hmalik88 Dec 3, 2024
7442725
add background events feature
hmalik88 Dec 10, 2024
151d171
Merge branch 'main' into hm/background-events
hmalik88 Dec 10, 2024
d52a56c
update coverage and rebuild
hmalik88 Dec 10, 2024
0fe6ee9
fix type
hmalik88 Dec 10, 2024
deea633
fix spacing
hmalik88 Dec 10, 2024
4e41234
fix jsdoc
hmalik88 Dec 10, 2024
621d9f9
remove uuid in favor of nanoid
hmalik88 Dec 11, 2024
bceaa05
fix jsdocs
hmalik88 Dec 11, 2024
c22ce07
address PR comments
hmalik88 Dec 11, 2024
f4efd98
update example snap
hmalik88 Dec 11, 2024
48a543d
fix type and coverage
hmalik88 Dec 11, 2024
409b4aa
rebuild snap
hmalik88 Dec 11, 2024
663f4fb
update test-snaps
hmalik88 Dec 11, 2024
655d7b5
address PR comments
hmalik88 Dec 12, 2024
b1f07cd
Merge branch 'main' into hm/background-events
hmalik88 Dec 12, 2024
52cb0cf
rebuild
hmalik88 Dec 12, 2024
f49240a
update coverage
hmalik88 Dec 12, 2024
598eff6
update coverage again
hmalik88 Dec 12, 2024
e6cb6aa
update snaps controllers coverage
hmalik88 Dec 12, 2024
0e85a3d
fix logic
hmalik88 Dec 13, 2024
d9f44ce
fix test
hmalik88 Dec 13, 2024
c21e216
fix tests
hmalik88 Dec 13, 2024
757b5a2
remove unncecessary option
hmalik88 Dec 13, 2024
528d3f0
address PR comments
hmalik88 Dec 13, 2024
bfbaeb7
fix type
hmalik88 Dec 13, 2024
8bccf3a
update snap controllers coverage
hmalik88 Dec 13, 2024
7a54460
address PR comments
hmalik88 Dec 16, 2024
35cf3b5
fix tests, rebuild and update coverage
hmalik88 Dec 16, 2024
4702f8d
update validation logic
hmalik88 Dec 16, 2024
600902e
rebuild and update coverage
hmalik88 Dec 16, 2024
d33eca2
increase coverage
hmalik88 Dec 16, 2024
feb12e9
address PR comments
hmalik88 Dec 17, 2024
f248a01
Merge branch 'main' into hm/background-events
hmalik88 Dec 17, 2024
63c24e9
fix type issue, rebuild
hmalik88 Dec 17, 2024
68214c6
update snap controllers coverage
hmalik88 Dec 17, 2024
e68ce95
update allowed actions in controller-utils and document example snap …
hmalik88 Dec 17, 2024
385668c
add assert and remove cast
hmalik88 Dec 17, 2024
1554287
address nits
hmalik88 Dec 19, 2024
b92eb30
Merge branch 'main' into hm/background-events
hmalik88 Dec 19, 2024
c35611c
increase coverage
hmalik88 Dec 19, 2024
8543576
add assert
hmalik88 Dec 19, 2024
036e154
rebuild
hmalik88 Dec 19, 2024
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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"@ts-bridge/cli": "^0.6.1",
"@types/jest": "^27.5.1",
"@types/lodash": "^4",
"@types/luxon": "^3",
"@types/node": "18.14.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^6.21.0",
Expand All @@ -105,6 +106,7 @@
"jest-silent-reporter": "^0.6.0",
"lint-staged": "^12.4.1",
"lodash": "^4.17.21",
"luxon": "^3.5.0",
hmalik88 marked this conversation as resolved.
Show resolved Hide resolved
"minimatch": "^7.4.1",
"prettier": "^2.8.8",
"prettier-plugin-packagejson": "^2.5.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "SquG9JvLanG/gJwBw5H1AZBlsthmv21Ci4Vn+sMemjM=",
"shasum": "XMEM/j4XBZLY1nz8Ow7kFic+ReGDTkBwZrGmAnj5YJk=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/browserify/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "pCp96i558WHqHIUZyZGUFcxAfOQ0afBHJ59nJB5ma78=",
"shasum": "4Ld6BCuGlD4EQddRn2VHfW+NaDKU4SR54G5IW5bN3D8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/snaps-controllers/coverage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"branches": 92.89,
"functions": 96.71,
"lines": 98,
"statements": 97.71
"branches": 92.8,
"functions": 95.25,
"lines": 97.76,
"statements": 97.43
}
Loading
Loading