@dodoex/wallet-web3-react 0.0.5 → 0.0.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/wallet-web3-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"typings": "dist/types/index.d.ts",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"compile": "lingui compile"
|
|
14
14
|
},
|
|
15
15
|
"author": "",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "restricted",
|
|
18
|
+
"registry": "https://registry.npmjs.org"
|
|
19
|
+
},
|
|
16
20
|
"license": "GPL-3.0-or-later",
|
|
17
21
|
"description": "",
|
|
18
22
|
"keywords": [
|
|
@@ -33,10 +37,12 @@
|
|
|
33
37
|
]
|
|
34
38
|
},
|
|
35
39
|
"peerDependencies": {
|
|
36
|
-
"@dodoex/wallet-web3": "0.0.
|
|
40
|
+
"@dodoex/wallet-web3": ">=0.0.70",
|
|
37
41
|
"@dodoex/contract-request": ">=1.x",
|
|
38
42
|
"@dodoex/dodo-contract-request": ">=1.x",
|
|
39
43
|
"@dodoex/icons": ">=2.0.2",
|
|
44
|
+
"@dodoex/api": ">=3.0.2",
|
|
45
|
+
"@dodoex/components": ">=3.0.4",
|
|
40
46
|
"react": ">=17.0.2",
|
|
41
47
|
"react-dom": ">=17.0.2"
|
|
42
48
|
},
|
|
@@ -57,8 +63,6 @@
|
|
|
57
63
|
"typescript": "^5.6.3"
|
|
58
64
|
},
|
|
59
65
|
"dependencies": {
|
|
60
|
-
"@dodoex/api": "^3.0.2",
|
|
61
|
-
"@dodoex/components": "^3.0.3",
|
|
62
66
|
"@lingui/macro": "^4.11.4",
|
|
63
67
|
"@lingui/react": "^4.11.4",
|
|
64
68
|
"@tanstack/react-query": "^5.18.1",
|
|
@@ -69,4 +73,4 @@
|
|
|
69
73
|
"qrcode.react": "^4.2.0",
|
|
70
74
|
"react-infinite-scroller": "^1.2.6"
|
|
71
75
|
}
|
|
72
|
-
}
|
|
76
|
+
}
|
|
@@ -473,27 +473,13 @@ function AccountPage({
|
|
|
473
473
|
/>
|
|
474
474
|
<Tabs
|
|
475
475
|
value={listTab}
|
|
476
|
-
onChange={(_, v) => setListTab(v as ListTab)}
|
|
477
|
-
placeholder=""
|
|
478
|
-
onPointerEnterCapture={() => {}}
|
|
479
|
-
onPointerLeaveCapture={() => {}}
|
|
476
|
+
onChange={(_: any, v: ListTab) => setListTab(v as ListTab)}
|
|
480
477
|
>
|
|
481
478
|
<TabsGroup tabs={tabs} />
|
|
482
|
-
<TabPanel
|
|
483
|
-
value={ListTab.tokens}
|
|
484
|
-
placeholder=""
|
|
485
|
-
onPointerEnterCapture={() => {}}
|
|
486
|
-
onPointerLeaveCapture={() => {}}
|
|
487
|
-
>
|
|
479
|
+
<TabPanel value={ListTab.tokens}>
|
|
488
480
|
<HasBalanceTokenList balanceListData={balanceListData} />
|
|
489
481
|
</TabPanel>
|
|
490
|
-
<TabPanel
|
|
491
|
-
value={ListTab.activity}
|
|
492
|
-
className="pt-2"
|
|
493
|
-
placeholder=""
|
|
494
|
-
onPointerEnterCapture={() => {}}
|
|
495
|
-
onPointerLeaveCapture={() => {}}
|
|
496
|
-
>
|
|
482
|
+
<TabPanel value={ListTab.activity} className="pt-2">
|
|
497
483
|
<ActivityList
|
|
498
484
|
fetchTransactionQuery={fetchTransactionQuery}
|
|
499
485
|
getScrollParent={getScrollParent}
|
|
@@ -58,7 +58,10 @@ export function useConnectAlchemyQuery({
|
|
|
58
58
|
const cacheType = walletWeb3.connectController.getAutoCacheType();
|
|
59
59
|
if (cacheType === WalletType.Alchemy) {
|
|
60
60
|
const alchemy = await alchemyWallet.getPackage?.();
|
|
61
|
-
const signer = await alchemy.getAlchemySigner(
|
|
61
|
+
const signer = await alchemy.getAlchemySigner(
|
|
62
|
+
chainId,
|
|
63
|
+
walletWeb3.providerConfig.alchemyParams?.apiKeyObject!,
|
|
64
|
+
);
|
|
62
65
|
const user = await signer.getAuthDetails().catch(() => null);
|
|
63
66
|
if (user) {
|
|
64
67
|
await connectToWallet(walletWeb3, alchemy, {
|
|
@@ -94,6 +97,7 @@ export function useConnectAlchemy({ walletWeb3 }: { walletWeb3: WalletWeb3 }) {
|
|
|
94
97
|
chainId,
|
|
95
98
|
alchemyParams: {
|
|
96
99
|
authParams,
|
|
100
|
+
apiKeyObject: walletWeb3.providerConfig.alchemyParams?.apiKeyObject!,
|
|
97
101
|
},
|
|
98
102
|
});
|
|
99
103
|
},
|