@getpara/evm-wallet-connectors 2.0.0-alpha.32 → 2.0.0-alpha.33
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.
|
@@ -28,7 +28,9 @@ import {
|
|
|
28
28
|
import { isMobile } from "@getpara/web-sdk";
|
|
29
29
|
import { etherUnits, formatUnits } from "viem";
|
|
30
30
|
import { externalHooks } from "./externalHooks.js";
|
|
31
|
-
const EvmExternalWalletContext = createContext(defaultEvmExternalWallet)
|
|
31
|
+
const EvmExternalWalletContext = createContext(__spreadProps(__spreadValues({}, defaultEvmExternalWallet), {
|
|
32
|
+
farcasterStatus: void 0
|
|
33
|
+
}));
|
|
32
34
|
function EvmExternalWalletProvider({
|
|
33
35
|
children,
|
|
34
36
|
onSwitchWallet,
|
|
@@ -202,6 +204,7 @@ function EvmExternalWalletProvider({
|
|
|
202
204
|
refetchEnsAvatar();
|
|
203
205
|
return yield para.loginExternalWallet({
|
|
204
206
|
externalWallet: {
|
|
207
|
+
partnerId: para.partnerId,
|
|
205
208
|
address,
|
|
206
209
|
type: "EVM",
|
|
207
210
|
provider,
|
|
@@ -309,6 +312,7 @@ function EvmExternalWalletProvider({
|
|
|
309
312
|
try {
|
|
310
313
|
const address = yield connectBase(connector);
|
|
311
314
|
return {
|
|
315
|
+
partnerId: para.partnerId,
|
|
312
316
|
address,
|
|
313
317
|
type: "EVM",
|
|
314
318
|
providerId: (_a = connector.paraDetails) == null ? void 0 : _a.internalId,
|
|
@@ -404,10 +408,10 @@ function EvmExternalWalletProvider({
|
|
|
404
408
|
}
|
|
405
409
|
);
|
|
406
410
|
if (!connection) {
|
|
407
|
-
return
|
|
411
|
+
return { isPresent: false };
|
|
408
412
|
}
|
|
409
413
|
const address = (_a = connection == null ? void 0 : connection.accounts) == null ? void 0 : _a[0];
|
|
410
|
-
return address ? { isConnected: true, address } : { isConnected: false };
|
|
414
|
+
return address ? { isPresent: true, isConnected: true, address } : { isPresent: true, isConnected: false };
|
|
411
415
|
}, [connections]);
|
|
412
416
|
const connectParaEmbedded = useCallback(() => __async(this, null, function* () {
|
|
413
417
|
const paraConnectorInstance = connectors.find((c) => c.id === "para");
|
|
@@ -13,7 +13,7 @@ const farcasterWallet = ({ para, createFarcasterConnector }) => {
|
|
|
13
13
|
iconUrl: icon,
|
|
14
14
|
installed: (para == null ? void 0 : para.isReady) && (para == null ? void 0 : para.isFarcasterMiniApp),
|
|
15
15
|
isExtension: true,
|
|
16
|
-
downloadUrl: "https://
|
|
16
|
+
downloadUrl: "https://farcaster.xyz/",
|
|
17
17
|
createConnector: (walletDetails) => createConnector((config) => __spreadValues(__spreadValues({}, createFarcasterConnector()(config)), walletDetails))
|
|
18
18
|
};
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/evm-wallet-connectors",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.33",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@coinbase/wallet-sdk": "4.3.0",
|
|
6
|
-
"@getpara/wagmi-v2-connector": "2.0.0-alpha.
|
|
7
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
6
|
+
"@getpara/wagmi-v2-connector": "2.0.0-alpha.33",
|
|
7
|
+
"@getpara/web-sdk": "2.0.0-alpha.33",
|
|
8
8
|
"zustand": "^4.5.2",
|
|
9
9
|
"zustand-sync-tabs": "^0.2.2"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@getpara/react-common": "2.0.0-alpha.
|
|
12
|
+
"@getpara/react-common": "2.0.0-alpha.33",
|
|
13
13
|
"@tanstack/react-query": "^5.74.0",
|
|
14
14
|
"@types/react": "^18.0.31",
|
|
15
15
|
"@types/react-dom": "^18.2.7",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"package.json"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f338306fa30497d2190f8da2ff72ddd8d9d9032f",
|
|
29
29
|
"main": "dist/index.js",
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@farcaster/miniapp-wagmi-connector": "^1.0.0",
|