@metamask/solana-wallet-snap 1.0.0 → 1.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 CHANGED
@@ -7,165 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.1]
11
+
12
+ ### Added
13
+
14
+ - docs: document the .env ([#87](https://github.com/MetaMask/snap-solana-wallet/pull/87))
15
+ - [SOL-58] snap mock rpc calls for unit tests ([#85](https://github.com/MetaMask/snap-solana-wallet/pull/85))
16
+ - feat: amount input ([#78](https://github.com/MetaMask/snap-solana-wallet/pull/78))
17
+ - feat: implement TransactionConfirmation dialog ([#80](https://github.com/MetaMask/snap-solana-wallet/pull/80))
18
+ - [SOL-43] adds the To input field ([#76](https://github.com/MetaMask/snap-solana-wallet/pull/76))
19
+ - [SOL-45] feat: implement Solana transactions ([#70](https://github.com/MetaMask/snap-solana-wallet/pull/70))
20
+ - feat: account selector ([#73](https://github.com/MetaMask/snap-solana-wallet/pull/73))
21
+ - feat: handle send action ([#72](https://github.com/MetaMask/snap-solana-wallet/pull/72))
22
+
23
+ ### Fixed
24
+
25
+ - fix: sonar on main ([#82](https://github.com/MetaMask/snap-solana-wallet/pull/82))
26
+ - fix: add tests for all utils that didn't have them ([#83](https://github.com/MetaMask/snap-solana-wallet/pull/83))
27
+ - fix: cors erros using Grove for mainnet rpc provider ([#77](https://github.com/MetaMask/snap-solana-wallet/pull/77))
28
+ - fix: support get account balances on different chains ([#71](https://github.com/MetaMask/snap-solana-wallet/pull/71))
29
+
10
30
  ## [1.0.0]
11
31
 
12
- ### Uncategorized
32
+ ### Added
13
33
 
14
- - feat: get account balances ([#67](https://github.com/MetaMask/snap-solana-wallet/pull/67))
15
- - Create and remove index mismatch ([#66](https://github.com/MetaMask/snap-solana-wallet/pull/66))
16
- - feat: implement delete account keyring method ([#64](https://github.com/MetaMask/snap-solana-wallet/pull/64))
34
+ - Get account balances ([#67](https://github.com/MetaMask/snap-solana-wallet/pull/67))
35
+ - Delete account keyring method ([#64](https://github.com/MetaMask/snap-solana-wallet/pull/64))
17
36
  - Create + List Solana accounts ([#54](https://github.com/MetaMask/snap-solana-wallet/pull/54))
18
- - feat: adds the keyring-api package with solana support ([#63](https://github.com/MetaMask/snap-solana-wallet/pull/63))
19
-
20
- ## [0.1.9]
21
-
22
- ## [0.1.8]
23
-
24
- ## [0.1.7]
25
-
26
- ### Uncategorized
27
-
28
- - fix: repo url ([#56](https://github.com/MetaMask/snap-solana-wallet/pull/56))
29
- - 0.1.6 ([#55](https://github.com/MetaMask/snap-solana-wallet/pull/55))
30
- - chore: review fixes
31
- - feat: add keyring and rpc listeners
32
- - chore: update snap build
33
- - 0.1.1
34
- - docs: add developer docs
35
- - ci: configs
36
- - fix: husky + jest/types
37
- - chore: upgrade versions
38
- - chore: update both README
39
- - chore: edit lint scripts for both site and snap
40
- - chore: adds CHANGELOG files
41
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
42
- - Initial commit
43
-
44
- ## [0.1.6]
45
-
46
- ### Uncategorized
47
-
48
- - feat: added sonarcloud to github workflow ([#25](https://github.com/MetaMask/snap-solana-wallet/pull/25))
49
- - 0.1.5 ([#47](https://github.com/MetaMask/snap-solana-wallet/pull/47))
50
- - chore: review fixes
51
- - feat: add keyring and rpc listeners
52
- - chore: update snap build
53
- - 0.1.1
54
- - docs: add developer docs
55
- - ci: configs
56
- - fix: husky + jest/types
57
- - chore: upgrade versions
58
- - chore: update both README
59
- - chore: edit lint scripts for both site and snap
60
- - chore: adds CHANGELOG files
61
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
62
- - Initial commit
63
-
64
- ## [0.1.5]
65
-
66
- ### Uncategorized
67
-
68
- - Ci/upload release script 5 ([#46](https://github.com/MetaMask/snap-solana-wallet/pull/46))
69
- - 0.1.4 ([#45](https://github.com/MetaMask/snap-solana-wallet/pull/45))
70
- - chore: review fixes
71
- - feat: add keyring and rpc listeners
72
- - chore: update snap build
73
- - 0.1.1
74
- - docs: add developer docs
75
- - ci: configs
76
- - fix: husky + jest/types
77
- - chore: upgrade versions
78
- - chore: update both README
79
- - chore: edit lint scripts for both site and snap
80
- - chore: adds CHANGELOG files
81
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
82
- - Initial commit
83
-
84
- ## [0.1.4]
85
-
86
- ### Uncategorized
87
-
88
- - 0.1.3 ([#43](https://github.com/MetaMask/snap-solana-wallet/pull/43))
89
- - chore: review fixes
90
- - feat: add keyring and rpc listeners
91
- - chore: update snap build
92
- - 0.1.1
93
- - docs: add developer docs
94
- - ci: configs
95
- - fix: husky + jest/types
96
- - chore: upgrade versions
97
- - chore: update both README
98
- - chore: edit lint scripts for both site and snap
99
- - chore: adds CHANGELOG files
100
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
101
- - Initial commit
102
-
103
- ## [0.1.3]
104
-
105
- ### Uncategorized
106
-
107
- - Ci/missing config ([#29](https://github.com/MetaMask/snap-solana-wallet/pull/29))
108
- - Ci/missing config ([#28](https://github.com/MetaMask/snap-solana-wallet/pull/28))
109
- - 0.1.2 ([#26](https://github.com/MetaMask/snap-solana-wallet/pull/26))
110
- - chore: review fixes
111
- - feat: add keyring and rpc listeners
112
- - chore: update snap build
113
- - 0.1.1
114
- - docs: add developer docs
115
- - ci: configs
116
- - fix: husky + jest/types
117
- - chore: upgrade versions
118
- - chore: update both README
119
- - chore: edit lint scripts for both site and snap
120
- - chore: adds CHANGELOG files
121
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
122
- - Initial commit
123
-
124
- ## [0.1.2]
125
-
126
- ### Uncategorized
127
-
128
- - chore: review fixes
129
- - feat: add keyring and rpc listeners
130
- - chore: update snap build
131
- - 0.1.1
132
- - docs: add developer docs
133
- - ci: configs
134
- - fix: husky + jest/types
135
- - chore: upgrade versions
136
- - chore: update both README
137
- - chore: edit lint scripts for both site and snap
138
- - chore: adds CHANGELOG files
139
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
140
- - Initial commit
141
37
 
142
- ## [0.1.1]
38
+ ### Changed
143
39
 
144
- ### Uncategorized
40
+ - Create and remove index mismatch ([#66](https://github.com/MetaMask/snap-solana-wallet/pull/66))
41
+ - Adds the keyring-api package with solana support ([#63](https://github.com/MetaMask/snap-solana-wallet/pull/63))
145
42
 
146
- - docs: add developer docs
147
- - ci: configs
148
- - fix: husky + jest/types
149
- - chore: upgrade versions
150
- - chore: update both README
151
- - chore: edit lint scripts for both site and snap
152
- - chore: adds CHANGELOG files
153
- - chore: adds correct info to packages json, snap manifest, adds sol logo, preinstall script, updates packages and adds utils package
154
- - Initial commit
43
+ ## [0.1.1]
155
44
 
156
45
  ### Added
157
46
 
158
- - feat: TBA
159
- - feat: init commit
160
-
161
- [Unreleased]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.0...HEAD
162
- [1.0.0]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.9...v1.0.0
163
- [0.1.9]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.8...v0.1.9
164
- [0.1.8]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.7...v0.1.8
165
- [0.1.7]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.6...v0.1.7
166
- [0.1.6]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.5...v0.1.6
167
- [0.1.5]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.4...v0.1.5
168
- [0.1.4]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.3...v0.1.4
169
- [0.1.3]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.2...v0.1.3
170
- [0.1.2]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.1...v0.1.2
47
+ - Keyring and rpc listeners
48
+ - CI configs
49
+ - Build config
50
+ - Sonarcloud to github workflow ([#25](https://github.com/MetaMask/snap-solana-wallet/pull/25))
51
+ - Snap setup
52
+
53
+ [Unreleased]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.1...HEAD
54
+ [1.0.1]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.0...v1.0.1
55
+ [1.0.0]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.1...v1.0.0
171
56
  [0.1.1]: https://github.com/MetaMask/snap-solana-wallet/releases/tag/v0.1.1
package/README.md CHANGED
@@ -5,6 +5,9 @@ This snap represents the Solana wallet for MetaMask.
5
5
  ## Running the snap locally
6
6
 
7
7
  ```bash
8
+ cp src/packages/snap/.env.example src/packages/snap/.env
9
+ # Set content from https://my.1password.com/app#/gebbq4jvzj7iexnbirelfitv2y/AllItems/gebbq4jvzj7iexnbirelfitv2yvis64f7yhxuoi277r3hagj7ndi
10
+
8
11
  yarn workspace @metamask/solana-wallet-snap start
9
12
  ```
10
13
 
@@ -14,6 +17,19 @@ yarn workspace @metamask/solana-wallet-snap start
14
17
  > [!TIP]
15
18
  > Alternatively you can build and serve the snap manually. This can sometimes be more stable than watch mode but requires a manual rebuild and serve anytime there is a change on the snap.
16
19
 
20
+ ## Changing env vars
21
+
22
+ > [!WARNING]
23
+ > The `.env` values are bundled into the built snap and affect its [shasum](./snap.manifest.json#L10). To avoid build failures in CI, make sure your local `.env` file matches exactly with the CI repository secrets. Any mismatch will cause the CI to reject the build due to different checksums.
24
+
25
+ If you need to change the environment variables, follow this checklist:
26
+
27
+ 1. Update the `src/packages/snap/.env` file with the new keys and/or values
28
+ 2. Update the `src/packages/snap/.env.example` file with the new keys
29
+ 3. Update the [1Password](https://my.1password.com/app#/gebbq4jvzj7iexnbirelfitv2y/AllItems/gebbq4jvzj7iexnbirelfitv2yvis64f7yhxuoi277r3hagj7ndi) entry with the new values
30
+ 4. Update the [GitHub repository secrets](https://github.com/MetaMask/solana-wallet-snap/settings/secrets) with the new values
31
+ 5. Run `yarn start` to regenerate the build and its shasum
32
+
17
33
  ## Building and serving snap manually
18
34
 
19
35
  ```bash