@funkit/connect 8.2.1 → 8.3.1-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/CHANGELOG.md +39 -0
- package/dist/__generated__/default_configs.d.ts +70 -0
- package/dist/atoms/activeCheckout.d.ts +183 -0
- package/dist/atoms/activeWithdrawal.d.ts +21 -0
- package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +109 -0
- package/dist/atoms/bridgeProviders/index.d.ts +25 -0
- package/dist/atoms/bridgeProviders/registry.d.ts +12 -0
- package/dist/atoms/bridgeProviders/relayAdapter.d.ts +60 -0
- package/dist/atoms/bridgeProviders/types.d.ts +182 -0
- package/dist/atoms/checkoutProgress.d.ts +22 -0
- package/dist/atoms/directExecution.d.ts +70 -0
- package/dist/atoms/funkitCheckout.d.ts +18 -0
- package/dist/atoms/funkitProvider/index.d.ts +24 -0
- package/dist/atoms/generalWallet.d.ts +45 -0
- package/dist/atoms/i18n.d.ts +6 -0
- package/dist/atoms/modalState.d.ts +30 -0
- package/dist/atoms/quote.d.ts +98 -0
- package/dist/atoms/stepTransition.d.ts +6 -0
- package/dist/atoms/store.d.ts +1 -0
- package/dist/atoms/track/index.d.ts +10 -0
- package/dist/atoms/utils.d.ts +2 -0
- package/dist/atoms/wagmi.d.ts +4 -0
- package/dist/atoms/walletClient.d.ts +15391 -0
- package/dist/chunk-5JRQC2VM.js +300 -0
- package/dist/{chunk-BP7VOYBS.js → chunk-A24XIU2M.js} +3 -1
- package/dist/{chunk-MYPFORR2.js → chunk-CMS4F5PL.js} +3 -2
- package/dist/chunk-CUWQELX3.js +209 -0
- package/dist/chunk-FBCU3TQA.js +204 -0
- package/dist/{chunk-KKGSXLMH.js → chunk-GRQP5R23.js} +3 -2
- package/dist/chunk-MGQZMUZ2.js +288 -0
- package/dist/chunk-OTMBU2BL.js +204 -0
- package/dist/chunk-VWSYBHAK.js +209 -0
- package/dist/clients/fanatics.css +3648 -3563
- package/dist/clients/fanatics.js +3 -3
- package/dist/components/Box/Box.d.ts +28 -28
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItemSkeleton.d.ts +2 -0
- package/dist/components/Icons/AcrossIcon.d.ts +4 -0
- package/dist/css/sprinkles.css.d.ts +40 -28
- package/dist/domains/across.d.ts +29 -0
- package/dist/domains/track.d.ts +14 -0
- package/dist/hooks/queries/useFops.d.ts +15 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useRelayBypass.d.ts +0 -9
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +2 -0
- package/dist/hooks/useUserIpInfo.d.ts +19 -0
- package/dist/index.css +3654 -3569
- package/dist/index.js +2648 -2650
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +14 -0
- package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +11 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +16 -0
- package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +9 -2
- package/dist/providers/FunkitMoonpayProvider.d.ts +0 -14
- package/dist/providers/FunkitThemeProvider.d.ts +18 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +1 -1
- package/dist/utils/lighter.d.ts +0 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-2E4PDCEJ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-47QF6EET.js +93 -0
- package/dist/wallets/walletConnectors/chunk-5EAOMOTO.js +98 -0
- package/dist/wallets/walletConnectors/chunk-77UTBHGP.js +70 -0
- package/dist/wallets/walletConnectors/chunk-CZYUE3AR.js +100 -0
- package/dist/wallets/walletConnectors/chunk-FA5DTT5R.js +99 -0
- package/dist/wallets/walletConnectors/chunk-HPHADOYD.js +87 -0
- package/dist/wallets/walletConnectors/chunk-JFHP4YJG.js +106 -0
- package/dist/wallets/walletConnectors/chunk-MRRZOQGZ.js +92 -0
- package/dist/wallets/walletConnectors/chunk-R6Y36CMA.js +69 -0
- package/dist/wallets/walletConnectors/chunk-RA7MCWF4.js +218 -0
- package/dist/wallets/walletConnectors/chunk-RLRQYUYC.js +96 -0
- package/dist/wallets/walletConnectors/chunk-T5KHVUFR.js +96 -0
- package/dist/wallets/walletConnectors/chunk-U5QP7MI5.js +94 -0
- package/dist/wallets/walletConnectors/chunk-UOTQQJJD.js +92 -0
- package/dist/wallets/walletConnectors/chunk-VYNVAGSV.js +95 -0
- package/dist/wallets/walletConnectors/chunk-W7Y6I22Y.js +110 -0
- package/dist/wallets/walletConnectors/chunk-YLJDPTYF.js +66 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +39 -39
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TransferTokenDefault } from '../../hooks/useTokenChain';
|
|
3
|
+
import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
+
export type SelectAssetState = CheckoutModalCommonState & {
|
|
6
|
+
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
7
|
+
};
|
|
8
|
+
export type SelectAssetNext = {
|
|
9
|
+
paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
10
|
+
disconnectedBrokerage?: boolean;
|
|
11
|
+
transferToken?: TransferTokenDefault;
|
|
12
|
+
};
|
|
13
|
+
export declare const SelectAssetInfo: ModalStepInfo<FunCheckoutStep.SELECT_ASSET>;
|
|
14
|
+
export declare function SelectAsset({ modalState, onNext, onClose, }: ModalStepComponentProps<FunCheckoutStep.SELECT_ASSET>): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ConnectablePaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
interface ConnectedSourceProps {
|
|
4
|
+
targetChainId: string;
|
|
5
|
+
paymentInfo: ConnectablePaymentMethodInfo;
|
|
6
|
+
selectedPaymentInfo: ConnectablePaymentMethodInfo | null;
|
|
7
|
+
showSelectedCheckmark?: boolean;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ConnectedSource: ({ paymentInfo, targetChainId, selectedPaymentInfo, showSelectedCheckmark, onSelect, }: ConnectedSourceProps) => React.JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FormOfPayment } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
|
+
export type SwappedIframeState = CheckoutModalCommonState & {
|
|
6
|
+
/** The selected payment option from the fops API */
|
|
7
|
+
selectedPaymentOption: FormOfPayment;
|
|
8
|
+
/** Payment method type filter to restore when returning to SOURCE_CHANGE */
|
|
9
|
+
paymentMethodTypeFilter?: PaymentMethodType;
|
|
10
|
+
};
|
|
11
|
+
export type SwappedIframeNext = {
|
|
12
|
+
success?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
|
|
15
|
+
declare function SwappedIframe({ modalState, onNext, onBack, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
|
|
16
|
+
export default SwappedIframe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SwappedIframe, SwappedIframeInfo, type SwappedIframeNext, type SwappedIframeState, } from './SwappedIframe';
|
|
@@ -23,6 +23,7 @@ export interface DynamicTargetAssetCandidate extends TokenInfo {
|
|
|
23
23
|
* 1 USDT can be exchanged for 1.01 hbUSDT.
|
|
24
24
|
*/
|
|
25
25
|
stakingTokenRate?: number;
|
|
26
|
+
dynamicRoutingId?: string;
|
|
26
27
|
}
|
|
27
28
|
export declare enum FunCheckoutStartingStep {
|
|
28
29
|
SOURCE_CHANGE = "source_change",
|
|
@@ -4,7 +4,6 @@ import type { PaymentMethod } from '../domains/paymentMethods';
|
|
|
4
4
|
export interface FunkitTextCustomizationsConfig {
|
|
5
5
|
virtualFiat: string;
|
|
6
6
|
brokerageOrExchange: string;
|
|
7
|
-
checkoutModalCloseButtonLabel: string;
|
|
8
7
|
debitOrCredit: string;
|
|
9
8
|
accountBalance: string;
|
|
10
9
|
selectAccount: string;
|
|
@@ -172,6 +171,12 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
172
171
|
}>;
|
|
173
172
|
};
|
|
174
173
|
sourceChangeScreen?: {
|
|
174
|
+
bottomBarCloseButton?: {
|
|
175
|
+
/** Whether the bottom bar close button is visible - defaults to false */
|
|
176
|
+
enabled?: boolean;
|
|
177
|
+
/** Translation key for label - defaults to `'common.close'` */
|
|
178
|
+
labelKey?: 'sourceChange.exploreMarketsFirst' | 'common.close';
|
|
179
|
+
};
|
|
175
180
|
/** Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false */
|
|
176
181
|
showTargetAssetSelection?: boolean;
|
|
177
182
|
/** Whether to show wallet option when balance is insufficient - defaults to false (hides wallet) */
|
|
@@ -205,7 +210,9 @@ export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizatio
|
|
|
205
210
|
transferCryptoScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['transferCryptoScreen']>;
|
|
206
211
|
selectBrokerageScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectBrokerageScreen']>;
|
|
207
212
|
connectExchangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['connectExchangeScreen']>;
|
|
208
|
-
sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']
|
|
213
|
+
sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']> & {
|
|
214
|
+
bottomBarCloseButton: Required<Required<FunkitUiCustomizationsConfig['sourceChangeScreen'] & {}>['bottomBarCloseButton']>;
|
|
215
|
+
};
|
|
209
216
|
};
|
|
210
217
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
211
218
|
export declare const DEFAULT_UI_CUSTOMIZATIONS: FunkitUiCustomizationsConfigInternal;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export interface UserIpInfoFromMoonpay {
|
|
2
|
-
/** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
|
|
3
|
-
alpha2: 'AU' | 'CA' | 'US' | string;
|
|
4
|
-
state: string;
|
|
5
|
-
alpha3: string;
|
|
6
|
-
country: string;
|
|
7
|
-
ipAddress: string;
|
|
8
|
-
isAllowed: boolean;
|
|
9
|
-
isBuyAllowed: boolean;
|
|
10
|
-
isNftAllowed: boolean;
|
|
11
|
-
isSellAllowed: boolean;
|
|
12
|
-
isBalanceLedgerWithdrawAllowed: boolean;
|
|
13
|
-
isLowLimitEnabled: boolean;
|
|
14
|
-
}
|
|
15
1
|
export interface FunkitUserIpInfo {
|
|
16
2
|
alpha2: string;
|
|
17
3
|
state: string;
|
|
@@ -139,6 +139,7 @@ export declare const useActiveTheme: () => {
|
|
|
139
139
|
spinnerIndicatorVerifyAccount: string;
|
|
140
140
|
txSummaryBoxBackground: string;
|
|
141
141
|
txSummaryBoxBorder: string;
|
|
142
|
+
counterRingColor: string;
|
|
142
143
|
};
|
|
143
144
|
dimensions: {
|
|
144
145
|
connectExchangeIconSize: string;
|
|
@@ -147,6 +148,7 @@ export declare const useActiveTheme: () => {
|
|
|
147
148
|
inputAmountQuickOptionButtonHeight: string;
|
|
148
149
|
inputAmountMinHeight: string;
|
|
149
150
|
modalBottomBarButtonHeight: string;
|
|
151
|
+
modalBottomBarCloseButtonHeight: string;
|
|
150
152
|
modalTopBarHeight: string;
|
|
151
153
|
paymentAmountSkeletonBlockHeight: string;
|
|
152
154
|
paymentAmountSkeletonBlockWidth: string;
|
|
@@ -328,6 +330,10 @@ export declare const useActiveTheme: () => {
|
|
|
328
330
|
fontSize: string;
|
|
329
331
|
lineHeight: string;
|
|
330
332
|
};
|
|
333
|
+
dropdownItemFontSize: {
|
|
334
|
+
fontSize: string;
|
|
335
|
+
lineHeight: string;
|
|
336
|
+
};
|
|
331
337
|
};
|
|
332
338
|
radii: {
|
|
333
339
|
actionButton: string;
|
|
@@ -538,6 +544,7 @@ export declare const useActiveTheme: () => {
|
|
|
538
544
|
spinnerIndicatorVerifyAccount: string;
|
|
539
545
|
txSummaryBoxBackground: string;
|
|
540
546
|
txSummaryBoxBorder: string;
|
|
547
|
+
counterRingColor: string;
|
|
541
548
|
};
|
|
542
549
|
dimensions: {
|
|
543
550
|
connectExchangeIconSize: string;
|
|
@@ -546,6 +553,7 @@ export declare const useActiveTheme: () => {
|
|
|
546
553
|
inputAmountQuickOptionButtonHeight: string;
|
|
547
554
|
inputAmountMinHeight: string;
|
|
548
555
|
modalBottomBarButtonHeight: string;
|
|
556
|
+
modalBottomBarCloseButtonHeight: string;
|
|
549
557
|
modalTopBarHeight: string;
|
|
550
558
|
paymentAmountSkeletonBlockHeight: string;
|
|
551
559
|
paymentAmountSkeletonBlockWidth: string;
|
|
@@ -727,6 +735,10 @@ export declare const useActiveTheme: () => {
|
|
|
727
735
|
fontSize: string;
|
|
728
736
|
lineHeight: string;
|
|
729
737
|
};
|
|
738
|
+
dropdownItemFontSize: {
|
|
739
|
+
fontSize: string;
|
|
740
|
+
lineHeight: string;
|
|
741
|
+
};
|
|
730
742
|
};
|
|
731
743
|
radii: {
|
|
732
744
|
actionButton: string;
|
|
@@ -935,6 +947,7 @@ export declare const useActiveTheme: () => {
|
|
|
935
947
|
spinnerIndicatorVerifyAccount: string;
|
|
936
948
|
txSummaryBoxBackground: string;
|
|
937
949
|
txSummaryBoxBorder: string;
|
|
950
|
+
counterRingColor: string;
|
|
938
951
|
};
|
|
939
952
|
dimensions: {
|
|
940
953
|
connectExchangeIconSize: string;
|
|
@@ -943,6 +956,7 @@ export declare const useActiveTheme: () => {
|
|
|
943
956
|
inputAmountQuickOptionButtonHeight: string;
|
|
944
957
|
inputAmountMinHeight: string;
|
|
945
958
|
modalBottomBarButtonHeight: string;
|
|
959
|
+
modalBottomBarCloseButtonHeight: string;
|
|
946
960
|
modalTopBarHeight: string;
|
|
947
961
|
paymentAmountSkeletonBlockHeight: string;
|
|
948
962
|
paymentAmountSkeletonBlockWidth: string;
|
|
@@ -1124,6 +1138,10 @@ export declare const useActiveTheme: () => {
|
|
|
1124
1138
|
fontSize: string;
|
|
1125
1139
|
lineHeight: string;
|
|
1126
1140
|
};
|
|
1141
|
+
dropdownItemFontSize: {
|
|
1142
|
+
fontSize: string;
|
|
1143
|
+
lineHeight: string;
|
|
1144
|
+
};
|
|
1127
1145
|
};
|
|
1128
1146
|
radii: {
|
|
1129
1147
|
actionButton: string;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -59,7 +59,7 @@ export declare const flagConfig: {
|
|
|
59
59
|
readonly if_any: [{
|
|
60
60
|
readonly key: "apiKey";
|
|
61
61
|
readonly type: "isAnyOf";
|
|
62
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
62
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
|
|
63
63
|
}];
|
|
64
64
|
readonly value: string;
|
|
65
65
|
}, {
|
package/dist/utils/lighter.d.ts
CHANGED
|
@@ -14,5 +14,3 @@ export declare const LIGHTER_DYNAMIC_ROUTING_ID: {
|
|
|
14
14
|
LDO_SPOT_NEW_USER: string;
|
|
15
15
|
LIT_SPOT_NEW_USER: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const getLighterRoutingIdByTokenAddress: (address: Address) => string | undefined;
|
|
18
|
-
export declare const getLighterTokenAddressByRoutingId: (id: string) => Address | undefined;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
+
var subWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
+
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
+
const getUriMobile = (uri) => {
|
|
18
|
+
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
+
};
|
|
20
|
+
const getUriQR = (uri) => {
|
|
21
|
+
return uri;
|
|
22
|
+
};
|
|
23
|
+
const mobileConnector = {
|
|
24
|
+
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
+
};
|
|
26
|
+
let qrConnector = void 0;
|
|
27
|
+
if (shouldUseWalletConnect) {
|
|
28
|
+
qrConnector = {
|
|
29
|
+
getUri: getUriQR,
|
|
30
|
+
instructions: {
|
|
31
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
+
steps: [
|
|
33
|
+
{
|
|
34
|
+
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
+
step: "install",
|
|
36
|
+
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
+
step: "create",
|
|
41
|
+
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
+
step: "scan",
|
|
46
|
+
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const extensionConnector = {
|
|
53
|
+
instructions: {
|
|
54
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
+
steps: [
|
|
56
|
+
{
|
|
57
|
+
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
+
step: "install",
|
|
59
|
+
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
+
step: "create",
|
|
64
|
+
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
+
step: "refresh",
|
|
69
|
+
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
id: "subwallet",
|
|
76
|
+
name: "SubWallet",
|
|
77
|
+
rdns: "app.subwallet",
|
|
78
|
+
iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
|
|
79
|
+
iconBackground: "#fff",
|
|
80
|
+
installed: isSubWalletInjected || void 0,
|
|
81
|
+
downloadUrls: {
|
|
82
|
+
browserExtension: "https://www.subwallet.app/download",
|
|
83
|
+
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
84
|
+
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
85
|
+
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
86
|
+
mobile: "https://www.subwallet.app/download",
|
|
87
|
+
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
88
|
+
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
89
|
+
qrCode: "https://www.subwallet.app/download"
|
|
90
|
+
},
|
|
91
|
+
mobile: mobileConnector,
|
|
92
|
+
qrCode: qrConnector,
|
|
93
|
+
extension: extensionConnector,
|
|
94
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
95
|
+
projectId,
|
|
96
|
+
walletConnectParameters
|
|
97
|
+
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
subWallet
|
|
103
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
+
import { isMobile } from "@funkit/utils";
|
|
12
|
+
var tokenPocketWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
17
|
+
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
id: "tokenPocket",
|
|
23
|
+
name: "TokenPocket",
|
|
24
|
+
rdns: "pro.tokenpocket",
|
|
25
|
+
iconUrl: async () => (await import("./tokenPocketWallet-FLFG3JUQ.js")).default,
|
|
26
|
+
iconBackground: "#2980FE",
|
|
27
|
+
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
30
|
+
browserExtension: "https://extension.tokenpocket.pro/",
|
|
31
|
+
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
32
|
+
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
33
|
+
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
34
|
+
mobile: "https://tokenpocket.pro/en/download/app"
|
|
35
|
+
},
|
|
36
|
+
mobile: {
|
|
37
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
38
|
+
},
|
|
39
|
+
qrCode: shouldUseWalletConnect ? {
|
|
40
|
+
getUri,
|
|
41
|
+
instructions: {
|
|
42
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
43
|
+
steps: [
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
46
|
+
step: "install",
|
|
47
|
+
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
51
|
+
step: "create",
|
|
52
|
+
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
56
|
+
step: "scan",
|
|
57
|
+
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
} : void 0,
|
|
62
|
+
extension: {
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
78
|
+
step: "refresh",
|
|
79
|
+
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
tokenPocketWallet
|
|
93
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
|
+
var bybitWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isBybitInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "bybitWallet"
|
|
17
|
+
});
|
|
18
|
+
const shouldUseWalletConnect = !isBybitInjected;
|
|
19
|
+
const getUri = (uri) => {
|
|
20
|
+
return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
|
|
21
|
+
uri
|
|
22
|
+
)}`;
|
|
23
|
+
};
|
|
24
|
+
return {
|
|
25
|
+
id: "bybit",
|
|
26
|
+
name: "Bybit Wallet",
|
|
27
|
+
rdns: "com.bybit",
|
|
28
|
+
iconUrl: async () => (await import("./bybitWallet-GOPAS32Q.js")).default,
|
|
29
|
+
installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
|
|
30
|
+
iconBackground: "#000000",
|
|
31
|
+
downloadUrls: {
|
|
32
|
+
chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
|
|
33
|
+
browserExtension: "https://www.bybit.com/en/web3",
|
|
34
|
+
android: "https://play.google.com/store/apps/details?id=com.bybit.app",
|
|
35
|
+
ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
|
|
36
|
+
mobile: "https://www.bybit.com/en/web3",
|
|
37
|
+
qrCode: "https://www.bybit.com/en/web3"
|
|
38
|
+
},
|
|
39
|
+
mobile: {
|
|
40
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
41
|
+
},
|
|
42
|
+
qrCode: shouldUseWalletConnect ? {
|
|
43
|
+
getUri: (uri) => uri,
|
|
44
|
+
instructions: {
|
|
45
|
+
learnMoreUrl: "https://www.bybit.com/en/web3",
|
|
46
|
+
steps: [
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.bybit.qr_code.step1.description",
|
|
49
|
+
step: "install",
|
|
50
|
+
title: "wallet_connectors.bybit.qr_code.step1.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.bybit.qr_code.step2.description",
|
|
54
|
+
step: "create",
|
|
55
|
+
title: "wallet_connectors.bybit.qr_code.step2.title"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
description: "wallet_connectors.bybit.qr_code.step3.description",
|
|
59
|
+
step: "scan",
|
|
60
|
+
title: "wallet_connectors.bybit.qr_code.step3.title"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
} : void 0,
|
|
65
|
+
extension: {
|
|
66
|
+
instructions: {
|
|
67
|
+
learnMoreUrl: "https://www.bybit.com/en/web3",
|
|
68
|
+
steps: [
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.bybit.extension.step1.description",
|
|
71
|
+
step: "install",
|
|
72
|
+
title: "wallet_connectors.bybit.extension.step1.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.bybit.extension.step2.description",
|
|
76
|
+
step: "create",
|
|
77
|
+
title: "wallet_connectors.bybit.extension.step2.title"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
description: "wallet_connectors.bybit.extension.step3.description",
|
|
81
|
+
step: "refresh",
|
|
82
|
+
title: "wallet_connectors.bybit.extension.step3.title"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
+
projectId,
|
|
89
|
+
walletConnectParameters
|
|
90
|
+
}) : getInjectedConnector({
|
|
91
|
+
namespace: "bybitWallet"
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
bybitWallet
|
|
98
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
|
+
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
+
var rainbowWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
+
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
20
|
+
uri
|
|
21
|
+
)}&connector=rainbowkit`;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "rainbow",
|
|
25
|
+
name: "Rainbow",
|
|
26
|
+
rdns: "me.rainbow",
|
|
27
|
+
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
28
|
+
iconBackground: "#0c2f78",
|
|
29
|
+
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
30
|
+
downloadUrls: {
|
|
31
|
+
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
32
|
+
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
33
|
+
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
34
|
+
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
35
|
+
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
36
|
+
},
|
|
37
|
+
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
38
|
+
qrCode: shouldUseWalletConnect ? {
|
|
39
|
+
getUri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
} : void 0,
|
|
61
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
62
|
+
projectId,
|
|
63
|
+
walletConnectParameters
|
|
64
|
+
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
rainbowWallet
|
|
70
|
+
};
|