@funkit/connect 1.1.5 → 1.2.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 +29 -0
- package/dist/components/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/ConnectButton/ConnectButton.d.ts +3 -1
- package/dist/components/FunButton/FunIconButton.d.ts +3 -3
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +1 -1
- package/dist/components/Icons/ClockIcon.d.ts +1 -1
- package/dist/components/Icons/CoinIcon.d.ts +1 -1
- package/dist/components/Icons/Coinbase.d.ts +3 -1
- package/dist/components/Icons/Copied.d.ts +1 -1
- package/dist/components/Icons/EditIcon.d.ts +1 -1
- package/dist/components/Icons/EthereumIcon.d.ts +1 -1
- package/dist/components/Icons/FunkitPaymentsIconLine.d.ts +6 -0
- package/dist/components/Icons/LightningIcon.d.ts +1 -1
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +1 -1
- package/dist/components/Icons/PaymentMethodIcons.d.ts +1 -1
- package/dist/components/Icons/SearchIcon.d.ts +1 -1
- package/dist/components/Icons/Spinner.d.ts +2 -2
- package/dist/components/InfoButton/InfoButton.d.ts +1 -1
- package/dist/components/WalletButton/WalletButton.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +204 -60
- package/dist/hooks/useMesh.d.ts +6 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +455 -164
- package/dist/types/utils.d.ts +37 -0
- package/dist/utils/mesh.d.ts +4 -27
- package/dist/wallets/getInjectedConnector.d.ts +3 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +2 -2
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-MIWCKFYE.js → chunk-2DWBVWFI.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-3WZRNEZH.js → chunk-32KBKKGT.js} +9 -5
- package/dist/wallets/walletConnectors/{chunk-JLQ5HJYV.js → chunk-32O7HVBJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-O5NKWWEG.js → chunk-3CLNL7LR.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-3F5GNHAG.js +182 -0
- package/dist/wallets/walletConnectors/{chunk-4FQLUQNA.js → chunk-3QXMJHL4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZNXQ4V6G.js → chunk-3R3RNCGE.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-KGBLSE7L.js → chunk-4PTY6XNU.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZBAQFL6G.js → chunk-5L2OLU3J.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-XPEBP6XV.js → chunk-5SIHQ5GA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NGXIHASN.js → chunk-5ZGE5SN5.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
- package/dist/wallets/walletConnectors/chunk-7YDZTPO4.js +100 -0
- package/dist/wallets/walletConnectors/{chunk-6LTLPR2Q.js → chunk-AFONKDII.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZUAHWUEL.js → chunk-BCXBFAL4.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-Z2DGDHHZ.js → chunk-BMHNXJZK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-V45EXW7A.js → chunk-CMXZK5RR.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-LVRXH33E.js → chunk-CNTLU4ZV.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-EXN2ODSI.js +73 -0
- package/dist/wallets/walletConnectors/{chunk-QII6PY2D.js → chunk-F3VCNZXS.js} +8 -6
- package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
- package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-63NPZXAL.js → chunk-FQDX6QIP.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7CQPABJG.js → chunk-G4DNQN67.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-KIHCNUU3.js → chunk-GUJHPWTU.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-XXFJVY73.js → chunk-HXGBE5AH.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
- package/dist/wallets/walletConnectors/{chunk-C67TQJ6W.js → chunk-IMZRCMZR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-L734HTUS.js → chunk-JNZ3EYC7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ENZLEAG2.js → chunk-JRABHUUZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ABYQAXUX.js → chunk-KJWMF6GZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4XQDKOGF.js → chunk-KZFAL4RZ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-2UXZAUWT.js → chunk-LJRV5JY7.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-AM4SSLAP.js → chunk-LOEDYNWO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-Q4RLUJJD.js → chunk-M4SPCKW4.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-MFS6NY6T.js +105 -0
- package/dist/wallets/walletConnectors/chunk-MOAWRDEM.js +95 -0
- package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
- package/dist/wallets/walletConnectors/chunk-ND5YG63V.js +87 -0
- package/dist/wallets/walletConnectors/chunk-NK3DYIAB.js +92 -0
- package/dist/wallets/walletConnectors/{chunk-XBUTWYE4.js → chunk-O77H3VWW.js} +14 -18
- package/dist/wallets/walletConnectors/chunk-OMKARG6Y.js +94 -0
- package/dist/wallets/walletConnectors/chunk-OPO2D6GL.js +102 -0
- package/dist/wallets/walletConnectors/chunk-OUQ3ZF2W.js +100 -0
- package/dist/wallets/walletConnectors/chunk-OXWTS7HX.js +98 -0
- package/dist/wallets/walletConnectors/{chunk-P4JLZ42R.js → chunk-P4C7ZHIS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-H76YCX2M.js → chunk-PILSRRPJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-PJRUHFBT.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-SYELB4QO.js → chunk-PQSJXOGA.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-QGQISKXF.js +94 -0
- package/dist/wallets/walletConnectors/{chunk-4WOV4ITL.js → chunk-QS2J6MWB.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-QUFNIKMV.js +27 -0
- package/dist/wallets/walletConnectors/{chunk-H273OTQA.js → chunk-R2GYJ376.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-R5GNFRXW.js +96 -0
- package/dist/wallets/walletConnectors/chunk-S2IWMXKX.js +94 -0
- package/dist/wallets/walletConnectors/{chunk-FLY7F4XA.js → chunk-SJWHYD45.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-TKXMLZXG.js +66 -0
- package/dist/wallets/walletConnectors/chunk-TUK3HNKY.js +182 -0
- package/dist/wallets/walletConnectors/chunk-UWU574XS.js +95 -0
- package/dist/wallets/walletConnectors/chunk-WH7S23VZ.js +73 -0
- package/dist/wallets/walletConnectors/chunk-WS4EM7AZ.js +102 -0
- package/dist/wallets/walletConnectors/chunk-XB2GFXBL.js +107 -0
- package/dist/wallets/walletConnectors/{chunk-ZOL6ZMTJ.js → chunk-XEZPRJPV.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-XUXFYTCV.js +96 -0
- package/dist/wallets/walletConnectors/{chunk-DPXMP5KS.js → chunk-Z5QFIFDP.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-ZBQT5PV6.js +98 -0
- package/dist/wallets/walletConnectors/{chunk-PWYTDYBE.js → chunk-ZCSUP7CX.js} +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -1
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +1 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.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 +80 -80
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.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/tahoWallet/tahoWallet.js +2 -2
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -4
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
+
var bitgetWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isBitKeepInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "bitkeep.ethereum",
|
|
20
|
+
flag: "isBitKeep"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
23
|
+
return {
|
|
24
|
+
id: "bitget",
|
|
25
|
+
name: "Bitget Wallet",
|
|
26
|
+
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
27
|
+
iconAccent: "#f6851a",
|
|
28
|
+
iconBackground: "#fff",
|
|
29
|
+
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
30
|
+
downloadUrls: {
|
|
31
|
+
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
32
|
+
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
33
|
+
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
34
|
+
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
35
|
+
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
36
|
+
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
37
|
+
},
|
|
38
|
+
extension: {
|
|
39
|
+
instructions: {
|
|
40
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
41
|
+
steps: [
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.bitget.extension.step1.description",
|
|
44
|
+
step: "install",
|
|
45
|
+
title: "wallet_connectors.bitget.extension.step1.title"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.bitget.extension.step2.description",
|
|
49
|
+
step: "create",
|
|
50
|
+
title: "wallet_connectors.bitget.extension.step2.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.bitget.extension.step3.description",
|
|
54
|
+
step: "refresh",
|
|
55
|
+
title: "wallet_connectors.bitget.extension.step3.description"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
mobile: {
|
|
61
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
62
|
+
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
63
|
+
} : void 0
|
|
64
|
+
},
|
|
65
|
+
qrCode: shouldUseWalletConnect ? {
|
|
66
|
+
getUri: (uri) => uri,
|
|
67
|
+
instructions: {
|
|
68
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
69
|
+
steps: [
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
72
|
+
step: "install",
|
|
73
|
+
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
77
|
+
step: "create",
|
|
78
|
+
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
82
|
+
step: "scan",
|
|
83
|
+
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
} : void 0,
|
|
88
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
+
projectId,
|
|
90
|
+
walletConnectParameters
|
|
91
|
+
}) : getInjectedConnector({
|
|
92
|
+
namespace: "bitkeep.ethereum",
|
|
93
|
+
flag: "isBitKeep"
|
|
94
|
+
})
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
bitgetWallet
|
|
100
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
11
|
var bybitWallet = ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
2
6
|
import {
|
|
3
7
|
isAndroid
|
|
4
8
|
} from "./chunk-ZOLACFTK.js";
|
|
5
9
|
import {
|
|
6
10
|
getWalletConnectConnector
|
|
7
11
|
} from "./chunk-ZDU3JFGR.js";
|
|
8
|
-
import {
|
|
9
|
-
getInjectedConnector,
|
|
10
|
-
hasInjectedProvider
|
|
11
|
-
} from "./chunk-QII6PY2D.js";
|
|
12
12
|
|
|
13
13
|
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
14
14
|
var gateWallet = ({
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid,
|
|
4
|
+
isIOS
|
|
5
|
+
} from "./chunk-ZOLACFTK.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
9
|
+
import {
|
|
10
|
+
getInjectedConnector,
|
|
11
|
+
hasInjectedProvider
|
|
12
|
+
} from "./chunk-F3VCNZXS.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
+
var rainbowWallet = ({
|
|
16
|
+
projectId,
|
|
17
|
+
walletConnectParameters
|
|
18
|
+
}) => {
|
|
19
|
+
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
20
|
+
const shouldUseWalletConnect = !isRainbowInjected;
|
|
21
|
+
const getUri = (uri) => {
|
|
22
|
+
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
23
|
+
uri
|
|
24
|
+
)}&connector=rainbowkit`;
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
id: "rainbow",
|
|
28
|
+
name: "Rainbow",
|
|
29
|
+
rdns: "me.rainbow",
|
|
30
|
+
iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
|
|
31
|
+
iconBackground: "#0c2f78",
|
|
32
|
+
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
33
|
+
downloadUrls: {
|
|
34
|
+
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
35
|
+
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
36
|
+
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
37
|
+
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
38
|
+
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
39
|
+
},
|
|
40
|
+
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
41
|
+
qrCode: shouldUseWalletConnect ? {
|
|
42
|
+
getUri,
|
|
43
|
+
instructions: {
|
|
44
|
+
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
45
|
+
steps: [
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
48
|
+
step: "install",
|
|
49
|
+
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
53
|
+
step: "create",
|
|
54
|
+
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
58
|
+
step: "scan",
|
|
59
|
+
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
} : void 0,
|
|
64
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
65
|
+
projectId,
|
|
66
|
+
walletConnectParameters
|
|
67
|
+
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
rainbowWallet
|
|
73
|
+
};
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
import { createConnector } from "wagmi";
|
|
4
4
|
import { injected } from "wagmi/connectors";
|
|
5
5
|
function getExplicitInjectedProvider(flag) {
|
|
6
|
-
|
|
6
|
+
const _window = typeof window !== "undefined" ? window : void 0;
|
|
7
|
+
if (typeof _window === "undefined" || typeof _window.ethereum === "undefined")
|
|
7
8
|
return;
|
|
8
|
-
const providers =
|
|
9
|
-
return providers ? providers.find((provider) => provider[flag]) :
|
|
9
|
+
const providers = _window.ethereum.providers;
|
|
10
|
+
return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
|
|
10
11
|
}
|
|
11
12
|
function getWindowProviderNamespace(namespace) {
|
|
12
13
|
const providerSearch = (provider, namespace2) => {
|
|
@@ -36,14 +37,15 @@ function getInjectedProvider({
|
|
|
36
37
|
namespace
|
|
37
38
|
}) {
|
|
38
39
|
var _a;
|
|
39
|
-
|
|
40
|
+
const _window = typeof window !== "undefined" ? window : void 0;
|
|
41
|
+
if (typeof _window === "undefined")
|
|
40
42
|
return;
|
|
41
43
|
if (namespace) {
|
|
42
44
|
const windowProvider = getWindowProviderNamespace(namespace);
|
|
43
45
|
if (windowProvider)
|
|
44
46
|
return windowProvider;
|
|
45
47
|
}
|
|
46
|
-
const providers = (_a =
|
|
48
|
+
const providers = (_a = _window.ethereum) == null ? void 0 : _a.providers;
|
|
47
49
|
if (flag) {
|
|
48
50
|
const provider = getExplicitInjectedProvider(flag);
|
|
49
51
|
if (provider)
|
|
@@ -51,7 +53,7 @@ function getInjectedProvider({
|
|
|
51
53
|
}
|
|
52
54
|
if (typeof providers !== "undefined" && providers.length > 0)
|
|
53
55
|
return providers[0];
|
|
54
|
-
return
|
|
56
|
+
return _window.ethereum;
|
|
55
57
|
}
|
|
56
58
|
function createInjectedConnector(provider) {
|
|
57
59
|
return (walletDetails) => {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isMobile
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
14
|
+
var trustWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
|
|
19
|
+
const shouldUseWalletConnect = !isTrustWalletInjected;
|
|
20
|
+
const getUriMobile = (uri) => {
|
|
21
|
+
return `trust://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
+
};
|
|
23
|
+
const getUriQR = (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://trustwallet.com/",
|
|
35
|
+
steps: [
|
|
36
|
+
{
|
|
37
|
+
description: "wallet_connectors.trust.qr_code.step1.description",
|
|
38
|
+
step: "install",
|
|
39
|
+
title: "wallet_connectors.trust.qr_code.step1.title"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
description: "wallet_connectors.trust.qr_code.step2.description",
|
|
43
|
+
step: "create",
|
|
44
|
+
title: "wallet_connectors.trust.qr_code.step2.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.trust.qr_code.step3.description",
|
|
48
|
+
step: "scan",
|
|
49
|
+
title: "wallet_connectors.trust.qr_code.step3.title"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const extensionConnector = {
|
|
56
|
+
instructions: {
|
|
57
|
+
learnMoreUrl: "https://trustwallet.com/browser-extension",
|
|
58
|
+
steps: [
|
|
59
|
+
{
|
|
60
|
+
description: "wallet_connectors.trust.extension.step1.description",
|
|
61
|
+
step: "install",
|
|
62
|
+
title: "wallet_connectors.trust.extension.step1.title"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
description: "wallet_connectors.trust.extension.step2.description",
|
|
66
|
+
step: "create",
|
|
67
|
+
title: "wallet_connectors.trust.extension.step2.title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.trust.extension.step3.description",
|
|
71
|
+
step: "refresh",
|
|
72
|
+
title: "wallet_connectors.trust.extension.step3.title"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
id: "trust",
|
|
79
|
+
name: "Trust Wallet",
|
|
80
|
+
rdns: "com.trustwallet.app",
|
|
81
|
+
iconUrl: async () => (await import("./trustWallet-FST5ID2K.js")).default,
|
|
82
|
+
installed: isTrustWalletInjected || void 0,
|
|
83
|
+
iconAccent: "#3375BB",
|
|
84
|
+
iconBackground: "#fff",
|
|
85
|
+
downloadUrls: {
|
|
86
|
+
android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
|
|
87
|
+
ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
|
|
88
|
+
mobile: "https://trustwallet.com/download",
|
|
89
|
+
qrCode: "https://trustwallet.com/download",
|
|
90
|
+
chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
|
|
91
|
+
browserExtension: "https://trustwallet.com/browser-extension"
|
|
92
|
+
},
|
|
93
|
+
mobile: mobileConnector,
|
|
94
|
+
qrCode: qrConnector,
|
|
95
|
+
extension: extensionConnector,
|
|
96
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
97
|
+
projectId,
|
|
98
|
+
walletConnectParameters
|
|
99
|
+
}) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
trustWallet
|
|
105
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
+
var bifrostWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
19
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
20
|
+
const getUri = (uri) => {
|
|
21
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "bifrostWallet",
|
|
25
|
+
name: "Bifrost Wallet",
|
|
26
|
+
iconUrl: async () => (await import("./bifrostWallet-5VPKXMCJ.js")).default,
|
|
27
|
+
iconBackground: "#fff",
|
|
28
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
29
|
+
downloadUrls: {
|
|
30
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
31
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
32
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
33
|
+
},
|
|
34
|
+
mobile: {
|
|
35
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
36
|
+
},
|
|
37
|
+
qrCode: shouldUseWalletConnect ? {
|
|
38
|
+
getUri: (uri) => uri,
|
|
39
|
+
instructions: {
|
|
40
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
41
|
+
steps: [
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
44
|
+
step: "install",
|
|
45
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
49
|
+
step: "create",
|
|
50
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
54
|
+
step: "scan",
|
|
55
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
} : void 0,
|
|
60
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
61
|
+
projectId,
|
|
62
|
+
walletConnectParameters
|
|
63
|
+
}) : getInjectedConnector({
|
|
64
|
+
flag: "isBifrost"
|
|
65
|
+
})
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
bifrostWallet
|
|
71
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isIOS
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-ZDU3JFGR.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
14
|
+
var zerionWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isZerionInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "zerionWallet",
|
|
20
|
+
flag: "isZerion"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isZerionInjected;
|
|
23
|
+
const getUri = (uri) => {
|
|
24
|
+
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
id: "zerion",
|
|
28
|
+
name: "Zerion",
|
|
29
|
+
rdns: "io.zerion.wallet",
|
|
30
|
+
iconUrl: async () => (await import("./zerionWallet-35GMAYN4.js")).default,
|
|
31
|
+
iconAccent: "#2962ef",
|
|
32
|
+
iconBackground: "#2962ef",
|
|
33
|
+
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
34
|
+
downloadUrls: {
|
|
35
|
+
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
36
|
+
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
37
|
+
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
38
|
+
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
39
|
+
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
40
|
+
browserExtension: "https://zerion.io/extension"
|
|
41
|
+
},
|
|
42
|
+
mobile: {
|
|
43
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
44
|
+
},
|
|
45
|
+
qrCode: shouldUseWalletConnect ? {
|
|
46
|
+
getUri,
|
|
47
|
+
instructions: {
|
|
48
|
+
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
49
|
+
steps: [
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
52
|
+
step: "install",
|
|
53
|
+
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
57
|
+
step: "create",
|
|
58
|
+
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
62
|
+
step: "scan",
|
|
63
|
+
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
} : void 0,
|
|
68
|
+
extension: {
|
|
69
|
+
instructions: {
|
|
70
|
+
learnMoreUrl: "https://help.zerion.io/en/",
|
|
71
|
+
steps: [
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.zerion.extension.step1.description",
|
|
74
|
+
step: "install",
|
|
75
|
+
title: "wallet_connectors.zerion.extension.step1.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.zerion.extension.step2.description",
|
|
79
|
+
step: "create",
|
|
80
|
+
title: "wallet_connectors.zerion.extension.step2.title"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
description: "wallet_connectors.zerion.extension.step3.description",
|
|
84
|
+
step: "refresh",
|
|
85
|
+
title: "wallet_connectors.zerion.extension.step3.title"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
91
|
+
projectId,
|
|
92
|
+
walletConnectParameters
|
|
93
|
+
}) : getInjectedConnector({
|
|
94
|
+
namespace: "zerionWallet",
|
|
95
|
+
flag: "isZerion"
|
|
96
|
+
})
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
zerionWallet
|
|
102
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isIOS
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isIOS
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/dawnWallet/dawnWallet.ts
|
|
11
11
|
var dawnWallet = () => ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
2
6
|
import {
|
|
3
7
|
isMobile
|
|
4
8
|
} from "./chunk-ZOLACFTK.js";
|
|
5
9
|
import {
|
|
6
10
|
getWalletConnectConnector
|
|
7
11
|
} from "./chunk-ZDU3JFGR.js";
|
|
8
|
-
import {
|
|
9
|
-
getInjectedConnector,
|
|
10
|
-
hasInjectedProvider
|
|
11
|
-
} from "./chunk-QII6PY2D.js";
|
|
12
12
|
|
|
13
13
|
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
14
14
|
var tokenPocketWallet = ({
|