@metamask/solana-wallet-snap 1.0.0 → 1.0.2
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 +44 -151
- package/README.md +16 -0
- package/dist/bundle.js +1 -1
- package/dist/preinstalled-snap.json +1 -1
- package/package.json +25 -13
- package/snap.manifest.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,165 +7,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.2]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- feat: connect 'Initiate Transfer' and 'Confirmation' dialogs together ([#84](https://github.com/MetaMask/snap-solana-wallet/pull/84))
|
|
15
|
+
- feat: setup translations ([#86](https://github.com/MetaMask/snap-solana-wallet/pull/86))
|
|
16
|
+
|
|
17
|
+
## [1.0.1]
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- docs: document the .env ([#87](https://github.com/MetaMask/snap-solana-wallet/pull/87))
|
|
22
|
+
- [SOL-58] snap mock rpc calls for unit tests ([#85](https://github.com/MetaMask/snap-solana-wallet/pull/85))
|
|
23
|
+
- feat: amount input ([#78](https://github.com/MetaMask/snap-solana-wallet/pull/78))
|
|
24
|
+
- feat: implement TransactionConfirmation dialog ([#80](https://github.com/MetaMask/snap-solana-wallet/pull/80))
|
|
25
|
+
- [SOL-43] adds the To input field ([#76](https://github.com/MetaMask/snap-solana-wallet/pull/76))
|
|
26
|
+
- [SOL-45] feat: implement Solana transactions ([#70](https://github.com/MetaMask/snap-solana-wallet/pull/70))
|
|
27
|
+
- feat: account selector ([#73](https://github.com/MetaMask/snap-solana-wallet/pull/73))
|
|
28
|
+
- feat: handle send action ([#72](https://github.com/MetaMask/snap-solana-wallet/pull/72))
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- fix: sonar on main ([#82](https://github.com/MetaMask/snap-solana-wallet/pull/82))
|
|
33
|
+
- fix: add tests for all utils that didn't have them ([#83](https://github.com/MetaMask/snap-solana-wallet/pull/83))
|
|
34
|
+
- fix: cors erros using Grove for mainnet rpc provider ([#77](https://github.com/MetaMask/snap-solana-wallet/pull/77))
|
|
35
|
+
- fix: support get account balances on different chains ([#71](https://github.com/MetaMask/snap-solana-wallet/pull/71))
|
|
36
|
+
|
|
10
37
|
## [1.0.0]
|
|
11
38
|
|
|
12
|
-
###
|
|
39
|
+
### Added
|
|
13
40
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- feat: implement delete account keyring method ([#64](https://github.com/MetaMask/snap-solana-wallet/pull/64))
|
|
41
|
+
- Get account balances ([#67](https://github.com/MetaMask/snap-solana-wallet/pull/67))
|
|
42
|
+
- Delete account keyring method ([#64](https://github.com/MetaMask/snap-solana-wallet/pull/64))
|
|
17
43
|
- 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
44
|
|
|
142
|
-
|
|
45
|
+
### Changed
|
|
143
46
|
|
|
144
|
-
|
|
47
|
+
- Create and remove index mismatch ([#66](https://github.com/MetaMask/snap-solana-wallet/pull/66))
|
|
48
|
+
- Adds the keyring-api package with solana support ([#63](https://github.com/MetaMask/snap-solana-wallet/pull/63))
|
|
145
49
|
|
|
146
|
-
|
|
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
|
|
50
|
+
## [0.1.1]
|
|
155
51
|
|
|
156
52
|
### Added
|
|
157
53
|
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
|
|
161
|
-
[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
[
|
|
165
|
-
[0.
|
|
166
|
-
[0.1
|
|
167
|
-
[0.
|
|
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
|
|
54
|
+
- Keyring and rpc listeners
|
|
55
|
+
- CI configs
|
|
56
|
+
- Build config
|
|
57
|
+
- Sonarcloud to github workflow ([#25](https://github.com/MetaMask/snap-solana-wallet/pull/25))
|
|
58
|
+
- Snap setup
|
|
59
|
+
|
|
60
|
+
[Unreleased]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.2...HEAD
|
|
61
|
+
[1.0.2]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.1...v1.0.2
|
|
62
|
+
[1.0.1]: https://github.com/MetaMask/snap-solana-wallet/compare/v1.0.0...v1.0.1
|
|
63
|
+
[1.0.0]: https://github.com/MetaMask/snap-solana-wallet/compare/v0.1.1...v1.0.0
|
|
171
64
|
[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
|