@funkit/connect 3.0.0-next.1 → 3.0.0-next.3
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/CHANGELOG.md +21 -0
- package/dist/{chunk-SCKVYTAC.js → chunk-76VEFMWE.js} +5 -2
- package/dist/{chunk-LKYHSF23.js → chunk-Z3QREJ3Q.js} +6 -3
- package/dist/components/AsyncImage/AsyncImage.d.ts +3 -2
- package/dist/components/Box/Box.d.ts +28 -24
- package/dist/components/ChainModal/Chain.d.ts +1 -5
- package/dist/components/Dialog/Dialog.css.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
- package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +10 -0
- package/dist/components/DydxSwitchModalTab/Icons.d.ts +3 -0
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunBadge/FunBadge.d.ts +2 -1
- package/dist/components/FunButton/FunButton.css.d.ts +3 -2
- package/dist/components/FunButton/FunIconButton.d.ts +24 -15
- package/dist/components/FunButton/FunRedirectButton.d.ts +8 -0
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +4 -2
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +1 -1
- package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -0
- package/dist/components/FunContainer/FunContainer.d.ts +1 -3
- package/dist/components/FunInput/FunTwoFaInput.d.ts +5 -4
- package/dist/components/FunNoResults/FunNoResults.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +4 -18
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +1 -3
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -3
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +9 -6
- package/dist/components/FunSkeletonLoader/FunSkeletonCircle.d.ts +14 -5
- package/dist/components/FunToast/FunShortToast.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +4 -1
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +3 -43
- package/dist/components/FunkitProvider/FunkitMoonpayProvider.d.ts +4 -1
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +16 -4
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +7 -3
- package/dist/components/Icons/AcornsIcon.d.ts +3 -1
- package/dist/components/Icons/BitFlyerIcon.d.ts +3 -1
- package/dist/components/Icons/BitfinexIcon.d.ts +4 -0
- package/dist/components/Icons/BitstampIcon.d.ts +3 -1
- package/dist/components/Icons/BybitIcon.d.ts +3 -1
- package/dist/components/Icons/CoinlistIcon.d.ts +3 -1
- package/dist/components/Icons/CryptoComIcon.d.ts +3 -1
- package/dist/components/Icons/DeviceConfirmationIcon.d.ts +2 -0
- package/dist/components/Icons/EmailConfirmationIcon.d.ts +2 -0
- package/dist/components/Icons/EtradeIcon.d.ts +3 -1
- package/dist/components/Icons/EvmWallet.d.ts +2 -0
- package/dist/components/Icons/GateIo.d.ts +3 -1
- package/dist/components/Icons/HuobiIcon.d.ts +3 -1
- package/dist/components/Icons/KrakenIcon.d.ts +3 -1
- package/dist/components/Icons/KucoinIcon.d.ts +3 -1
- package/dist/components/Icons/MailIcon.d.ts +5 -1
- package/dist/components/Icons/OkxIcon.d.ts +3 -1
- package/dist/components/Icons/PaymentMethodIcons.d.ts +23 -0
- package/dist/components/Icons/Spinner.d.ts +1 -3
- package/dist/components/Icons/StashIcon.d.ts +3 -1
- package/dist/components/Icons/WalletIcon.d.ts +0 -2
- package/dist/components/Icons/WhitelistIcon.d.ts +2 -0
- package/dist/components/ProfileDetails/ActivityTraversalContext.d.ts +17 -26
- package/dist/components/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +2 -8
- package/dist/components/ProfileDetails/FunProfileViews/Home/Home.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +1 -0
- package/dist/components/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -0
- package/dist/components/ProfileDetails/FunProfileViews/Home/index.d.ts +4 -9
- package/dist/components/ProfileDetails/FunProfileViews/Settings/Settings.d.ts +5 -0
- package/dist/components/ProfileDetails/ProfileDetails.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/consts/payment.d.ts +1 -8
- package/dist/css/sprinkles.css.d.ts +37 -27
- package/dist/hooks/useDynamicFont.d.ts +1 -0
- package/dist/hooks/useMesh.d.ts +3 -2
- package/dist/hooks/useScrollDivider.d.ts +4 -3
- package/dist/index.css +1987 -1267
- package/dist/index.js +10839 -10467
- package/dist/themes/darkTheme.d.ts +4 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +4 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/assets.d.ts +0 -4
- package/dist/utils/checkout.d.ts +1 -5
- package/dist/utils/combineChainSymbolOrAddress.d.ts +4 -0
- package/dist/utils/deposit.d.ts +2 -3
- package/dist/utils/flags/config.d.ts +7 -2
- package/dist/utils/flags/index.d.ts +2 -1
- package/dist/utils/isMainnetUsdt.d.ts +2 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/wallets/groupedWallets.d.ts +1 -1
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
- package/dist/wallets/walletConnectors/chunk-2EMZOYQI.js +101 -0
- package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +95 -0
- package/dist/wallets/walletConnectors/chunk-5K4DIMYR.js +95 -0
- package/dist/wallets/walletConnectors/chunk-AUVBWDIK.js +102 -0
- package/dist/wallets/walletConnectors/chunk-AXPQHNUI.js +71 -0
- package/dist/wallets/walletConnectors/chunk-B7FHT3CB.js +94 -0
- package/dist/wallets/walletConnectors/chunk-EFIENLEE.js +98 -0
- package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +27 -0
- package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +98 -0
- package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +103 -0
- package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +87 -0
- package/dist/wallets/walletConnectors/chunk-L7QI6PBN.js +108 -0
- package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +66 -0
- package/dist/wallets/walletConnectors/chunk-QP2BIVXD.js +73 -0
- package/dist/wallets/walletConnectors/chunk-UWZQZY4S.js +149 -0
- package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +96 -0
- package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +96 -0
- package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +110 -0
- package/dist/wallets/walletConnectors/index.js +47 -47
- package/package.json +5 -5
- package/dist/components/FunPayments/FunPaymentOtcType.d.ts +0 -2
- package/dist/components/FunTransactionSummary/FunTxSummaryHistory.d.ts +0 -1
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +0 -1
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +0 -2
- package/dist/css/presets.d.ts +0 -2
- package/dist/utils/flatten.d.ts +0 -1
|
@@ -28,6 +28,7 @@ export declare const darkTheme: {
|
|
|
28
28
|
offBackground: string;
|
|
29
29
|
hoverState: string;
|
|
30
30
|
offBackgroundInverse: string;
|
|
31
|
+
dydxSwitchActiveBackground: string;
|
|
31
32
|
primaryText: string;
|
|
32
33
|
secondaryText: string;
|
|
33
34
|
tertiaryText: string;
|
|
@@ -59,6 +60,9 @@ export declare const darkTheme: {
|
|
|
59
60
|
buttonStroke: string;
|
|
60
61
|
buttonTextSecondaryDisabled: string;
|
|
61
62
|
buttonTextSecondary: string;
|
|
63
|
+
buttonIconBackgroundHover: string;
|
|
64
|
+
buttonIconBackgroundPressed: string;
|
|
65
|
+
buttonIconStroke: string;
|
|
62
66
|
};
|
|
63
67
|
shadows: {
|
|
64
68
|
connectButton: string;
|
|
@@ -66,7 +70,6 @@ export declare const darkTheme: {
|
|
|
66
70
|
selectedOption: string;
|
|
67
71
|
selectedWallet: string;
|
|
68
72
|
button: string;
|
|
69
|
-
callToAction: string;
|
|
70
73
|
};
|
|
71
74
|
moonpayTheme: string;
|
|
72
75
|
fontSize: {
|
package/dist/themes/darkTheme.js
CHANGED
|
@@ -28,6 +28,7 @@ export declare const lightTheme: {
|
|
|
28
28
|
offBackground: string;
|
|
29
29
|
hoverState: string;
|
|
30
30
|
offBackgroundInverse: string;
|
|
31
|
+
dydxSwitchActiveBackground: string;
|
|
31
32
|
primaryText: string;
|
|
32
33
|
secondaryText: string;
|
|
33
34
|
tertiaryText: string;
|
|
@@ -59,6 +60,9 @@ export declare const lightTheme: {
|
|
|
59
60
|
buttonStroke: string;
|
|
60
61
|
buttonTextSecondaryDisabled: string;
|
|
61
62
|
buttonTextSecondary: string;
|
|
63
|
+
buttonIconBackgroundHover: string;
|
|
64
|
+
buttonIconBackgroundPressed: string;
|
|
65
|
+
buttonIconStroke: string;
|
|
62
66
|
};
|
|
63
67
|
shadows: {
|
|
64
68
|
connectButton: string;
|
|
@@ -66,7 +70,6 @@ export declare const lightTheme: {
|
|
|
66
70
|
selectedOption: string;
|
|
67
71
|
selectedWallet: string;
|
|
68
72
|
button: string;
|
|
69
|
-
callToAction: string;
|
|
70
73
|
};
|
|
71
74
|
moonpayTheme: string;
|
|
72
75
|
fontSize: {
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { FunkitActiveCheckoutItem } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
2
2
|
import { PaymentMethod } from '../consts/payment';
|
|
3
|
-
export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
|
|
4
|
-
chainId: string;
|
|
5
|
-
symbolOrAddress: string;
|
|
6
|
-
}): string | null;
|
|
7
3
|
export declare const getNormalizedTokenBalance: (tokenBalance: number, decimals: number) => number;
|
|
8
4
|
export declare const isAssetUsableToPayForCheckout: (checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string, isWeb2Login: boolean, isWeb3Login: boolean) => {
|
|
9
5
|
isUsable: boolean;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -109,12 +109,8 @@ export declare function categorizeCheckoutHistories(checkoutHistoryList: Checkou
|
|
|
109
109
|
depositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
110
110
|
currentDepositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
111
111
|
};
|
|
112
|
-
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 |
|
|
112
|
+
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
|
|
113
113
|
export declare function formatTokenAmountForMoonpay(amount: number, mpCurrencyCode: string): string;
|
|
114
|
-
export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
|
|
115
|
-
chainId: string;
|
|
116
|
-
symbolOrAddress: string;
|
|
117
|
-
}): string | null;
|
|
118
114
|
export declare function getEstimateEndTimeInfo(createdTimeMs: number, checkoutItem: FunkitActiveCheckoutItem): {
|
|
119
115
|
estimatedEndTimeMs: number;
|
|
120
116
|
estimatedEndTimeFromNowMs: number;
|
package/dist/utils/deposit.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { PaymentFlow } from '../consts/payment';
|
|
2
1
|
export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
|
|
3
|
-
export declare function
|
|
2
|
+
export declare function isAmountInvalidForMoonpay({ amountUsd, }: {
|
|
4
3
|
amountUsd: string | undefined | null;
|
|
5
4
|
}): boolean;
|
|
6
|
-
export declare function generateInsufficientAmountForMoonpayError(
|
|
5
|
+
export declare function generateInsufficientAmountForMoonpayError(isShortened: boolean): string;
|
|
@@ -19,12 +19,17 @@ export declare enum FlagKey {
|
|
|
19
19
|
/** Whether zksync assets can be used as source asset for payment in a mantle checkout */
|
|
20
20
|
DisableZkSyncSourceAssetsForMantleCheckouts = "disable_zksync_source_assets_for_mantle_checkouts",
|
|
21
21
|
/** Whether zksync assets can be used as source asset for payment in a dydx checkout */
|
|
22
|
-
DisableZkSyncSourceAssetsForDydxCheckouts = "disable_zksync_source_assets_for_dydx_checkouts"
|
|
22
|
+
DisableZkSyncSourceAssetsForDydxCheckouts = "disable_zksync_source_assets_for_dydx_checkouts",
|
|
23
|
+
/** Which exchanges to show in the exchange selection screen */
|
|
24
|
+
SupportedExchanges = "supported_exchanges",
|
|
25
|
+
/** Which countries should be blocked for Funkit Checkout. Reference Alpha-2 Code format https://www.iban.com/country-codes. */
|
|
26
|
+
BlockedCountries = "blocked_countries"
|
|
23
27
|
}
|
|
24
28
|
export declare const flagConfig: {
|
|
25
|
-
[FlagKey.SelectPaymentMethodText]: StringFlagConfig;
|
|
26
29
|
[FlagKey.PaymentMethodCopyV1]: BooleanFlagConfig;
|
|
27
30
|
[FlagKey.DisableMantleSourceAssets]: BooleanFlagConfig;
|
|
28
31
|
[FlagKey.DisableZkSyncSourceAssetsForMantleCheckouts]: BooleanFlagConfig;
|
|
29
32
|
[FlagKey.DisableZkSyncSourceAssetsForDydxCheckouts]: BooleanFlagConfig;
|
|
33
|
+
[FlagKey.SupportedExchanges]: StringFlagConfig;
|
|
34
|
+
[FlagKey.BlockedCountries]: StringFlagConfig;
|
|
30
35
|
};
|
|
@@ -2,10 +2,11 @@ import { FlagKey } from './config';
|
|
|
2
2
|
import { FeatureFlag } from './impl';
|
|
3
3
|
export { FlagKey };
|
|
4
4
|
declare const singleton: FeatureFlag<{
|
|
5
|
-
select_payment_method_text: import("./types").StringFlagConfig;
|
|
6
5
|
payment_method_copy_v1: import("./types").BooleanFlagConfig;
|
|
7
6
|
disable_mantle_source_assets: import("./types").BooleanFlagConfig;
|
|
8
7
|
disable_zksync_source_assets_for_mantle_checkouts: import("./types").BooleanFlagConfig;
|
|
9
8
|
disable_zksync_source_assets_for_dydx_checkouts: import("./types").BooleanFlagConfig;
|
|
9
|
+
supported_exchanges: import("./types").StringFlagConfig;
|
|
10
|
+
blocked_countries: import("./types").StringFlagConfig;
|
|
10
11
|
}>;
|
|
11
12
|
export declare const flags: Pick<typeof singleton, "init" | "getBool" | "getNumber" | "getString">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const noop: () => undefined;
|
|
@@ -3,7 +3,7 @@ export declare const groupedWallets: (recentWallets: WalletInstance[], walletIns
|
|
|
3
3
|
export declare const isRecentWallet: (recentWallets: WalletInstance[], walletId: string) => boolean;
|
|
4
4
|
export declare const isFunkitSdkConnector: (wallet: WalletInstance) => boolean;
|
|
5
5
|
export declare const isEIP6963Connector: (wallet: WalletInstance) => boolean;
|
|
6
|
-
export declare const rainbowKitConnectorWithWalletConnect: (wallet: WalletInstance, walletConnectModalConnector
|
|
6
|
+
export declare const rainbowKitConnectorWithWalletConnect: (wallet: WalletInstance, walletConnectModalConnector?: WalletInstance) => WalletInstance;
|
|
7
7
|
interface ConnectorsWithWalletsParams {
|
|
8
8
|
wallets: WalletInstance[];
|
|
9
9
|
recentWallets: WalletInstance[];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
+
var roninWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isRoninInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "ronin.provider"
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
id: "ronin",
|
|
20
|
+
name: "Ronin Wallet",
|
|
21
|
+
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
22
|
+
iconBackground: "#ffffff",
|
|
23
|
+
rdns: "com.roninchain.wallet",
|
|
24
|
+
installed: isRoninInjected || void 0,
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
27
|
+
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
28
|
+
mobile: "https://wallet.roninchain.com",
|
|
29
|
+
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
30
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
31
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
32
|
+
browserExtension: "https://wallet.roninchain.com/",
|
|
33
|
+
qrCode: "https://wallet.roninchain.com/"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
|
|
37
|
+
},
|
|
38
|
+
qrCode: {
|
|
39
|
+
getUri: (uri) => uri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
extension: {
|
|
62
|
+
instructions: {
|
|
63
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.ronin.extension.step1.description",
|
|
67
|
+
step: "install",
|
|
68
|
+
title: "wallet_connectors.ronin.extension.step1.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.ronin.extension.step2.description",
|
|
72
|
+
step: "create",
|
|
73
|
+
title: "wallet_connectors.ronin.extension.step2.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.ronin.extension.step3.description",
|
|
77
|
+
step: "refresh",
|
|
78
|
+
title: "wallet_connectors.ronin.extension.step3.title"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
|
|
84
|
+
projectId,
|
|
85
|
+
walletConnectParameters
|
|
86
|
+
})
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
roninWallet
|
|
92
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-23WIEY36.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
+
var bitgetWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isBitKeepInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "bitkeep.ethereum",
|
|
20
|
+
flag: "isBitKeep"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
23
|
+
return {
|
|
24
|
+
id: "bitget",
|
|
25
|
+
name: "Bitget Wallet",
|
|
26
|
+
rdns: "com.bitget.web3",
|
|
27
|
+
iconUrl: async () => (await import("./bitgetWallet-CLYTW54T.js")).default,
|
|
28
|
+
iconAccent: "#f6851a",
|
|
29
|
+
iconBackground: "#fff",
|
|
30
|
+
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
31
|
+
downloadUrls: {
|
|
32
|
+
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
33
|
+
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
34
|
+
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
35
|
+
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
36
|
+
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
37
|
+
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
38
|
+
},
|
|
39
|
+
extension: {
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.bitget.extension.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.bitget.extension.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.bitget.extension.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.bitget.extension.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.bitget.extension.step3.description",
|
|
55
|
+
step: "refresh",
|
|
56
|
+
title: "wallet_connectors.bitget.extension.step3.description"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mobile: {
|
|
62
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
63
|
+
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
64
|
+
} : void 0
|
|
65
|
+
},
|
|
66
|
+
qrCode: shouldUseWalletConnect ? {
|
|
67
|
+
getUri: (uri) => uri,
|
|
68
|
+
instructions: {
|
|
69
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
70
|
+
steps: [
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
73
|
+
step: "install",
|
|
74
|
+
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
78
|
+
step: "create",
|
|
79
|
+
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
83
|
+
step: "scan",
|
|
84
|
+
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
} : void 0,
|
|
89
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
90
|
+
projectId,
|
|
91
|
+
walletConnectParameters
|
|
92
|
+
}) : getInjectedConnector({
|
|
93
|
+
namespace: "bitkeep.ethereum",
|
|
94
|
+
flag: "isBitKeep"
|
|
95
|
+
})
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export {
|
|
100
|
+
bitgetWallet
|
|
101
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
|
+
var coreWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isCoreInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "avalanche",
|
|
17
|
+
flag: "isAvalanche"
|
|
18
|
+
});
|
|
19
|
+
const shouldUseWalletConnect = !isCoreInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "core",
|
|
22
|
+
name: "Core",
|
|
23
|
+
rdns: "app.core.extension",
|
|
24
|
+
iconUrl: async () => (await import("./coreWallet-52SXITOT.js")).default,
|
|
25
|
+
iconBackground: "#1A1A1C",
|
|
26
|
+
installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
|
|
30
|
+
mobile: "https://core.app/?downloadCoreMobile=1",
|
|
31
|
+
qrCode: "https://core.app/?downloadCoreMobile=1",
|
|
32
|
+
chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
|
|
33
|
+
browserExtension: "https://extension.core.app/"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
37
|
+
},
|
|
38
|
+
qrCode: shouldUseWalletConnect ? {
|
|
39
|
+
getUri: (uri) => uri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.core.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.core.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.core.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.core.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.core.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.core.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
} : void 0,
|
|
61
|
+
extension: {
|
|
62
|
+
instructions: {
|
|
63
|
+
learnMoreUrl: "https://extension.core.app/",
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.core.extension.step1.description",
|
|
67
|
+
step: "install",
|
|
68
|
+
title: "wallet_connectors.core.extension.step1.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.core.extension.step2.description",
|
|
72
|
+
step: "create",
|
|
73
|
+
title: "wallet_connectors.core.extension.step2.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.core.extension.step3.description",
|
|
77
|
+
step: "refresh",
|
|
78
|
+
title: "wallet_connectors.core.extension.step3.title"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
+
projectId,
|
|
85
|
+
walletConnectParameters
|
|
86
|
+
}) : getInjectedConnector({
|
|
87
|
+
namespace: "avalanche",
|
|
88
|
+
flag: "isAvalanche"
|
|
89
|
+
})
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
coreWallet
|
|
95
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
isMobile
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-23WIEY36.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
14
|
+
var tokenPocketWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
19
|
+
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
20
|
+
const getUri = (uri) => {
|
|
21
|
+
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "tokenPocket",
|
|
25
|
+
name: "TokenPocket",
|
|
26
|
+
rdns: "pro.tokenpocket",
|
|
27
|
+
iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
|
|
28
|
+
iconBackground: "#2980FE",
|
|
29
|
+
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
30
|
+
downloadUrls: {
|
|
31
|
+
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
32
|
+
browserExtension: "https://extension.tokenpocket.pro/",
|
|
33
|
+
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
34
|
+
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
35
|
+
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
36
|
+
mobile: "https://tokenpocket.pro/en/download/app"
|
|
37
|
+
},
|
|
38
|
+
mobile: {
|
|
39
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
40
|
+
},
|
|
41
|
+
qrCode: shouldUseWalletConnect ? {
|
|
42
|
+
getUri,
|
|
43
|
+
instructions: {
|
|
44
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
45
|
+
steps: [
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
48
|
+
step: "install",
|
|
49
|
+
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
53
|
+
step: "create",
|
|
54
|
+
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
58
|
+
step: "scan",
|
|
59
|
+
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
} : void 0,
|
|
64
|
+
extension: {
|
|
65
|
+
instructions: {
|
|
66
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
67
|
+
steps: [
|
|
68
|
+
{
|
|
69
|
+
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
70
|
+
step: "install",
|
|
71
|
+
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
75
|
+
step: "create",
|
|
76
|
+
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
80
|
+
step: "refresh",
|
|
81
|
+
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
87
|
+
projectId,
|
|
88
|
+
walletConnectParameters
|
|
89
|
+
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
tokenPocketWallet
|
|
95
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
isIOS
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-23WIEY36.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
14
|
+
var zerionWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isZerionInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "zerionWallet",
|
|
20
|
+
flag: "isZerion"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isZerionInjected;
|
|
23
|
+
const getUri = (uri) => {
|
|
24
|
+
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
id: "zerion",
|
|
28
|
+
name: "Zerion",
|
|
29
|
+
rdns: "io.zerion.wallet",
|
|
30
|
+
iconUrl: async () => (await import("./zerionWallet-CYFHB5PA.js")).default,
|
|
31
|
+
iconAccent: "#2962ef",
|
|
32
|
+
iconBackground: "#2962ef",
|
|
33
|
+
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
34
|
+
downloadUrls: {
|
|
35
|
+
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
36
|
+
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
37
|
+
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
38
|
+
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
39
|
+
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
40
|
+
browserExtension: "https://zerion.io/extension"
|
|
41
|
+
},
|
|
42
|
+
mobile: {
|
|
43
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
44
|
+
},
|
|
45
|
+
qrCode: shouldUseWalletConnect ? {
|
|
46
|
+
getUri,
|
|
47
|
+
instructions: {
|
|
48
|
+
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
49
|
+
steps: [
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
52
|
+
step: "install",
|
|
53
|
+
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
57
|
+
step: "create",
|
|
58
|
+
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
62
|
+
step: "scan",
|
|
63
|
+
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
} : void 0,
|
|
68
|
+
extension: {
|
|
69
|
+
instructions: {
|
|
70
|
+
learnMoreUrl: "https://help.zerion.io/en/",
|
|
71
|
+
steps: [
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.zerion.extension.step1.description",
|
|
74
|
+
step: "install",
|
|
75
|
+
title: "wallet_connectors.zerion.extension.step1.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.zerion.extension.step2.description",
|
|
79
|
+
step: "create",
|
|
80
|
+
title: "wallet_connectors.zerion.extension.step2.title"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
description: "wallet_connectors.zerion.extension.step3.description",
|
|
84
|
+
step: "refresh",
|
|
85
|
+
title: "wallet_connectors.zerion.extension.step3.title"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
91
|
+
projectId,
|
|
92
|
+
walletConnectParameters
|
|
93
|
+
}) : getInjectedConnector({
|
|
94
|
+
namespace: "zerionWallet",
|
|
95
|
+
flag: "isZerion"
|
|
96
|
+
})
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
zerionWallet
|
|
102
|
+
};
|