@funkit/connect 2.0.6 → 2.0.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 +15 -0
- package/dist/config/getDefaultConfig.d.ts +33 -0
- package/dist/index.js +44 -32
- 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-32KBKKGT.js +182 -0
- package/dist/wallets/walletConnectors/chunk-3CLNL7LR.js +73 -0
- package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
- package/dist/wallets/walletConnectors/chunk-CMXZK5RR.js +94 -0
- package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
- package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
- package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
- package/dist/wallets/walletConnectors/chunk-KZFAL4RZ.js +27 -0
- package/dist/wallets/walletConnectors/chunk-LJRV5JY7.js +95 -0
- package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
- package/dist/wallets/walletConnectors/chunk-YUIRWCAS.js +101 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +72 -72
- 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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 2.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 557a1ed: chore: update @funkit/core dependency
|
|
8
|
+
|
|
9
|
+
## 2.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 44ec821: fix: self-manage all chain names
|
|
14
|
+
- Updated dependencies [43a1256]
|
|
15
|
+
- @funkit/core@2.1.1
|
|
16
|
+
- @funkit/wagmi-tools@3.0.3
|
|
17
|
+
|
|
3
18
|
## 2.0.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -3794,6 +3794,39 @@ export declare const getDefaultChains: () => ({
|
|
|
3794
3794
|
blockCreated: number;
|
|
3795
3795
|
};
|
|
3796
3796
|
};
|
|
3797
|
+
} | {
|
|
3798
|
+
blockExplorers: {
|
|
3799
|
+
readonly default: {
|
|
3800
|
+
readonly name: "Scrollscan";
|
|
3801
|
+
readonly url: "https://scrollscan.com";
|
|
3802
|
+
readonly apiUrl: "https://api.scrollscan.com/api";
|
|
3803
|
+
};
|
|
3804
|
+
};
|
|
3805
|
+
contracts: {
|
|
3806
|
+
readonly multicall3: {
|
|
3807
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
3808
|
+
readonly blockCreated: 14;
|
|
3809
|
+
};
|
|
3810
|
+
};
|
|
3811
|
+
id: 534352;
|
|
3812
|
+
name: "Scroll";
|
|
3813
|
+
nativeCurrency: {
|
|
3814
|
+
readonly name: "Ether";
|
|
3815
|
+
readonly symbol: "ETH";
|
|
3816
|
+
readonly decimals: 18;
|
|
3817
|
+
};
|
|
3818
|
+
rpcUrls: {
|
|
3819
|
+
readonly default: {
|
|
3820
|
+
readonly http: readonly ["https://rpc.scroll.io"];
|
|
3821
|
+
readonly webSocket: readonly ["wss://wss-rpc.scroll.io/ws"];
|
|
3822
|
+
};
|
|
3823
|
+
};
|
|
3824
|
+
sourceId?: number | undefined;
|
|
3825
|
+
testnet: false;
|
|
3826
|
+
custom?: Record<string, unknown> | undefined;
|
|
3827
|
+
formatters?: undefined;
|
|
3828
|
+
serializers?: import("viem").ChainSerializers<undefined> | undefined;
|
|
3829
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
3797
3830
|
} | {
|
|
3798
3831
|
blockExplorers: {
|
|
3799
3832
|
readonly default: {
|
package/dist/index.js
CHANGED
|
@@ -1325,45 +1325,57 @@ var roninIcon = {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
var chainMetadataByName = {
|
|
1327
1327
|
arbitrum: { chainId: 42161, name: "Arbitrum", ...arbitrumIcon },
|
|
1328
|
-
arbitrumGoerli: {
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1328
|
+
arbitrumGoerli: {
|
|
1329
|
+
chainId: 421613,
|
|
1330
|
+
name: "Arbitrum Goerli",
|
|
1331
|
+
...arbitrumIcon
|
|
1332
|
+
},
|
|
1333
|
+
arbitrumSepolia: {
|
|
1334
|
+
chainId: 421614,
|
|
1335
|
+
name: "Arbitrum Sepolia",
|
|
1336
|
+
...arbitrumIcon
|
|
1337
|
+
},
|
|
1338
|
+
avalanche: { chainId: 43114, name: "Avalanche", ...avalancheIcon },
|
|
1339
|
+
avalancheFuji: { chainId: 43113, name: "Avalanche Fuji", ...avalancheIcon },
|
|
1332
1340
|
base: { chainId: 8453, name: "Base", ...baseIcon },
|
|
1333
|
-
baseGoerli: { chainId: 84531, ...baseIcon },
|
|
1334
|
-
baseSepolia: { chainId: 84532, ...baseIcon },
|
|
1341
|
+
baseGoerli: { chainId: 84531, name: "Base Goerli", ...baseIcon },
|
|
1342
|
+
baseSepolia: { chainId: 84532, name: "Base Sepolia", ...baseIcon },
|
|
1335
1343
|
blast: { chainId: 81457, name: "Blast", ...blastIcon },
|
|
1336
|
-
blastSepolia: { chainId: 168587773, ...blastIcon },
|
|
1344
|
+
blastSepolia: { chainId: 168587773, name: "Blast Sepolia", ...blastIcon },
|
|
1337
1345
|
bsc: { chainId: 56, name: "BSC", ...bscIcon },
|
|
1338
|
-
bscTestnet: { chainId: 97, ...bscIcon },
|
|
1339
|
-
cronos: { chainId: 25, ...cronosIcon },
|
|
1340
|
-
cronosTestnet: { chainId: 338, ...cronosIcon },
|
|
1346
|
+
bscTestnet: { chainId: 97, name: "BSC Testnet", ...bscIcon },
|
|
1347
|
+
cronos: { chainId: 25, name: "Cronos", ...cronosIcon },
|
|
1348
|
+
cronosTestnet: { chainId: 338, name: "Cronos Testnet", ...cronosIcon },
|
|
1341
1349
|
dydxMainnet: { chainId: DYDX_MAINNET_CHAIN_ID, name: "dYdX", ...dydxIcon },
|
|
1342
|
-
goerli: { chainId: 5, ...ethereumIcon },
|
|
1343
|
-
hardhat: { chainId: 31337, ...hardhatIcon },
|
|
1344
|
-
holesky: { chainId: 17e3, ...ethereumIcon },
|
|
1345
|
-
kovan: { chainId: 42, ...ethereumIcon },
|
|
1350
|
+
goerli: { chainId: 5, name: "Goerli", ...ethereumIcon },
|
|
1351
|
+
hardhat: { chainId: 31337, name: "Hardhat", ...hardhatIcon },
|
|
1352
|
+
holesky: { chainId: 17e3, name: "Holesky", ...ethereumIcon },
|
|
1353
|
+
kovan: { chainId: 42, name: "Kovan", ...ethereumIcon },
|
|
1346
1354
|
klaytn: { chainId: 8217, name: "Klaytn", ...klaytnIcon },
|
|
1347
1355
|
klaytnBaobab: { chainId: 1001, name: "Klaytn Baobab", ...klaytnIcon },
|
|
1348
|
-
localhost: { chainId: 1337, ...ethereumIcon },
|
|
1356
|
+
localhost: { chainId: 1337, name: "Localhost", ...ethereumIcon },
|
|
1349
1357
|
mainnet: { chainId: 1, name: "Ethereum", ...ethereumIcon },
|
|
1350
1358
|
manta: { chainId: 169, name: "Manta", ...mantaIcon },
|
|
1351
|
-
mantaSepolia: { chainId: 3441006, ...mantaIcon },
|
|
1352
|
-
mantaTestnet: { chainId: 3441005, ...mantaIcon },
|
|
1353
|
-
mantle: { chainId: 5e3, ...mantleIcon },
|
|
1354
|
-
mantleTestnet: { chainId: 5001, ...mantleIcon },
|
|
1359
|
+
mantaSepolia: { chainId: 3441006, name: "Manta Sepolia", ...mantaIcon },
|
|
1360
|
+
mantaTestnet: { chainId: 3441005, name: "Manta Testnet", ...mantaIcon },
|
|
1361
|
+
mantle: { chainId: 5e3, name: "Mantle", ...mantleIcon },
|
|
1362
|
+
mantleTestnet: { chainId: 5001, name: "Mantle Testnet", ...mantleIcon },
|
|
1355
1363
|
optimism: { chainId: 10, name: "Optimism", ...optimismIcon },
|
|
1356
|
-
optimismGoerli: { chainId: 420, ...optimismIcon },
|
|
1357
|
-
optimismKovan: { chainId: 69, ...optimismIcon },
|
|
1358
|
-
optimismSepolia: {
|
|
1364
|
+
optimismGoerli: { chainId: 420, name: "Optimism Goerli", ...optimismIcon },
|
|
1365
|
+
optimismKovan: { chainId: 69, name: "Optimism Kovan", ...optimismIcon },
|
|
1366
|
+
optimismSepolia: {
|
|
1367
|
+
chainId: 11155420,
|
|
1368
|
+
name: "Optimism Sepolia",
|
|
1369
|
+
...optimismIcon
|
|
1370
|
+
},
|
|
1359
1371
|
polygon: { chainId: 137, name: "Polygon", ...polygonIcon },
|
|
1360
|
-
polygonMumbai: { chainId: 80001, ...polygonIcon },
|
|
1361
|
-
rinkeby: { chainId: 4, ...ethereumIcon },
|
|
1362
|
-
ropsten: { chainId: 3, ...ethereumIcon },
|
|
1363
|
-
ronin: { chainId: 2020, ...roninIcon },
|
|
1364
|
-
sepolia: { chainId: 11155111, ...ethereumIcon },
|
|
1372
|
+
polygonMumbai: { chainId: 80001, name: "Polygon Mumbai", ...polygonIcon },
|
|
1373
|
+
rinkeby: { chainId: 4, name: "Rinkeby", ...ethereumIcon },
|
|
1374
|
+
ropsten: { chainId: 3, name: "Ropsten", ...ethereumIcon },
|
|
1375
|
+
ronin: { chainId: 2020, name: "Ronin", ...roninIcon },
|
|
1376
|
+
sepolia: { chainId: 11155111, name: "Sepolia", ...ethereumIcon },
|
|
1365
1377
|
xdc: { chainId: 50, name: "XinFin", ...xdcIcon },
|
|
1366
|
-
xdcTestnet: { chainId: 51, ...xdcIcon },
|
|
1378
|
+
xdcTestnet: { chainId: 51, name: "XinFin Testnet", ...xdcIcon },
|
|
1367
1379
|
zetachain: { chainId: 7e3, name: "ZetaChain", ...zetachainIcon },
|
|
1368
1380
|
zetachainAthensTestnet: {
|
|
1369
1381
|
chainId: 7001,
|
|
@@ -1371,10 +1383,10 @@ var chainMetadataByName = {
|
|
|
1371
1383
|
...zetachainIcon
|
|
1372
1384
|
},
|
|
1373
1385
|
zkSync: { chainId: 324, name: "zkSync", ...zkSyncIcon },
|
|
1374
|
-
zkSyncTestnet: { chainId: 280, ...zkSyncIcon },
|
|
1386
|
+
zkSyncTestnet: { chainId: 280, name: "zkSync Testnet", ...zkSyncIcon },
|
|
1375
1387
|
zora: { chainId: 7777777, name: "Zora", ...zoraIcon },
|
|
1376
|
-
zoraSepolia: { chainId: 999999999, ...zoraIcon },
|
|
1377
|
-
zoraTestnet: { chainId: 999, ...zoraIcon }
|
|
1388
|
+
zoraSepolia: { chainId: 999999999, name: "Zora Sepolia", ...zoraIcon },
|
|
1389
|
+
zoraTestnet: { chainId: 999, name: "Zora Testnet", ...zoraIcon }
|
|
1378
1390
|
};
|
|
1379
1391
|
var chainMetadataById = Object.fromEntries(
|
|
1380
1392
|
Object.values(chainMetadataByName).filter(isNotNullish).map(({ chainId, ...metadata }) => [chainId, metadata])
|
|
@@ -15461,7 +15473,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
15461
15473
|
localStorage.setItem(storageKey5, version);
|
|
15462
15474
|
}
|
|
15463
15475
|
function getCurrentSdkVersion() {
|
|
15464
|
-
return "2.0.
|
|
15476
|
+
return "2.0.8";
|
|
15465
15477
|
}
|
|
15466
15478
|
function useFingerprint() {
|
|
15467
15479
|
const fingerprint = useCallback32(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PJRUHFBT.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-ZDU3JFGR.js";
|
|
7
6
|
import "../chunk-F3VCNZXS.js";
|
|
7
|
+
import "../chunk-ZDU3JFGR.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-
|
|
4
|
+
} from "../chunk-VMTIFEE6.js";
|
|
5
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
-
import "../chunk-ZDU3JFGR.js";
|
|
7
6
|
import "../chunk-F3VCNZXS.js";
|
|
7
|
+
import "../chunk-ZDU3JFGR.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid,
|
|
8
|
+
isIOS
|
|
9
|
+
} from "./chunk-ZOLACFTK.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
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-F3VCNZXS.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid,
|
|
8
|
+
isIOS
|
|
9
|
+
} from "./chunk-ZOLACFTK.js";
|
|
10
|
+
import {
|
|
11
|
+
getWalletConnectConnector
|
|
12
|
+
} from "./chunk-ZDU3JFGR.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
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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/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-GKYMI2XW.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,94 @@
|
|
|
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/gateWallet/gateWallet.ts
|
|
14
|
+
var gateWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
19
|
+
const shouldUseWalletConnect = !isGateInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "gate",
|
|
22
|
+
name: "Gate Wallet",
|
|
23
|
+
rdns: "io.gate.wallet",
|
|
24
|
+
iconUrl: async () => (await import("./gateWallet-GFLHFAGG.js")).default,
|
|
25
|
+
iconAccent: "#fff",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
30
|
+
mobile: "https://www.gate.io/mobileapp",
|
|
31
|
+
qrCode: "https://www.gate.io/web3",
|
|
32
|
+
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
33
|
+
browserExtension: "https://www.gate.io/web3"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
+
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
+
} : void 0
|
|
39
|
+
},
|
|
40
|
+
qrCode: shouldUseWalletConnect ? {
|
|
41
|
+
getUri: (uri) => uri,
|
|
42
|
+
instructions: {
|
|
43
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
44
|
+
steps: [
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
47
|
+
step: "install",
|
|
48
|
+
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
52
|
+
step: "create",
|
|
53
|
+
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
57
|
+
step: "scan",
|
|
58
|
+
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
} : void 0,
|
|
63
|
+
extension: {
|
|
64
|
+
instructions: {
|
|
65
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
66
|
+
steps: [
|
|
67
|
+
{
|
|
68
|
+
description: "wallet_connectors.gate.extension.step1.description",
|
|
69
|
+
step: "install",
|
|
70
|
+
title: "wallet_connectors.gate.extension.step1.title"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.gate.extension.step2.description",
|
|
74
|
+
step: "create",
|
|
75
|
+
title: "wallet_connectors.gate.extension.step2.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.gate.extension.step3.description",
|
|
79
|
+
step: "refresh",
|
|
80
|
+
title: "wallet_connectors.gate.extension.step3.title"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
+
projectId,
|
|
87
|
+
walletConnectParameters
|
|
88
|
+
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
gateWallet
|
|
94
|
+
};
|