@ledgerhq/live-common 34.35.0-nightly.5 → 34.35.0-nightly.6

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.
@@ -2,8 +2,6 @@ import { Currency } from "./Currency";
2
2
  import { TokenType } from "./TokenType";
3
3
  import { Nft } from "./Nft";
4
4
 
5
- export type AccountType = Account;
6
-
7
5
  export class Account {
8
6
  constructor(
9
7
  public readonly currency: Currency,
@@ -14,22 +12,59 @@ export class Account {
14
12
  public readonly ensName?: string,
15
13
  public readonly derivationMode?: string,
16
14
  public readonly nft?: Nft[],
17
- public readonly ataAddress?: string,
15
+ public readonly parentAccount?: Account,
18
16
  ) {}
19
17
 
20
- static readonly LTC_1 = new Account(
21
- Currency.LTC,
22
- "Litecoin 1",
23
- "ltc1qysx9g8cdypja73kc808jg7clcm5xud7tny9gp3",
18
+ static readonly ADA_1 = new Account(
19
+ Currency.ADA,
20
+ "Cardano 1",
21
+ "addr1q9q9q55zyew785z6c2lnrhnzghy038r6mepmqn6v28kupk5ug4c7v5lwwfjwgn4mnpzgmhrhp8xry804kuvfh6ru2ews8d5td8",
24
22
  0,
25
23
  );
24
+ static readonly ADA_2 = new Account(
25
+ Currency.ADA,
26
+ "Cardano 2",
27
+ "addr1qyjd47qfktpza4ycjddjadaarzwdumwrqws0xage8gvsmrq5ghmxjmdj4eylq78wur2gmm7gtqfq49v6mtdkaqwqzy2qwzv6ac",
28
+ 1,
29
+ );
26
30
 
27
- static readonly INJ_1 = new Account(
28
- Currency.INJ,
29
- "Injective 1",
30
- "inj1hyz3lqavdc28jfph0wlwh5d2026r5elkmxxpwr",
31
+ static readonly ALGO_1 = new Account(
32
+ Currency.ALGO,
33
+ "Algorand 1",
34
+ "HQ6YJWSVG3KVRE56V6UGWMUJLDVNPQUNXJBY7VJ56VMNMGIKVDTC7JEKOU",
35
+ 0,
36
+ );
37
+ static readonly ALGO_2 = new Account(
38
+ Currency.ALGO,
39
+ "Algorand 2",
40
+ "6TFDU3BYQ2FO32SOYQDTHDW5XKGEYH4FCT34ZQRHFPJRVMLEQWOO2OEUU4",
41
+ 1,
42
+ );
43
+ static readonly ALGO_3 = new Account(
44
+ Currency.ALGO,
45
+ "Algorand 3",
46
+ "3ASRTAN6KCZCICTIFQ5N2UBOSSBOZ7WFSOI2CJEJ4ESK532RODQZ7KCSOA",
47
+ 2,
48
+ );
49
+
50
+ static readonly ALGO_USDT_1 = new Account(
51
+ Currency.ALGO_USDT,
52
+ "Algorand 1",
53
+ "HQ6YJWSVG3KVRE56V6UGWMUJLDVNPQUNXJBY7VJ56VMNMGIKVDTC7JEKOU",
31
54
  0,
32
55
  );
56
+ static readonly ALGO_USDT_2 = new Account(
57
+ Currency.ALGO_USDT,
58
+ "Algorand 2",
59
+ "6TFDU3BYQ2FO32SOYQDTHDW5XKGEYH4FCT34ZQRHFPJRVMLEQWOO2OEUU4",
60
+ 1,
61
+ );
62
+ static readonly ALGO_USDT_3 = new Account(
63
+ Currency.ALGO_USDT,
64
+ "Algorand 3",
65
+ "3ASRTAN6KCZCICTIFQ5N2UBOSSBOZ7WFSOI2CJEJ4ESK532RODQZ7KCSOA",
66
+ 2,
67
+ );
33
68
 
34
69
  static readonly APTOS_1 = new Account(
35
70
  Currency.APT,
@@ -37,7 +72,6 @@ export class Account {
37
72
  "0xb69a68cc64f7aa193705193f4dd598320a0a74baf7e4b50c9980c5bd60a82390",
38
73
  0,
39
74
  );
40
-
41
75
  static readonly APTOS_2 = new Account(
42
76
  Currency.APT,
43
77
  "Aptos 2",
@@ -45,44 +79,95 @@ export class Account {
45
79
  1,
46
80
  );
47
81
 
48
- static readonly BTC_NATIVE_SEGWIT_1 = new Account(
82
+ static readonly ATOM_1 = new Account(
83
+ Currency.ATOM,
84
+ "Cosmos 1",
85
+ "cosmos18sdl4lvyjtvpjkkt5smglux9sf4phdcpaddfae",
86
+ 0,
87
+ );
88
+ static readonly ATOM_2 = new Account(
89
+ Currency.ATOM,
90
+ "Cosmos 2",
91
+ "cosmos12d854g9mut943gu5ncyhalapukttkddnvlxaq6",
92
+ 1,
93
+ );
94
+
95
+ static readonly BCH_1 = new Account(
96
+ Currency.BCH,
97
+ "Bitcoin Cash 1",
98
+ "qz82kem69vdafku8xf4zpt9p5ytj8umwpujj7wjcv6",
99
+ 0,
100
+ );
101
+ static readonly BCH_2 = new Account(
102
+ Currency.BCH,
103
+ "Bitcoin Cash 2",
104
+ "qp2ka732e6h82djvr5ge4vtru0cl3g8lxqtyfmzzl9",
105
+ 1,
106
+ );
107
+
108
+ static readonly BSC_1 = new Account(
109
+ Currency.BSC,
110
+ "Binance Smart Chain 1",
111
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
112
+ 0,
113
+ );
114
+
115
+ static readonly BSC_BUSD_1 = new Account(
116
+ Currency.BSC_BUSD,
117
+ "Binance Smart Chain 1",
118
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
119
+ 0,
120
+ );
121
+ static readonly BSC_BUSD_2 = new Account(
122
+ Currency.BSC_BUSD,
123
+ "Binance Smart Chain 2",
124
+ "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
125
+ 1,
126
+ );
127
+
128
+ static readonly BSC_SHIBA = new Account(
129
+ Currency.BSC_SHIBA,
130
+ "Binance Smart Chain 1",
131
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
132
+ 0,
133
+ );
134
+
135
+ static readonly BTC_LEGACY_1 = new Account(
49
136
  Currency.BTC,
50
137
  "Bitcoin 1",
51
- "bc1qd0jevdq89hlcazal9cak8t850t6nn9fmn5flnj",
138
+ "1FMx2XwRHKXhbJcaekgPqN111wtRftkHyw",
52
139
  0,
53
140
  undefined,
54
141
  undefined,
55
- "native_segwit",
142
+ "",
56
143
  );
57
-
58
- static readonly BTC_NATIVE_SEGWIT_2 = new Account(
144
+ static readonly BTC_LEGACY_2 = new Account(
59
145
  Currency.BTC,
60
146
  "Bitcoin 2",
61
- "bc1q7ezsfc44adw2gyzqjmwhuh2e83uk8u5hrw590r",
147
+ "1Nen8hLiZysV6TWi6o6hTBp6dtkRXrJyWh",
62
148
  1,
63
149
  undefined,
64
150
  undefined,
65
- "native_segwit",
151
+ "",
66
152
  );
67
153
 
68
- static readonly BTC_LEGACY_1 = new Account(
154
+ static readonly BTC_NATIVE_SEGWIT_1 = new Account(
69
155
  Currency.BTC,
70
156
  "Bitcoin 1",
71
- "1FMx2XwRHKXhbJcaekgPqN111wtRftkHyw",
157
+ "bc1qd0jevdq89hlcazal9cak8t850t6nn9fmn5flnj",
72
158
  0,
73
159
  undefined,
74
160
  undefined,
75
- "",
161
+ "native_segwit",
76
162
  );
77
-
78
- static readonly BTC_LEGACY_2 = new Account(
163
+ static readonly BTC_NATIVE_SEGWIT_2 = new Account(
79
164
  Currency.BTC,
80
165
  "Bitcoin 2",
81
- "1Nen8hLiZysV6TWi6o6hTBp6dtkRXrJyWh",
166
+ "bc1q7ezsfc44adw2gyzqjmwhuh2e83uk8u5hrw590r",
82
167
  1,
83
168
  undefined,
84
169
  undefined,
85
- "",
170
+ "native_segwit",
86
171
  );
87
172
 
88
173
  static readonly BTC_SEGWIT_1 = new Account(
@@ -94,7 +179,6 @@ export class Account {
94
179
  undefined,
95
180
  "segwit",
96
181
  );
97
-
98
182
  static readonly BTC_SEGWIT_2 = new Account(
99
183
  Currency.BTC,
100
184
  "Bitcoin 2",
@@ -114,7 +198,6 @@ export class Account {
114
198
  undefined,
115
199
  "taproot",
116
200
  );
117
-
118
201
  static readonly BTC_TAPROOT_2 = new Account(
119
202
  Currency.BTC,
120
203
  "Bitcoin 2",
@@ -125,27 +208,19 @@ export class Account {
125
208
  "taproot",
126
209
  );
127
210
 
128
- static readonly tBTC_1 = new Account(
129
- Currency.tBTC,
130
- "Bitcoin 1",
131
- "tb1qxmwe6n93fls8r69837cmyt6ua406xaen9hy24d",
211
+ static readonly CELO_1 = new Account(
212
+ Currency.CELO,
213
+ "Celo 1",
214
+ "0x2268495dE776a536A5a9828b91F04d54d7d2Aa50",
132
215
  0,
133
216
  );
134
217
 
135
- static readonly tBTC_2 = new Account(
136
- Currency.tBTC,
137
- "Bitcoin 2",
138
- "tb1qyjr6hsx3wvsdq998zvn5cusqkdyfvvnpnsz6a5",
139
- 1,
140
- );
141
-
142
218
  static readonly DOGE_1 = new Account(
143
219
  Currency.DOGE,
144
220
  "Dogecoin 1",
145
221
  "DTWxYBoP319u1KBUFE9Z6FQxMKJRT1U7tQ",
146
222
  0,
147
223
  );
148
-
149
224
  static readonly DOGE_2 = new Account(
150
225
  Currency.DOGE,
151
226
  "Dogecoin 2",
@@ -153,6 +228,25 @@ export class Account {
153
228
  1,
154
229
  );
155
230
 
231
+ static readonly DOT_1 = new Account(
232
+ Currency.DOT,
233
+ "Polkadot 1",
234
+ "15NKsw4AoSEgBJ5NpHDkAjUmqLRfeSuqZBzZXH9uRg6MWbo3",
235
+ 0,
236
+ );
237
+ static readonly DOT_2 = new Account(
238
+ Currency.DOT,
239
+ "Polkadot 2",
240
+ "12fY9vqzD8j1uvqSRx9y3gXRA1S3bwr5xunBVZvx1eeZFaHY",
241
+ 1,
242
+ );
243
+ static readonly DOT_3 = new Account(
244
+ Currency.DOT,
245
+ "Polkadot 3",
246
+ "1532VyvZyyMUmLfhMUYh2KRVLzwYfHcxjtejyX4swkpG82BX",
247
+ 2,
248
+ );
249
+
156
250
  static readonly ETH_1 = new Account(
157
251
  Currency.ETH,
158
252
  "Ethereum 1",
@@ -163,7 +257,6 @@ export class Account {
163
257
  undefined,
164
258
  [Nft.ANTITUS, Nft.PODIUM, Nft.NY_LA_MUSE],
165
259
  );
166
-
167
260
  static readonly ETH_2 = new Account(
168
261
  Currency.ETH,
169
262
  "Ethereum 2",
@@ -172,7 +265,12 @@ export class Account {
172
265
  undefined,
173
266
  "speculos.eth",
174
267
  );
175
-
268
+ static readonly ETH_2_LOWER_CASE = new Account(
269
+ Currency.ETH,
270
+ "Ethereum 2",
271
+ "0x43047a5023d55a8658fcb1c1cea468311adaa3ad",
272
+ 1,
273
+ );
176
274
  static readonly ETH_3 = new Account(
177
275
  Currency.ETH,
178
276
  "Ethereum 3",
@@ -180,152 +278,167 @@ export class Account {
180
278
  3,
181
279
  );
182
280
 
183
- static readonly tETH_1 = new Account(
184
- Currency.tETH,
185
- "Ethereum Holesky 1",
186
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
281
+ static readonly INJ_1 = new Account(
282
+ Currency.INJ,
283
+ "Injective 1",
284
+ "inj1hyz3lqavdc28jfph0wlwh5d2026r5elkmxxpwr",
187
285
  0,
188
286
  );
189
287
 
190
- static readonly tETH_2 = new Account(
191
- Currency.tETH,
192
- "Ethereum Holesky 2",
193
- "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
194
- 1,
288
+ static readonly LTC_1 = new Account(
289
+ Currency.LTC,
290
+ "Litecoin 1",
291
+ "ltc1qysx9g8cdypja73kc808jg7clcm5xud7tny9gp3",
292
+ 0,
195
293
  );
196
294
 
197
- static readonly sep_ETH_1 = new Account(
198
- Currency.sepETH,
199
- "Ethereum Sepolia 1",
200
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
295
+ static readonly MULTIVERS_X_1 = new Account(
296
+ Currency.MULTIVERS_X,
297
+ "MultiversX 1",
298
+ "erd1kp2psapk98pjtxr0n583qlq9zurwdwaqcvgh7l5hyj6hh839p5dq82cuw9",
201
299
  0,
202
300
  );
203
-
204
- static readonly sep_ETH_2 = new Account(
205
- Currency.sepETH,
206
- "Ethereum Sepolia 2",
207
- "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
301
+ static readonly MULTIVERS_X_2 = new Account(
302
+ Currency.MULTIVERS_X,
303
+ "MultiversX 2",
304
+ "erd10nxfga5uavl7pr8k5qptk49h2983erxznj7z3kpw28937z7gmf5sc7shug",
208
305
  1,
209
306
  );
210
307
 
211
- static readonly DOT_1 = new Account(
212
- Currency.DOT,
213
- "Polkadot 1",
214
- "15NKsw4AoSEgBJ5NpHDkAjUmqLRfeSuqZBzZXH9uRg6MWbo3",
308
+ static readonly NEAR_1 = new Account(
309
+ Currency.NEAR,
310
+ "NEAR 1",
311
+ "70b2982a31cfcffc773145d2143392612bb83a22926c912e2ce3ec0634f637e2",
215
312
  0,
216
313
  );
217
-
218
- static readonly DOT_2 = new Account(
219
- Currency.DOT,
220
- "Polkadot 2",
221
- "12fY9vqzD8j1uvqSRx9y3gXRA1S3bwr5xunBVZvx1eeZFaHY",
314
+ static readonly NEAR_2 = new Account(
315
+ Currency.NEAR,
316
+ "NEAR 2",
317
+ "5effd8bfea3885b6f5f91256663e5af720b18761a96bd6592e210a23f950872c",
222
318
  1,
223
319
  );
224
320
 
225
- static readonly DOT_3 = new Account(
226
- Currency.DOT,
227
- "Polkadot 3",
228
- "1532VyvZyyMUmLfhMUYh2KRVLzwYfHcxjtejyX4swkpG82BX",
229
- 2,
230
- );
231
-
232
- static readonly SOL_1 = new Account(
233
- Currency.SOL,
234
- "Solana 1",
235
- "HxoKQ5eu5MkqaAw7DaGVermrJqeNH8XkVnEKEpFuS9id",
321
+ static readonly OSMO_1 = new Account(
322
+ Currency.OSMO,
323
+ "Osmosis 1",
324
+ "osmo1w7v2v6v8z3r3d8x8h7yjv6w2k3c5w3z7w6v8v8",
236
325
  0,
237
326
  );
238
-
239
- static readonly SOL_2 = new Account(
240
- Currency.SOL,
241
- "Solana 2",
242
- "6vSQTFcBoPfUKAdo8BQNJqqxU6UcBmd87HQoNSbgTMzH",
327
+ static readonly OSMO_2 = new Account(
328
+ Currency.OSMO,
329
+ "Osmosis 2",
330
+ "osmo12d854g9mut943gu5ncyhalapukttkddnyy4dkg",
243
331
  1,
244
332
  );
245
333
 
246
- static readonly TRX_1 = new Account(
247
- Currency.TRX,
248
- "Tron 1",
249
- "TDUKFB9wj3P5f2iNvkRuaDDeWVkTdUVhs1",
334
+ static readonly POL_1 = new Account(
335
+ Currency.POL,
336
+ "Polygon 1",
337
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
250
338
  0,
339
+ undefined,
340
+ undefined,
341
+ undefined,
342
+ [Nft.ANIME_SHIPS_494, Nft.BISHOP_OF_STORMS, Nft.COMMON_TOWER_MAP],
251
343
  );
252
-
253
- static readonly TRX_2 = new Account(
254
- Currency.TRX,
255
- "Tron 2",
256
- "TMGGi8n7kDkB8ws9wgunKf2SGNP4PjEyLL",
344
+ static readonly POL_2 = new Account(
345
+ Currency.POL,
346
+ "Polygon 2",
347
+ "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
257
348
  1,
258
349
  );
259
350
 
260
- static readonly TRX_3 = new Account(
261
- Currency.TRX,
262
- "Tron 3",
263
- "TWBAMUMc69Z82zJtXh1TqdPyWv7PNyud6p",
264
- 2,
351
+ static readonly POL_DAI_1 = new Account(
352
+ Currency.POL_DAI,
353
+ "Polygon 1",
354
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
355
+ 0,
265
356
  );
266
357
 
267
- static readonly XRP_1 = new Account(
268
- Currency.XRP,
269
- "XRP 1",
270
- "rhQvt8XfAGn1hVVtMUmdGKBUdnKzi2oimV",
358
+ static readonly POL_UNI = new Account(
359
+ Currency.POL_UNI,
360
+ "Polygon 1",
361
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
271
362
  0,
272
363
  );
273
364
 
274
- static readonly XRP_2 = new Account(
275
- Currency.XRP,
276
- "XRP 2",
277
- "r36cgyrfC1xSQMvjuiSeFJEcBTq31imZS",
365
+ static readonly SOL_1 = new Account(
366
+ Currency.SOL,
367
+ "Solana 1",
368
+ "HxoKQ5eu5MkqaAw7DaGVermrJqeNH8XkVnEKEpFuS9id",
369
+ 0,
370
+ );
371
+ static readonly SOL_2 = new Account(
372
+ Currency.SOL,
373
+ "Solana 2",
374
+ "6vSQTFcBoPfUKAdo8BQNJqqxU6UcBmd87HQoNSbgTMzH",
278
375
  1,
279
376
  );
280
-
281
- static readonly XRP_3 = new Account(
282
- Currency.XRP,
283
- "XRP 3",
284
- "rn2Z2yShWcvdTSQVo1EqjUpD1sjwBkZALb",
377
+ static readonly SOL_3 = new Account(
378
+ Currency.SOL,
379
+ "Solana 3",
380
+ "H96UPk6G9ktsVFn1bY9DXZjWFjEoayUddfuXu68S8BES",
285
381
  2,
286
382
  );
287
383
 
288
- static readonly ADA_1 = new Account(
289
- Currency.ADA,
290
- "Cardano 1",
291
- "addr1q9q9q55zyew785z6c2lnrhnzghy038r6mepmqn6v28kupk5ug4c7v5lwwfjwgn4mnpzgmhrhp8xry804kuvfh6ru2ews8d5td8",
384
+ static readonly tBTC_1 = new Account(
385
+ Currency.tBTC,
386
+ "Bitcoin 1",
387
+ "tb1qxmwe6n93fls8r69837cmyt6ua406xaen9hy24d",
292
388
  0,
293
389
  );
294
- static readonly ADA_2 = new Account(
295
- Currency.ADA,
296
- "Cardano 2",
297
- "addr1qyjd47qfktpza4ycjddjadaarzwdumwrqws0xage8gvsmrq5ghmxjmdj4eylq78wur2gmm7gtqfq49v6mtdkaqwqzy2qwzv6ac",
390
+ static readonly tBTC_2 = new Account(
391
+ Currency.tBTC,
392
+ "Bitcoin 2",
393
+ "tb1qyjr6hsx3wvsdq998zvn5cusqkdyfvvnpnsz6a5",
298
394
  1,
299
395
  );
300
396
 
301
- static readonly ALGO_1 = new Account(
302
- Currency.ALGO,
303
- "Algorand 1",
304
- "HQ6YJWSVG3KVRE56V6UGWMUJLDVNPQUNXJBY7VJ56VMNMGIKVDTC7JEKOU",
397
+ static readonly tETH_1 = new Account(
398
+ Currency.tETH,
399
+ "Ethereum Holesky 1",
400
+ "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
305
401
  0,
306
402
  );
307
-
308
- static readonly ALGO_2 = new Account(
309
- Currency.ALGO,
310
- "Algorand 2",
311
- "6TFDU3BYQ2FO32SOYQDTHDW5XKGEYH4FCT34ZQRHFPJRVMLEQWOO2OEUU4",
403
+ static readonly tETH_2 = new Account(
404
+ Currency.tETH,
405
+ "Ethereum Holesky 2",
406
+ "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
312
407
  1,
313
408
  );
314
409
 
315
- static readonly ALGO_3 = new Account(
316
- Currency.ALGO,
317
- "Algorand 3",
318
- "3ASRTAN6KCZCICTIFQ5N2UBOSSBOZ7WFSOI2CJEJ4ESK532RODQZ7KCSOA",
410
+ static readonly TRX_1 = new Account(
411
+ Currency.TRX,
412
+ "Tron 1",
413
+ "TDUKFB9wj3P5f2iNvkRuaDDeWVkTdUVhs1",
414
+ 0,
415
+ );
416
+ static readonly TRX_2 = new Account(
417
+ Currency.TRX,
418
+ "Tron 2",
419
+ "TMGGi8n7kDkB8ws9wgunKf2SGNP4PjEyLL",
420
+ 1,
421
+ );
422
+ static readonly TRX_3 = new Account(
423
+ Currency.TRX,
424
+ "Tron 3",
425
+ "TWBAMUMc69Z82zJtXh1TqdPyWv7PNyud6p",
319
426
  2,
320
427
  );
321
428
 
429
+ static readonly TRX_USDT = new Account(
430
+ Currency.TRX_USDT,
431
+ "Tron 1",
432
+ "TDUKFB9wj3P5f2iNvkRuaDDeWVkTdUVhs1",
433
+ 0,
434
+ );
435
+
322
436
  static readonly XLM_1 = new Account(
323
437
  Currency.XLM,
324
438
  "Stellar 1",
325
439
  "GCAGRZ7XABYSXV7CPFSFWQIUK6XFXECBPWP2SGMVOB2KFWN7YM4TDGSX",
326
440
  0,
327
441
  );
328
-
329
442
  static readonly XLM_2 = new Account(
330
443
  Currency.XLM,
331
444
  "Stellar 2",
@@ -333,33 +446,31 @@ export class Account {
333
446
  1,
334
447
  );
335
448
 
336
- static readonly BCH_1 = new Account(
337
- Currency.BCH,
338
- "Bitcoin Cash 1",
339
- "qz82kem69vdafku8xf4zpt9p5ytj8umwpujj7wjcv6",
449
+ static readonly XLM_USCD = new Account(
450
+ Currency.XLM_USCD,
451
+ "Stellar 1",
452
+ "GCAGRZ7XABYSXV7CPFSFWQIUK6XFXECBPWP2SGMVOB2KFWN7YM4TDGSX",
340
453
  0,
341
454
  );
342
455
 
343
- static readonly BCH_2 = new Account(
344
- Currency.BCH,
345
- "Bitcoin Cash 2",
346
- "qp2ka732e6h82djvr5ge4vtru0cl3g8lxqtyfmzzl9",
347
- 1,
348
- );
349
-
350
- static readonly ATOM_1 = new Account(
351
- Currency.ATOM,
352
- "Cosmos 1",
353
- "cosmos18sdl4lvyjtvpjkkt5smglux9sf4phdcpaddfae",
456
+ static readonly XRP_1 = new Account(
457
+ Currency.XRP,
458
+ "XRP 1",
459
+ "rhQvt8XfAGn1hVVtMUmdGKBUdnKzi2oimV",
354
460
  0,
355
461
  );
356
-
357
- static readonly ATOM_2 = new Account(
358
- Currency.ATOM,
359
- "Cosmos 2",
360
- "cosmos12d854g9mut943gu5ncyhalapukttkddnvlxaq6",
462
+ static readonly XRP_2 = new Account(
463
+ Currency.XRP,
464
+ "XRP 2",
465
+ "r36cgyrfC1xSQMvjuiSeFJEcBTq31imZS",
361
466
  1,
362
467
  );
468
+ static readonly XRP_3 = new Account(
469
+ Currency.XRP,
470
+ "XRP 3",
471
+ "rn2Z2yShWcvdTSQVo1EqjUpD1sjwBkZALb",
472
+ 2,
473
+ );
363
474
 
364
475
  static readonly XTZ_1 = new Account(
365
476
  Currency.XTZ,
@@ -367,7 +478,6 @@ export class Account {
367
478
  "tz1UD2zz5eFTW2Jy26kBnC3ZkdeazUgeFWST",
368
479
  0,
369
480
  );
370
-
371
481
  static readonly XTZ_2 = new Account(
372
482
  Currency.XTZ,
373
483
  "Tezos 2",
@@ -375,256 +485,147 @@ export class Account {
375
485
  1,
376
486
  );
377
487
 
378
- static readonly POL_1 = new Account(
379
- Currency.POL,
380
- "Polygon 1",
488
+ static readonly sep_ETH_1 = new Account(
489
+ Currency.sepETH,
490
+ "Ethereum Sepolia 1",
381
491
  "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
382
492
  0,
383
- undefined,
384
- undefined,
385
- undefined,
386
- [Nft.ANIME_SHIPS_494, Nft.BISHOP_OF_STORMS, Nft.COMMON_TOWER_MAP],
387
493
  );
388
-
389
- static readonly POL_2 = new Account(
390
- Currency.POL,
391
- "Polygon 2",
494
+ static readonly sep_ETH_2 = new Account(
495
+ Currency.sepETH,
496
+ "Ethereum Sepolia 2",
392
497
  "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
393
498
  1,
394
499
  );
395
500
 
396
- static readonly BSC_1 = new Account(
397
- Currency.BSC,
398
- "Binance Smart Chain 1",
399
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
400
- 0,
401
- );
402
-
403
- static readonly NEAR_1 = new Account(
404
- Currency.NEAR,
405
- "NEAR 1",
406
- "70b2982a31cfcffc773145d2143392612bb83a22926c912e2ce3ec0634f637e2",
407
- 0,
408
- );
409
-
410
- static readonly NEAR_2 = new Account(
411
- Currency.NEAR,
412
- "NEAR 2",
413
- "5effd8bfea3885b6f5f91256663e5af720b18761a96bd6592e210a23f950872c",
414
- 1,
415
- );
501
+ static readonly EMPTY = new Account(Currency.BTC, "Empty", "", 0);
502
+ }
416
503
 
417
- static readonly ETH_USDT_1 = new Account(
418
- Currency.ETH_USDT,
419
- "Ethereum 1",
420
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
504
+ export class TokenAccount extends Account {
505
+ constructor(
506
+ currency: Currency,
507
+ accountName: string,
508
+ address: string,
509
+ index: number,
510
+ tokenType: TokenType,
511
+ parentAccount: Account,
512
+ ensName?: string,
513
+ derivationMode?: string,
514
+ nft?: Nft[],
515
+ ) {
516
+ super(
517
+ currency,
518
+ accountName,
519
+ address,
520
+ index,
521
+ tokenType,
522
+ ensName,
523
+ derivationMode,
524
+ nft,
525
+ parentAccount,
526
+ );
527
+ }
528
+
529
+ static readonly ETH_LIDO = new TokenAccount(
530
+ Currency.ETH_LIDO,
531
+ "LIDO Staked ETH 1",
532
+ Account.ETH_1.address,
421
533
  0,
422
534
  TokenType.ERC20,
535
+ Account.ETH_1,
423
536
  );
424
537
 
425
- static readonly ETH_USDT_2 = new Account(
426
- Currency.ETH_USDT,
427
- "Ethereum 2",
428
- "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
429
- 1,
430
- TokenType.ERC20,
431
- );
432
-
433
- static readonly ETH_USDC_1 = new Account(
538
+ static readonly ETH_USDC_1 = new TokenAccount(
434
539
  Currency.ETH_USDC,
435
- "Ethereum 1",
436
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
540
+ "USD Coin 1",
541
+ Account.ETH_1.address,
437
542
  0,
438
543
  TokenType.ERC20,
544
+ Account.ETH_1,
439
545
  );
440
546
 
441
- static readonly ETH_LIDO = new Account(
442
- Currency.ETH_LIDO,
443
- "Ethereum 1",
444
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
547
+ static readonly ETH_USDT_1 = new TokenAccount(
548
+ Currency.ETH_USDT,
549
+ "Tether USD 1",
550
+ Account.ETH_1.address,
445
551
  0,
446
552
  TokenType.ERC20,
553
+ Account.ETH_1,
447
554
  );
448
555
 
449
- static readonly XLM_USCD = new Account(
450
- Currency.XLM_USCD,
451
- "Stellar 1",
452
- "GCAGRZ7XABYSXV7CPFSFWQIUK6XFXECBPWP2SGMVOB2KFWN7YM4TDGSX",
453
- 0,
454
- );
455
-
456
- static readonly ALGO_USDT_1 = new Account(
457
- Currency.ALGO_USDT,
458
- "Algorand 1",
459
- "HQ6YJWSVG3KVRE56V6UGWMUJLDVNPQUNXJBY7VJ56VMNMGIKVDTC7JEKOU",
460
- 0,
461
- );
462
-
463
- static readonly ALGO_USDT_2 = new Account(
464
- Currency.ALGO_USDT,
465
- "Algorand 2",
466
- "6TFDU3BYQ2FO32SOYQDTHDW5XKGEYH4FCT34ZQRHFPJRVMLEQWOO2OEUU4",
467
- 1,
468
- );
469
-
470
- static readonly ALGO_USDT_3 = new Account(
471
- Currency.ALGO_USDT,
472
- "Algorand 3",
473
- "3ASRTAN6KCZCICTIFQ5N2UBOSSBOZ7WFSOI2CJEJ4ESK532RODQZ7KCSOA",
474
- 2,
475
- );
476
-
477
- static readonly TRX_USDT = new Account(
478
- Currency.TRX_USDT,
479
- "Tron 1",
480
- "TDUKFB9wj3P5f2iNvkRuaDDeWVkTdUVhs1",
481
- 0,
482
- );
483
-
484
- static readonly TRX_BTT = new Account(
485
- Currency.TRX_BTT,
486
- "Tron 1",
487
- "TDUKFB9wj3P5f2iNvkRuaDDeWVkTdUVhs1",
488
- 0,
489
- TokenType.TRC20,
490
- );
491
-
492
- static readonly BSC_BUSD_1 = new Account(
493
- Currency.BSC_BUSD,
494
- "Binance Smart Chain 1",
495
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
496
- 0,
497
- );
498
-
499
- static readonly BSC_BUSD_2 = new Account(
500
- Currency.BSC_BUSD,
501
- "Binance Smart Chain 2",
502
- "0x43047a5023D55a8658Fcb1c1Cea468311AdAA3Ad",
503
- 1,
504
- );
505
-
506
- static readonly BSC_SHIBA = new Account(
507
- Currency.BSC_SHIBA,
508
- "Binance Smart Chain 1",
509
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
510
- 0,
511
- );
512
-
513
- static readonly POL_DAI_1 = new Account(
514
- Currency.POL_DAI,
515
- "Polygon 1",
516
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
517
- 0,
518
- );
519
-
520
- static readonly POL_UNI = new Account(
521
- Currency.POL_UNI,
522
- "Polygon 1",
523
- "0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
524
- 0,
525
- );
526
-
527
- static readonly EMPTY = new Account(Currency.BTC, "Empty", "", 0);
528
-
529
- static readonly ETH_2_LOWER_CASE = new Account(
530
- Currency.ETH,
531
- "Ethereum 2",
532
- "0x43047a5023d55a8658fcb1c1cea468311adaa3ad",
533
- 1,
534
- );
535
-
536
- static readonly MULTIVERS_X_1 = new Account(
537
- Currency.MULTIVERS_X,
538
- "MultiversX 1",
539
- "erd1kp2psapk98pjtxr0n583qlq9zurwdwaqcvgh7l5hyj6hh839p5dq82cuw9",
540
- 0,
541
- );
542
-
543
- static readonly MULTIVERS_X_2 = new Account(
544
- Currency.MULTIVERS_X,
545
- "MultiversX 2",
546
- "erd10nxfga5uavl7pr8k5qptk49h2983erxznj7z3kpw28937z7gmf5sc7shug",
547
- 1,
548
- );
549
-
550
- static readonly OSMO_1 = new Account(
551
- Currency.OSMO,
552
- "Osmosis 1",
553
- "osmo1w7v2v6v8z3r3d8x8h7yjv6w2k3c5w3z7w6v8v8",
554
- 0,
555
- );
556
-
557
- static readonly OSMO_2 = new Account(
558
- Currency.OSMO,
559
- "Osmosis 2",
560
- "osmo12d854g9mut943gu5ncyhalapukttkddnyy4dkg",
556
+ static readonly ETH_USDT_2 = new TokenAccount(
557
+ Currency.ETH_USDT,
558
+ "Tether USD 2",
559
+ Account.ETH_2.address,
561
560
  1,
561
+ TokenType.ERC20,
562
+ Account.ETH_2,
562
563
  );
563
564
 
564
- static readonly CELO_1 = new Account(
565
- Currency.CELO,
566
- "Celo 1",
567
- "0x2268495dE776a536A5a9828b91F04d54d7d2Aa50",
568
- 0,
569
- );
570
-
571
- static readonly SOL_GIGA_1 = new Account(
565
+ static readonly SOL_GIGA_1 = new TokenAccount(
572
566
  Currency.SOL_GIGA,
573
567
  "GIGACHAD 1",
574
- "HxoKQ5eu5MkqaAw7DaGVermrJqeNH8XkVnEKEpFuS9id",
568
+ "4JLL8NzonhGQyfrhvuTy4fGeskB7db4gZ9NxhPWDVa87",
575
569
  0,
576
570
  TokenType.SPL,
577
- undefined,
578
- undefined,
579
- undefined,
580
- "4JLL8NzonhGQyfrhvuTy4fGeskB7db4gZ9NxhPWDVa87",
571
+ Account.SOL_1,
581
572
  );
582
-
583
- static readonly SOL_GIGA_2 = new Account(
573
+ static readonly SOL_GIGA_2 = new TokenAccount(
584
574
  Currency.SOL_GIGA,
585
575
  "GIGACHAD 2",
586
- "6vSQTFcBoPfUKAdo8BQNJqqxU6UcBmd87HQoNSbgTMzH",
576
+ "5izbyRCwfbvqkD8q5mGbbFvWUZ6ZL4C5PTosARVNagiv",
587
577
  1,
588
578
  TokenType.SPL,
589
- undefined,
590
- undefined,
591
- undefined,
592
- "5izbyRCwfbvqkD8q5mGbbFvWUZ6ZL4C5PTosARVNagiv",
579
+ Account.SOL_2,
593
580
  );
594
-
595
- static readonly SOL_GIGA_3 = new Account(
581
+ static readonly SOL_GIGA_3 = new TokenAccount(
596
582
  Currency.SOL_GIGA,
597
583
  "GIGACHAD 3",
598
- "H96UPk6G9ktsVFn1bY9DXZjWFjEoayUddfuXu68S8BES",
584
+ "CbqhB9yEsubMoDXf7AANreJh3szUATQudHn3ajtdrWgm",
599
585
  2,
600
586
  TokenType.SPL,
601
- undefined,
602
- undefined,
603
- undefined,
604
- "CbqhB9yEsubMoDXf7AANreJh3szUATQudHn3ajtdrWgm",
587
+ Account.SOL_3,
605
588
  );
606
589
 
607
- static readonly SOL_WIF_1 = new Account(
590
+ static readonly SOL_WIF_1 = new TokenAccount(
608
591
  Currency.SOL_WIF,
609
592
  "dogwifhat 1",
610
- "HxoKQ5eu5MkqaAw7DaGVermrJqeNH8XkVnEKEpFuS9id",
593
+ "143nLxFLwxNtqEd2LxEJjjjLCsspcuxyt3y2FRuyFXdg",
611
594
  0,
612
595
  TokenType.SPL,
613
- undefined,
614
- undefined,
615
- undefined,
616
- "143nLxFLwxNtqEd2LxEJjjjLCsspcuxyt3y2FRuyFXdg",
596
+ Account.SOL_1,
617
597
  );
618
-
619
- static readonly SOL_WIF_2 = new Account(
598
+ static readonly SOL_WIF_2 = new TokenAccount(
620
599
  Currency.SOL_WIF,
621
600
  "dogwifhat 2",
622
- "6vSQTFcBoPfUKAdo8BQNJqqxU6UcBmd87HQoNSbgTMzH",
601
+ "2but8QCrAqoEHzQt16hwzte41yWrB4dae4WsStwqfX3h",
623
602
  1,
624
603
  TokenType.SPL,
625
- undefined,
626
- undefined,
627
- undefined,
628
- "2but8QCrAqoEHzQt16hwzte41yWrB4dae4WsStwqfX3h",
604
+ Account.SOL_2,
605
+ );
606
+
607
+ static readonly TRX_BTT = new TokenAccount(
608
+ Currency.TRX_BTT,
609
+ "BitTorrent",
610
+ Account.TRX_1.address,
611
+ 0,
612
+ TokenType.TRC20,
613
+ Account.TRX_1,
629
614
  );
630
615
  }
616
+
617
+ export type AccountType = Account | TokenAccount;
618
+
619
+ export const getParentAccountName = (account: AccountType): string => {
620
+ if ("parentAccount" in account && Boolean(account.tokenType)) {
621
+ return (account as TokenAccount).parentAccount!.accountName;
622
+ }
623
+ return account.accountName;
624
+ };
625
+
626
+ export const getAccountAddress = (account: AccountType): string => {
627
+ if ("parentAccount" in account && Boolean(account.tokenType)) {
628
+ return (account as TokenAccount).parentAccount!.address;
629
+ }
630
+ return account.address;
631
+ };