Skip to content

Commit 5709f12

Browse files
committed
remove unused deps
1 parent cc5f721 commit 5709f12

File tree

7 files changed

+8
-292
lines changed

7 files changed

+8
-292
lines changed

.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
VITE_INFURA_API_KEY =
22
VITE_ALCHEMY_API_KEY =
3-
VITE_COVALENT_API_KEY =
43
VITE_TRONGRID_API_KEY =

.github/workflows/main-pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
- name: Build the project
4141
env:
4242
VITE_INFURA_API_KEY: ${{ secrets.VITE_INFURA_API_KEY }}
43-
VITE_COVALENT_API_KEY: ${{ secrets.VITE_COVALENT_API_KEY }}
4443
VITE_TRONGRID_API_KEY: ${{ secrets.VITE_TRONGRID_API_KEY }}
44+
VITE_ALCHEMY_API_KEY: ${{ secrets.VITE_ALCHEMY_API_KEY }}
4545
run: yarn build
4646
- name: Setup Pages
4747
uses: actions/configure-pages@v4

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This is a fully open-source project built with React, Vite, and related third-pa
117117
- **ethers**
118118
A standard library for manipulating EVM accounts.
119119

120-
- **@covalenthq/client-sdk**
120+
- **alchemy-sdk**
121121
Provides query functions for massive crypto assets in multiple networks.
122122

123123
- **@sushiswap/default-token-list**

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@
3030
"preview": "vite preview"
3131
},
3232
"dependencies": {
33-
"@covalenthq/client-sdk": "^1.0.2",
3433
"@sushiswap/default-token-list": "^43.3.0",
3534
"alchemy-sdk": "^3.5.0",
3635
"buffer": "^6.0.3",
37-
"camelcase-keys": "^9.1.3",
3836
"clipboard-copy": "^4.0.1",
3937
"date-fns": "^4.1.0",
4038
"ethers": "^6.13.0",

src/contexts/Store.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ const StoreProvider = ({ children }) => {
148148
setNativeTokenBalance(0);
149149
setTokenBalances([]);
150150
setNftBalances([]);
151+
setTransfers([]);
151152

152153
selectToken("");
153154
};

src/lib/account/evm.js

-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { CovalentClient } from "@covalenthq/client-sdk";
21
import { tokens as defaultTokensList } from "@sushiswap/default-token-list";
32
import { Alchemy } from "alchemy-sdk";
43
import { Contract, ethers } from "ethers";
@@ -25,7 +24,6 @@ class EvmAccount {
2524
// wei unit
2625
gasPrice = 0;
2726

28-
queryClient = null;
2927
alchemyClient = null;
3028

3129
constructor(hashKey, chainId) {
@@ -37,10 +35,6 @@ class EvmAccount {
3735
this.account = new ethers.Wallet(this.signer, this.provider);
3836
this.address = this.account.address;
3937

40-
this.queryClient = new CovalentClient(
41-
import.meta.env.VITE_COVALENT_API_KEY
42-
);
43-
4438
this.alchemyClient = new Alchemy({
4539
network: this.networkInfo.networkId,
4640
apiKey: alchemyApiKey,

0 commit comments

Comments
 (0)