@ledgerhq/live-common 34.35.1-hotfix.0 → 34.36.0-next.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.
- package/lib/apps/support.d.ts +1 -0
- package/lib/apps/support.d.ts.map +1 -1
- package/lib/apps/support.js +10 -1
- package/lib/apps/support.js.map +1 -1
- package/lib/e2e/enum/Account.d.ts +64 -58
- package/lib/e2e/enum/Account.d.ts.map +1 -1
- package/lib/e2e/enum/Account.js +80 -59
- package/lib/e2e/enum/Account.js.map +1 -1
- package/lib/e2e/enum/Device.d.ts +8 -0
- package/lib/e2e/enum/Device.d.ts.map +1 -0
- package/lib/e2e/enum/Device.js +14 -0
- package/lib/e2e/enum/Device.js.map +1 -0
- package/lib/e2e/enum/Swap.d.ts +2 -1
- package/lib/e2e/enum/Swap.d.ts.map +1 -1
- package/lib/e2e/enum/Swap.js +12 -10
- package/lib/e2e/enum/Swap.js.map +1 -1
- package/lib/e2e/families/cardano.d.ts.map +1 -1
- package/lib/e2e/families/cardano.js +55 -26
- package/lib/e2e/families/cardano.js.map +1 -1
- package/lib/e2e/families/evm.d.ts.map +1 -1
- package/lib/e2e/families/evm.js +2 -1
- package/lib/e2e/families/evm.js.map +1 -1
- package/lib/e2e/families/solana.d.ts.map +1 -1
- package/lib/e2e/families/solana.js +5 -2
- package/lib/e2e/families/solana.js.map +1 -1
- package/lib/e2e/index.d.ts +2 -0
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/models/BuySell.d.ts +11 -0
- package/lib/e2e/models/BuySell.d.ts.map +1 -0
- package/lib/{index.js → e2e/models/BuySell.js} +1 -1
- package/lib/e2e/models/BuySell.js.map +1 -0
- package/lib/e2e/models/Transaction.d.ts +5 -5
- package/lib/e2e/models/Transaction.d.ts.map +1 -1
- package/lib/e2e/models/Transaction.js.map +1 -1
- package/lib/e2e/speculos.d.ts +6 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +72 -40
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/e2e/speculosCI.d.ts +5 -0
- package/lib/e2e/speculosCI.d.ts.map +1 -0
- package/lib/e2e/speculosCI.js +129 -0
- package/lib/e2e/speculosCI.js.map +1 -0
- package/lib/families/hedera/logic.d.ts +2 -0
- package/lib/families/hedera/logic.d.ts.map +1 -0
- package/lib/families/hedera/logic.js +19 -0
- package/lib/families/hedera/logic.js.map +1 -0
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +1 -0
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/featureFlags/useFeature.d.ts +1 -1
- package/lib/featureFlags/useFeature.d.ts.map +1 -1
- package/lib/hw/actions/manager.d.ts +1 -1
- package/lib/hw/actions/manager.d.ts.map +1 -1
- package/lib/hw/connectApp.d.ts.map +1 -1
- package/lib/hw/connectApp.js +56 -5
- package/lib/hw/connectApp.js.map +1 -1
- package/lib/hw/connectAppEventMapper.d.ts +29 -0
- package/lib/hw/connectAppEventMapper.d.ts.map +1 -0
- package/lib/hw/connectAppEventMapper.js +300 -0
- package/lib/hw/connectAppEventMapper.js.map +1 -0
- package/lib/hw/connectManager.d.ts +3 -2
- package/lib/hw/connectManager.d.ts.map +1 -1
- package/lib/hw/connectManager.js +34 -3
- package/lib/hw/connectManager.js.map +1 -1
- package/lib/hw/connectManagerEventMapper.d.ts +16 -0
- package/lib/hw/connectManagerEventMapper.d.ts.map +1 -0
- package/lib/hw/connectManagerEventMapper.js +78 -0
- package/lib/hw/connectManagerEventMapper.js.map +1 -0
- package/lib/market/hooks/useLargeMoverChartData.d.ts +18 -0
- package/lib/market/hooks/useLargeMoverChartData.d.ts.map +1 -0
- package/lib/market/hooks/useLargeMoverChartData.js +28 -0
- package/lib/market/hooks/useLargeMoverChartData.js.map +1 -0
- package/lib/market/hooks/useLargeMoverCurrencies.d.ts +13 -0
- package/lib/market/hooks/useLargeMoverCurrencies.d.ts.map +1 -0
- package/lib/market/hooks/useLargeMoverCurrencies.js +29 -0
- package/lib/market/hooks/useLargeMoverCurrencies.js.map +1 -0
- package/lib/notifications/AnnouncementProvider/index.d.ts.map +1 -1
- package/lib/notifications/AnnouncementProvider/index.js +12 -10
- package/lib/notifications/AnnouncementProvider/index.js.map +1 -1
- package/lib/notifications/AnnouncementProvider/machine.d.ts +1 -4
- package/lib/notifications/AnnouncementProvider/machine.d.ts.map +1 -1
- package/lib/notifications/AnnouncementProvider/machine.js +9 -8
- package/lib/notifications/AnnouncementProvider/machine.js.map +1 -1
- package/lib/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
- package/lib/notifications/ServiceStatusProvider/index.js +5 -4
- package/lib/notifications/ServiceStatusProvider/index.js.map +1 -1
- package/lib/notifications/ServiceStatusProvider/machine.d.ts +1 -4
- package/lib/notifications/ServiceStatusProvider/machine.d.ts.map +1 -1
- package/lib/notifications/ServiceStatusProvider/machine.js +4 -4
- package/lib/notifications/ServiceStatusProvider/machine.js.map +1 -1
- package/lib/wallet-api/ModularDrawer/types.d.ts +63 -0
- package/lib/wallet-api/ModularDrawer/types.d.ts.map +1 -0
- package/lib/wallet-api/ModularDrawer/types.js +25 -0
- package/lib/wallet-api/ModularDrawer/types.js.map +1 -0
- package/lib/wallet-api/ModularDrawer/utils.d.ts +5 -0
- package/lib/wallet-api/ModularDrawer/utils.d.ts.map +1 -0
- package/lib/wallet-api/ModularDrawer/utils.js +30 -0
- package/lib/wallet-api/ModularDrawer/utils.js.map +1 -0
- package/lib/wallet-api/react.d.ts +2 -0
- package/lib/wallet-api/react.d.ts.map +1 -1
- package/lib/wallet-api/react.js +2 -1
- package/lib/wallet-api/react.js.map +1 -1
- package/lib-es/apps/support.d.ts +1 -0
- package/lib-es/apps/support.d.ts.map +1 -1
- package/lib-es/apps/support.js +8 -0
- package/lib-es/apps/support.js.map +1 -1
- package/lib-es/e2e/enum/Account.d.ts +64 -58
- package/lib-es/e2e/enum/Account.d.ts.map +1 -1
- package/lib-es/e2e/enum/Account.js +76 -58
- package/lib-es/e2e/enum/Account.js.map +1 -1
- package/lib-es/e2e/enum/Device.d.ts +8 -0
- package/lib-es/e2e/enum/Device.d.ts.map +1 -0
- package/lib-es/e2e/enum/Device.js +10 -0
- package/lib-es/e2e/enum/Device.js.map +1 -0
- package/lib-es/e2e/enum/Swap.d.ts +2 -1
- package/lib-es/e2e/enum/Swap.d.ts.map +1 -1
- package/lib-es/e2e/enum/Swap.js +12 -10
- package/lib-es/e2e/enum/Swap.js.map +1 -1
- package/lib-es/e2e/families/cardano.d.ts.map +1 -1
- package/lib-es/e2e/families/cardano.js +56 -27
- package/lib-es/e2e/families/cardano.js.map +1 -1
- package/lib-es/e2e/families/evm.d.ts.map +1 -1
- package/lib-es/e2e/families/evm.js +2 -1
- package/lib-es/e2e/families/evm.js.map +1 -1
- package/lib-es/e2e/families/solana.d.ts.map +1 -1
- package/lib-es/e2e/families/solana.js +5 -2
- package/lib-es/e2e/families/solana.js.map +1 -1
- package/lib-es/e2e/index.d.ts +2 -0
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/e2e/models/BuySell.d.ts +11 -0
- package/lib-es/e2e/models/BuySell.d.ts.map +1 -0
- package/lib-es/e2e/models/BuySell.js +2 -0
- package/lib-es/e2e/models/BuySell.js.map +1 -0
- package/lib-es/e2e/models/Transaction.d.ts +5 -5
- package/lib-es/e2e/models/Transaction.d.ts.map +1 -1
- package/lib-es/e2e/models/Transaction.js.map +1 -1
- package/lib-es/e2e/speculos.d.ts +6 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +69 -39
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/e2e/speculosCI.d.ts +5 -0
- package/lib-es/e2e/speculosCI.d.ts.map +1 -0
- package/lib-es/e2e/speculosCI.js +121 -0
- package/lib-es/e2e/speculosCI.js.map +1 -0
- package/lib-es/families/hedera/logic.d.ts +2 -0
- package/lib-es/families/hedera/logic.d.ts.map +1 -0
- package/lib-es/families/hedera/logic.js +3 -0
- package/lib-es/families/hedera/logic.js.map +1 -0
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +1 -0
- package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
- package/lib-es/featureFlags/useFeature.d.ts +1 -1
- package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
- package/lib-es/hw/actions/manager.d.ts +1 -1
- package/lib-es/hw/actions/manager.d.ts.map +1 -1
- package/lib-es/hw/connectApp.d.ts.map +1 -1
- package/lib-es/hw/connectApp.js +57 -6
- package/lib-es/hw/connectApp.js.map +1 -1
- package/lib-es/hw/connectAppEventMapper.d.ts +29 -0
- package/lib-es/hw/connectAppEventMapper.d.ts.map +1 -0
- package/lib-es/hw/connectAppEventMapper.js +296 -0
- package/lib-es/hw/connectAppEventMapper.js.map +1 -0
- package/lib-es/hw/connectManager.d.ts +3 -2
- package/lib-es/hw/connectManager.d.ts.map +1 -1
- package/lib-es/hw/connectManager.js +34 -4
- package/lib-es/hw/connectManager.js.map +1 -1
- package/lib-es/hw/connectManagerEventMapper.d.ts +16 -0
- package/lib-es/hw/connectManagerEventMapper.d.ts.map +1 -0
- package/lib-es/hw/connectManagerEventMapper.js +74 -0
- package/lib-es/hw/connectManagerEventMapper.js.map +1 -0
- package/lib-es/market/hooks/useLargeMoverChartData.d.ts +18 -0
- package/lib-es/market/hooks/useLargeMoverChartData.d.ts.map +1 -0
- package/lib-es/market/hooks/useLargeMoverChartData.js +24 -0
- package/lib-es/market/hooks/useLargeMoverChartData.js.map +1 -0
- package/lib-es/market/hooks/useLargeMoverCurrencies.d.ts +13 -0
- package/lib-es/market/hooks/useLargeMoverCurrencies.d.ts.map +1 -0
- package/lib-es/market/hooks/useLargeMoverCurrencies.js +25 -0
- package/lib-es/market/hooks/useLargeMoverCurrencies.js.map +1 -0
- package/lib-es/notifications/AnnouncementProvider/index.d.ts.map +1 -1
- package/lib-es/notifications/AnnouncementProvider/index.js +12 -10
- package/lib-es/notifications/AnnouncementProvider/index.js.map +1 -1
- package/lib-es/notifications/AnnouncementProvider/machine.d.ts +1 -4
- package/lib-es/notifications/AnnouncementProvider/machine.d.ts.map +1 -1
- package/lib-es/notifications/AnnouncementProvider/machine.js +9 -8
- package/lib-es/notifications/AnnouncementProvider/machine.js.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/index.js +5 -4
- package/lib-es/notifications/ServiceStatusProvider/index.js.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/machine.d.ts +1 -4
- package/lib-es/notifications/ServiceStatusProvider/machine.d.ts.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/machine.js +4 -4
- package/lib-es/notifications/ServiceStatusProvider/machine.js.map +1 -1
- package/lib-es/wallet-api/ModularDrawer/types.d.ts +63 -0
- package/lib-es/wallet-api/ModularDrawer/types.d.ts.map +1 -0
- package/lib-es/wallet-api/ModularDrawer/types.js +22 -0
- package/lib-es/wallet-api/ModularDrawer/types.js.map +1 -0
- package/lib-es/wallet-api/ModularDrawer/utils.d.ts +5 -0
- package/lib-es/wallet-api/ModularDrawer/utils.d.ts.map +1 -0
- package/lib-es/wallet-api/ModularDrawer/utils.js +25 -0
- package/lib-es/wallet-api/ModularDrawer/utils.js.map +1 -0
- package/lib-es/wallet-api/react.d.ts +2 -0
- package/lib-es/wallet-api/react.d.ts.map +1 -1
- package/lib-es/wallet-api/react.js +2 -1
- package/lib-es/wallet-api/react.js.map +1 -1
- package/package.json +54 -53
- package/src/apps/support.ts +11 -0
- package/src/e2e/enum/Account.ts +363 -362
- package/src/e2e/enum/Device.ts +7 -0
- package/src/e2e/enum/Swap.ts +10 -9
- package/src/e2e/families/cardano.ts +63 -28
- package/src/e2e/families/evm.ts +2 -1
- package/src/e2e/families/solana.ts +5 -2
- package/src/e2e/models/BuySell.ts +12 -0
- package/src/e2e/models/Transaction.ts +5 -5
- package/src/e2e/speculos.ts +75 -41
- package/src/e2e/speculosCI.ts +161 -0
- package/src/families/hedera/logic.ts +2 -0
- package/src/featureFlags/defaultFeatures.ts +1 -0
- package/src/hw/actions/manager.ts +1 -1
- package/src/hw/connectApp.ts +245 -178
- package/src/hw/connectAppEventMapper.ts +364 -0
- package/src/hw/connectManager.ts +116 -74
- package/src/hw/connectManagerEventMapper.ts +109 -0
- package/src/market/hooks/useLargeMoverChartData.ts +38 -0
- package/src/market/hooks/useLargeMoverCurrencies.ts +36 -0
- package/src/notifications/AnnouncementProvider/index.tsx +21 -17
- package/src/notifications/AnnouncementProvider/machine.ts +9 -8
- package/src/notifications/ServiceStatusProvider/index.tsx +11 -8
- package/src/notifications/ServiceStatusProvider/machine.ts +4 -4
- package/src/wallet-api/ModularDrawer/types.ts +45 -0
- package/src/wallet-api/ModularDrawer/utils.ts +37 -0
- package/src/wallet-api/react.ts +37 -31
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/market/hooks/useLargeMoverDataProvider.d.ts +0 -17
- package/lib/market/hooks/useLargeMoverDataProvider.d.ts.map +0 -1
- package/lib/market/hooks/useLargeMoverDataProvider.js +0 -48
- package/lib/market/hooks/useLargeMoverDataProvider.js.map +0 -1
- package/lib-es/index.d.ts +0 -1
- package/lib-es/index.d.ts.map +0 -1
- package/lib-es/index.js +0 -2
- package/lib-es/index.js.map +0 -1
- package/lib-es/market/hooks/useLargeMoverDataProvider.d.ts +0 -17
- package/lib-es/market/hooks/useLargeMoverDataProvider.d.ts.map +0 -1
- package/lib-es/market/hooks/useLargeMoverDataProvider.js +0 -44
- package/lib-es/market/hooks/useLargeMoverDataProvider.js.map +0 -1
- package/src/index.ts +0 -0
- package/src/market/hooks/useLargeMoverDataProvider.ts +0 -70
package/src/e2e/enum/Account.ts
CHANGED
@@ -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
|
15
|
+
public readonly parentAccount?: Account,
|
18
16
|
) {}
|
19
17
|
|
20
|
-
static readonly
|
21
|
-
Currency.
|
22
|
-
"
|
23
|
-
"
|
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
|
28
|
-
Currency.
|
29
|
-
"
|
30
|
-
"
|
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
|
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
|
-
"
|
138
|
+
"1FMx2XwRHKXhbJcaekgPqN111wtRftkHyw",
|
52
139
|
0,
|
53
140
|
undefined,
|
54
141
|
undefined,
|
55
|
-
"
|
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
|
-
"
|
147
|
+
"1Nen8hLiZysV6TWi6o6hTBp6dtkRXrJyWh",
|
62
148
|
1,
|
63
149
|
undefined,
|
64
150
|
undefined,
|
65
|
-
"
|
151
|
+
"",
|
66
152
|
);
|
67
153
|
|
68
|
-
static readonly
|
154
|
+
static readonly BTC_NATIVE_SEGWIT_1 = new Account(
|
69
155
|
Currency.BTC,
|
70
156
|
"Bitcoin 1",
|
71
|
-
"
|
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
|
-
"
|
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
|
129
|
-
Currency.
|
130
|
-
"
|
131
|
-
"
|
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
|
184
|
-
Currency.
|
185
|
-
"
|
186
|
-
"
|
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
|
191
|
-
Currency.
|
192
|
-
"
|
193
|
-
"
|
194
|
-
|
288
|
+
static readonly LTC_1 = new Account(
|
289
|
+
Currency.LTC,
|
290
|
+
"Litecoin 1",
|
291
|
+
"ltc1qysx9g8cdypja73kc808jg7clcm5xud7tny9gp3",
|
292
|
+
0,
|
195
293
|
);
|
196
294
|
|
197
|
-
static readonly
|
198
|
-
Currency.
|
199
|
-
"
|
200
|
-
"
|
295
|
+
static readonly MULTIVERS_X_1 = new Account(
|
296
|
+
Currency.MULTIVERS_X,
|
297
|
+
"MultiversX 1",
|
298
|
+
"erd1kp2psapk98pjtxr0n583qlq9zurwdwaqcvgh7l5hyj6hh839p5dq82cuw9",
|
201
299
|
0,
|
202
300
|
);
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
"
|
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
|
212
|
-
Currency.
|
213
|
-
"
|
214
|
-
"
|
308
|
+
static readonly NEAR_1 = new Account(
|
309
|
+
Currency.NEAR,
|
310
|
+
"NEAR 1",
|
311
|
+
"70b2982a31cfcffc773145d2143392612bb83a22926c912e2ce3ec0634f637e2",
|
215
312
|
0,
|
216
313
|
);
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
"
|
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
|
226
|
-
Currency.
|
227
|
-
"
|
228
|
-
"
|
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
|
-
|
240
|
-
|
241
|
-
"
|
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
|
247
|
-
Currency.
|
248
|
-
"
|
249
|
-
"
|
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
|
-
|
254
|
-
|
255
|
-
"
|
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
|
261
|
-
Currency.
|
262
|
-
"
|
263
|
-
"
|
264
|
-
|
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
|
268
|
-
Currency.
|
269
|
-
"
|
270
|
-
"
|
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
|
275
|
-
Currency.
|
276
|
-
"
|
277
|
-
"
|
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
|
-
|
282
|
-
|
283
|
-
"
|
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
|
289
|
-
Currency.
|
290
|
-
"
|
291
|
-
"
|
384
|
+
static readonly tBTC_1 = new Account(
|
385
|
+
Currency.tBTC,
|
386
|
+
"Bitcoin 1",
|
387
|
+
"tb1qxmwe6n93fls8r69837cmyt6ua406xaen9hy24d",
|
292
388
|
0,
|
293
389
|
);
|
294
|
-
static readonly
|
295
|
-
Currency.
|
296
|
-
"
|
297
|
-
"
|
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
|
302
|
-
Currency.
|
303
|
-
"
|
304
|
-
"
|
397
|
+
static readonly tETH_1 = new Account(
|
398
|
+
Currency.tETH,
|
399
|
+
"Ethereum Holesky 1",
|
400
|
+
"0xB9051f83AC6e147924377BBEebd1Aa7aB43a67F6",
|
305
401
|
0,
|
306
402
|
);
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
"
|
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
|
316
|
-
Currency.
|
317
|
-
"
|
318
|
-
"
|
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
|
337
|
-
Currency.
|
338
|
-
"
|
339
|
-
"
|
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
|
344
|
-
Currency.
|
345
|
-
"
|
346
|
-
"
|
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
|
-
|
358
|
-
|
359
|
-
"
|
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
|
379
|
-
Currency.
|
380
|
-
"
|
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
|
-
|
390
|
-
|
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
|
397
|
-
|
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
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
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
|
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
|
-
"
|
436
|
-
|
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
|
442
|
-
Currency.
|
443
|
-
"
|
444
|
-
|
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
|
450
|
-
Currency.
|
451
|
-
"
|
452
|
-
|
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
|
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
|
-
"
|
574
|
-
"
|
567
|
+
"GIGACHAD 1",
|
568
|
+
"4JLL8NzonhGQyfrhvuTy4fGeskB7db4gZ9NxhPWDVa87",
|
575
569
|
0,
|
576
570
|
TokenType.SPL,
|
577
|
-
|
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
|
-
"
|
586
|
-
"
|
575
|
+
"GIGACHAD 2",
|
576
|
+
"5izbyRCwfbvqkD8q5mGbbFvWUZ6ZL4C5PTosARVNagiv",
|
587
577
|
1,
|
588
578
|
TokenType.SPL,
|
589
|
-
|
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
|
-
"
|
598
|
-
"
|
583
|
+
"GIGACHAD 3",
|
584
|
+
"CbqhB9yEsubMoDXf7AANreJh3szUATQudHn3ajtdrWgm",
|
599
585
|
2,
|
600
586
|
TokenType.SPL,
|
601
|
-
|
602
|
-
undefined,
|
603
|
-
undefined,
|
604
|
-
"CbqhB9yEsubMoDXf7AANreJh3szUATQudHn3ajtdrWgm",
|
587
|
+
Account.SOL_3,
|
605
588
|
);
|
606
589
|
|
607
|
-
static readonly SOL_WIF_1 = new
|
590
|
+
static readonly SOL_WIF_1 = new TokenAccount(
|
608
591
|
Currency.SOL_WIF,
|
609
|
-
"
|
610
|
-
"
|
592
|
+
"dogwifhat 1",
|
593
|
+
"143nLxFLwxNtqEd2LxEJjjjLCsspcuxyt3y2FRuyFXdg",
|
611
594
|
0,
|
612
595
|
TokenType.SPL,
|
613
|
-
|
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
|
-
"
|
622
|
-
"
|
600
|
+
"dogwifhat 2",
|
601
|
+
"2but8QCrAqoEHzQt16hwzte41yWrB4dae4WsStwqfX3h",
|
623
602
|
1,
|
624
603
|
TokenType.SPL,
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
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
|
+
};
|