Skip to content

Commit 638710b

Browse files
authored
Merge branch 'main' into update-network-nicknames
2 parents 7b2285e + 9e7baf9 commit 638710b

File tree

10 files changed

+773
-5
lines changed

10 files changed

+773
-5
lines changed

packages/gator-permissions-controller/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add `submitRevocation` action to submit permission revocations through the gator permissions provider snap
13+
- Add `addPendingRevocation` action to queue revocations until transaction confirmation
14+
- Expose list of pending revocations in state
15+
1016
## [0.3.0]
1117

1218
### Changed

packages/gator-permissions-controller/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ gatorPermissionsController.enableGatorPermissions();
2929
### Fetch from Profile Sync
3030

3131
```typescript
32+
// Fetch all permissions
3233
const permissions =
3334
await gatorPermissionsController.fetchAndUpdateGatorPermissions();
35+
36+
// Fetch permissions with optional filter params
37+
const filteredPermissions =
38+
await gatorPermissionsController.fetchAndUpdateGatorPermissions({
39+
origin: 'https://example.com',
40+
chainId: '0x1',
41+
});
3442
```
3543

3644
## Contributing

packages/gator-permissions-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@lavamoat/preinstall-always-fail": "^2.1.0",
6363
"@metamask/auto-changelog": "^3.4.4",
6464
"@metamask/snaps-controllers": "^14.0.1",
65+
"@metamask/transaction-controller": "^61.1.0",
6566
"@ts-bridge/cli": "^0.6.4",
6667
"@types/jest": "^27.4.1",
6768
"deepmerge": "^4.2.2",

0 commit comments

Comments
 (0)