@metamask/gator-permissions-snap 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -1
- package/README.md +1 -36
- package/dist/bundle.js +1 -1
- package/dist/preinstalled-snap.json +1 -1
- package/package.json +2 -2
- package/snap.manifest.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.0]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix number formatting for rules to not truncate decimal places ([#74](https://github.com/MetaMask/snap-7715-permissions/pull/74))
|
|
15
|
+
- Allow initialAmount and maxAllowance to be unspecified ([#75](https://github.com/MetaMask/snap-7715-permissions/pull/75))
|
|
16
|
+
|
|
17
|
+
## [0.1.0]
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Support the option for the user to adjust permissions requested by the DApp ([#52](https://github.com/MetaMask/snap-7715-permissions/pull/52))
|
|
22
|
+
- Build `@metamask/gator-permissions-snap` with the appropriate `PRICE_API_BASE_URL` environment variable configured.
|
|
23
|
+
- Add Snap homepage context. This will show in a dialog when first installing the snap and in the snap homepage ([#63](https://github.com/MetaMask/snap-7715-permissions/pull/63))
|
|
24
|
+
- Add Snaps `endowment:page-home` permission to enable a Snaps home page for `@metamask/gator-permissions-snap` ([#72](https://github.com/MetaMask/snap-7715-permissions/pull/72))
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Update bugs url in package.json files to point to correct repository ([#70](https://github.com/MetaMask/snap-7715-permissions/pull/70))
|
|
29
|
+
- Fixed various issues with permission data binding and resolving user input data ([#71](https://github.com/MetaMask/snap-7715-permissions/pull/71))
|
|
30
|
+
|
|
10
31
|
## [0.0.1]
|
|
11
32
|
|
|
12
33
|
### Changed
|
|
@@ -30,5 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
30
51
|
- Ensure create-release-branch cli tool passes ([#54](https://github.com/MetaMask/snap-7715-permissions/pull/54))
|
|
31
52
|
- Add changelog scripts ([#55](https://github.com/MetaMask/snap-7715-permissions/pull/55))
|
|
32
53
|
|
|
33
|
-
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.0
|
|
54
|
+
[Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.2.0...HEAD
|
|
55
|
+
[0.2.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.1.0...@metamask/gator-permissions-snap@0.2.0
|
|
56
|
+
[0.1.0]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.0.1...@metamask/gator-permissions-snap@0.1.0
|
|
34
57
|
[0.0.1]: https://github.com/MetaMask/snap-7715-permissions/releases/tag/@metamask/gator-permissions-snap@0.0.1
|
package/README.md
CHANGED
|
@@ -1,38 +1,3 @@
|
|
|
1
1
|
# @metamask/gator-permissions-snap
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
## Development
|
|
6
|
-
|
|
7
|
-
1. install dependencies
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
yarn
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
2. start the dev server
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
yarn start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Build
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
yarn build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Test
|
|
26
|
-
|
|
27
|
-
> **Note**: `@metamask/snaps-jest` assumes that the snap is built in the
|
|
28
|
-
> directory you're running Jest from. If you're using a different directory,
|
|
29
|
-
> you can specify the path to the snap using the [`root`](#options) option, or
|
|
30
|
-
> by running your own HTTP server.
|
|
31
|
-
>
|
|
32
|
-
> Right now it's not possible to use `@metamask/snaps-jest` with a snap that
|
|
33
|
-
> isn't built.
|
|
34
|
-
|
|
35
|
-
1. `cd packages/permissions-provider-snap`
|
|
36
|
-
2. `SNAP_ENV=local` in `packages/permissions-provider-snap/.env`
|
|
37
|
-
3. `yarn build`
|
|
38
|
-
4. `yarn test`
|
|
3
|
+
This Snap creates a [DeleGator account](https://github.com/MetaMask/delegation-framework) and enables the site to request [ERC-7715](https://eip.tools/eip/7715) permissions from that account. Users can review and adjust the granted permissions through a custom interactive confirmation dialog rendered by the Snap.
|