@ledgerhq/live-common 34.55.0-nightly.20251223024125 → 34.55.0-nightly.20251225024217

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.
Files changed (169) hide show
  1. package/lib/e2e/enum/Account.d.ts +15 -16
  2. package/lib/e2e/enum/Account.d.ts.map +1 -1
  3. package/lib/e2e/enum/Account.js +93 -100
  4. package/lib/e2e/enum/Account.js.map +1 -1
  5. package/lib/e2e/enum/Addresses.d.ts +12 -0
  6. package/lib/e2e/enum/Addresses.d.ts.map +1 -0
  7. package/lib/e2e/enum/Addresses.js +16 -0
  8. package/lib/e2e/enum/Addresses.js.map +1 -0
  9. package/lib/e2e/enum/AppInfos.d.ts +1 -0
  10. package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
  11. package/lib/e2e/enum/AppInfos.js +1 -0
  12. package/lib/e2e/enum/AppInfos.js.map +1 -1
  13. package/lib/e2e/enum/Currency.d.ts +1 -0
  14. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  15. package/lib/e2e/enum/Currency.js +1 -0
  16. package/lib/e2e/enum/Currency.js.map +1 -1
  17. package/lib/e2e/families/algorand.d.ts.map +1 -1
  18. package/lib/e2e/families/algorand.js +3 -0
  19. package/lib/e2e/families/algorand.js.map +1 -1
  20. package/lib/e2e/families/bitcoin.d.ts.map +1 -1
  21. package/lib/e2e/families/bitcoin.js +6 -0
  22. package/lib/e2e/families/bitcoin.js.map +1 -1
  23. package/lib/e2e/families/cardano.d.ts.map +1 -1
  24. package/lib/e2e/families/cardano.js +3 -0
  25. package/lib/e2e/families/cardano.js.map +1 -1
  26. package/lib/e2e/families/cosmos.d.ts.map +1 -1
  27. package/lib/e2e/families/cosmos.js +3 -0
  28. package/lib/e2e/families/cosmos.js.map +1 -1
  29. package/lib/e2e/families/evm.d.ts.map +1 -1
  30. package/lib/e2e/families/evm.js +3 -0
  31. package/lib/e2e/families/evm.js.map +1 -1
  32. package/lib/e2e/families/polkadot.d.ts.map +1 -1
  33. package/lib/e2e/families/polkadot.js +3 -0
  34. package/lib/e2e/families/polkadot.js.map +1 -1
  35. package/lib/e2e/families/solana.d.ts.map +1 -1
  36. package/lib/e2e/families/solana.js +3 -0
  37. package/lib/e2e/families/solana.js.map +1 -1
  38. package/lib/e2e/families/stellar.d.ts.map +1 -1
  39. package/lib/e2e/families/stellar.js +3 -0
  40. package/lib/e2e/families/stellar.js.map +1 -1
  41. package/lib/e2e/families/tron.d.ts.map +1 -1
  42. package/lib/e2e/families/tron.js +3 -0
  43. package/lib/e2e/families/tron.js.map +1 -1
  44. package/lib/e2e/families/xrp.d.ts.map +1 -1
  45. package/lib/e2e/families/xrp.js +3 -0
  46. package/lib/e2e/families/xrp.js.map +1 -1
  47. package/lib/e2e/index.d.ts +9 -0
  48. package/lib/e2e/index.d.ts.map +1 -1
  49. package/lib/e2e/models/Transaction.d.ts +1 -0
  50. package/lib/e2e/models/Transaction.d.ts.map +1 -1
  51. package/lib/e2e/models/Transaction.js +1 -0
  52. package/lib/e2e/models/Transaction.js.map +1 -1
  53. package/lib/e2e/speculos.d.ts.map +1 -1
  54. package/lib/e2e/speculos.js +10 -3
  55. package/lib/e2e/speculos.js.map +1 -1
  56. package/lib/e2e/swap.d.ts.map +1 -1
  57. package/lib/e2e/swap.js +5 -1
  58. package/lib/e2e/swap.js.map +1 -1
  59. package/lib/families/cosmos/datasets/cosmos.d.ts.map +1 -1
  60. package/lib/families/cosmos/datasets/cosmos.js +66 -18
  61. package/lib/families/cosmos/datasets/cosmos.js.map +1 -1
  62. package/lib/families/filecoin/common.d.ts +0 -5
  63. package/lib/families/filecoin/common.d.ts.map +1 -1
  64. package/lib/families/filecoin/common.js +1 -8
  65. package/lib/families/filecoin/common.js.map +1 -1
  66. package/lib/families/filecoin/setup.d.ts.map +1 -1
  67. package/lib/families/filecoin/setup.js +5 -17
  68. package/lib/families/filecoin/setup.js.map +1 -1
  69. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  70. package/lib/featureFlags/defaultFeatures.js +10 -0
  71. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  72. package/lib/featureFlags/useFeature.d.ts +1 -1
  73. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  74. package/lib-es/e2e/enum/Account.d.ts +15 -16
  75. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  76. package/lib-es/e2e/enum/Account.js +92 -98
  77. package/lib-es/e2e/enum/Account.js.map +1 -1
  78. package/lib-es/e2e/enum/Addresses.d.ts +12 -0
  79. package/lib-es/e2e/enum/Addresses.d.ts.map +1 -0
  80. package/lib-es/e2e/enum/Addresses.js +13 -0
  81. package/lib-es/e2e/enum/Addresses.js.map +1 -0
  82. package/lib-es/e2e/enum/AppInfos.d.ts +1 -0
  83. package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
  84. package/lib-es/e2e/enum/AppInfos.js +1 -0
  85. package/lib-es/e2e/enum/AppInfos.js.map +1 -1
  86. package/lib-es/e2e/enum/Currency.d.ts +1 -0
  87. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  88. package/lib-es/e2e/enum/Currency.js +1 -0
  89. package/lib-es/e2e/enum/Currency.js.map +1 -1
  90. package/lib-es/e2e/families/algorand.d.ts.map +1 -1
  91. package/lib-es/e2e/families/algorand.js +3 -0
  92. package/lib-es/e2e/families/algorand.js.map +1 -1
  93. package/lib-es/e2e/families/bitcoin.d.ts.map +1 -1
  94. package/lib-es/e2e/families/bitcoin.js +6 -0
  95. package/lib-es/e2e/families/bitcoin.js.map +1 -1
  96. package/lib-es/e2e/families/cardano.d.ts.map +1 -1
  97. package/lib-es/e2e/families/cardano.js +3 -0
  98. package/lib-es/e2e/families/cardano.js.map +1 -1
  99. package/lib-es/e2e/families/cosmos.d.ts.map +1 -1
  100. package/lib-es/e2e/families/cosmos.js +3 -0
  101. package/lib-es/e2e/families/cosmos.js.map +1 -1
  102. package/lib-es/e2e/families/evm.d.ts.map +1 -1
  103. package/lib-es/e2e/families/evm.js +3 -0
  104. package/lib-es/e2e/families/evm.js.map +1 -1
  105. package/lib-es/e2e/families/polkadot.d.ts.map +1 -1
  106. package/lib-es/e2e/families/polkadot.js +3 -0
  107. package/lib-es/e2e/families/polkadot.js.map +1 -1
  108. package/lib-es/e2e/families/solana.d.ts.map +1 -1
  109. package/lib-es/e2e/families/solana.js +3 -0
  110. package/lib-es/e2e/families/solana.js.map +1 -1
  111. package/lib-es/e2e/families/stellar.d.ts.map +1 -1
  112. package/lib-es/e2e/families/stellar.js +3 -0
  113. package/lib-es/e2e/families/stellar.js.map +1 -1
  114. package/lib-es/e2e/families/tron.d.ts.map +1 -1
  115. package/lib-es/e2e/families/tron.js +3 -0
  116. package/lib-es/e2e/families/tron.js.map +1 -1
  117. package/lib-es/e2e/families/xrp.d.ts.map +1 -1
  118. package/lib-es/e2e/families/xrp.js +3 -0
  119. package/lib-es/e2e/families/xrp.js.map +1 -1
  120. package/lib-es/e2e/index.d.ts +9 -0
  121. package/lib-es/e2e/index.d.ts.map +1 -1
  122. package/lib-es/e2e/models/Transaction.d.ts +1 -0
  123. package/lib-es/e2e/models/Transaction.d.ts.map +1 -1
  124. package/lib-es/e2e/models/Transaction.js +1 -0
  125. package/lib-es/e2e/models/Transaction.js.map +1 -1
  126. package/lib-es/e2e/speculos.d.ts.map +1 -1
  127. package/lib-es/e2e/speculos.js +10 -3
  128. package/lib-es/e2e/speculos.js.map +1 -1
  129. package/lib-es/e2e/swap.d.ts.map +1 -1
  130. package/lib-es/e2e/swap.js +5 -1
  131. package/lib-es/e2e/swap.js.map +1 -1
  132. package/lib-es/families/cosmos/datasets/cosmos.d.ts.map +1 -1
  133. package/lib-es/families/cosmos/datasets/cosmos.js +67 -19
  134. package/lib-es/families/cosmos/datasets/cosmos.js.map +1 -1
  135. package/lib-es/families/filecoin/common.d.ts +0 -5
  136. package/lib-es/families/filecoin/common.d.ts.map +1 -1
  137. package/lib-es/families/filecoin/common.js +0 -5
  138. package/lib-es/families/filecoin/common.js.map +1 -1
  139. package/lib-es/families/filecoin/setup.d.ts.map +1 -1
  140. package/lib-es/families/filecoin/setup.js +5 -17
  141. package/lib-es/families/filecoin/setup.js.map +1 -1
  142. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  143. package/lib-es/featureFlags/defaultFeatures.js +10 -0
  144. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  145. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  146. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  147. package/package.json +75 -75
  148. package/src/e2e/enum/Account.ts +152 -396
  149. package/src/e2e/enum/Addresses.ts +11 -0
  150. package/src/e2e/enum/AppInfos.ts +2 -0
  151. package/src/e2e/enum/Currency.ts +2 -0
  152. package/src/e2e/families/algorand.ts +3 -0
  153. package/src/e2e/families/bitcoin.ts +6 -0
  154. package/src/e2e/families/cardano.ts +3 -0
  155. package/src/e2e/families/cosmos.ts +3 -0
  156. package/src/e2e/families/evm.ts +3 -0
  157. package/src/e2e/families/polkadot.ts +3 -0
  158. package/src/e2e/families/solana.ts +3 -0
  159. package/src/e2e/families/stellar.ts +3 -0
  160. package/src/e2e/families/tron.ts +3 -0
  161. package/src/e2e/families/xrp.ts +3 -1
  162. package/src/e2e/models/Transaction.ts +2 -0
  163. package/src/e2e/speculos.ts +10 -3
  164. package/src/e2e/swap.ts +7 -1
  165. package/src/families/cosmos/datasets/cosmos.ts +71 -18
  166. package/src/families/filecoin/common.ts +0 -6
  167. package/src/families/filecoin/setup.ts +6 -27
  168. package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +3 -3
  169. package/src/featureFlags/defaultFeatures.ts +10 -1
