@funkit/connect 3.4.4 → 3.4.8
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 +44 -0
- package/dist/components/FunAssetAvatar/FunAssetAvatar.css.d.ts +0 -1
- package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
- package/dist/components/FunDivider/FunDivider.d.ts +1 -2
- package/dist/components/FunInput/FunInput.d.ts +1 -2
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -5
- package/dist/components/FunNotification/FunNotification.d.ts +4 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +22 -37
- package/dist/components/FunSelect/FunSelect.d.ts +3 -4
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +4 -3
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +7 -2
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +21 -0
- package/dist/consts/customers.d.ts +2 -0
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/domains/asset.d.ts +4 -0
- package/dist/domains/checkoutFees.d.ts +2 -1
- package/dist/{hooks/useCheckoutStateBooleans.d.ts → domains/checkoutState.d.ts} +1 -1
- package/dist/domains/clientMetadata.d.ts +0 -1
- package/dist/domains/quote.d.ts +6 -4
- package/dist/domains/wallet.d.ts +18 -0
- package/dist/hooks/useAutoClearState.d.ts +4 -0
- package/dist/hooks/useCountdown.d.ts +8 -0
- package/dist/hooks/useMesh.d.ts +2 -3
- package/dist/index.css +66 -52
- package/dist/index.js +5678 -5882
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +17 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +28 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +22 -0
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +8 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +5 -3
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -2
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +5 -2
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +7 -0
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +0 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -7
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken.d.ts +2 -4
- package/dist/modals/CheckoutModal/stepTransition.d.ts +6 -8
- package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +7 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +9 -0
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +7 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +1 -0
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +5 -2
- package/dist/providers/FunkitCheckoutContext.d.ts +1 -5
- package/dist/providers/GeneralWalletProvider.d.ts +10 -10
- package/dist/utils/aborts.d.ts +1 -0
- package/dist/utils/assets.d.ts +7 -24
- package/dist/utils/combineChainSymbolOrAddress.d.ts +1 -1
- package/dist/utils/deepMerge.d.ts +5 -0
- package/dist/utils/flags/config.d.ts +7 -1
- package/dist/utils/payment.d.ts +3 -3
- 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 +57 -57
- package/package.json +1 -1
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
- package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +0 -24
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid,
|
|
8
|
+
isIOS
|
|
9
|
+
} from "./chunk-RETKWSKD.js";
|
|
10
|
+
import {
|
|
11
|
+
getWalletConnectConnector
|
|
12
|
+
} from "./chunk-23WIEY36.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
+
function isMetaMask(ethereum) {
|
|
16
|
+
if (!ethereum?.isMetaMask) return false;
|
|
17
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
18
|
+
return false;
|
|
19
|
+
if (ethereum.isApexWallet) return false;
|
|
20
|
+
if (ethereum.isAvalanche) return false;
|
|
21
|
+
if (ethereum.isBackpack) return false;
|
|
22
|
+
if (ethereum.isBifrost) return false;
|
|
23
|
+
if (ethereum.isBitKeep) return false;
|
|
24
|
+
if (ethereum.isBitski) return false;
|
|
25
|
+
if (ethereum.isBlockWallet) return false;
|
|
26
|
+
if (ethereum.isCoinbaseWallet) return false;
|
|
27
|
+
if (ethereum.isDawn) return false;
|
|
28
|
+
if (ethereum.isEnkrypt) return false;
|
|
29
|
+
if (ethereum.isExodus) return false;
|
|
30
|
+
if (ethereum.isFrame) return false;
|
|
31
|
+
if (ethereum.isFrontier) return false;
|
|
32
|
+
if (ethereum.isGamestop) return false;
|
|
33
|
+
if (ethereum.isHyperPay) return false;
|
|
34
|
+
if (ethereum.isImToken) return false;
|
|
35
|
+
if (ethereum.isKuCoinWallet) return false;
|
|
36
|
+
if (ethereum.isMathWallet) return false;
|
|
37
|
+
if (ethereum.isNestWallet) return false;
|
|
38
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
39
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
40
|
+
return false;
|
|
41
|
+
if (ethereum.isOpera) return false;
|
|
42
|
+
if (ethereum.isPhantom) return false;
|
|
43
|
+
if (ethereum.isPortal) return false;
|
|
44
|
+
if (ethereum.isRabby) return false;
|
|
45
|
+
if (ethereum.isRainbow) return false;
|
|
46
|
+
if (ethereum.isStatus) return false;
|
|
47
|
+
if (ethereum.isTalisman) return false;
|
|
48
|
+
if (ethereum.isTally) return false;
|
|
49
|
+
if (ethereum.isTokenPocket) return false;
|
|
50
|
+
if (ethereum.isTokenary) return false;
|
|
51
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
52
|
+
if (ethereum.isXDEFI) return false;
|
|
53
|
+
if (ethereum.isZeal) return false;
|
|
54
|
+
if (ethereum.isZerion) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
var metaMaskWallet = ({
|
|
58
|
+
projectId,
|
|
59
|
+
walletConnectParameters
|
|
60
|
+
}) => {
|
|
61
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
62
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
63
|
+
const getUri = (uri) => {
|
|
64
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
65
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
66
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
67
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
id: "metaMask",
|
|
71
|
+
name: "MetaMask",
|
|
72
|
+
rdns: "io.metamask",
|
|
73
|
+
iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
|
|
74
|
+
iconAccent: "#f6851a",
|
|
75
|
+
iconBackground: "#fff",
|
|
76
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
77
|
+
downloadUrls: {
|
|
78
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
79
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
80
|
+
mobile: "https://metamask.io/download",
|
|
81
|
+
qrCode: "https://metamask.io/download",
|
|
82
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
83
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
84
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
85
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
86
|
+
browserExtension: "https://metamask.io/download"
|
|
87
|
+
},
|
|
88
|
+
mobile: {
|
|
89
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
90
|
+
},
|
|
91
|
+
qrCode: shouldUseWalletConnect ? {
|
|
92
|
+
getUri,
|
|
93
|
+
instructions: {
|
|
94
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
95
|
+
steps: [
|
|
96
|
+
{
|
|
97
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
98
|
+
step: "install",
|
|
99
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
103
|
+
step: "create",
|
|
104
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
108
|
+
step: "refresh",
|
|
109
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
} : void 0,
|
|
114
|
+
extension: {
|
|
115
|
+
instructions: {
|
|
116
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
117
|
+
steps: [
|
|
118
|
+
{
|
|
119
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
120
|
+
step: "install",
|
|
121
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
125
|
+
step: "create",
|
|
126
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
130
|
+
step: "refresh",
|
|
131
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
137
|
+
projectId,
|
|
138
|
+
walletConnectParameters
|
|
139
|
+
}) : getInjectedConnector({
|
|
140
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
141
|
+
isMetaMask
|
|
142
|
+
) ?? window.ethereum : void 0
|
|
143
|
+
})
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
metaMaskWallet
|
|
149
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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/okxWallet/okxWallet.ts
|
|
14
|
+
var okxWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
|
|
19
|
+
const shouldUseWalletConnect = !isOKXInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "okx",
|
|
22
|
+
name: "OKX Wallet",
|
|
23
|
+
rdns: "com.okex.wallet",
|
|
24
|
+
iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
|
|
25
|
+
iconAccent: "#000",
|
|
26
|
+
iconBackground: "#000",
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
29
|
+
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
30
|
+
mobile: "https://okx.com/download",
|
|
31
|
+
qrCode: "https://okx.com/download",
|
|
32
|
+
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
33
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
34
|
+
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
35
|
+
browserExtension: "https://okx.com/download"
|
|
36
|
+
},
|
|
37
|
+
mobile: {
|
|
38
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
39
|
+
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
40
|
+
} : void 0
|
|
41
|
+
},
|
|
42
|
+
qrCode: shouldUseWalletConnect ? {
|
|
43
|
+
getUri: (uri) => uri,
|
|
44
|
+
instructions: {
|
|
45
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
46
|
+
steps: [
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
49
|
+
step: "install",
|
|
50
|
+
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
54
|
+
step: "create",
|
|
55
|
+
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
59
|
+
step: "scan",
|
|
60
|
+
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
} : void 0,
|
|
65
|
+
extension: {
|
|
66
|
+
instructions: {
|
|
67
|
+
learnMoreUrl: "https://okx.com/web3/",
|
|
68
|
+
steps: [
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.okx.extension.step1.description",
|
|
71
|
+
step: "install",
|
|
72
|
+
title: "wallet_connectors.okx.extension.step1.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.okx.extension.step2.description",
|
|
76
|
+
step: "create",
|
|
77
|
+
title: "wallet_connectors.okx.extension.step2.title"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
description: "wallet_connectors.okx.extension.step3.description",
|
|
81
|
+
step: "refresh",
|
|
82
|
+
title: "wallet_connectors.okx.extension.step3.title"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
+
projectId,
|
|
89
|
+
walletConnectParameters
|
|
90
|
+
}) : getInjectedConnector({ namespace: "okxwallet" })
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
okxWallet
|
|
96
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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/coin98Wallet/coin98Wallet.ts
|
|
11
|
+
var coin98Wallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "coin98.provider",
|
|
17
|
+
flag: "isCoin98"
|
|
18
|
+
});
|
|
19
|
+
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "coin98",
|
|
22
|
+
name: "Coin98 Wallet",
|
|
23
|
+
iconUrl: async () => (await import("./coin98Wallet-RFXRNVWP.js")).default,
|
|
24
|
+
installed: isCoin98WalletInjected,
|
|
25
|
+
iconAccent: "#CDA349",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
rdns: "coin98.com",
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
+
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
+
mobile: "https://coin98.com/wallet",
|
|
32
|
+
qrCode: "https://coin98.com/wallet",
|
|
33
|
+
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
+
browserExtension: "https://coin98.com/wallet"
|
|
35
|
+
},
|
|
36
|
+
mobile: {
|
|
37
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
+
},
|
|
39
|
+
qrCode: shouldUseWalletConnect ? {
|
|
40
|
+
getUri: (uri) => uri,
|
|
41
|
+
instructions: {
|
|
42
|
+
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
+
steps: [
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
+
step: "install",
|
|
47
|
+
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
+
step: "create",
|
|
52
|
+
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
+
step: "scan",
|
|
57
|
+
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
} : void 0,
|
|
62
|
+
extension: {
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
+
step: "refresh",
|
|
79
|
+
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
}) : getInjectedConnector({
|
|
88
|
+
namespace: "coin98Wallet",
|
|
89
|
+
flag: "isCoin98"
|
|
90
|
+
})
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
coin98Wallet
|
|
96
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
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/safepalWallet/safepalWallet.ts
|
|
11
|
+
var safepalWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isSafePalWalletInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "safepalProvider",
|
|
17
|
+
flag: "isSafePal"
|
|
18
|
+
});
|
|
19
|
+
const shouldUseWalletConnect = !isSafePalWalletInjected;
|
|
20
|
+
const getUriMobile = (uri) => {
|
|
21
|
+
return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
+
};
|
|
23
|
+
const getUriQR = async (uri) => {
|
|
24
|
+
return uri;
|
|
25
|
+
};
|
|
26
|
+
const mobileConnector = {
|
|
27
|
+
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
28
|
+
};
|
|
29
|
+
let qrConnector = void 0;
|
|
30
|
+
if (shouldUseWalletConnect) {
|
|
31
|
+
qrConnector = {
|
|
32
|
+
getUri: getUriQR,
|
|
33
|
+
instructions: {
|
|
34
|
+
learnMoreUrl: "https://safepal.com/",
|
|
35
|
+
steps: [
|
|
36
|
+
{
|
|
37
|
+
description: "wallet_connectors.safepal.qr_code.step1.description",
|
|
38
|
+
step: "install",
|
|
39
|
+
title: "wallet_connectors.safepal.qr_code.step1.title"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
description: "wallet_connectors.safepal.qr_code.step2.description",
|
|
43
|
+
step: "create",
|
|
44
|
+
title: "wallet_connectors.safepal.qr_code.step2.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.safepal.qr_code.step3.description",
|
|
48
|
+
step: "scan",
|
|
49
|
+
title: "wallet_connectors.safepal.qr_code.step3.title"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const extensionConnector = {
|
|
56
|
+
instructions: {
|
|
57
|
+
learnMoreUrl: "https://www.safepal.com/download?product=2",
|
|
58
|
+
steps: [
|
|
59
|
+
{
|
|
60
|
+
description: "wallet_connectors.safepal.extension.step1.description",
|
|
61
|
+
step: "install",
|
|
62
|
+
title: "wallet_connectors.safepal.extension.step1.title"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
description: "wallet_connectors.safepal.extension.step2.description",
|
|
66
|
+
step: "create",
|
|
67
|
+
title: "wallet_connectors.safepal.extension.step2.title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.safepal.extension.step3.description",
|
|
71
|
+
step: "refresh",
|
|
72
|
+
title: "wallet_connectors.safepal.extension.step3.title"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
id: "safepal",
|
|
79
|
+
name: "SafePal Wallet",
|
|
80
|
+
iconUrl: async () => (await import("./safepalWallet-KQJ4OCNH.js")).default,
|
|
81
|
+
// Note that we never resolve `installed` to `false` because the
|
|
82
|
+
// SafePal Wallet provider falls back to other connection methods if
|
|
83
|
+
// the injected connector isn't available
|
|
84
|
+
installed: isSafePalWalletInjected,
|
|
85
|
+
iconAccent: "#3375BB",
|
|
86
|
+
iconBackground: "#fff",
|
|
87
|
+
downloadUrls: {
|
|
88
|
+
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
|
|
89
|
+
ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
|
|
90
|
+
mobile: "https://www.safepal.com/en/download",
|
|
91
|
+
qrCode: "https://www.safepal.com/en/download",
|
|
92
|
+
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
93
|
+
browserExtension: "https://www.safepal.com/download?product=2"
|
|
94
|
+
},
|
|
95
|
+
mobile: mobileConnector,
|
|
96
|
+
...qrConnector ? qrConnector : {},
|
|
97
|
+
extension: extensionConnector,
|
|
98
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
99
|
+
projectId,
|
|
100
|
+
walletConnectParameters
|
|
101
|
+
}) : getInjectedConnector({
|
|
102
|
+
namespace: "safepalProvider",
|
|
103
|
+
flag: "isSafePal"
|
|
104
|
+
})
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export {
|
|
109
|
+
safepalWallet
|
|
110
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
walletConnectWallet
|
|
4
|
+
} from "./chunk-OFU3PEVT.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-RVIZMVFR.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-DBP432DI.js";
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
13
|
} from "./chunk-N3ELQYCY.js";
|
|
@@ -15,26 +15,29 @@ import {
|
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-6AYBA6IH.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-OTXHQMSG.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-ISJYPD3T.js";
|
|
23
|
-
import {
|
|
24
|
-
talismanWallet
|
|
25
|
-
} from "./chunk-OTXHQMSG.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
25
|
} from "./chunk-X45WXZDO.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
tokenaryWallet
|
|
28
|
+
} from "./chunk-FAYEL4JP.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-QFRZGNNV.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-BUUV6BS4.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-KEVUI6AA.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-H5LLXNOI.js";
|
|
38
41
|
import {
|
|
39
42
|
rainbowWallet
|
|
40
43
|
} from "./chunk-OHJBALD3.js";
|
|
@@ -42,29 +45,29 @@ import {
|
|
|
42
45
|
ramperWallet
|
|
43
46
|
} from "./chunk-TKXQYHWJ.js";
|
|
44
47
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-63YLN6R5.js";
|
|
47
50
|
import {
|
|
48
51
|
safeheronWallet
|
|
49
52
|
} from "./chunk-FCIRHRFH.js";
|
|
53
|
+
import {
|
|
54
|
+
safepalWallet
|
|
55
|
+
} from "./chunk-AKAT37SI.js";
|
|
50
56
|
import {
|
|
51
57
|
safeWallet
|
|
52
58
|
} from "./chunk-Z2QCE6O6.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
safepalWallet
|
|
58
|
-
} from "./chunk-AKAT37SI.js";
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-ODRDT73B.js";
|
|
59
62
|
import {
|
|
60
63
|
mewWallet
|
|
61
64
|
} from "./chunk-CVYXTHZ6.js";
|
|
62
|
-
import {
|
|
63
|
-
frontierWallet
|
|
64
|
-
} from "./chunk-LCOUKF2U.js";
|
|
65
65
|
import {
|
|
66
66
|
oktoWallet
|
|
67
67
|
} from "./chunk-MBQTOALG.js";
|
|
68
|
+
import {
|
|
69
|
+
ledgerWallet
|
|
70
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
73
|
} from "./chunk-5HXH52SO.js";
|
|
@@ -72,35 +75,38 @@ import {
|
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-II6YBG2B.js";
|
|
74
77
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-I7MKK24W.js";
|
|
77
80
|
import {
|
|
78
81
|
oneKeyWallet
|
|
79
82
|
} from "./chunk-ZP2SV6KN.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-WAOREEBE.js";
|
|
83
86
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-KPVNJO3R.js";
|
|
89
|
+
import {
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-LCOUKF2U.js";
|
|
86
92
|
import {
|
|
87
93
|
gateWallet
|
|
88
94
|
} from "./chunk-YIJ5ULO3.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-BMJOLT2N.js";
|
|
89
98
|
import {
|
|
90
99
|
injectedWallet
|
|
91
100
|
} from "./chunk-E5NYR4SS.js";
|
|
92
|
-
import {
|
|
93
|
-
bitverseWallet
|
|
94
|
-
} from "./chunk-BQEOIDHP.js";
|
|
95
101
|
import {
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-QQJKQCII.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-3AZNOY75.js";
|
|
101
107
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
108
|
+
braveWallet
|
|
109
|
+
} from "./chunk-NUEOWEZS.js";
|
|
104
110
|
import {
|
|
105
111
|
coin98Wallet
|
|
106
112
|
} from "./chunk-ZXGMW3OS.js";
|
|
@@ -108,23 +114,17 @@ import {
|
|
|
108
114
|
coinbaseWallet
|
|
109
115
|
} from "./chunk-PNEDRY6O.js";
|
|
110
116
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-MOOW2AOC.js";
|
|
113
119
|
import {
|
|
114
120
|
dawnWallet
|
|
115
121
|
} from "./chunk-KCTWDMQP.js";
|
|
116
122
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-44CHUPEQ.js";
|
|
119
125
|
import {
|
|
120
126
|
enkryptWallet
|
|
121
127
|
} from "./chunk-JJ4DXD7R.js";
|
|
122
|
-
import {
|
|
123
|
-
foxWallet
|
|
124
|
-
} from "./chunk-WAOREEBE.js";
|
|
125
|
-
import {
|
|
126
|
-
frameWallet
|
|
127
|
-
} from "./chunk-KPVNJO3R.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-ZHFISYEQ.js";
|
|
@@ -135,19 +135,19 @@ import {
|
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-IEVZW3XR.js";
|
|
137
137
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-BQEOIDHP.js";
|
|
140
140
|
import {
|
|
141
141
|
bloomWallet
|
|
142
142
|
} from "./chunk-J64P6XK3.js";
|
|
143
143
|
import "./chunk-RETKWSKD.js";
|
|
144
144
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
147
|
-
import {
|
|
148
|
-
bybitWallet
|
|
149
|
-
} from "./chunk-3AZNOY75.js";
|
|
145
|
+
clvWallet
|
|
146
|
+
} from "./chunk-UHHA5V52.js";
|
|
150
147
|
import "./chunk-23WIEY36.js";
|
|
148
|
+
import {
|
|
149
|
+
bitskiWallet
|
|
150
|
+
} from "./chunk-OCCT5PIN.js";
|
|
151
151
|
import "./chunk-WRA2DVJ7.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MeshExchanges } from '../../utils/mesh';
|
|
3
|
-
export interface FunPaymentMeshTypeProps {
|
|
4
|
-
isParentLoading: boolean;
|
|
5
|
-
onConfirmExchange: (exchange: MeshExchanges) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This component handles payments <> mesh integration
|
|
9
|
-
*/
|
|
10
|
-
export declare function FunPaymentMeshType({ isParentLoading, onConfirmExchange, }: FunPaymentMeshTypeProps): React.JSX.Element;
|