@funkit/connect 6.0.5 → 6.0.6
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 +12 -0
- package/dist/{chunk-VQOGHHW2.js → chunk-WDHT73AM.js} +0 -1
- package/dist/{chunk-ZAZGUX6Z.js → chunk-ZDHRMKMT.js} +0 -1
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -1
- package/dist/consts/customers.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +21 -23
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +0 -1
- package/dist/index.css +1894 -1960
- package/dist/index.d.ts +0 -1
- package/dist/index.js +123 -164
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -2
- package/dist/providers/FunkitThemeProvider.d.ts +0 -3
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/address.d.ts +0 -6
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +2 -9
- 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-2GJQ4XZQ.js +87 -0
- package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +70 -0
- package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +99 -0
- package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +94 -0
- package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +92 -0
- package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +66 -0
- package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +110 -0
- package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +93 -0
- package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +95 -0
- package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +98 -0
- package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +100 -0
- package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +92 -0
- package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +106 -0
- package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +69 -0
- package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +218 -0
- package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +103 -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 +68 -68
- 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 +6 -6
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
interface DisclaimerTextProps {
|
|
4
|
-
showDydxDisclaimer: boolean;
|
|
5
4
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
6
5
|
continueText: string;
|
|
7
6
|
isCardPayment?: boolean;
|
|
8
7
|
finalConvertedAssetName?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const DisclaimerText: ({
|
|
9
|
+
export declare const DisclaimerText: ({ continueText, isCardPayment, finalConvertedAssetName, checkoutItem, }: DisclaimerTextProps) => React.JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -52,7 +52,6 @@ export declare const useActiveTheme: () => {
|
|
|
52
52
|
mediumStroke: string;
|
|
53
53
|
heavyStroke: string;
|
|
54
54
|
strokeColor: string;
|
|
55
|
-
dydxSwitchActiveBackground: string;
|
|
56
55
|
primaryText: string;
|
|
57
56
|
secondaryText: string;
|
|
58
57
|
tertiaryText: string;
|
|
@@ -266,7 +265,6 @@ export declare const useActiveTheme: () => {
|
|
|
266
265
|
mediumStroke: string;
|
|
267
266
|
heavyStroke: string;
|
|
268
267
|
strokeColor: string;
|
|
269
|
-
dydxSwitchActiveBackground: string;
|
|
270
268
|
primaryText: string;
|
|
271
269
|
secondaryText: string;
|
|
272
270
|
tertiaryText: string;
|
|
@@ -478,7 +476,6 @@ export declare const useActiveTheme: () => {
|
|
|
478
476
|
mediumStroke: string;
|
|
479
477
|
heavyStroke: string;
|
|
480
478
|
strokeColor: string;
|
|
481
|
-
dydxSwitchActiveBackground: string;
|
|
482
479
|
primaryText: string;
|
|
483
480
|
secondaryText: string;
|
|
484
481
|
tertiaryText: string;
|
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/address.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
2
2
|
export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
|
|
3
|
-
/**
|
|
4
|
-
* Replicated from @dydxprotocol/v4-client-js https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-js/src/lib/validation.ts#L145C1-L158
|
|
5
|
-
* Not importing the sdk in the interest of space.
|
|
6
|
-
*/
|
|
7
|
-
export declare function verifyIsBech32(address: string): Error | undefined;
|
|
8
|
-
export declare function isDydxAddress(address: string): boolean;
|
|
9
3
|
export declare function isAddressSupported(address: string): boolean;
|
|
10
4
|
/**
|
|
11
5
|
* Check if the recipient address is compatible with selected chain
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number |
|
|
|
5
5
|
*
|
|
6
6
|
* @param {FunkitCheckoutConfig} checkoutConfig
|
|
7
7
|
* @param mockedChains optional array of additional chains we want to replace with FALLBACK_CHAIN_ID
|
|
8
|
-
* @returns targetChain either from the provided config or
|
|
8
|
+
* @returns targetChain either from the provided config or Base chainId for non-evm chains processed with evm tech
|
|
9
9
|
*/
|
|
10
10
|
export declare const getMockedTargetChainId: ({ targetChain }: FunkitCheckoutConfig, mockedChains?: string[]) => string;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
54
54
|
bypassInit: boolean;
|
|
55
55
|
apiKey?: string;
|
|
56
56
|
nonce?: bigint | undefined;
|
|
57
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
57
58
|
fee?: {
|
|
58
59
|
token?: string;
|
|
59
60
|
amount?: number;
|
|
@@ -61,7 +62,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
61
62
|
recipient: Address;
|
|
62
63
|
} | undefined;
|
|
63
64
|
skipDBAction?: boolean | undefined;
|
|
64
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
65
65
|
};
|
|
66
66
|
export type TokenInfo = {
|
|
67
67
|
symbol: string;
|
|
@@ -102,21 +102,14 @@ export declare const flagConfig: {
|
|
|
102
102
|
max_checkout_usd: {
|
|
103
103
|
type: "string";
|
|
104
104
|
default_value: string;
|
|
105
|
-
overrides:
|
|
106
|
-
if_any: {
|
|
107
|
-
key: "apiKey";
|
|
108
|
-
type: "isAnyOf";
|
|
109
|
-
values: string[];
|
|
110
|
-
}[];
|
|
111
|
-
value: string;
|
|
112
|
-
} | {
|
|
105
|
+
overrides: {
|
|
113
106
|
if_any: {
|
|
114
107
|
key: "userId";
|
|
115
108
|
type: "isAnyOf";
|
|
116
109
|
values: string[];
|
|
117
110
|
}[];
|
|
118
111
|
value: string;
|
|
119
|
-
}
|
|
112
|
+
}[];
|
|
120
113
|
};
|
|
121
114
|
enable_frog_proxy_server: {
|
|
122
115
|
type: "boolean";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
|
+
var clvWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
|
|
16
|
+
const shouldUseWalletConnect = !isCLVInjected;
|
|
17
|
+
return {
|
|
18
|
+
id: "clv",
|
|
19
|
+
name: "CLV",
|
|
20
|
+
iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
|
|
21
|
+
iconBackground: "#fff",
|
|
22
|
+
iconAccent: "#BDFDE2",
|
|
23
|
+
installed: isCLVInjected,
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
|
|
26
|
+
ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
|
|
27
|
+
mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
|
|
28
|
+
qrCode: "https://clv.org/"
|
|
29
|
+
},
|
|
30
|
+
extension: {
|
|
31
|
+
instructions: {
|
|
32
|
+
learnMoreUrl: "https://clv.org/",
|
|
33
|
+
steps: [
|
|
34
|
+
{
|
|
35
|
+
description: "wallet_connectors.clv.extension.step1.description",
|
|
36
|
+
step: "install",
|
|
37
|
+
title: "wallet_connectors.clv.extension.step1.title"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.clv.extension.step2.description",
|
|
41
|
+
step: "create",
|
|
42
|
+
title: "wallet_connectors.clv.extension.step2.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.clv.extension.step3.description",
|
|
46
|
+
step: "refresh",
|
|
47
|
+
title: "wallet_connectors.clv.extension.step3.title"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
mobile: {
|
|
53
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
54
|
+
},
|
|
55
|
+
qrCode: shouldUseWalletConnect ? {
|
|
56
|
+
getUri: (uri) => uri,
|
|
57
|
+
instructions: {
|
|
58
|
+
learnMoreUrl: "https://clv.org/",
|
|
59
|
+
steps: [
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.clv.qr_code.step1.description",
|
|
62
|
+
step: "install",
|
|
63
|
+
title: "wallet_connectors.clv.qr_code.step1.title"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.clv.qr_code.step2.description",
|
|
67
|
+
step: "create",
|
|
68
|
+
title: "wallet_connectors.clv.qr_code.step2.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.clv.qr_code.step3.description",
|
|
72
|
+
step: "scan",
|
|
73
|
+
title: "wallet_connectors.clv.qr_code.step3.title"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
} : void 0,
|
|
78
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
79
|
+
projectId,
|
|
80
|
+
walletConnectParameters
|
|
81
|
+
}) : getInjectedConnector({ namespace: "clover" })
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
clvWallet
|
|
87
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.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
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var bitgetWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isBitKeepInjected = hasInjectedProvider({
|
|
17
|
+
namespace: "bitkeep.ethereum",
|
|
18
|
+
flag: "isBitKeep"
|
|
19
|
+
});
|
|
20
|
+
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
21
|
+
return {
|
|
22
|
+
id: "bitget",
|
|
23
|
+
name: "Bitget Wallet",
|
|
24
|
+
rdns: "com.bitget.web3",
|
|
25
|
+
iconUrl: async () => (await import("./bitgetWallet-CBQAJOIK.js")).default,
|
|
26
|
+
iconAccent: "#f6851a",
|
|
27
|
+
iconBackground: "#fff",
|
|
28
|
+
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
29
|
+
downloadUrls: {
|
|
30
|
+
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
31
|
+
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
32
|
+
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
33
|
+
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
34
|
+
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
35
|
+
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
36
|
+
},
|
|
37
|
+
extension: {
|
|
38
|
+
instructions: {
|
|
39
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
40
|
+
steps: [
|
|
41
|
+
{
|
|
42
|
+
description: "wallet_connectors.bitget.extension.step1.description",
|
|
43
|
+
step: "install",
|
|
44
|
+
title: "wallet_connectors.bitget.extension.step1.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.bitget.extension.step2.description",
|
|
48
|
+
step: "create",
|
|
49
|
+
title: "wallet_connectors.bitget.extension.step2.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.bitget.extension.step3.description",
|
|
53
|
+
step: "refresh",
|
|
54
|
+
title: "wallet_connectors.bitget.extension.step3.description"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
mobile: {
|
|
60
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
61
|
+
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
62
|
+
} : void 0
|
|
63
|
+
},
|
|
64
|
+
qrCode: shouldUseWalletConnect ? {
|
|
65
|
+
getUri: (uri) => uri,
|
|
66
|
+
instructions: {
|
|
67
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
68
|
+
steps: [
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
71
|
+
step: "install",
|
|
72
|
+
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
76
|
+
step: "create",
|
|
77
|
+
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
81
|
+
step: "scan",
|
|
82
|
+
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
} : void 0,
|
|
87
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
+
projectId,
|
|
89
|
+
walletConnectParameters
|
|
90
|
+
}) : getInjectedConnector({
|
|
91
|
+
namespace: "bitkeep.ethereum",
|
|
92
|
+
flag: "isBitKeep"
|
|
93
|
+
})
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
bitgetWallet
|
|
99
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var okxWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
17
|
+
const shouldUseWalletConnect = !isOKXInjected;
|
|
18
|
+
return {
|
|
19
|
+
id: "okx",
|
|
20
|
+
name: "OKX Wallet",
|
|
21
|
+
rdns: "com.okex.wallet",
|
|
22
|
+
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
23
|
+
iconAccent: "#000",
|
|
24
|
+
iconBackground: "#000",
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
27
|
+
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
28
|
+
mobile: "https://okx.com/download",
|
|
29
|
+
qrCode: "https://okx.com/download",
|
|
30
|
+
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
31
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
32
|
+
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
33
|
+
browserExtension: "https://okx.com/download"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
+
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
+
} : void 0
|
|
39
|
+
},
|
|
40
|
+
qrCode: shouldUseWalletConnect ? {
|
|
41
|
+
getUri: (uri) => uri,
|
|
42
|
+
instructions: {
|
|
43
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
44
|
+
steps: [
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
47
|
+
step: "install",
|
|
48
|
+
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
52
|
+
step: "create",
|
|
53
|
+
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
57
|
+
step: "scan",
|
|
58
|
+
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
} : void 0,
|
|
63
|
+
extension: {
|
|
64
|
+
instructions: {
|
|
65
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
66
|
+
steps: [
|
|
67
|
+
{
|
|
68
|
+
description: "wallet_connectors.okx.extension.step1.description",
|
|
69
|
+
step: "install",
|
|
70
|
+
title: "wallet_connectors.okx.extension.step1.title"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.okx.extension.step2.description",
|
|
74
|
+
step: "create",
|
|
75
|
+
title: "wallet_connectors.okx.extension.step2.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.okx.extension.step3.description",
|
|
79
|
+
step: "refresh",
|
|
80
|
+
title: "wallet_connectors.okx.extension.step3.title"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
+
projectId,
|
|
87
|
+
walletConnectParameters
|
|
88
|
+
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
okxWallet
|
|
94
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var gateWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
17
|
+
const shouldUseWalletConnect = !isGateInjected;
|
|
18
|
+
return {
|
|
19
|
+
id: "gate",
|
|
20
|
+
name: "Gate Wallet",
|
|
21
|
+
rdns: "io.gate.wallet",
|
|
22
|
+
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
23
|
+
iconAccent: "#fff",
|
|
24
|
+
iconBackground: "#fff",
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
27
|
+
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
28
|
+
mobile: "https://www.gate.io/mobileapp",
|
|
29
|
+
qrCode: "https://www.gate.io/web3",
|
|
30
|
+
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
31
|
+
browserExtension: "https://www.gate.io/web3"
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
35
|
+
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
36
|
+
} : void 0
|
|
37
|
+
},
|
|
38
|
+
qrCode: shouldUseWalletConnect ? {
|
|
39
|
+
getUri: (uri) => uri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
} : void 0,
|
|
61
|
+
extension: {
|
|
62
|
+
instructions: {
|
|
63
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.gate.extension.step1.description",
|
|
67
|
+
step: "install",
|
|
68
|
+
title: "wallet_connectors.gate.extension.step1.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.gate.extension.step2.description",
|
|
72
|
+
step: "create",
|
|
73
|
+
title: "wallet_connectors.gate.extension.step2.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.gate.extension.step3.description",
|
|
77
|
+
step: "refresh",
|
|
78
|
+
title: "wallet_connectors.gate.extension.step3.title"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
+
projectId,
|
|
85
|
+
walletConnectParameters
|
|
86
|
+
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
gateWallet
|
|
92
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
|
+
var foxWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isFoxInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "foxwallet.ethereum"
|
|
17
|
+
});
|
|
18
|
+
const shouldUseWalletConnect = !isFoxInjected;
|
|
19
|
+
return {
|
|
20
|
+
id: "foxwallet",
|
|
21
|
+
name: "FoxWallet",
|
|
22
|
+
iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
|
|
23
|
+
iconBackground: "#fff",
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
|
|
26
|
+
ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
|
|
27
|
+
qrCode: "https://foxwallet.com/download"
|
|
28
|
+
},
|
|
29
|
+
mobile: {
|
|
30
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
31
|
+
return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
+
} : void 0
|
|
33
|
+
},
|
|
34
|
+
qrCode: shouldUseWalletConnect ? {
|
|
35
|
+
getUri: (uri) => uri,
|
|
36
|
+
instructions: {
|
|
37
|
+
learnMoreUrl: "https://foxwallet.com",
|
|
38
|
+
steps: [
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.fox.qr_code.step1.description",
|
|
41
|
+
step: "install",
|
|
42
|
+
title: "wallet_connectors.fox.qr_code.step1.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.fox.qr_code.step2.description",
|
|
46
|
+
step: "create",
|
|
47
|
+
title: "wallet_connectors.fox.qr_code.step2.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.fox.qr_code.step3.description",
|
|
51
|
+
step: "scan",
|
|
52
|
+
title: "wallet_connectors.fox.qr_code.step3.title"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
58
|
+
projectId,
|
|
59
|
+
walletConnectParameters
|
|
60
|
+
}) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
foxWallet
|
|
66
|
+
};
|