@rango-dev/widget-embedded 0.63.1-next.3 → 0.63.1-next.4
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/dist/QueueManager.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.InstallWallet.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts +7 -3
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts +2 -0
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts.map +1 -0
- package/dist/containers/Wallets/useUpdates.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts +5 -4
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/types/config.d.ts +1 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +1 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/common.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +1 -1
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +1 -1
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/QueueManager.tsx +2 -6
- package/src/components/NamespaceItem/NamespaceItem.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsModal.InstallWallet.tsx +8 -2
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.test.ts +98 -0
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.ts +14 -10
- package/src/components/WalletStatefulConnect/DerivationPath.tsx +14 -7
- package/src/components/WalletStatefulConnect/Namespaces.tsx +1 -1
- package/src/containers/Wallets/Wallets.tsx +1 -1
- package/src/containers/Wallets/useUpdates.ts +1 -1
- package/src/hooks/useStatefulConnect/useStatefulConnect.ts +5 -2
- package/src/hooks/useStatefulConnect/useStatefulConnect.types.ts +6 -3
- package/src/hooks/useWalletList.ts +9 -6
- package/src/index.ts +4 -7
- package/src/types/config.ts +4 -2
- package/src/types/wallets.ts +1 -1
- package/src/utils/common.ts +6 -0
- package/src/utils/swap.ts +1 -1
- package/src/utils/wallets.ts +14 -13
package/src/utils/wallets.ts
CHANGED
|
@@ -5,30 +5,31 @@ import type {
|
|
|
5
5
|
Wallet,
|
|
6
6
|
WalletInfoWithExtra,
|
|
7
7
|
} from '../types';
|
|
8
|
+
import type {
|
|
9
|
+
LegacyNetwork as Network,
|
|
10
|
+
LegacyWalletType as WalletType,
|
|
11
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
8
12
|
import type {
|
|
9
13
|
ExtendedWalletInfo,
|
|
10
14
|
ProviderContext,
|
|
11
15
|
} from '@rango-dev/wallets-react';
|
|
12
|
-
import type {
|
|
13
|
-
Network,
|
|
14
|
-
WalletType,
|
|
15
|
-
WalletTypes,
|
|
16
|
-
} from '@rango-dev/wallets-shared';
|
|
17
16
|
import type { BlockchainMeta, Token, TransactionType } from 'rango-sdk';
|
|
18
17
|
|
|
18
|
+
import {
|
|
19
|
+
HYPERLIQUID_SIGN_NETWORK,
|
|
20
|
+
Networks,
|
|
21
|
+
} from '@rango-dev/internal-blockchains';
|
|
19
22
|
import {
|
|
20
23
|
BlockchainCategories,
|
|
24
|
+
detectInstallLink,
|
|
21
25
|
WalletState as WalletStatus,
|
|
22
26
|
} from '@rango-dev/ui';
|
|
23
|
-
import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
|
|
24
27
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
isEvmAddress,
|
|
29
|
-
Networks,
|
|
30
|
-
} from '@rango-dev/wallets-shared';
|
|
28
|
+
legacyGetBlockChainNameFromId as getBlockChainNameFromId,
|
|
29
|
+
legacyReadAccountAddress as readAccountAddress,
|
|
30
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
31
31
|
import BigNumber from 'bignumber.js';
|
|
32
|
+
import { isAddress as isEvmAddress } from 'ethers';
|
|
32
33
|
|
|
33
34
|
import { ZERO } from '../constants/numbers';
|
|
34
35
|
import {
|
|
@@ -86,7 +87,7 @@ export function mapWalletTypesToWalletInfo(
|
|
|
86
87
|
chain?: string
|
|
87
88
|
): ExtendedModalWalletInfo[] {
|
|
88
89
|
return list
|
|
89
|
-
.filter((wallet) => !EXCLUDED_WALLETS.includes(wallet
|
|
90
|
+
.filter((wallet) => !EXCLUDED_WALLETS.includes(wallet))
|
|
90
91
|
.filter((wallet) => {
|
|
91
92
|
const { supportedChains, isContractWallet } = getWalletInfo(wallet);
|
|
92
93
|
|