@funkit/connect 1.0.18 → 1.0.19
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 +7 -0
- package/dist/index.js +66 -31
- 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-4FQLUQNA.js +96 -0
- package/dist/wallets/walletConnectors/chunk-JLQ5HJYV.js +94 -0
- package/dist/wallets/walletConnectors/chunk-LVRXH33E.js +92 -0
- package/dist/wallets/walletConnectors/chunk-MIWCKFYE.js +87 -0
- package/dist/wallets/walletConnectors/chunk-Q4RLUJJD.js +66 -0
- package/dist/wallets/walletConnectors/chunk-SYELB4QO.js +107 -0
- package/dist/wallets/walletConnectors/chunk-ZBAQFL6G.js +102 -0
- package/dist/wallets/walletConnectors/chunk-ZUAHWUEL.js +98 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.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 +66 -66
- 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 +1 -1
- package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
- package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
- package/dist/wallets/walletConnectors/{chunk-OR3PU2W4.js → chunk-2UXZAUWT.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-X255T3C4.js → chunk-3WZRNEZH.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-SL4VH23R.js → chunk-6LTLPR2Q.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-SQGFKNNZ.js → chunk-7CQPABJG.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-N3VZE65M.js → chunk-AM4SSLAP.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-XSSD5ZVD.js → chunk-NGXIHASN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-FDIIMYTB.js → chunk-O5NKWWEG.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-2PC2XXUH.js → chunk-V45EXW7A.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-OAEJQOAV.js → chunk-Z2DGDHHZ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-75A2U7T7.js → chunk-ZNXQ4V6G.js} +4 -4
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2782,7 +2782,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
2782
2782
|
]
|
|
2783
2783
|
);
|
|
2784
2784
|
const _generateSignedBatchOperation = useCallback6(
|
|
2785
|
-
async (actionsParams, assetChainId, bypassWalletInit, stepMessageSetter) => {
|
|
2785
|
+
async (actionsParams = [], assetChainId, bypassWalletInit, stepMessageSetter) => {
|
|
2786
2786
|
if (!funWallet || !funWalletAuth) {
|
|
2787
2787
|
throw new Error("Funwallet or auth not defined");
|
|
2788
2788
|
}
|
|
@@ -2801,7 +2801,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
2801
2801
|
);
|
|
2802
2802
|
txParamsList.push(formattedTxParams);
|
|
2803
2803
|
});
|
|
2804
|
-
logger.log("originalTxParamsList", txParamsList);
|
|
2804
|
+
logger.log("originalTxParamsList", { txParamsList });
|
|
2805
2805
|
if (isWeb3Login) {
|
|
2806
2806
|
const funChainItem = await Chain.getChain({
|
|
2807
2807
|
chainIdentifier: assetChainId
|
|
@@ -2834,7 +2834,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
2834
2834
|
txParamsList = [addOwnerTxParamsItem, ...txParamsList];
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
-
logger.log("finalTxParamsList", txParamsList);
|
|
2837
|
+
logger.log("finalTxParamsList", { txParamsList });
|
|
2838
2838
|
const newConfig = getFunkitEnvForCheckoutEstimation({
|
|
2839
2839
|
chainId: assetChainId,
|
|
2840
2840
|
bypassWalletInit
|
|
@@ -2950,6 +2950,8 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
2950
2950
|
funkitConfig.apiKey,
|
|
2951
2951
|
_getAndValidateCheckoutItemByCheckoutId,
|
|
2952
2952
|
isWeb3Login,
|
|
2953
|
+
isWeb2Login,
|
|
2954
|
+
walletAddress,
|
|
2953
2955
|
_generateClientMetadataForBackend,
|
|
2954
2956
|
activeCheckouts,
|
|
2955
2957
|
triggerRefreshSymbol,
|
|
@@ -9281,6 +9283,24 @@ function FunContainer({
|
|
|
9281
9283
|
}, isCollapsed ? /* @__PURE__ */ React103.createElement(React103.Fragment, null) : children));
|
|
9282
9284
|
}
|
|
9283
9285
|
|
|
9286
|
+
// src/components/FunkitProvider/walletConnectDeepLink.ts
|
|
9287
|
+
var storageKey2 = "WALLETCONNECT_DEEPLINK_CHOICE";
|
|
9288
|
+
function setWalletConnectDeepLink({
|
|
9289
|
+
mobileUri,
|
|
9290
|
+
name
|
|
9291
|
+
}) {
|
|
9292
|
+
localStorage.setItem(
|
|
9293
|
+
storageKey2,
|
|
9294
|
+
JSON.stringify({
|
|
9295
|
+
href: mobileUri.split("?")[0],
|
|
9296
|
+
name
|
|
9297
|
+
})
|
|
9298
|
+
);
|
|
9299
|
+
}
|
|
9300
|
+
function clearWalletConnectDeepLink() {
|
|
9301
|
+
localStorage.removeItem(storageKey2);
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9284
9304
|
// src/components/Icons/ProfileIcon.tsx
|
|
9285
9305
|
import React104 from "react";
|
|
9286
9306
|
var ProfileIcon = () => {
|
|
@@ -9737,11 +9757,44 @@ function FunSignInStep({
|
|
|
9737
9757
|
uri ? 0 : 50
|
|
9738
9758
|
);
|
|
9739
9759
|
};
|
|
9760
|
+
const mobile = isMobile();
|
|
9761
|
+
const onMobileUri = async (wallet) => {
|
|
9762
|
+
var _a2;
|
|
9763
|
+
const mobileUri = await ((_a2 = wallet == null ? void 0 : wallet.getMobileUri) == null ? void 0 : _a2.call(wallet));
|
|
9764
|
+
if (!mobileUri)
|
|
9765
|
+
return;
|
|
9766
|
+
if (mobileUri) {
|
|
9767
|
+
setWalletConnectDeepLink({ mobileUri, name: wallet == null ? void 0 : wallet.name });
|
|
9768
|
+
}
|
|
9769
|
+
if (mobileUri.startsWith("http")) {
|
|
9770
|
+
const link = document.createElement("a");
|
|
9771
|
+
link.href = mobileUri;
|
|
9772
|
+
link.target = "_blank";
|
|
9773
|
+
link.rel = "noreferrer noopener";
|
|
9774
|
+
link.click();
|
|
9775
|
+
} else {
|
|
9776
|
+
window.location.href = mobileUri;
|
|
9777
|
+
}
|
|
9778
|
+
};
|
|
9779
|
+
const handleMobileWalletConnection = (wallet) => {
|
|
9780
|
+
if (wallet.id !== "walletConnect") {
|
|
9781
|
+
onMobileUri(wallet);
|
|
9782
|
+
}
|
|
9783
|
+
if (wallet.showWalletConnectModal) {
|
|
9784
|
+
wallet.showWalletConnectModal();
|
|
9785
|
+
onClose == null ? void 0 : onClose();
|
|
9786
|
+
return;
|
|
9787
|
+
}
|
|
9788
|
+
};
|
|
9740
9789
|
const selectWeb3Wallet = (wallet) => {
|
|
9741
9790
|
addLatestWalletId(wallet.id);
|
|
9742
9791
|
if (wallet.ready) {
|
|
9743
9792
|
onQrCode(wallet);
|
|
9744
|
-
|
|
9793
|
+
if (mobile) {
|
|
9794
|
+
handleMobileWalletConnection(wallet);
|
|
9795
|
+
} else {
|
|
9796
|
+
onDesktopUri(wallet);
|
|
9797
|
+
}
|
|
9745
9798
|
}
|
|
9746
9799
|
connectToWallet(wallet);
|
|
9747
9800
|
setSelectedOptionId(wallet.id);
|
|
@@ -14148,7 +14201,7 @@ var connectorsWithRecentWallets = ({
|
|
|
14148
14201
|
};
|
|
14149
14202
|
|
|
14150
14203
|
// src/wallets/recentWalletIds.ts
|
|
14151
|
-
var
|
|
14204
|
+
var storageKey3 = "rk-recent";
|
|
14152
14205
|
function safeParseJsonArray(string) {
|
|
14153
14206
|
try {
|
|
14154
14207
|
const value = string ? JSON.parse(string) : [];
|
|
@@ -14158,14 +14211,14 @@ function safeParseJsonArray(string) {
|
|
|
14158
14211
|
}
|
|
14159
14212
|
}
|
|
14160
14213
|
function getRecentWalletIds() {
|
|
14161
|
-
return typeof localStorage !== "undefined" ? safeParseJsonArray(localStorage.getItem(
|
|
14214
|
+
return typeof localStorage !== "undefined" ? safeParseJsonArray(localStorage.getItem(storageKey3)) : [];
|
|
14162
14215
|
}
|
|
14163
14216
|
function dedupe(array) {
|
|
14164
14217
|
return [...new Set(array)];
|
|
14165
14218
|
}
|
|
14166
14219
|
function addRecentWalletId(walletId) {
|
|
14167
14220
|
const newValue = dedupe([walletId, ...getRecentWalletIds()]);
|
|
14168
|
-
localStorage.setItem(
|
|
14221
|
+
localStorage.setItem(storageKey3, JSON.stringify(newValue));
|
|
14169
14222
|
}
|
|
14170
14223
|
|
|
14171
14224
|
// src/wallets/useWalletConnectors.ts
|
|
@@ -14766,7 +14819,7 @@ import React146, { createContext as createContext19, useContext as useContext25,
|
|
|
14766
14819
|
import { useAccount as useAccount14, usePublicClient } from "wagmi";
|
|
14767
14820
|
|
|
14768
14821
|
// src/transactions/transactionStore.ts
|
|
14769
|
-
var
|
|
14822
|
+
var storageKey4 = "rk-transactions";
|
|
14770
14823
|
function safeParseJsonData(string) {
|
|
14771
14824
|
try {
|
|
14772
14825
|
const value = string ? JSON.parse(string) : {};
|
|
@@ -14777,7 +14830,7 @@ function safeParseJsonData(string) {
|
|
|
14777
14830
|
}
|
|
14778
14831
|
function loadData() {
|
|
14779
14832
|
return safeParseJsonData(
|
|
14780
|
-
typeof localStorage !== "undefined" ? localStorage.getItem(
|
|
14833
|
+
typeof localStorage !== "undefined" ? localStorage.getItem(storageKey4) : null
|
|
14781
14834
|
);
|
|
14782
14835
|
}
|
|
14783
14836
|
var transactionHashRegex = /^0x([A-Fa-f0-9]{64})$/;
|
|
@@ -14880,7 +14933,7 @@ function createTransactionStore({
|
|
|
14880
14933
|
waitForPendingTransactions(account, chainId);
|
|
14881
14934
|
}
|
|
14882
14935
|
function persistData() {
|
|
14883
|
-
localStorage.setItem(
|
|
14936
|
+
localStorage.setItem(storageKey4, JSON.stringify(data));
|
|
14884
14937
|
}
|
|
14885
14938
|
function notifyListeners() {
|
|
14886
14939
|
for (const listener of listeners) {
|
|
@@ -16087,12 +16140,12 @@ function generateInnerWagmiConfig(props) {
|
|
|
16087
16140
|
|
|
16088
16141
|
// src/components/FunkitProvider/useFingerprint.ts
|
|
16089
16142
|
import { useCallback as useCallback29, useEffect as useEffect33 } from "react";
|
|
16090
|
-
var
|
|
16143
|
+
var storageKey5 = "funkit-connect-version";
|
|
16091
16144
|
function setFunkitConnectVersion({ version }) {
|
|
16092
|
-
localStorage.setItem(
|
|
16145
|
+
localStorage.setItem(storageKey5, version);
|
|
16093
16146
|
}
|
|
16094
16147
|
function getCurrentSdkVersion() {
|
|
16095
|
-
return "1.0.
|
|
16148
|
+
return "1.0.19";
|
|
16096
16149
|
}
|
|
16097
16150
|
function useFingerprint() {
|
|
16098
16151
|
const fingerprint = useCallback29(() => {
|
|
@@ -16127,24 +16180,6 @@ function usePreloadImages() {
|
|
|
16127
16180
|
}, [preloadImages]);
|
|
16128
16181
|
}
|
|
16129
16182
|
|
|
16130
|
-
// src/components/FunkitProvider/walletConnectDeepLink.ts
|
|
16131
|
-
var storageKey5 = "WALLETCONNECT_DEEPLINK_CHOICE";
|
|
16132
|
-
function setWalletConnectDeepLink({
|
|
16133
|
-
mobileUri,
|
|
16134
|
-
name
|
|
16135
|
-
}) {
|
|
16136
|
-
localStorage.setItem(
|
|
16137
|
-
storageKey5,
|
|
16138
|
-
JSON.stringify({
|
|
16139
|
-
href: mobileUri.split("?")[0],
|
|
16140
|
-
name
|
|
16141
|
-
})
|
|
16142
|
-
);
|
|
16143
|
-
}
|
|
16144
|
-
function clearWalletConnectDeepLink() {
|
|
16145
|
-
localStorage.removeItem(storageKey5);
|
|
16146
|
-
}
|
|
16147
|
-
|
|
16148
16183
|
// src/components/FunkitProvider/FunkitProvider.tsx
|
|
16149
16184
|
var MoonPayProvider = (props) => {
|
|
16150
16185
|
const [MoonPayProviderInner, setMoonPayProviderInner] = React149.useState(null);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-6LTLPR2Q.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-ZNXQ4V6G.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-QII6PY2D.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-7Q4WNBWR.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,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-QII6PY2D.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
|
+
iconUrl: async () => (await import("./coreWallet-HRVLR2XS.js")).default,
|
|
24
|
+
iconBackground: "#1A1A1C",
|
|
25
|
+
installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
|
|
26
|
+
downloadUrls: {
|
|
27
|
+
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
28
|
+
ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
|
|
29
|
+
mobile: "https://core.app/?downloadCoreMobile=1",
|
|
30
|
+
qrCode: "https://core.app/?downloadCoreMobile=1",
|
|
31
|
+
chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
|
|
32
|
+
browserExtension: "https://extension.core.app/"
|
|
33
|
+
},
|
|
34
|
+
mobile: {
|
|
35
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
36
|
+
},
|
|
37
|
+
qrCode: shouldUseWalletConnect ? {
|
|
38
|
+
getUri: (uri) => uri,
|
|
39
|
+
instructions: {
|
|
40
|
+
learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
|
|
41
|
+
steps: [
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.core.qr_code.step1.description",
|
|
44
|
+
step: "install",
|
|
45
|
+
title: "wallet_connectors.core.qr_code.step1.title"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.core.qr_code.step2.description",
|
|
49
|
+
step: "create",
|
|
50
|
+
title: "wallet_connectors.core.qr_code.step2.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.core.qr_code.step3.description",
|
|
54
|
+
step: "scan",
|
|
55
|
+
title: "wallet_connectors.core.qr_code.step3.title"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
} : void 0,
|
|
60
|
+
extension: {
|
|
61
|
+
instructions: {
|
|
62
|
+
learnMoreUrl: "https://extension.core.app/",
|
|
63
|
+
steps: [
|
|
64
|
+
{
|
|
65
|
+
description: "wallet_connectors.core.extension.step1.description",
|
|
66
|
+
step: "install",
|
|
67
|
+
title: "wallet_connectors.core.extension.step1.title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.core.extension.step2.description",
|
|
71
|
+
step: "create",
|
|
72
|
+
title: "wallet_connectors.core.extension.step2.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.core.extension.step3.description",
|
|
76
|
+
step: "refresh",
|
|
77
|
+
title: "wallet_connectors.core.extension.step3.title"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
83
|
+
projectId,
|
|
84
|
+
walletConnectParameters
|
|
85
|
+
}) : getInjectedConnector({
|
|
86
|
+
namespace: "avalanche",
|
|
87
|
+
flag: "isAvalanche"
|
|
88
|
+
})
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
coreWallet
|
|
94
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-QII6PY2D.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-RYQGWG3X.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,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-QII6PY2D.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-RM4V57ZB.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,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-QII6PY2D.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-RFPGZZOK.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
|
+
};
|