@getpara/evm-wallet-connectors 2.0.0-alpha.27 → 2.0.0-alpha.29
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { type BalanceManagement, type ChainManagement, type ConnectParaEmbedded, type ExternalWalletContextType, type ExternalWalletProviderConfigBase } from '@getpara/react-common';
|
|
3
|
-
|
|
3
|
+
import { TExternalHooks } from './externalHooks.js';
|
|
4
|
+
export type EvmExternalWalletContextType = ExternalWalletContextType & ChainManagement<number> & BalanceManagement & ConnectParaEmbedded & TExternalHooks & {
|
|
4
5
|
username?: string;
|
|
5
6
|
avatar?: string;
|
|
6
7
|
};
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
} from "@getpara/react-common";
|
|
28
28
|
import { isMobile } from "@getpara/web-sdk";
|
|
29
29
|
import { etherUnits, formatUnits } from "viem";
|
|
30
|
+
import { externalHooks } from "./externalHooks.js";
|
|
30
31
|
const EvmExternalWalletContext = createContext(defaultEvmExternalWallet);
|
|
31
32
|
function EvmExternalWalletProvider({
|
|
32
33
|
children,
|
|
@@ -416,7 +417,7 @@ function EvmExternalWalletProvider({
|
|
|
416
417
|
return /* @__PURE__ */ jsx(
|
|
417
418
|
EvmExternalWalletContext.Provider,
|
|
418
419
|
{
|
|
419
|
-
value: {
|
|
420
|
+
value: __spreadValues({
|
|
420
421
|
wallets,
|
|
421
422
|
chains: formattedChains,
|
|
422
423
|
chainId,
|
|
@@ -430,7 +431,7 @@ function EvmExternalWalletProvider({
|
|
|
430
431
|
getWalletBalance,
|
|
431
432
|
requestInfo,
|
|
432
433
|
disconnectBase
|
|
433
|
-
},
|
|
434
|
+
}, externalHooks),
|
|
434
435
|
children
|
|
435
436
|
}
|
|
436
437
|
);
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { getWalletConnectConnector } from "../../../utils/getWalletConnectConnector.js";
|
|
4
4
|
import { icon } from "./valoraIcon.js";
|
|
5
|
+
import { isMobile } from "@getpara/web-sdk";
|
|
5
6
|
const valoraWallet = ({ projectId, walletConnectParameters }) => {
|
|
6
7
|
const getUri = (uri) => {
|
|
7
|
-
return `celo://wallet/wc?uri=${encodeURIComponent(uri)}`;
|
|
8
|
+
return !isMobile() ? uri : `celo://wallet/wc?uri=${encodeURIComponent(uri)}`;
|
|
8
9
|
};
|
|
9
10
|
return {
|
|
10
11
|
id: "valora",
|
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.29",
|
|
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.29",
|
|
7
|
+
"@getpara/web-sdk": "2.0.0-alpha.29",
|
|
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.29",
|
|
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": "7b90cb5a1a83f9bce9d61bd2baf190c47b58b705",
|
|
29
29
|
"main": "dist/index.js",
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tanstack/react-query": ">=5.0.0",
|