@funkit/connect 2.0.2 → 2.0.3
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 +10 -0
- package/dist/{chunk-FRT63PFR.js → chunk-3AR2EI7X.js} +0 -9
- package/dist/{chunk-ICLRFHOV.js → chunk-BZPWFPPL.js} +0 -9
- package/dist/components/Box/Box.d.ts +15 -15
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +0 -1
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +0 -36
- package/dist/components/index.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +15 -33
- package/dist/index.css +865 -1279
- package/dist/index.d.ts +7 -8
- package/dist/index.js +411 -1254
- package/dist/themes/darkTheme.d.ts +0 -9
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +0 -9
- package/dist/themes/lightTheme.js +1 -1
- 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/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 +3 -3
- package/dist/components/Button/ActionButton.d.ts +0 -14
- package/dist/components/ConnectModal/ConnectModalIntro.d.ts +0 -5
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +0 -5
- package/dist/components/Disclaimer/DisclaimerText.d.ts +0 -4
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +0 -6
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +0 -14
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +0 -1
- package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -1
- package/dist/components/FunkitProvider/WalletButtonContext.d.ts +0 -12
- package/dist/components/FunkitProvider/useCoolMode.d.ts +0 -1
- package/dist/components/InfoButton/InfoButton.d.ts +0 -5
- package/dist/components/SignIn/SignIn.d.ts +0 -6
- package/dist/components/Txs/TxItem.d.ts +0 -7
- package/dist/components/Txs/TxList.d.ts +0 -7
- package/dist/components/Txs/Txs.css.d.ts +0 -2
- package/dist/components/WalletButton/WalletButton.css.d.ts +0 -2
- package/dist/components/WalletButton/WalletButton.d.ts +0 -8
- package/dist/components/WalletButton/WalletButtonRenderer.d.ts +0 -15
- package/dist/sign-FZVB2CS6.js +0 -6
- package/dist/transactions/TransactionStoreContext.d.ts +0 -6
- package/dist/transactions/transactionStore.d.ts +0 -21
- package/dist/transactions/useAddRecentTransaction.d.ts +0 -2
- package/dist/transactions/useClearRecentTransactions.d.ts +0 -1
- package/dist/transactions/useRecentTransactions.d.ts +0 -2
- package/dist/utils/chainToExplorerUrl.d.ts +0 -2
- package/dist/wallets/walletConnectors/chunk-2DWBVWFI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-3F5GNHAG.js +0 -182
- package/dist/wallets/walletConnectors/chunk-3R3RNCGE.js +0 -100
- package/dist/wallets/walletConnectors/chunk-5L2OLU3J.js +0 -102
- package/dist/wallets/walletConnectors/chunk-BCXBFAL4.js +0 -98
- package/dist/wallets/walletConnectors/chunk-M4SPCKW4.js +0 -66
- package/dist/wallets/walletConnectors/chunk-MFS6NY6T.js +0 -105
- package/dist/wallets/walletConnectors/chunk-MOAWRDEM.js +0 -95
- package/dist/wallets/walletConnectors/chunk-NK3DYIAB.js +0 -92
- package/dist/wallets/walletConnectors/chunk-OMKARG6Y.js +0 -94
- package/dist/wallets/walletConnectors/chunk-OPO2D6GL.js +0 -102
- package/dist/wallets/walletConnectors/chunk-OXWTS7HX.js +0 -98
- package/dist/wallets/walletConnectors/chunk-PJRUHFBT.js +0 -71
- package/dist/wallets/walletConnectors/chunk-R5GNFRXW.js +0 -96
- package/dist/wallets/walletConnectors/chunk-S2IWMXKX.js +0 -94
- package/dist/wallets/walletConnectors/chunk-WH7S23VZ.js +0 -73
- package/dist/wallets/walletConnectors/chunk-XB2GFXBL.js +0 -107
- package/dist/wallets/walletConnectors/chunk-XUXFYTCV.js +0 -96
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { WalletConnector } from '../../wallets/useWalletConnectors';
|
|
3
|
-
export interface WalletButtonRendererProps {
|
|
4
|
-
wallet?: string;
|
|
5
|
-
children: (renderProps: {
|
|
6
|
-
error: boolean;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
connected: boolean;
|
|
9
|
-
ready: boolean;
|
|
10
|
-
mounted: boolean;
|
|
11
|
-
connector: WalletConnector;
|
|
12
|
-
connect: () => Promise<void>;
|
|
13
|
-
}) => ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function WalletButtonRenderer({ wallet, children, }: WalletButtonRendererProps): React.JSX.Element;
|
package/dist/sign-FZVB2CS6.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// src/components/SignIn/sign.png
|
|
3
|
-
var sign_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAC/VBMVEUAAADS0dDp6enV1NTi4uLOzc3l5eXh4eHl5eXW1dXa2trQz87e3t2ll5fne3vFdXV+PT14d3fS0dHj4+OBaGh5Pz9yOjqqX19iYmJqQUGlkJBoQUGrqqqKiomEY2PIiYn39vbx8fHz8/P6+fnu7e34+Pjv7+/19fXp6Oje3d3m5uXs7Ozd3Nzr6+ra2dnc29vf397b2trn5+fq6unk5OTV1NTj4+LZ2NfX19fX1tXg4N/i4uHh4eDQz87T0tLU09PR0M/Dw8P7+/rKyslnZ2fKlx/MzMvHx8f/00POzc2rq6uLi4z/zTilpabFxcW/v8CpqKmioqPOmyb/zDTS0dC0tLSfoKGdnZ6YmJn/103/1UjIlRn1tw+6uruxsbGEhIX/zzz/yB7boQ69vb3v0JGPkJCIiYrEqnfMmSObm5uVlZaHh4d9fX7mpwHqqwD8/PyAgIDQnSn/wxatra2RkpP/0T7/yS63trbTnyy3uLivrq+NjY9tbGxqamqUlJX9p6d4eHn+0EGCgoNtaWD2uyBwcHDWozHy05PrzI7dwIZlZWa+jRLBwcDIrnvZ29//oaH7lJRyb2hya1z/xyj1uR+5ihOPobf9ra2ZlZDph4bTgYHOtH/Gbm5WWFk/QELc3uHfenp9fHl3dnOyhRfGkQ6Snq60nKXlx43yhoXehITLd3fdvXG4YmLerzO1yNyZqb7+srK6sKL9m5v11pWuXV2UVFRXVlE2OT3DkiD/wAzoqQHd4eWpvdXR09S2w9Gbo67oo6PRoKPwnJzkxYbWuoLcvnXIq2uQg2lcX2FLTU/yyECitMqUmKDOvJPyjo55foaVinWynHDauGllY1+GdE6dhUv60kr/y0mXfD36xzPoshr3tQTi7fPisrKLk6Guk5unlZW+q4GTjID1zXetmGT6zGHSrFzGo1Xitk6mi0bywjb+vyLUmwjhowDm29qjr7zPt7f/5af83Z773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7+flfI3wUG/YFQKORyeTz9+AfF5Q/6Qy5ICH/g2I4HfXDQlVAgEPDH2uA6+LjByjjL/5+sLGcD2fsLerG519oDlHIAAAAASUVORK5CYII=";
|
|
4
|
-
export {
|
|
5
|
-
sign_default as default
|
|
6
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TransactionStore } from './transactionStore';
|
|
3
|
-
export declare function TransactionStoreProvider({ children, }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
|
-
export declare function useTransactionStore(): TransactionStore;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { PublicClient } from 'viem';
|
|
2
|
-
type TransactionStatus = 'pending' | 'confirmed' | 'failed';
|
|
3
|
-
export interface Transaction {
|
|
4
|
-
hash: string;
|
|
5
|
-
description: string;
|
|
6
|
-
status: TransactionStatus;
|
|
7
|
-
confirmations?: number;
|
|
8
|
-
}
|
|
9
|
-
export type NewTransaction = Omit<Transaction, 'status'>;
|
|
10
|
-
export declare function createTransactionStore({ provider: initialProvider, }: {
|
|
11
|
-
provider: PublicClient;
|
|
12
|
-
}): {
|
|
13
|
-
addTransaction: (account: string, chainId: number, transaction: NewTransaction) => void;
|
|
14
|
-
clearTransactions: (account: string, chainId: number) => void;
|
|
15
|
-
getTransactions: (account: string, chainId: number) => Transaction[];
|
|
16
|
-
onChange: (fn: () => void) => () => void;
|
|
17
|
-
setProvider: (newProvider: PublicClient) => void;
|
|
18
|
-
waitForPendingTransactions: (account: string, chainId: number) => Promise<void>;
|
|
19
|
-
};
|
|
20
|
-
export type TransactionStore = ReturnType<typeof createTransactionStore>;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useClearRecentTransactions(): () => void;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-F3VCNZXS.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.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
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid,
|
|
4
|
-
isIOS
|
|
5
|
-
} from "./chunk-ZOLACFTK.js";
|
|
6
|
-
import {
|
|
7
|
-
getInjectedConnector,
|
|
8
|
-
hasInjectedProvider
|
|
9
|
-
} from "./chunk-F3VCNZXS.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
-
function isMetaMask(ethereum) {
|
|
16
|
-
if (!(ethereum == null ? void 0 : ethereum.isMetaMask))
|
|
17
|
-
return false;
|
|
18
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
19
|
-
return false;
|
|
20
|
-
if (ethereum.isApexWallet)
|
|
21
|
-
return false;
|
|
22
|
-
if (ethereum.isAvalanche)
|
|
23
|
-
return false;
|
|
24
|
-
if (ethereum.isBackpack)
|
|
25
|
-
return false;
|
|
26
|
-
if (ethereum.isBifrost)
|
|
27
|
-
return false;
|
|
28
|
-
if (ethereum.isBitKeep)
|
|
29
|
-
return false;
|
|
30
|
-
if (ethereum.isBitski)
|
|
31
|
-
return false;
|
|
32
|
-
if (ethereum.isBlockWallet)
|
|
33
|
-
return false;
|
|
34
|
-
if (ethereum.isCoinbaseWallet)
|
|
35
|
-
return false;
|
|
36
|
-
if (ethereum.isDawn)
|
|
37
|
-
return false;
|
|
38
|
-
if (ethereum.isEnkrypt)
|
|
39
|
-
return false;
|
|
40
|
-
if (ethereum.isExodus)
|
|
41
|
-
return false;
|
|
42
|
-
if (ethereum.isFrame)
|
|
43
|
-
return false;
|
|
44
|
-
if (ethereum.isFrontier)
|
|
45
|
-
return false;
|
|
46
|
-
if (ethereum.isGamestop)
|
|
47
|
-
return false;
|
|
48
|
-
if (ethereum.isHyperPay)
|
|
49
|
-
return false;
|
|
50
|
-
if (ethereum.isImToken)
|
|
51
|
-
return false;
|
|
52
|
-
if (ethereum.isKuCoinWallet)
|
|
53
|
-
return false;
|
|
54
|
-
if (ethereum.isMathWallet)
|
|
55
|
-
return false;
|
|
56
|
-
if (ethereum.isNestWallet)
|
|
57
|
-
return false;
|
|
58
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet)
|
|
59
|
-
return false;
|
|
60
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
61
|
-
return false;
|
|
62
|
-
if (ethereum.isOpera)
|
|
63
|
-
return false;
|
|
64
|
-
if (ethereum.isPhantom)
|
|
65
|
-
return false;
|
|
66
|
-
if (ethereum.isPortal)
|
|
67
|
-
return false;
|
|
68
|
-
if (ethereum.isRabby)
|
|
69
|
-
return false;
|
|
70
|
-
if (ethereum.isRainbow)
|
|
71
|
-
return false;
|
|
72
|
-
if (ethereum.isStatus)
|
|
73
|
-
return false;
|
|
74
|
-
if (ethereum.isTalisman)
|
|
75
|
-
return false;
|
|
76
|
-
if (ethereum.isTally)
|
|
77
|
-
return false;
|
|
78
|
-
if (ethereum.isTokenPocket)
|
|
79
|
-
return false;
|
|
80
|
-
if (ethereum.isTokenary)
|
|
81
|
-
return false;
|
|
82
|
-
if (ethereum.isTrust || ethereum.isTrustWallet)
|
|
83
|
-
return false;
|
|
84
|
-
if (ethereum.isXDEFI)
|
|
85
|
-
return false;
|
|
86
|
-
if (ethereum.isZeal)
|
|
87
|
-
return false;
|
|
88
|
-
if (ethereum.isZerion)
|
|
89
|
-
return false;
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
var metaMaskWallet = ({
|
|
93
|
-
projectId,
|
|
94
|
-
walletConnectParameters
|
|
95
|
-
}) => {
|
|
96
|
-
var _a, _b, _c;
|
|
97
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
98
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
99
|
-
const getUri = (uri) => {
|
|
100
|
-
return isAndroid() ? uri : isIOS() ? `metamask://wc?uri=${encodeURIComponent(uri)}` : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
101
|
-
};
|
|
102
|
-
return {
|
|
103
|
-
id: "metaMask",
|
|
104
|
-
name: "MetaMask",
|
|
105
|
-
rdns: "io.metamask",
|
|
106
|
-
iconUrl: async () => (await import("./metaMaskWallet-ORHUNQRP.js")).default,
|
|
107
|
-
iconAccent: "#f6851a",
|
|
108
|
-
iconBackground: "#fff",
|
|
109
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
110
|
-
downloadUrls: {
|
|
111
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
112
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
113
|
-
mobile: "https://metamask.io/download",
|
|
114
|
-
qrCode: "https://metamask.io/download",
|
|
115
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
116
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
117
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
118
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
119
|
-
browserExtension: "https://metamask.io/download"
|
|
120
|
-
},
|
|
121
|
-
mobile: {
|
|
122
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
123
|
-
},
|
|
124
|
-
qrCode: shouldUseWalletConnect ? {
|
|
125
|
-
getUri,
|
|
126
|
-
instructions: {
|
|
127
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
128
|
-
steps: [
|
|
129
|
-
{
|
|
130
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
131
|
-
step: "install",
|
|
132
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
136
|
-
step: "create",
|
|
137
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
141
|
-
step: "refresh",
|
|
142
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
} : void 0,
|
|
147
|
-
extension: {
|
|
148
|
-
instructions: {
|
|
149
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
150
|
-
steps: [
|
|
151
|
-
{
|
|
152
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
153
|
-
step: "install",
|
|
154
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
158
|
-
step: "create",
|
|
159
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
163
|
-
step: "refresh",
|
|
164
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
170
|
-
projectId,
|
|
171
|
-
walletConnectParameters
|
|
172
|
-
}) : getInjectedConnector({
|
|
173
|
-
target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
|
|
174
|
-
isMetaMask
|
|
175
|
-
)) != null ? _c : window.ethereum : void 0
|
|
176
|
-
})
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export {
|
|
181
|
-
metaMaskWallet
|
|
182
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-F3VCNZXS.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,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-F3VCNZXS.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
-
var subWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
-
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
-
const getUriMobile = (uri) => {
|
|
18
|
-
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
};
|
|
20
|
-
const getUriQR = (uri) => {
|
|
21
|
-
return uri;
|
|
22
|
-
};
|
|
23
|
-
const mobileConnector = {
|
|
24
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
-
};
|
|
26
|
-
let qrConnector = void 0;
|
|
27
|
-
if (shouldUseWalletConnect) {
|
|
28
|
-
qrConnector = {
|
|
29
|
-
getUri: getUriQR,
|
|
30
|
-
instructions: {
|
|
31
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
-
steps: [
|
|
33
|
-
{
|
|
34
|
-
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
-
step: "install",
|
|
36
|
-
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
-
step: "create",
|
|
41
|
-
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
-
step: "scan",
|
|
46
|
-
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const extensionConnector = {
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
-
step: "refresh",
|
|
69
|
-
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: "subwallet",
|
|
76
|
-
name: "SubWallet",
|
|
77
|
-
iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
|
|
78
|
-
iconBackground: "#fff",
|
|
79
|
-
installed: isSubWalletInjected || void 0,
|
|
80
|
-
downloadUrls: {
|
|
81
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
84
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
85
|
-
mobile: "https://www.subwallet.app/download",
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
88
|
-
qrCode: "https://www.subwallet.app/download"
|
|
89
|
-
},
|
|
90
|
-
mobile: mobileConnector,
|
|
91
|
-
qrCode: qrConnector,
|
|
92
|
-
extension: extensionConnector,
|
|
93
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
94
|
-
projectId,
|
|
95
|
-
walletConnectParameters
|
|
96
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
subWallet
|
|
102
|
-
};
|