@metamask/gator-permissions-snap 0.0.1

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 ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.0.1]
11
+
12
+ ### Changed
13
+
14
+ - Remove unnecessary code within the permission provider and add placeholder confirmation with simple "Confirm" "Reject" options. ([#21](https://github.com/MetaMask/snap-7715-permissions/pull/21))
15
+ - Native token stream permission validator ([#27](https://github.com/MetaMask/snap-7715-permissions/pull/27))
16
+ - Updated 7715 types to match mm proposed types ([#30](https://github.com/MetaMask/snap-7715-permissions/pull/30))
17
+ - Add specific permission orchestrators interface ([#24](https://github.com/MetaMask/snap-7715-permissions/pull/24))
18
+ - Implement native-token-stream orchestrate happy path ([#25](https://github.com/MetaMask/snap-7715-permissions/pull/25))
19
+ - Small refactor to use multiple permission orchestrators ([#31](https://github.com/MetaMask/snap-7715-permissions/pull/31))
20
+ - Add validate logic for native token stream permission data ([#33](https://github.com/MetaMask/snap-7715-permissions/pull/33))
21
+ - Drop mock account controller and mock delegation manager address ([#34](https://github.com/MetaMask/snap-7715-permissions/pull/34))
22
+ - Add PermissionsContextBuilder and build caveats for native token stream ([#35](https://github.com/MetaMask/snap-7715-permissions/pull/35))
23
+ - Update request details to match designs and add svg images ([#38](https://github.com/MetaMask/snap-7715-permissions/pull/38))
24
+ - Add correct header text for native token stream ([#40](https://github.com/MetaMask/snap-7715-permissions/pull/40))
25
+ - Update `AccountDetails` component to match designs, use `price api` for spot price and fetch user locale preferences ([#41](https://github.com/MetaMask/snap-7715-permissions/pull/41))
26
+ - Add stream amount component ([#43](https://github.com/MetaMask/snap-7715-permissions/pull/43))
27
+ - Render permission specific rules ([#45](https://github.com/MetaMask/snap-7715-permissions/pull/45))
28
+ - Register event handlers to handle permission confirmation dialog events ([#48](https://github.com/MetaMask/snap-7715-permissions/pull/48))
29
+ - Add release gh actions ([#51](https://github.com/MetaMask/snap-7715-permissions/pull/51))
30
+ - Ensure create-release-branch cli tool passes ([#54](https://github.com/MetaMask/snap-7715-permissions/pull/54))
31
+ - Add changelog scripts ([#55](https://github.com/MetaMask/snap-7715-permissions/pull/55))
32
+
33
+ [Unreleased]: https://github.com/MetaMask/snap-7715-permissions/compare/@metamask/gator-permissions-snap@0.0.1...HEAD
34
+ [0.0.1]: https://github.com/MetaMask/snap-7715-permissions/releases/tag/@metamask/gator-permissions-snap@0.0.1
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @metamask/gator-permissions-snap
2
+
3
+ This snap creates a Hybrid DeleGator account and allows the site to request 7715 permissions from those accounts. Users can grant permissions from a custom interactive confirmation dialog rendered by the snap(i.e., permissions picker).
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`