@ledgerhq/hw-app-celo 6.32.1-nightly.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.
@@ -0,0 +1,4 @@
1
+
2
+ > @ledgerhq/hw-app-celo@6.32.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/hw-app-celo
3
+ > tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
4
+
@@ -0,0 +1,22 @@
1
+ {
2
+ "entry": [
3
+ "src/Polkadot.ts"
4
+ ],
5
+ "ignoreUnresolved": [],
6
+ "ignoreUnused": [
7
+ "@celo/connect",
8
+ "@celo/contractkit",
9
+ "@celo/utils",
10
+ "@celo/wallet-base",
11
+ "@celo/wallet-ledger",
12
+ "@ledgerhq/errors",
13
+ "@ledgerhq/hw-app-eth",
14
+ "@ledgerhq/hw-transport",
15
+ "bip32-path",
16
+ "rlp",
17
+ "semver"
18
+ ],
19
+ "ignoreUnimported": [
20
+ "src/Celo.ts"
21
+ ]
22
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,572 @@
1
+ # @ledgerhq/hw-app-polkadot
2
+
3
+ ## 6.32.1-nightly.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9652](https://github.com/LedgerHQ/ledger-live/pull/9652) [`becd128`](https://github.com/LedgerHQ/ledger-live/commit/becd128bc5b58813ecf3937c8a82b95ed9a347b1) Thanks [@Antoine-bls83](https://github.com/Antoine-bls83)! - Feat: celo coin modularization
8
+
9
+ - Updated dependencies []:
10
+ - @ledgerhq/hw-app-eth@6.45.1-nightly.0
11
+
12
+ ## 6.32.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#7812](https://github.com/LedgerHQ/ledger-live/pull/7812) [`307f467`](https://github.com/LedgerHQ/ledger-live/commit/307f4672ef4bf2020dff9d29e7f7227f2fb53901) Thanks [@hzheng-ledger](https://github.com/hzheng-ledger)! - polkadot code cleanup
17
+
18
+ ## 6.32.0-next.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#7812](https://github.com/LedgerHQ/ledger-live/pull/7812) [`307f467`](https://github.com/LedgerHQ/ledger-live/commit/307f4672ef4bf2020dff9d29e7f7227f2fb53901) Thanks [@hzheng-ledger](https://github.com/hzheng-ledger)! - polkadot code cleanup
23
+
24
+ ## 6.31.4
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [[`0a71c43`](https://github.com/LedgerHQ/ledger-live/commit/0a71c4344b7bb2c6640f3e5dda152ae815573330)]:
29
+ - @ledgerhq/errors@6.19.1
30
+ - @ledgerhq/hw-transport@6.31.4
31
+
32
+ ## 6.31.4-next.0
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [[`0a71c43`](https://github.com/LedgerHQ/ledger-live/commit/0a71c4344b7bb2c6640f3e5dda152ae815573330)]:
37
+ - @ledgerhq/errors@6.19.1-next.0
38
+ - @ledgerhq/hw-transport@6.31.4-next.0
39
+
40
+ ## 6.31.3
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [[`5c738cb`](https://github.com/LedgerHQ/ledger-live/commit/5c738cbd35ce5d0ca39ad3b86a61cc6234d1bdf7), [`fb9466a`](https://github.com/LedgerHQ/ledger-live/commit/fb9466a4d7827fd4759c726ad3ae0b43dddcacd3), [`a3fd728`](https://github.com/LedgerHQ/ledger-live/commit/a3fd72861f2a7df676bd793062b3816fdb9d1f57)]:
45
+ - @ledgerhq/errors@6.19.0
46
+ - @ledgerhq/hw-transport@6.31.3
47
+
48
+ ## 6.31.3-next.0
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [[`5c738cb`](https://github.com/LedgerHQ/ledger-live/commit/5c738cbd35ce5d0ca39ad3b86a61cc6234d1bdf7), [`fb9466a`](https://github.com/LedgerHQ/ledger-live/commit/fb9466a4d7827fd4759c726ad3ae0b43dddcacd3), [`a3fd728`](https://github.com/LedgerHQ/ledger-live/commit/a3fd72861f2a7df676bd793062b3816fdb9d1f57)]:
53
+ - @ledgerhq/errors@6.19.0-next.0
54
+ - @ledgerhq/hw-transport@6.31.3-next.0
55
+
56
+ ## 6.31.2
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies []:
61
+ - @ledgerhq/hw-transport@6.31.2
62
+
63
+ ## 6.31.2-hotfix.0
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @ledgerhq/hw-transport@6.31.2-hotfix.0
69
+
70
+ ## 6.31.1
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`e78f3b7`](https://github.com/LedgerHQ/ledger-live/commit/e78f3b75296c7a063f6cddbeae44c36d236055f3), [`f979216`](https://github.com/LedgerHQ/ledger-live/commit/f9792160293fc8215c6d099f02e1b136c6655f9b), [`c1d2bb0`](https://github.com/LedgerHQ/ledger-live/commit/c1d2bb0866723c10d6e2899d40ddd9b9801189f4)]:
75
+ - @ledgerhq/errors@6.18.0
76
+ - @ledgerhq/hw-transport@6.31.1
77
+
78
+ ## 6.31.1-next.0
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [[`e78f3b7`](https://github.com/LedgerHQ/ledger-live/commit/e78f3b75296c7a063f6cddbeae44c36d236055f3), [`f979216`](https://github.com/LedgerHQ/ledger-live/commit/f9792160293fc8215c6d099f02e1b136c6655f9b), [`c1d2bb0`](https://github.com/LedgerHQ/ledger-live/commit/c1d2bb0866723c10d6e2899d40ddd9b9801189f4)]:
83
+ - @ledgerhq/errors@6.18.0-next.0
84
+ - @ledgerhq/hw-transport@6.31.1-next.0
85
+
86
+ ## 6.31.0
87
+
88
+ ### Minor Changes
89
+
90
+ - [#6326](https://github.com/LedgerHQ/ledger-live/pull/6326) [`4b7f19c`](https://github.com/LedgerHQ/ledger-live/commit/4b7f19c96d95d86d5b6fbb480032d77532bf755e) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - polkadot generic nano app support
91
+
92
+ ### Patch Changes
93
+
94
+ - [#7206](https://github.com/LedgerHQ/ledger-live/pull/7206) [`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78) Thanks [@kallen-ledger](https://github.com/kallen-ledger)! - chore: resolve merge conflicts
95
+
96
+ ## 6.31.0-next.1
97
+
98
+ ### Patch Changes
99
+
100
+ - [#7206](https://github.com/LedgerHQ/ledger-live/pull/7206) [`81e5b8b`](https://github.com/LedgerHQ/ledger-live/commit/81e5b8bf4830dcb9d666436f2cc4367d92e93e78) Thanks [@kallen-ledger](https://github.com/kallen-ledger)! - chore: resolve merge conflicts
101
+
102
+ ## 6.31.0-next.0
103
+
104
+ ### Minor Changes
105
+
106
+ - [#6326](https://github.com/LedgerHQ/ledger-live/pull/6326) [`4b7f19c`](https://github.com/LedgerHQ/ledger-live/commit/4b7f19c96d95d86d5b6fbb480032d77532bf755e) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - polkadot generic nano app support
107
+
108
+ ## 6.30.1
109
+
110
+ ### Patch Changes
111
+
112
+ - [#7245](https://github.com/LedgerHQ/ledger-live/pull/7245) [`2dafbf7`](https://github.com/LedgerHQ/ledger-live/commit/2dafbf7a2ee0cefd00e19b203b97f5918c2607ff) Thanks [@hzheng-ledger](https://github.com/hzheng-ledger)! - fix: polkadot send tx in LLM
113
+
114
+ ## 6.30.1-hotfix.0
115
+
116
+ ### Patch Changes
117
+
118
+ - [#7245](https://github.com/LedgerHQ/ledger-live/pull/7245) [`2dafbf7`](https://github.com/LedgerHQ/ledger-live/commit/2dafbf7a2ee0cefd00e19b203b97f5918c2607ff) Thanks [@hzheng-ledger](https://github.com/hzheng-ledger)! - fix: polkadot send tx in LLM
119
+
120
+ ## 6.30.0
121
+
122
+ ### Minor Changes
123
+
124
+ - [#7153](https://github.com/LedgerHQ/ledger-live/pull/7153) [`b0c7b8d`](https://github.com/LedgerHQ/ledger-live/commit/b0c7b8dcc7088853ad73518cb470e8b5b05be4de) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - polkadot generic nano app support
125
+
126
+ ## 6.30.0-hotfix.0
127
+
128
+ ### Minor Changes
129
+
130
+ - [#7153](https://github.com/LedgerHQ/ledger-live/pull/7153) [`b0c7b8d`](https://github.com/LedgerHQ/ledger-live/commit/b0c7b8dcc7088853ad73518cb470e8b5b05be4de) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - polkadot generic nano app support
131
+
132
+ ## 6.29.0
133
+
134
+ ### Minor Changes
135
+
136
+ - [#6596](https://github.com/LedgerHQ/ledger-live/pull/6596) [`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11) Thanks [@KVNLS](https://github.com/KVNLS)! - Upgrade React Native to version 0.73.6
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [[`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11), [`815ae3d`](https://github.com/LedgerHQ/ledger-live/commit/815ae3dae8027823854ada837df3dc983d09b10f), [`cec1599`](https://github.com/LedgerHQ/ledger-live/commit/cec1599a41aa1a18a249e34312164bc93b63972f)]:
141
+ - @ledgerhq/hw-transport@6.31.0
142
+ - @ledgerhq/errors@6.17.0
143
+
144
+ ## 6.29.0-next.0
145
+
146
+ ### Minor Changes
147
+
148
+ - [#6596](https://github.com/LedgerHQ/ledger-live/pull/6596) [`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11) Thanks [@KVNLS](https://github.com/KVNLS)! - Upgrade React Native to version 0.73.6
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [[`77fa530`](https://github.com/LedgerHQ/ledger-live/commit/77fa530c8626df94fa7f9c0a8b3a99f2efa7cb11), [`815ae3d`](https://github.com/LedgerHQ/ledger-live/commit/815ae3dae8027823854ada837df3dc983d09b10f), [`cec1599`](https://github.com/LedgerHQ/ledger-live/commit/cec1599a41aa1a18a249e34312164bc93b63972f)]:
153
+ - @ledgerhq/hw-transport@6.31.0-next.0
154
+ - @ledgerhq/errors@6.17.0-next.0
155
+
156
+ ## 6.28.6
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [[`fc4f83e`](https://github.com/LedgerHQ/ledger-live/commit/fc4f83e26d9f00b7c518f28157e8d9da55ce3685), [`dd1d17f`](https://github.com/LedgerHQ/ledger-live/commit/dd1d17fd3ce7ed42558204b2f93707fb9b1599de), [`26b3a5d`](https://github.com/LedgerHQ/ledger-live/commit/26b3a5d7d6e11efc226403707d683f3d0098a1c1)]:
161
+ - @ledgerhq/errors@6.16.4
162
+ - @ledgerhq/hw-transport@6.30.6
163
+
164
+ ## 6.28.6-next.0
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [[`fc4f83e`](https://github.com/LedgerHQ/ledger-live/commit/fc4f83e26d9f00b7c518f28157e8d9da55ce3685), [`dd1d17f`](https://github.com/LedgerHQ/ledger-live/commit/dd1d17fd3ce7ed42558204b2f93707fb9b1599de), [`26b3a5d`](https://github.com/LedgerHQ/ledger-live/commit/26b3a5d7d6e11efc226403707d683f3d0098a1c1)]:
169
+ - @ledgerhq/errors@6.16.4-next.0
170
+ - @ledgerhq/hw-transport@6.30.6-next.0
171
+
172
+ ## 6.28.5
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [[`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8)]:
177
+ - @ledgerhq/errors@6.16.3
178
+ - @ledgerhq/hw-transport@6.30.5
179
+
180
+ ## 6.28.5-next.0
181
+
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [[`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8)]:
185
+ - @ledgerhq/errors@6.16.3-next.0
186
+ - @ledgerhq/hw-transport@6.30.5-next.0
187
+
188
+ ## 6.28.4
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [[`ee88785`](https://github.com/LedgerHQ/ledger-live/commit/ee8878515671241ce1037362af5e8f7799b3673a)]:
193
+ - @ledgerhq/errors@6.16.2
194
+ - @ledgerhq/hw-transport@6.30.4
195
+
196
+ ## 6.28.4-next.0
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [[`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8)]:
201
+ - @ledgerhq/errors@6.16.2-next.0
202
+ - @ledgerhq/hw-transport@6.30.4-next.0
203
+
204
+ ## 6.28.3
205
+
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies [[`eadebff`](https://github.com/LedgerHQ/ledger-live/commit/eadebff3fe58aef6a5befb033d5147afc49663d3)]:
209
+ - @ledgerhq/hw-transport@6.30.3
210
+
211
+ ## 6.28.3-next.0
212
+
213
+ ### Patch Changes
214
+
215
+ - Updated dependencies [[`eadebff`](https://github.com/LedgerHQ/ledger-live/commit/eadebff3fe58aef6a5befb033d5147afc49663d3)]:
216
+ - @ledgerhq/hw-transport@6.30.3-next.0
217
+
218
+ ## 6.28.2
219
+
220
+ ### Patch Changes
221
+
222
+ - Updated dependencies [[`16b4d7a`](https://github.com/LedgerHQ/ledger-live/commit/16b4d7ab4702022d4967f3c054d3c62a76716947)]:
223
+ - @ledgerhq/hw-transport@6.30.2
224
+
225
+ ## 6.28.2-next.0
226
+
227
+ ### Patch Changes
228
+
229
+ - Updated dependencies [[`16b4d7a`](https://github.com/LedgerHQ/ledger-live/commit/16b4d7ab4702022d4967f3c054d3c62a76716947)]:
230
+ - @ledgerhq/hw-transport@6.30.2-next.0
231
+
232
+ ## 6.28.1
233
+
234
+ ### Patch Changes
235
+
236
+ - Updated dependencies [[`52a3732`](https://github.com/LedgerHQ/ledger-live/commit/52a373273dee3b2cb5a3e8d2d4b05f90616d71a2), [`4d1aade`](https://github.com/LedgerHQ/ledger-live/commit/4d1aade53cd33f8e7548ce340f54fbb834bdcdcb)]:
237
+ - @ledgerhq/hw-transport@6.30.1
238
+ - @ledgerhq/errors@6.16.1
239
+
240
+ ## 6.28.1-next.0
241
+
242
+ ### Patch Changes
243
+
244
+ - Updated dependencies [[`52a3732`](https://github.com/LedgerHQ/ledger-live/commit/52a373273dee3b2cb5a3e8d2d4b05f90616d71a2), [`4d1aade`](https://github.com/LedgerHQ/ledger-live/commit/4d1aade53cd33f8e7548ce340f54fbb834bdcdcb)]:
245
+ - @ledgerhq/hw-transport@6.30.1-next.0
246
+ - @ledgerhq/errors@6.16.1-next.0
247
+
248
+ ## 6.28.0
249
+
250
+ ### Minor Changes
251
+
252
+ - [#5430](https://github.com/LedgerHQ/ledger-live/pull/5430) [`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Update documentation v14 ledgerjs
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [[`771c9d3c1d`](https://github.com/LedgerHQ/ledger-live/commit/771c9d3c1d138ddd68da2e4f9738e2c41ecaf81b), [`c5981ae341`](https://github.com/LedgerHQ/ledger-live/commit/c5981ae3411abc4c8594adf2efcb52aacddac143), [`e63205b850`](https://github.com/LedgerHQ/ledger-live/commit/e63205b85071538ed2431157a12818d7a8f0ffa9), [`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c)]:
257
+ - @ledgerhq/errors@6.16.0
258
+ - @ledgerhq/hw-transport@6.30.0
259
+
260
+ ## 6.28.0-next.0
261
+
262
+ ### Minor Changes
263
+
264
+ - [#5430](https://github.com/LedgerHQ/ledger-live/pull/5430) [`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Update documentation v14 ledgerjs
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [[`771c9d3c1d`](https://github.com/LedgerHQ/ledger-live/commit/771c9d3c1d138ddd68da2e4f9738e2c41ecaf81b), [`c5981ae341`](https://github.com/LedgerHQ/ledger-live/commit/c5981ae3411abc4c8594adf2efcb52aacddac143), [`e63205b850`](https://github.com/LedgerHQ/ledger-live/commit/e63205b85071538ed2431157a12818d7a8f0ffa9), [`5964e30bed`](https://github.com/LedgerHQ/ledger-live/commit/5964e30bed11d64a3b7401c6ab51ffc1ad4c427c)]:
269
+ - @ledgerhq/errors@6.16.0-next.0
270
+ - @ledgerhq/hw-transport@6.30.0-next.0
271
+
272
+ ## 6.27.20
273
+
274
+ ### Patch Changes
275
+
276
+ - Updated dependencies [[`7968dfc551`](https://github.com/LedgerHQ/ledger-live/commit/7968dfc551acca00b7fabf00a726758d74be33de), [`6b7fc5d071`](https://github.com/LedgerHQ/ledger-live/commit/6b7fc5d0711a83ed2fcacacd02795862a4a3bf1d), [`9e2d32aec4`](https://github.com/LedgerHQ/ledger-live/commit/9e2d32aec4ebd8774880f94e3ef0e805ebb172ac), [`4d6fa0772e`](https://github.com/LedgerHQ/ledger-live/commit/4d6fa0772e19cdbd4b432fafa43621c42e2a5fdd)]:
277
+ - @ledgerhq/hw-transport@6.29.0
278
+ - @ledgerhq/errors@6.15.0
279
+
280
+ ## 6.27.20-next.0
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies [[`7968dfc551`](https://github.com/LedgerHQ/ledger-live/commit/7968dfc551acca00b7fabf00a726758d74be33de), [`6b7fc5d071`](https://github.com/LedgerHQ/ledger-live/commit/6b7fc5d0711a83ed2fcacacd02795862a4a3bf1d), [`9e2d32aec4`](https://github.com/LedgerHQ/ledger-live/commit/9e2d32aec4ebd8774880f94e3ef0e805ebb172ac), [`4d6fa0772e`](https://github.com/LedgerHQ/ledger-live/commit/4d6fa0772e19cdbd4b432fafa43621c42e2a5fdd)]:
285
+ - @ledgerhq/hw-transport@6.29.0-next.0
286
+ - @ledgerhq/errors@6.15.0-next.0
287
+
288
+ ## 6.27.19
289
+
290
+ ### Patch Changes
291
+
292
+ - Updated dependencies [[`a61a43fc47`](https://github.com/LedgerHQ/ledger-live/commit/a61a43fc47399e969fa68539de6af51bfa41e921), [`3455944496`](https://github.com/LedgerHQ/ledger-live/commit/34559444969ce1571ff4c54f33feb7f3fb59a33a)]:
293
+ - @ledgerhq/errors@6.14.0
294
+ - @ledgerhq/hw-transport@6.28.8
295
+
296
+ ## 6.27.19-next.0
297
+
298
+ ### Patch Changes
299
+
300
+ - Updated dependencies [[`a61a43fc47`](https://github.com/LedgerHQ/ledger-live/commit/a61a43fc47399e969fa68539de6af51bfa41e921), [`3455944496`](https://github.com/LedgerHQ/ledger-live/commit/34559444969ce1571ff4c54f33feb7f3fb59a33a)]:
301
+ - @ledgerhq/errors@6.14.0-next.0
302
+ - @ledgerhq/hw-transport@6.28.8-next.0
303
+
304
+ ## 6.27.18
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [[`c7c484acf0`](https://github.com/LedgerHQ/ledger-live/commit/c7c484acf01e9db8dc5a5507b62ffcb863c77ca4)]:
309
+ - @ledgerhq/errors@6.13.1
310
+ - @ledgerhq/hw-transport@6.28.7
311
+
312
+ ## 6.27.18-next.0
313
+
314
+ ### Patch Changes
315
+
316
+ - Updated dependencies [[`c7c484acf0`](https://github.com/LedgerHQ/ledger-live/commit/c7c484acf01e9db8dc5a5507b62ffcb863c77ca4)]:
317
+ - @ledgerhq/errors@6.13.1-next.0
318
+ - @ledgerhq/hw-transport@6.28.7-next.0
319
+
320
+ ## 6.27.17
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies [[`0f4293e9bf`](https://github.com/LedgerHQ/ledger-live/commit/0f4293e9bf9cac4c2a195efeb0831aab3d51933d)]:
325
+ - @ledgerhq/errors@6.13.0
326
+ - @ledgerhq/hw-transport@6.28.6
327
+
328
+ ## 6.27.17-next.0
329
+
330
+ ### Patch Changes
331
+
332
+ - Updated dependencies [[`0f4293e9bf`](https://github.com/LedgerHQ/ledger-live/commit/0f4293e9bf9cac4c2a195efeb0831aab3d51933d)]:
333
+ - @ledgerhq/errors@6.13.0-next.0
334
+ - @ledgerhq/hw-transport@6.28.6-next.0
335
+
336
+ ## 6.27.16
337
+
338
+ ### Patch Changes
339
+
340
+ - Updated dependencies [[`9adc1862dd`](https://github.com/LedgerHQ/ledger-live/commit/9adc1862dda605a722d19f3b6895bd324834c914)]:
341
+ - @ledgerhq/errors@6.12.7
342
+ - @ledgerhq/hw-transport@6.28.5
343
+
344
+ ## 6.27.16-next.0
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies [[`9adc1862dd`](https://github.com/LedgerHQ/ledger-live/commit/9adc1862dda605a722d19f3b6895bd324834c914)]:
349
+ - @ledgerhq/errors@6.12.7-next.0
350
+ - @ledgerhq/hw-transport@6.28.5-next.0
351
+
352
+ ## 6.27.15
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [[`77f990e207`](https://github.com/LedgerHQ/ledger-live/commit/77f990e2075c7c9a4be69b364e3754b449c7a546)]:
357
+ - @ledgerhq/errors@6.12.6
358
+ - @ledgerhq/hw-transport@6.28.4
359
+
360
+ ## 6.27.15-next.0
361
+
362
+ ### Patch Changes
363
+
364
+ - Updated dependencies [[`77f990e207`](https://github.com/LedgerHQ/ledger-live/commit/77f990e2075c7c9a4be69b364e3754b449c7a546)]:
365
+ - @ledgerhq/errors@6.12.6-next.0
366
+ - @ledgerhq/hw-transport@6.28.4-next.0
367
+
368
+ ## 6.27.14
369
+
370
+ ### Patch Changes
371
+
372
+ - Updated dependencies [[`87d2349fd8`](https://github.com/LedgerHQ/ledger-live/commit/87d2349fd835e5deb39d1ee8dfcf3539f4195472)]:
373
+ - @ledgerhq/errors@6.12.5
374
+ - @ledgerhq/hw-transport@6.28.3
375
+
376
+ ## 6.27.14-next.0
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [[`87d2349fd8`](https://github.com/LedgerHQ/ledger-live/commit/87d2349fd835e5deb39d1ee8dfcf3539f4195472)]:
381
+ - @ledgerhq/errors@6.12.5-next.0
382
+ - @ledgerhq/hw-transport@6.28.3-next.0
383
+
384
+ ## 6.27.13
385
+
386
+ ### Patch Changes
387
+
388
+ - Updated dependencies [[`1d0b2d19eb`](https://github.com/LedgerHQ/ledger-live/commit/1d0b2d19ebc5acd058930b842c6d37f8daf2a5a3), [`ef945b05c0`](https://github.com/LedgerHQ/ledger-live/commit/ef945b05c01a791281687abb28e639e1bcc4e472), [`5fa68510b4`](https://github.com/LedgerHQ/ledger-live/commit/5fa68510b49334cfd80c30793dfe68900f1b9b3b)]:
389
+ - @ledgerhq/errors@6.12.4
390
+ - @ledgerhq/hw-transport@6.28.2
391
+
392
+ ## 6.27.13-next.0
393
+
394
+ ### Patch Changes
395
+
396
+ - Updated dependencies [[`1d0b2d19eb`](https://github.com/LedgerHQ/ledger-live/commit/1d0b2d19ebc5acd058930b842c6d37f8daf2a5a3), [`ef945b05c0`](https://github.com/LedgerHQ/ledger-live/commit/ef945b05c01a791281687abb28e639e1bcc4e472), [`5fa68510b4`](https://github.com/LedgerHQ/ledger-live/commit/5fa68510b49334cfd80c30793dfe68900f1b9b3b)]:
397
+ - @ledgerhq/errors@6.12.4-next.0
398
+ - @ledgerhq/hw-transport@6.28.2-next.0
399
+
400
+ ## 6.27.12
401
+
402
+ ### Patch Changes
403
+
404
+ - Updated dependencies []:
405
+ - @ledgerhq/hw-transport@6.28.1
406
+
407
+ ## 6.27.12-next.0
408
+
409
+ ### Patch Changes
410
+
411
+ - Updated dependencies []:
412
+ - @ledgerhq/hw-transport@6.28.1-next.0
413
+
414
+ ## 6.27.11
415
+
416
+ ### Patch Changes
417
+
418
+ - Updated dependencies [[`c2779b1cab`](https://github.com/LedgerHQ/ledger-live/commit/c2779b1cab18a1d5747ca955f5ceee86db920f57)]:
419
+ - @ledgerhq/hw-transport@6.28.0
420
+
421
+ ## 6.27.11-next.0
422
+
423
+ ### Patch Changes
424
+
425
+ - Updated dependencies [[`c2779b1cab`](https://github.com/LedgerHQ/ledger-live/commit/c2779b1cab18a1d5747ca955f5ceee86db920f57)]:
426
+ - @ledgerhq/hw-transport@6.28.0-next.0
427
+
428
+ ## 6.27.10
429
+
430
+ ### Patch Changes
431
+
432
+ - Updated dependencies [[`3df451dafb`](https://github.com/LedgerHQ/ledger-live/commit/3df451dafb7233f5e3f897478aee22e89f6e5339), [`20c5c5e109`](https://github.com/LedgerHQ/ledger-live/commit/20c5c5e1099885173aaa5ea3199052044066ac98)]:
433
+ - @ledgerhq/errors@6.12.3
434
+ - @ledgerhq/hw-transport@6.27.10
435
+
436
+ ## 6.27.10-next.0
437
+
438
+ ### Patch Changes
439
+
440
+ - Updated dependencies [[`3df451dafb`](https://github.com/LedgerHQ/ledger-live/commit/3df451dafb7233f5e3f897478aee22e89f6e5339), [`20c5c5e109`](https://github.com/LedgerHQ/ledger-live/commit/20c5c5e1099885173aaa5ea3199052044066ac98)]:
441
+ - @ledgerhq/errors@6.12.3-next.0
442
+ - @ledgerhq/hw-transport@6.27.10-next.0
443
+
444
+ ## 6.27.9
445
+
446
+ ### Patch Changes
447
+
448
+ - Updated dependencies [[`f1c15446da`](https://github.com/LedgerHQ/ledger-live/commit/f1c15446dabef05bb91dada8d8f53f9bc6474ba5)]:
449
+ - @ledgerhq/errors@6.12.2
450
+ - @ledgerhq/hw-transport@6.27.9
451
+
452
+ ## 6.27.9-next.0
453
+
454
+ ### Patch Changes
455
+
456
+ - Updated dependencies [[`f1c15446da`](https://github.com/LedgerHQ/ledger-live/commit/f1c15446dabef05bb91dada8d8f53f9bc6474ba5)]:
457
+ - @ledgerhq/errors@6.12.2-next.0
458
+ - @ledgerhq/hw-transport@6.27.9-next.0
459
+
460
+ ## 6.27.8
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies [[`856f49374e`](https://github.com/LedgerHQ/ledger-live/commit/856f49374ec9b49f005676e270acdb81b78879c8), [`77056e3692`](https://github.com/LedgerHQ/ledger-live/commit/77056e369256112188c183823a2c3fabfea2cba8)]:
465
+ - @ledgerhq/errors@6.12.1
466
+ - @ledgerhq/hw-transport@6.27.8
467
+
468
+ ## 6.27.8-next.0
469
+
470
+ ### Patch Changes
471
+
472
+ - Updated dependencies [[`856f49374e`](https://github.com/LedgerHQ/ledger-live/commit/856f49374ec9b49f005676e270acdb81b78879c8), [`77056e3692`](https://github.com/LedgerHQ/ledger-live/commit/77056e369256112188c183823a2c3fabfea2cba8)]:
473
+ - @ledgerhq/errors@6.12.1-next.0
474
+ - @ledgerhq/hw-transport@6.27.8-next.0
475
+
476
+ ## 6.27.7
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies [[`0308e8c6ae`](https://github.com/LedgerHQ/ledger-live/commit/0308e8c6ae721a99bc50f5dc60db0d11ea8ea1ff), [`d3c91a53e0`](https://github.com/LedgerHQ/ledger-live/commit/d3c91a53e06f9f47817e96c452f69e2d9f71d80f), [`df8cbb8dd1`](https://github.com/LedgerHQ/ledger-live/commit/df8cbb8dd166a66325eb96d8192f3f985b71df60), [`4ad6155953`](https://github.com/LedgerHQ/ledger-live/commit/4ad615595392f5ef806cbd21f0be1b30d3ae73c6), [`24ea9cd15f`](https://github.com/LedgerHQ/ledger-live/commit/24ea9cd15f92d5a2c74c4b936bacb89d5d4d36fd)]:
481
+ - @ledgerhq/errors@6.12.0
482
+ - @ledgerhq/hw-transport@6.27.7
483
+
484
+ ## 6.27.7-next.0
485
+
486
+ ### Patch Changes
487
+
488
+ - Updated dependencies [[`0308e8c6ae`](https://github.com/LedgerHQ/ledger-live/commit/0308e8c6ae721a99bc50f5dc60db0d11ea8ea1ff), [`d3c91a53e0`](https://github.com/LedgerHQ/ledger-live/commit/d3c91a53e06f9f47817e96c452f69e2d9f71d80f), [`df8cbb8dd1`](https://github.com/LedgerHQ/ledger-live/commit/df8cbb8dd166a66325eb96d8192f3f985b71df60), [`4ad6155953`](https://github.com/LedgerHQ/ledger-live/commit/4ad615595392f5ef806cbd21f0be1b30d3ae73c6), [`24ea9cd15f`](https://github.com/LedgerHQ/ledger-live/commit/24ea9cd15f92d5a2c74c4b936bacb89d5d4d36fd)]:
489
+ - @ledgerhq/errors@6.12.0-next.0
490
+ - @ledgerhq/hw-transport@6.27.7-next.0
491
+
492
+ ## 6.27.6
493
+
494
+ ### Patch Changes
495
+
496
+ - [#1356](https://github.com/LedgerHQ/ledger-live/pull/1356) [`ecac411d7a`](https://github.com/LedgerHQ/ledger-live/commit/ecac411d7aad6f4003503ba6259d7c25017ca7aa) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Updated readme.md of packages
497
+
498
+ - Updated dependencies [[`ecac411d7a`](https://github.com/LedgerHQ/ledger-live/commit/ecac411d7aad6f4003503ba6259d7c25017ca7aa)]:
499
+ - @ledgerhq/errors@6.11.1
500
+ - @ledgerhq/hw-transport@6.27.6
501
+
502
+ ## 6.27.6-next.0
503
+
504
+ ### Patch Changes
505
+
506
+ - [#1356](https://github.com/LedgerHQ/ledger-live/pull/1356) [`ecac411d7a`](https://github.com/LedgerHQ/ledger-live/commit/ecac411d7aad6f4003503ba6259d7c25017ca7aa) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Updated readme.md of packages
507
+
508
+ - Updated dependencies [[`ecac411d7a`](https://github.com/LedgerHQ/ledger-live/commit/ecac411d7aad6f4003503ba6259d7c25017ca7aa)]:
509
+ - @ledgerhq/errors@6.11.1-next.0
510
+ - @ledgerhq/hw-transport@6.27.6-next.0
511
+
512
+ ## 6.27.5
513
+
514
+ ### Patch Changes
515
+
516
+ - Updated dependencies [[`1a94cbf28a`](https://github.com/LedgerHQ/ledger-live/commit/1a94cbf28aaa2917c70719e22f446148cd66cef6)]:
517
+ - @ledgerhq/errors@6.11.0
518
+ - @ledgerhq/hw-transport@6.27.5
519
+
520
+ ## 6.27.5-next.0
521
+
522
+ ### Patch Changes
523
+
524
+ - Updated dependencies [[`1a94cbf28a`](https://github.com/LedgerHQ/ledger-live/commit/1a94cbf28aaa2917c70719e22f446148cd66cef6)]:
525
+ - @ledgerhq/errors@6.11.0-next.0
526
+ - @ledgerhq/hw-transport@6.27.5-next.0
527
+
528
+ ## 6.27.4
529
+
530
+ ### Patch Changes
531
+
532
+ - Updated dependencies [[`ae5e33e15e`](https://github.com/LedgerHQ/ledger-live/commit/ae5e33e15e8a107d0ba8a3688a63eda2c0d43ce7)]:
533
+ - @ledgerhq/errors@6.10.2
534
+ - @ledgerhq/hw-transport@6.27.4
535
+
536
+ ## 6.27.4-next.0
537
+
538
+ ### Patch Changes
539
+
540
+ - Updated dependencies [[`ae5e33e15`](https://github.com/LedgerHQ/ledger-live/commit/ae5e33e15e8a107d0ba8a3688a63eda2c0d43ce7)]:
541
+ - @ledgerhq/errors@6.10.2-next.0
542
+ - @ledgerhq/hw-transport@6.27.4-next.0
543
+
544
+ ## 6.27.3
545
+
546
+ ### Patch Changes
547
+
548
+ - Updated dependencies [[`ecfdd1ebd8`](https://github.com/LedgerHQ/ledger-live/commit/ecfdd1ebd8cc7c4b5bc6315316ce662bb6241311)]:
549
+ - @ledgerhq/hw-transport@6.27.3
550
+
551
+ ## 6.27.3-next.0
552
+
553
+ ### Patch Changes
554
+
555
+ - Updated dependencies [[`ecfdd1ebd`](https://github.com/LedgerHQ/ledger-live/commit/ecfdd1ebd8cc7c4b5bc6315316ce662bb6241311)]:
556
+ - @ledgerhq/hw-transport@6.27.3-next.0
557
+
558
+ ## 6.27.2
559
+
560
+ ### Patch Changes
561
+
562
+ - Updated dependencies [[`203b927b4`](https://github.com/LedgerHQ/ledger-live/commit/203b927b4e5bca3402c85a88c536d519adb18c5f)]:
563
+ - @ledgerhq/errors@6.10.1
564
+ - @ledgerhq/hw-transport@6.27.2
565
+
566
+ ## 6.27.2-next.0
567
+
568
+ ### Patch Changes
569
+
570
+ - Updated dependencies [[`203b927b4`](https://github.com/LedgerHQ/ledger-live/commit/203b927b4e5bca3402c85a88c536d519adb18c5f)]:
571
+ - @ledgerhq/errors@6.10.1-next.0
572
+ - @ledgerhq/hw-transport@6.27.2-next.0
package/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2017-present Ledger https://www.ledger.com/
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ <img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" />
2
+
3
+ [GitHub](https://github.com/LedgerHQ/ledger-live/),
4
+ [Ledger Devs Discord](https://developers.ledger.com/discord-pro),
5
+ [Developer Portal](https://developers.ledger.com/)
6
+
7
+ ## @ledgerhq/hw-app-polkadot
8
+
9
+ Ledger Hardware Wallet Polkadot JavaScript bindings.
10
+
11
+ ***
12
+
13
+ ## Are you adding Ledger support to your software wallet?
14
+
15
+ You may be using this package to communicate with the Polkadot Nano App.
16
+
17
+ For a smooth and quick integration:
18
+
19
+ * See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/transport/overview/) and
20
+ * Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community.
21
+
22
+ ***
23
+
24
+ ## API
25
+
26
+ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->
27
+
28
+ #### Table of Contents
29
+
30
+ * [Celo](#celo)
31
+
32
+ ### Celo
33
+
34
+ **Extends Eth**
35
+
36
+ Heavily inspiried by celo-web-wallet
37
+ <https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts>
package/jest.config.ts ADDED
@@ -0,0 +1,6 @@
1
+ import baseConfig from "../../jest.config";
2
+
3
+ export default {
4
+ ...baseConfig,
5
+ rootDir: __dirname,
6
+ };
package/lib/Celo.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import Eth from "@ledgerhq/hw-app-eth";
2
+ import { LegacyEncodedTx } from "@celo/wallet-base";
3
+ import type { CeloTx, RLPEncodedTx } from "@celo/connect";
4
+ import { LedgerEthTransactionResolution } from "@ledgerhq/hw-app-eth/lib/services/types";
5
+ /**
6
+ * Heavily inspiried by celo-web-wallet
7
+ * https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts
8
+ */
9
+ export default class Celo extends Eth {
10
+ signTransaction(path: string, rawTxHex: string, resolution?: LedgerEthTransactionResolution | null): Promise<{
11
+ s: string;
12
+ v: string;
13
+ r: string;
14
+ }>;
15
+ verifyTokenInfo(to: string, chainId: number): Promise<void>;
16
+ rlpEncodedTxForLedger(txParams: CeloTx): Promise<RLPEncodedTx | LegacyEncodedTx>;
17
+ }
18
+ //# sourceMappingURL=Celo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Celo.d.ts","sourceRoot":"","sources":["../src/Celo.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,sBAAsB,CAAC;AAEvC,OAAO,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,GAAG;IAC7B,eAAe,CACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,8BAA8B,GAAG,IAAI,GACjD,OAAO,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAQzC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3D,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,eAAe,CAAC;CAGvF"}
package/lib/Celo.js ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const hw_app_eth_1 = __importDefault(require("@ledgerhq/hw-app-eth"));
7
+ const tokens_1 = require("@celo/wallet-ledger/lib/tokens");
8
+ const wallet_base_1 = require("@celo/wallet-base");
9
+ /**
10
+ * Heavily inspiried by celo-web-wallet
11
+ * https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts
12
+ */
13
+ class Celo extends hw_app_eth_1.default {
14
+ async signTransaction(path, rawTxHex, resolution) {
15
+ return super.signTransaction(path, rawTxHex, resolution);
16
+ }
17
+ // celo-spender-app below version 1.2.3 used a different private key to validate erc20 token info.
18
+ // this legacy version of the app also only supported celo type 0 transactions.
19
+ // if you are reading this after celo moved to op based L2 those celo type 0 transactions will no longer work
20
+ // so you can safely remove all the legacy paths.
21
+ async verifyTokenInfo(to, chainId) {
22
+ const tokenInfo = (0, tokens_1.tokenInfoByAddressAndChainId)(to, chainId);
23
+ if (tokenInfo) {
24
+ // celo-spender-app below version 1.2.3 expected unprefixed hex strings only
25
+ const dataString = `0x${tokenInfo.data.toString("hex")}`;
26
+ await this.provideERC20TokenInformation(dataString);
27
+ }
28
+ }
29
+ async rlpEncodedTxForLedger(txParams) {
30
+ return (0, wallet_base_1.rlpEncodedTx)(txParams);
31
+ }
32
+ }
33
+ exports.default = Celo;
34
+ //# sourceMappingURL=Celo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Celo.js","sourceRoot":"","sources":["../src/Celo.ts"],"names":[],"mappings":";;;;;AAAA,sEAAuC;AACvC,2DAA8E;AAC9E,mDAAkE;AAIlE;;;GAGG;AACH,MAAqB,IAAK,SAAQ,oBAAG;IACnC,KAAK,CAAC,eAAe,CACnB,IAAY,EACZ,QAAgB,EAChB,UAAkD;QAElD,OAAO,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC3D,CAAC;IAED,kGAAkG;IAClG,+EAA+E;IAC/E,6GAA6G;IAC7G,iDAAiD;IACjD,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,OAAe;QAC/C,MAAM,SAAS,GAAG,IAAA,qCAA4B,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAE5D,IAAI,SAAS,EAAE,CAAC;YACd,4EAA4E;YAC5E,MAAM,UAAU,GAAG,KAAK,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,QAAgB;QAC1C,OAAO,IAAA,0BAAY,EAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACF;AA1BD,uBA0BC"}
@@ -0,0 +1,18 @@
1
+ import Eth from "@ledgerhq/hw-app-eth";
2
+ import { LegacyEncodedTx } from "@celo/wallet-base";
3
+ import type { CeloTx, RLPEncodedTx } from "@celo/connect";
4
+ import { LedgerEthTransactionResolution } from "@ledgerhq/hw-app-eth/lib/services/types";
5
+ /**
6
+ * Heavily inspiried by celo-web-wallet
7
+ * https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts
8
+ */
9
+ export default class Celo extends Eth {
10
+ signTransaction(path: string, rawTxHex: string, resolution?: LedgerEthTransactionResolution | null): Promise<{
11
+ s: string;
12
+ v: string;
13
+ r: string;
14
+ }>;
15
+ verifyTokenInfo(to: string, chainId: number): Promise<void>;
16
+ rlpEncodedTxForLedger(txParams: CeloTx): Promise<RLPEncodedTx | LegacyEncodedTx>;
17
+ }
18
+ //# sourceMappingURL=Celo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Celo.d.ts","sourceRoot":"","sources":["../src/Celo.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,sBAAsB,CAAC;AAEvC,OAAO,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,GAAG;IAC7B,eAAe,CACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,8BAA8B,GAAG,IAAI,GACjD,OAAO,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAQzC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3D,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,eAAe,CAAC;CAGvF"}
package/lib-es/Celo.js ADDED
@@ -0,0 +1,28 @@
1
+ import Eth from "@ledgerhq/hw-app-eth";
2
+ import { tokenInfoByAddressAndChainId } from "@celo/wallet-ledger/lib/tokens";
3
+ import { rlpEncodedTx } from "@celo/wallet-base";
4
+ /**
5
+ * Heavily inspiried by celo-web-wallet
6
+ * https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts
7
+ */
8
+ export default class Celo extends Eth {
9
+ async signTransaction(path, rawTxHex, resolution) {
10
+ return super.signTransaction(path, rawTxHex, resolution);
11
+ }
12
+ // celo-spender-app below version 1.2.3 used a different private key to validate erc20 token info.
13
+ // this legacy version of the app also only supported celo type 0 transactions.
14
+ // if you are reading this after celo moved to op based L2 those celo type 0 transactions will no longer work
15
+ // so you can safely remove all the legacy paths.
16
+ async verifyTokenInfo(to, chainId) {
17
+ const tokenInfo = tokenInfoByAddressAndChainId(to, chainId);
18
+ if (tokenInfo) {
19
+ // celo-spender-app below version 1.2.3 expected unprefixed hex strings only
20
+ const dataString = `0x${tokenInfo.data.toString("hex")}`;
21
+ await this.provideERC20TokenInformation(dataString);
22
+ }
23
+ }
24
+ async rlpEncodedTxForLedger(txParams) {
25
+ return rlpEncodedTx(txParams);
26
+ }
27
+ }
28
+ //# sourceMappingURL=Celo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Celo.js","sourceRoot":"","sources":["../src/Celo.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,sBAAsB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAIlE;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,GAAG;IACnC,KAAK,CAAC,eAAe,CACnB,IAAY,EACZ,QAAgB,EAChB,UAAkD;QAElD,OAAO,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC3D,CAAC;IAED,kGAAkG;IAClG,+EAA+E;IAC/E,6GAA6G;IAC7G,iDAAiD;IACjD,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,OAAe;QAC/C,MAAM,SAAS,GAAG,4BAA4B,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAE5D,IAAI,SAAS,EAAE,CAAC;YACd,4EAA4E;YAC5E,MAAM,UAAU,GAAG,KAAK,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,QAAgB;QAC1C,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACF"}
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@ledgerhq/hw-app-celo",
3
+ "version": "6.32.1-nightly.0",
4
+ "description": "Ledger Hardware Wallet Celo Application API",
5
+ "keywords": [
6
+ "Ledger",
7
+ "LedgerWallet",
8
+ "dot",
9
+ "Celo",
10
+ "NanoS",
11
+ "Blue",
12
+ "Hardware Wallet"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/LedgerHQ/ledger-live.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/LedgerHQ/ledger-live/issues"
20
+ },
21
+ "homepage": "https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-Celo",
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "main": "lib/Celo.js",
26
+ "module": "lib-es/Celo.js",
27
+ "types": "lib/Celo.d.ts",
28
+ "license": "Apache-2.0",
29
+ "dependencies": {
30
+ "bip32-path": "^0.4.2",
31
+ "@celo/connect": "^6.0.2",
32
+ "@celo/contractkit": "^8.3.1",
33
+ "@celo/utils": "^7.0.0",
34
+ "@celo/wallet-base": "^6.0.3",
35
+ "@celo/wallet-ledger": "^6.0.3",
36
+ "semver": "^7.3.5",
37
+ "rlp": "^3.0.0",
38
+ "@ledgerhq/hw-app-eth": "^6.45.1-nightly.0",
39
+ "@ledgerhq/errors": "^6.20.0-nightly.0",
40
+ "@ledgerhq/hw-transport": "^6.31.5-nightly.0"
41
+ },
42
+ "devDependencies": {
43
+ "@types/jest": "^29.5.10",
44
+ "@types/node": "^22.10.10",
45
+ "documentation": "14.0.2",
46
+ "jest": "^29.7.0",
47
+ "rimraf": "^4.4.1",
48
+ "source-map-support": "^0.5.21",
49
+ "ts-jest": "^29.1.1",
50
+ "ts-node": "^10.4.0",
51
+ "@ledgerhq/hw-transport-mocker": "^6.29.5-nightly.0"
52
+ },
53
+ "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
54
+ "scripts": {
55
+ "clean": "rimraf lib lib-es",
56
+ "build": "tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es",
57
+ "prewatch": "pnpm build",
58
+ "watch": "tsc --watch",
59
+ "watch:es": "tsc --watch -m esnext --moduleResolution bundler --outDir lib-es",
60
+ "doc": "documentation readme src/** --section=API --pe ts --re ts --re d.ts",
61
+ "lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache",
62
+ "lint:fix": "pnpm lint --fix",
63
+ "test": "jest",
64
+ "unimported": "unimported"
65
+ }
66
+ }
package/src/Celo.ts ADDED
@@ -0,0 +1,37 @@
1
+ import Eth from "@ledgerhq/hw-app-eth";
2
+ import { tokenInfoByAddressAndChainId } from "@celo/wallet-ledger/lib/tokens";
3
+ import { rlpEncodedTx, LegacyEncodedTx } from "@celo/wallet-base";
4
+ import type { CeloTx, RLPEncodedTx } from "@celo/connect";
5
+ import { LedgerEthTransactionResolution } from "@ledgerhq/hw-app-eth/lib/services/types";
6
+
7
+ /**
8
+ * Heavily inspiried by celo-web-wallet
9
+ * https://github.com/celo-tools/celo-web-wallet/blob/master/src/features/ledger/CeloLedgerApp.ts
10
+ */
11
+ export default class Celo extends Eth {
12
+ async signTransaction(
13
+ path: string,
14
+ rawTxHex: string,
15
+ resolution?: LedgerEthTransactionResolution | null,
16
+ ): Promise<{ s: string; v: string; r: string }> {
17
+ return super.signTransaction(path, rawTxHex, resolution);
18
+ }
19
+
20
+ // celo-spender-app below version 1.2.3 used a different private key to validate erc20 token info.
21
+ // this legacy version of the app also only supported celo type 0 transactions.
22
+ // if you are reading this after celo moved to op based L2 those celo type 0 transactions will no longer work
23
+ // so you can safely remove all the legacy paths.
24
+ async verifyTokenInfo(to: string, chainId: number): Promise<void> {
25
+ const tokenInfo = tokenInfoByAddressAndChainId(to, chainId);
26
+
27
+ if (tokenInfo) {
28
+ // celo-spender-app below version 1.2.3 expected unprefixed hex strings only
29
+ const dataString = `0x${tokenInfo.data.toString("hex")}`;
30
+ await this.provideERC20TokenInformation(dataString);
31
+ }
32
+ }
33
+
34
+ async rlpEncodedTxForLedger(txParams: CeloTx): Promise<RLPEncodedTx | LegacyEncodedTx> {
35
+ return rlpEncodedTx(txParams);
36
+ }
37
+ }
@@ -0,0 +1,8 @@
1
+ import { openTransportReplayer, RecordStore } from "@ledgerhq/hw-transport-mocker";
2
+ import Celo from "../src/Celo";
3
+
4
+ test("Celo init", async () => {
5
+ const transport = await openTransportReplayer(RecordStore.fromString(""));
6
+ const celo = new Celo(transport);
7
+ expect(celo).toBeInstanceOf(Celo);
8
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "lib"
5
+ },
6
+ "include": ["src/**/*"]
7
+ }