@@ -2,118 +2,42 @@ import { Currency } from "./Currency";
2
2
  import { TokenType } from "./TokenType";
3
3
 
4
4
  export class Account {
5
+ public address?: string;
6
+
5
7
  constructor(
6
8
  public readonly currency: Currency,
7
9
  public readonly accountName: string,
8
- public readonly address: string,
9
10
  public readonly index: number,
11
+ public readonly accountPath: string,
10
12
  public readonly tokenType?: TokenType,
11
13
  public readonly ensName?: string,
12
14
  public readonly derivationMode?: string,
13
15
  public readonly parentAccount?: Account,
14
16
  ) {}
15
17
 
16
- static readonly ADA_1 = new Account(
17
- Currency.ADA,
18
- "Cardano 1",
19
- "addr1qxdnl4e047gmhhfgklkm7flsvjg7zs3z8kuzqsr85y6a3zsqucmu0k5rsc07x578az7h9ajg5djag7qtnhez3euuhqmqz2ntz7",
20
- 0,
21
- );
22
- static readonly ADA_2 = new Account(
23
- Currency.ADA,
24
- "Cardano 2",
25
- "addr1qy23k66nq9550ra84f4glg3djyk2ap0ceuves36r7njresv5l3u8yaxv8p8fjyazgd3nqr6fnsuwv05cdaxjzwf5er4s89sns9",
26
- 1,
27
- );
18
+ static readonly ADA_1 = new Account(Currency.ADA, "Cardano 1", 0, "1852'/1815'/0'/0/3");
19
+ static readonly ADA_2 = new Account(Currency.ADA, "Cardano 2", 1, "1852'/1815'/1'/0/2");
28
20
 
29
- static readonly ALGO_1 = new Account(
30
- Currency.ALGO,
31
- "Algorand 1",
32
- "FKB5Q57PE4RCZ2FC3QNLKXYWEYYYLNSHJDBIBCMGLJOMU22IGMEFVV2SWM",
33
- 0,
34
- );
35
- static readonly ALGO_2 = new Account(
36
- Currency.ALGO,
37
- "Algorand 2",
38
- "ZOAMLQDG5BRPVQ4T32DDRRYO4XZAZIAIKDO62POUWA6PMXRW7QFRIWYF3I",
39
- 1,
40
- );
41
- static readonly ALGO_USDT_1 = new Account(
42
- Currency.ALGO_USDT,
43
- "Algorand 1",
44
- "FKB5Q57PE4RCZ2FC3QNLKXYWEYYYLNSHJDBIBCMGLJOMU22IGMEFVV2SWM",
45
- 0,
46
- );
47
- static readonly ALGO_USDT_2 = new Account(
48
- Currency.ALGO_USDT,
49
- "Algorand 2",
50
- "ZOAMLQDG5BRPVQ4T32DDRRYO4XZAZIAIKDO62POUWA6PMXRW7QFRIWYF3I",
51
- 1,
52
- );
21
+ static readonly ALGO_1 = new Account(Currency.ALGO, "Algorand 1", 0, "44'/283'/0'/0/0");
22
+ static readonly ALGO_2 = new Account(Currency.ALGO, "Algorand 2", 1, "44'/283'/1'/0/0");
53
23
 
54
- static readonly APTOS_1 = new Account(
55
- Currency.APT,
56
- "Aptos 1",
57
- "0x612c5d5aecc5595bd1c84d709d1bafbfa9567d75462a626e5bcd75a33b0d102a",
58
- 0,
59
- );
60
- static readonly APTOS_2 = new Account(
61
- Currency.APT,
62
- "Aptos 2",
63
- "0x5c116fcf3c1559365be3a1221fb205a88281fdb6c2fec69e6b14d49f7794ac30",
64
- 1,
65
- );
24
+ static readonly APTOS_1 = new Account(Currency.APT, "Aptos 1", 0, "44'/637'/0'/0'/0'");
25
+ static readonly APTOS_2 = new Account(Currency.APT, "Aptos 2", 1, "44'/637'/1'/0'/0'");
66
26
 
67
- static readonly ATOM_1 = new Account(
68
- Currency.ATOM,
69
- "Cosmos 1",
70
- "cosmos1hylczrsa02p0gvqk4av86aqqxy32rr5s3xlhgn",
71
- 0,
72
- );
73
- static readonly ATOM_2 = new Account(
74
- Currency.ATOM,
75
- "Cosmos 2",
76
- "cosmos1rjedvsnrjppjdrrwmwyep6zj2vle5praqdaj7c",
77
- 1,
78
- );
27
+ static readonly ATOM_1 = new Account(Currency.ATOM, "Cosmos 1", 0, "44'/118'/0'/0/0");
28
+ static readonly ATOM_2 = new Account(Currency.ATOM, "Cosmos 2", 1, "44'/118'/1'/0/0");
79
29
 
80
- static readonly BCH_1 = new Account(
81
- Currency.BCH,
82
- "Bitcoin Cash 1",
83
- "qza3gqww8lr36a7x7hkejr22m759meaeygg3sek82u",
84
- 0,
85
- );
86
- static readonly BCH_2 = new Account(
87
- Currency.BCH,
88
- "Bitcoin Cash 2",
89
- "qpxyk42pn3pg96229ajjvk2zxv3xva50sgc2nlvfvp",
90
- 1,
91
- );
30
+ static readonly BCH_1 = new Account(Currency.BCH, "Bitcoin Cash 1", 0, "44'/145'/0'/0/2");
31
+ static readonly BCH_2 = new Account(Currency.BCH, "Bitcoin Cash 2", 1, "44'/145'/1'/0/2");
92
32
 
93
- static readonly BSC_1 = new Account(
94
- Currency.BSC,
95
- "BNB Chain 1",
96
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
97
- 0,
98
- );
99
- static readonly BSC_BUSD_1 = new Account(
100
- Currency.BSC_BUSD,
101
- "BNB Chain 1",
102
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
103
- 0,
104
- );
105
- static readonly BSC_BUSD_2 = new Account(
106
- Currency.BSC_BUSD,
107
- "BNB Chain 2",
108
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
109
- 1,
110
- );
33
+ static readonly BSC_1 = new Account(Currency.BSC, "BNB Chain 1", 0, "44'/60'/0'/0/0");
34
+ static readonly BSC_2 = new Account(Currency.BSC, "BNB Chain 2", 1, "44'/60'/1'/0/0");
111
35
 
112
36
  static readonly BTC_LEGACY_1 = new Account(
113
37
  Currency.BTC,
114
38
  "Bitcoin 1",
115
- "12HUxFoW2TJwcJWeD4PDKKk9qubAhQUe66",
116
39
  0,
40
+ "44'/0'/0'/0/1",
117
41
  undefined,
118
42
  undefined,
119
43
  "",
@@ -121,9 +45,8 @@ export class Account {
121
45
  static readonly BTC_LEGACY_2 = new Account(
122
46
  Currency.BTC,
123
47
  "Bitcoin 2",
124
- "19CbX6qTL3hfMKNdUnuU6o7PGxRWQ93RkK",
125
48
  1,
126
- undefined,
49
+ "44'/0'/1'/0/0",
127
50
  undefined,
128
51
  "",
129
52
  );
@@ -131,8 +54,8 @@ export class Account {
131
54
  static readonly BTC_NATIVE_SEGWIT_1 = new Account(
132
55
  Currency.BTC,
133
56
  "Bitcoin 1",
134
- "bc1qextyk3yksxl5r4npdv83zwjnyav2upf04dccnj",
135
57
  0,
58
+ "84'/0'/0'/0/3",
136
59
  undefined,
137
60
  undefined,
138
61
  "native_segwit",
@@ -140,8 +63,8 @@ export class Account {
140
63
  static readonly BTC_NATIVE_SEGWIT_2 = new Account(
141
64
  Currency.BTC,
142
65
  "Bitcoin 2",
143
- "bc1qwwf2t8qr7ewnhlg50wrmqz7y4y5ydlge3rp7r4",
144
66
  1,
67
+ "84'/0'/1'/0/1",
145
68
  undefined,
146
69
  undefined,
147
70
  "native_segwit",
@@ -150,8 +73,8 @@ export class Account {
150
73
  static readonly BTC_SEGWIT_1 = new Account(
151
74
  Currency.BTC,
152
75
  "Bitcoin 1",
153
- "36Do1VPXvGwU6b5MEQpzpGvhgSQhvogBSD",
154
76
  0,
77
+ "49'/0'/0'/0/1",
155
78
  undefined,
156
79
  undefined,
157
80
  "segwit",
@@ -159,8 +82,8 @@ export class Account {
159
82
  static readonly BTC_SEGWIT_2 = new Account(
160
83
  Currency.BTC,
161
84
  "Bitcoin 2",
162
- "3HrXpmVwqz8Ka1dSxiecEKuovZuK2k35ig",
163
85
  1,
86
+ "49'/0'/1'/0/0",
164
87
  undefined,
165
88
  undefined,
166
89
  "segwit",
@@ -169,8 +92,8 @@ export class Account {
169
92
  static readonly BTC_TAPROOT_1 = new Account(
170
93
  Currency.BTC,
171
94
  "Bitcoin 1",
172
- "bc1pe388px6lhfh3lcqupx64s05l7hlvqx2tfwp3z2ykrrw8q66dprxqhcew4r",
173
95
  0,
96
+ "86'/0'/0'/0/1",
174
97
  undefined,
175
98
  undefined,
176
99
  "taproot",
@@ -178,373 +101,145 @@ export class Account {
178
101
  static readonly BTC_TAPROOT_2 = new Account(
179
102
  Currency.BTC,
180
103
  "Bitcoin 2",
181
- "bc1p32rssu2xyavq7rdk795dsx3vm989cjeu9zddxfktlvt34khc79rqt3v3ny",
182
104
  1,
105
+ "86'/0'/1'/0/0",
183
106
  undefined,
184
107
  undefined,
185
108
  "taproot",
186
109
  );
187
110
 
188
- static readonly CELO_1 = new Account(
189
- Currency.CELO,
190
- "Celo 1",
191
- "0xD0871895dd6C620d245900Bbf010f652D1414e39",
192
- 0,
193
- );
111
+ static readonly CELO_1 = new Account(Currency.CELO, "Celo 1", 0, "44'/52752'/0'/0/0");
194
112
 
195
- static readonly DOGE_1 = new Account(
196
- Currency.DOGE,
197
- "Dogecoin 1",
198
- "D82p879ahWUAqrRv9UyLCsoZ2Ze8zMT8uy",
199
- 0,
200
- );
201
- static readonly DOGE_2 = new Account(
202
- Currency.DOGE,
203
- "Dogecoin 2",
204
- "DHioUtasmdRWSdwUrV7BXjpGQDs84edoDM",
205
- 1,
206
- );
113
+ static readonly DOGE_1 = new Account(Currency.DOGE, "Dogecoin 1", 0, "44'/3'/0'/0/1");
114
+ static readonly DOGE_2 = new Account(Currency.DOGE, "Dogecoin 2", 1, "44'/3'/1'/0/1");
207
115
 
208
- static readonly DOT_1 = new Account(
209
- Currency.DOT,
210
- "Polkadot 1",
211
- "15Yjixi2X8MkPxk3aoZRbR6iNgMUeLZhMQBA829T3W5LJU3Y",
212
- 0,
213
- );
214
- static readonly DOT_2 = new Account(
215
- Currency.DOT,
216
- "Polkadot 2",
217
- "1JB2ZpkTXkp1KRZ68bLZsxvNoSaYW36pDcwf9xpT4zgaPg5",
218
- 1,
219
- );
220
- static readonly DOT_3 = new Account(
221
- Currency.DOT,
222
- "Polkadot 3",
223
- "14Z1hD6qtHDhFKCqgJS6muCpbVtvQHBrS7hcjAE1ApYxqmUJ",
224
- 2,
225
- );
116
+ static readonly DOT_1 = new Account(Currency.DOT, "Polkadot 1", 0, "44'/354'/0'/0'/0'");
117
+ static readonly DOT_2 = new Account(Currency.DOT, "Polkadot 2", 1, "44'/354'/1'/0'/0'");
118
+ static readonly DOT_3 = new Account(Currency.DOT, "Polkadot 3", 2, "44'/354'/2'/0'/0'");
226
119
 
227
120
  static readonly ETH_1 = new Account(
228
121
  Currency.ETH,
229
122
  "Ethereum 1",
230
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
231
123
  0,
124
+ "44'/60'/0'/0/0",
232
125
  undefined,
233
126
  undefined,
234
127
  undefined,
235
128
  );
236
129
  // don't use this account as a recipient, it's balance
237
130
  // should stay close to null to allow for error message testing
238
- static readonly ETH_2 = new Account(
239
- Currency.ETH,
240
- "Ethereum 2",
241
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
242
- 1,
243
- undefined,
244
- );
131
+ static readonly ETH_2 = new Account(Currency.ETH, "Ethereum 2", 1, "44'/60'/1'/0/0", undefined);
245
132
  static readonly ETH_2_WITH_ENS = new Account(
246
133
  Currency.ETH,
247
134
  "Ethereum 2",
248
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
249
135
  1,
136
+ "44'/60'/1'/0/0",
250
137
  undefined,
251
138
  "speculos.eth",
252
139
  );
253
- static readonly ETH_2_LOWER_CASE = new Account(
254
- Currency.ETH,
255
- "Ethereum 2",
256
- "0xa1baa625c5e6a9304cb7acd86d2fee6b710ec3eb",
257
- 1,
258
- );
259
- static readonly ETH_3 = new Account(
260
- Currency.ETH,
261
- "Ethereum 3",
262
- "0x5bB0dB1627e6ab18c6BDA6530Ea78d81AAc13B56",
263
- 3,
264
- );
265
- static readonly SANCTIONED_ETH = new Account(
266
- Currency.ETH,
267
- "Sanctioned Ethereum",
268
- "0x04DBA1194ee10112fE6C3207C0687DEf0e78baCf",
269
- 0,
270
- );
140
+ static readonly ETH_2_LOWER_CASE = new Account(Currency.ETH, "Ethereum 2", 1, "44'/60'/1'/0/0");
141
+ static readonly ETH_3 = new Account(Currency.ETH, "Ethereum 3", 3, "44'/60'/2'/0/0");
142
+ static readonly SANCTIONED_ETH = new Account(Currency.ETH, "Sanctioned Ethereum", 0, "");
271
143
 
272
- static readonly HEDERA_1 = new Account(Currency.HBAR, "Hedera 1", "0.0.9374930", 0);
273
-
274
- static readonly INJ_1 = new Account(
275
- Currency.INJ,
276
- "Injective 1",
277
- "inj1f03w9wy8923f34k3ywujzx6nus0kz9txrfld28",
278
- 0,
279
- );
144
+ static readonly HEDERA_1 = new Account(Currency.HBAR, "Hedera 1", 0, "44/3030");
280
145
 
281
- static readonly KASPA_1 = new Account(
282
- Currency.KAS,
283
- "KASPA 1",
284
- "kaspa:qpck869lulhmmkvnh40ety6ra2jhaq44wkfqaxnzmxp6gkgy0axh5zv726p3g",
285
- 0,
286
- );
146
+ static readonly INJ_1 = new Account(Currency.INJ, "Injective 1", 0, "44'/60'/0'/0/0");
287
147
 
288
- static readonly KASPA_2 = new Account(
289
- Currency.KAS,
290
- "KASPA 2",
291
- "kaspa:qzyl5q3ektgp8j576ztwvqvq7pyrx8wscwft42ykchxrufwkhmp7ky2uf7ln0",
292
- 1,
293
- );
148
+ static readonly KASPA_1 = new Account(Currency.KAS, "KASPA 1", 0, "44'/111111'/0'/0/2");
149
+ static readonly KASPA_2 = new Account(Currency.KAS, "KASPA 2", 1, "44'/111111'/1'/0/1");
294
150
 
295
- static readonly LTC_1 = new Account(
296
- Currency.LTC,
297
- "Litecoin 1",
298
- "ltc1q0lck8z8q3eaknz4gkys0uhjwfr26t439n8dtmy",
299
- 0,
300
- );
151
+ static readonly LTC_1 = new Account(Currency.LTC, "Litecoin 1", 0, "84'/2'/0'/0/0");
301
152
 
302
153
  static readonly MULTIVERS_X_1 = new Account(
303
154
  Currency.MULTIVERS_X,
304
155
  "MultiversX 1",
305
- "erd12t2kcaf6txpdj3ga5us2c4d954f7tx32z4nk0yzngg32gxac9lkstgx76z",
306
156
  0,
157
+ "44'/508'/0'/0/0",
307
158
  );
308
159
  static readonly MULTIVERS_X_2 = new Account(
309
160
  Currency.MULTIVERS_X,
310
161
  "MultiversX 2",
311
- "erd1athpxzvlfnu6r8x7lq60nem39ps0pv6gl0ymjl5x79d35xvmejaqq24k7g",
312
162
  1,
163
+ "44'/508'/1'/0/0",
313
164
  );
314
165
 
315
- static readonly NEAR_1 = new Account(
316
- Currency.NEAR,
317
- "NEAR 1",
318
- "a9406880694fe86a4c92e09e1b7061761b0ac61e60c7986b67c75dceeffa0ce4",
319
- 0,
320
- );
321
- static readonly NEAR_2 = new Account(
322
- Currency.NEAR,
323
- "NEAR 2",
324
- "6964d0caf478a4c3acd4e35d7e6a1f6a7b6837ab4c4dc87f9ab780b4cfe0897c",
325
- 1,
326
- );
166
+ static readonly NEAR_1 = new Account(Currency.NEAR, "NEAR 1", 0, "44'/397'/0'/0'/0'");
167
+ static readonly NEAR_2 = new Account(Currency.NEAR, "NEAR 2", 1, "44'/397'/0'/0'/1'");
327
168
 
328
- static readonly OSMO_1 = new Account(
329
- Currency.OSMO,
330
- "Osmosis 1",
331
- "osmo1hylczrsa02p0gvqk4av86aqqxy32rr5seav87p",
332
- 0,
333
- );
334
- static readonly OSMO_2 = new Account(
335
- Currency.OSMO,
336
- "Osmosis 2",
337
- "osmo1rjedvsnrjppjdrrwmwyep6zj2vle5pragkwzg2",
338
- 1,
339
- );
169
+ static readonly OSMO_1 = new Account(Currency.OSMO, "Osmosis 1", 0, "44'/118'/0'/0/0");
170
+ static readonly OSMO_2 = new Account(Currency.OSMO, "Osmosis 2", 1, "44'/118'/1'/0/0");
340
171
 
341
172
  static readonly POL_1 = new Account(
342
173
  Currency.POL,
343
174
  "Polygon 1",
344
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
345
175
  0,
176
+ "44'/60'/0'/0/0",
346
177
  undefined,
347
178
  undefined,
348
179
  undefined,
349
180
  );
350
- static readonly POL_2 = new Account(
351
- Currency.POL,
352
- "Polygon 2",
353
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
354
- 1,
355
- );
356
-
357
- static readonly POL_DAI_1 = new Account(
358
- Currency.POL_DAI,
359
- "Polygon 1",
360
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
361
- 0,
362
- );
363
-
364
- static readonly POL_UNI = new Account(
365
- Currency.POL_UNI,
366
- "Polygon 1",
367
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
368
- 0,
369
- );
370
-
371
- static readonly SOL_1 = new Account(
372
- Currency.SOL,
373
- "Solana 1",
374
- "9MQyG8qo6i616yApRoRVMXYerGV4swwtd2bDETC3RCWB",
375
- 0,
376
- );
377
- static readonly SOL_2 = new Account(
378
- Currency.SOL,
379
- "Solana 2",
380
- "8PirQq55nNZuVsTGK3i6RPAeuCdXgAUut3QRWhcF8ykb",
381
- 1,
382
- );
383
- static readonly SOL_3 = new Account(
384
- Currency.SOL,
385
- "Solana 3",
386
- "JC2dR4QRMt68r2h7Sjs5wshx1RdmDVrSbdL2jWBuVf2t",
387
- 2,
388
- );
389
- static readonly SOL_4 = new Account(
390
- Currency.SOL,
391
- "Solana 4",
392
- "FKFMRmTEJ6wHMWviuDocuhsZoTi3DnypoPQXBUjCCTXM",
393
- 3,
394
- );
181
+ static readonly POL_2 = new Account(Currency.POL, "Polygon 2", 1, "44'/60'/1'/0/0");
395
182
 
396
- static readonly tBTC_1 = new Account(
397
- Currency.tBTC,
398
- "Bitcoin 1",
399
- "tb1q635mdxwvgkt3msx3k24r9cxckuvyzruumv8qcx",
400
- 0,
401
- );
402
- static readonly tBTC_2 = new Account(
403
- Currency.tBTC,
404
- "Bitcoin 2",
405
- "tb1qzweyhdt8jg7vl47p34vwwpgcqtuwwdewv3t5a3",
406
- 1,
407
- );
183
+ static readonly SOL_1 = new Account(Currency.SOL, "Solana 1", 0, "44'/501'/0'");
184
+ static readonly SOL_2 = new Account(Currency.SOL, "Solana 2", 1, "44'/501'/1'");
185
+ static readonly SOL_3 = new Account(Currency.SOL, "Solana 3", 2, "44'/501'/2'");
186
+ static readonly SOL_4 = new Account(Currency.SOL, "Solana 4", 3, "44'/501'/3'");
408
187
 
409
- static readonly tETH_1 = new Account(
410
- Currency.tETH,
411
- "Ethereum Holesky 1",
412
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
413
- 0,
414
- );
415
- static readonly tETH_2 = new Account(
416
- Currency.tETH,
417
- "Ethereum Holesky 2",
418
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
419
- 1,
420
- );
188
+ static readonly TRX_1 = new Account(Currency.TRX, "Tron 1", 0, "44'/195'/0'/0/0");
189
+ static readonly TRX_2 = new Account(Currency.TRX, "Tron 2", 1, "44'/195'/1'/0/0");
190
+ static readonly TRX_3 = new Account(Currency.TRX, "Tron 3", 2, "44'/195'/2'/0/0");
421
191
 
422
- static readonly TRX_1 = new Account(
423
- Currency.TRX,
424
- "Tron 1",
425
- "TWVRVSRbt5UxeoL3Jb51bxCFPTYmRUVE8g",
426
- 0,
427
- );
428
- static readonly TRX_2 = new Account(
429
- Currency.TRX,
430
- "Tron 2",
431
- "TAkZqkk6Ns4ErfTpeuMQkpbtPhD9GTPPH6",
432
- 1,
433
- );
434
- static readonly TRX_3 = new Account(
435
- Currency.TRX,
436
- "Tron 3",
437
- "TVbT4GwxriGnSzyiPsCz7MwjPNQTMmP5xT",
438
- 2,
439
- );
192
+ static readonly XLM_1 = new Account(Currency.XLM, "Stellar 1", 0, "44'/148'/0'");
193
+ static readonly XLM_2 = new Account(Currency.XLM, "Stellar 2", 1, "44'/148'/1'");
440
194
 
441
- static readonly TRX_USDT = new Account(
442
- Currency.TRX_USDT,
443
- "Tron 1",
444
- "TWVRVSRbt5UxeoL3Jb51bxCFPTYmRUVE8g",
445
- 0,
446
- );
447
-
448
- static readonly XLM_1 = new Account(
449
- Currency.XLM,
450
- "Stellar 1",
451
- "GDHHTG3TIVJUCR6WHJEY7CWZPCD7I2CSQHCXC6S7MVH2EN626VDZKNEG",
452
- 0,
453
- );
454
- static readonly XLM_2 = new Account(
455
- Currency.XLM,
456
- "Stellar 2",
457
- "GAPOJOLZKAFJBR7ADHLUOM4OHZMOVJ7DOEDUPC54ZT2VR4BSBRJAH37N",
458
- 1,
459
- );
460
-
461
- static readonly XLM_USCD = new Account(
462
- Currency.XLM_USCD,
463
- "Stellar 1",
464
- "GDHHTG3TIVJUCR6WHJEY7CWZPCD7I2CSQHCXC6S7MVH2EN626VDZKNEG",
465
- 0,
466
- );
195
+ static readonly XRP_1 = new Account(Currency.XRP, "XRP 1", 0, "44'/144'/0'/0/0");
196
+ static readonly XRP_2 = new Account(Currency.XRP, "XRP 2", 1, "44'/144'/1'/0/0");
197
+ static readonly XRP_3 = new Account(Currency.XRP, "XRP 3", 2, "44'/144'/2'/0/0");
467
198
 
468
- static readonly XRP_1 = new Account(
469
- Currency.XRP,
470
- "XRP 1",
471
- "rpaqckrNjvD5ffCQKje2biN79aQeAkAgrR",
472
- 0,
473
- );
474
- static readonly XRP_2 = new Account(
475
- Currency.XRP,
476
- "XRP 2",
477
- "rBqFHJSxZLkxpEw7La1CiQsTwYTZja69s4",
478
- 1,
479
- );
480
- static readonly XRP_3 = new Account(
481
- Currency.XRP,
482
- "XRP 3",
483
- "rHSwNdtyYfRcXZRykb4LWaNdRMAP3vNNdA",
484
- 2,
485
- );
486
-
487
- static readonly XTZ_1 = new Account(
488
- Currency.XTZ,
489
- "Tezos 1",
490
- "tz1a54WyFgiNJd7ma3BHXwWzdforJpPAHf92",
491
- 0,
492
- );
493
- static readonly XTZ_2 = new Account(
494
- Currency.XTZ,
495
- "Tezos 2",
496
- "tz1auNTNUwHL9YeeszmKnUen7cgzCJ6aPV32",
497
- 1,
498
- );
199
+ static readonly XTZ_1 = new Account(Currency.XTZ, "Tezos 1", 0, "44'/1729'/0'/0'");
200
+ static readonly XTZ_2 = new Account(Currency.XTZ, "Tezos 2", 1, "44'/1729'/1'/0'");
499
201
 
500
202
  static readonly sep_ETH_1 = new Account(
501
203
  Currency.sepETH,
502
204
  "Ethereum Sepolia 1",
503
- "0x4BE2E2B8872AA298D6d123b9211B53E41f611566",
504
205
  0,
206
+ "44'/60'/0'/0/0",
505
207
  );
506
208
  static readonly sep_ETH_2 = new Account(
507
209
  Currency.sepETH,
508
210
  "Ethereum Sepolia 2",
509
- "0xa1baa625c5E6A9304cB7AcD86d2fee6B710eC3eB",
510
211
  1,
212
+ "44'/60'/0'/1/0",
511
213
  );
512
214
 
513
- static readonly SUI_1 = new Account(
514
- Currency.SUI,
515
- "Sui 1",
516
- "0xc6169bcce8718609e43d179b087e6c1e2ac28e5325660af34d22fb5ce284031e",
517
- 0,
518
- );
519
- static readonly SUI_2 = new Account(
520
- Currency.SUI,
521
- "Sui 2",
522
- "0x6644c1ce77c5e5ef8d8bd3ae2a4e18239e5d418a5e0800ed5037818399e3a7f6",
523
- 1,
524
- );
215
+ static readonly SUI_1 = new Account(Currency.SUI, "Sui 1", 0, "44'/784'/0'/0'/0'");
216
+ static readonly SUI_2 = new Account(Currency.SUI, "Sui 2", 1, "44'/784'/1'/0'/0'");
217
+
218
+ static readonly BASE_1 = new Account(Currency.BASE, "Base 1", 0, "44'/60'/0'/0/0");
219
+ static readonly BASE_2 = new Account(Currency.BASE, "Base 2", 1, "44'/60'/1'/0/0");
525
220
 
526
- static readonly EMPTY = new Account(Currency.BTC, "Empty", "", 0);
221
+ static readonly EMPTY = new Account(Currency.BTC, "Empty", 0, "");
527
222
  }
528
223
 
529
224
  export class TokenAccount extends Account {
530
225
  constructor(
531
226
  currency: Currency,
532
227
  accountName: string,
533
- address: string,
534
228
  index: number,
229
+ path: string,
535
230
  tokenType: TokenType,
536
231
  parentAccount: Account,
537
232
  ensName?: string,
538
233
  derivationMode?: string,
539
234
  ) {
540
- super(currency, accountName, address, index, tokenType, ensName, derivationMode, parentAccount);
235
+ super(currency, accountName, index, path, tokenType, ensName, derivationMode, parentAccount);
541
236
  }
542
237
 
543
238
  static readonly ETH_LIDO = new TokenAccount(
544
239
  Currency.ETH_LIDO,
545
240
  "LIDO Staked ETH 1",
546
- Account.ETH_1.address,
547
241
  0,
242
+ Account.ETH_1.accountPath,
548
243
  TokenType.ERC20,
549
244
  Account.ETH_1,
550
245
  );
@@ -552,8 +247,8 @@ export class TokenAccount extends Account {
552
247
  static readonly ETH_USDC_1 = new TokenAccount(
553
248
  Currency.ETH_USDC,
554
249
  "USD Coin 1",
555
- Account.ETH_1.address,
556
250
  0,
251
+ Account.ETH_1.accountPath,
557
252
  TokenType.ERC20,
558
253
  Account.ETH_1,
559
254
  );
@@ -561,8 +256,8 @@ export class TokenAccount extends Account {
561
256
  static readonly ETH_USDT_1 = new TokenAccount(
562
257
  Currency.ETH_USDT,
563
258
  "Tether USD 1",
564
- Account.ETH_1.address,
565
259
  0,
260
+ Account.ETH_1.accountPath,
566
261
  TokenType.ERC20,
567
262
  Account.ETH_1,
568
263
  );
@@ -570,8 +265,8 @@ export class TokenAccount extends Account {
570
265
  static readonly ETH_USDT_2 = new TokenAccount(
571
266
  Currency.ETH_USDT,
572
267
  "Tether USD 2",
573
- Account.ETH_2.address,
574
268
  1,
269
+ Account.ETH_2.accountPath,
575
270
  TokenType.ERC20,
576
271
  Account.ETH_2,
577
272
  );
@@ -579,24 +274,24 @@ export class TokenAccount extends Account {
579
274
  static readonly SOL_GIGA_1 = new TokenAccount(
580
275
  Currency.SOL_GIGA,
581
276
  "GIGACHAD 1",
582
- "J9wtyCcPRZ1ZuYQXudD7g3tajGz1Q5WkbVGCmb5qfjVp",
583
277
  0,
278
+ Account.SOL_1.accountPath,
584
279
  TokenType.SPL,
585
280
  Account.SOL_1,
586
281
  );
587
282
  static readonly SOL_GIGA_2 = new TokenAccount(
588
283
  Currency.SOL_GIGA,
589
284
  "GIGACHAD 2",
590
- "8nnwXo313DXWcE3kBR54gDKDmcySeGVjYRztbCAPzxev",
591
285
  1,
286
+ Account.SOL_2.accountPath,
592
287
  TokenType.SPL,
593
288
  Account.SOL_2,
594
289
  );
595
290
  static readonly SOL_GIGA_3 = new TokenAccount(
596
291
  Currency.SOL_GIGA,
597
292
  "GIGACHAD 3",
598
- "8FHF6RzmFzRovEUKkzVvB7yh5DkFXt6jdGVfZrHKyVe7",
599
293
  2,
294
+ Account.SOL_3.accountPath,
600
295
  TokenType.SPL,
601
296
  Account.SOL_3,
602
297
  );
@@ -604,16 +299,16 @@ export class TokenAccount extends Account {
604
299
  static readonly SOL_WIF_1 = new TokenAccount(
605
300
  Currency.SOL_WIF,
606
301
  "dogwifhat 1",
607
- "Ctj2Jm9T3igXbp6UDAiRvbso9Um1C4Gt6wHComZ3VC8z",
608
302
  0,
303
+ Account.SOL_1.accountPath,
609
304
  TokenType.SPL,
610
305
  Account.SOL_1,
611
306
  );
612
307
  static readonly SOL_WIF_2 = new TokenAccount(
613
308
  Currency.SOL_WIF,
614
309
  "dogwifhat 2",
615
- "PXFuX7GdgVpPnuXwQSkjt3jihZZCjcxy8G5fsQa1NBn",
616
310
  1,
311
+ Account.SOL_2.accountPath,
617
312
  TokenType.SPL,
618
313
  Account.SOL_2,
619
314
  );
@@ -621,8 +316,8 @@ export class TokenAccount extends Account {
621
316
  static readonly TRX_BTT = new TokenAccount(
622
317
  Currency.TRX_BTT,
623
318
  "BitTorrent",
624
- Account.TRX_1.address,
625
319
  0,
320
+ Account.TRX_1.accountPath,
626
321
  TokenType.TRC20,
627
322
  Account.TRX_1,
628
323
  );
@@ -630,8 +325,8 @@ export class TokenAccount extends Account {
630
325
  static readonly SUI_USDC_1 = new TokenAccount(
631
326
  Currency.SUI_USDC,
632
327
  "SUI USDC 1",
633
- Account.SUI_1.address,
634
328
  0,
329
+ Account.SUI_1.accountPath,
635
330
  TokenType.ERC20,
636
331
  Account.SUI_1,
637
332
  );
@@ -639,11 +334,79 @@ export class TokenAccount extends Account {
639
334
  static readonly SUI_USDC_2 = new TokenAccount(
640
335
  Currency.SUI_USDC,
641
336
  "SUI USDC 2",
642
- Account.SUI_2.address,
643
337
  1,
338
+ Account.SUI_2.accountPath,
644
339
  TokenType.ERC20,
645
340
  Account.SUI_2,
646
341
  );
342
+
343
+ static readonly BSC_BUSD_1 = new TokenAccount(
344
+ Currency.BSC_BUSD,
345
+ "Binance-Peg BUSD Token 1",
346
+ 0,
347
+ Account.BSC_1.accountPath,
348
+ TokenType.ERC20,
349
+ Account.BSC_1,
350
+ );
351
+
352
+ static readonly BSC_BUSD_2 = new TokenAccount(
353
+ Currency.BSC_BUSD,
354
+ "Binance-Peg BUSD Token 2",
355
+ 1,
356
+ Account.BSC_2.accountPath,
357
+ TokenType.ERC20,
358
+ Account.BSC_2,
359
+ );
360
+ static readonly ALGO_USDT_1 = new TokenAccount(
361
+ Currency.ALGO_USDT,
362
+ "Tether USDt 1",
363
+ 0,
364
+ Account.ALGO_1.accountPath,
365
+ TokenType.ERC20,
366
+ Account.ALGO_1,
367
+ );
368
+ static readonly ALGO_USDT_2 = new TokenAccount(
369
+ Currency.ALGO_USDT,
370
+ "Tether USDt 2",
371
+ 1,
372
+ Account.ALGO_2.accountPath,
373
+ TokenType.ERC20,
374
+ Account.ALGO_2,
375
+ );
376
+
377
+ static readonly XLM_USCD = new TokenAccount(
378
+ Currency.XLM_USCD,
379
+ "USDC 1",
380
+ 0,
381
+ Account.XLM_1.accountPath,
382
+ TokenType.ERC20,
383
+ Account.XLM_1,
384
+ );
385
+
386
+ static readonly POL_DAI_1 = new TokenAccount(
387
+ Currency.POL_DAI,
388
+ "Dai 1",
389
+ 0,
390
+ "44'/60'/0'/0/0",
391
+ TokenType.ERC20,
392
+ Account.POL_1,
393
+ );
394
+ static readonly POL_UNI = new TokenAccount(
395
+ Currency.POL_UNI,
396
+ "Uniswap 1",
397
+ 0,
398
+ "44'/60'/0'/0/0",
399
+ TokenType.ERC20,
400
+ Account.POL_1,
401
+ );
402
+ static readonly TRX_USDT = new TokenAccount(
403
+ Currency.TRX_USDT,
404
+ "Tron 1",
405
+ 0,
406
+ "44'/195'/0'/0/0",
407
+ TokenType.TRC20,
408
+ Account.TRX_1,
409
+ );
647
410
  }
648
411
 
649
412
  export type AccountType = Account | TokenAccount;
@@ -654,10 +417,3 @@ export const getParentAccountName = (account: AccountType): string => {
654
417
  }
655
418
  return account.accountName;
656
419
  };
657
-
658
- export const getAccountAddress = (account: AccountType): string => {
659
- if ("parentAccount" in account && Boolean(account.tokenType)) {
660
- return (account as TokenAccount).parentAccount!.address;
661
- }
662
- return account.address;
663
- };