Skip to content

Commit c305aaf

Browse files
committed
Dashboard: Remove Moralis API usage from contract/balances, UI improvements
1 parent 710ac32 commit c305aaf

File tree

22 files changed

+284
-943
lines changed

22 files changed

+284
-943
lines changed

.changeset/thin-days-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix `thirdweb/insight` import typescript error

apps/dashboard/.env.example

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
5353
# Client id for api routes
5454
API_ROUTES_CLIENT_ID=
5555

56-
# <moralis.io API key (used for api routes for token balances and wallet NFTs)
57-
# - not required to build (unless using wallet NFTs and token balances)>
58-
MORALIS_API_KEY=
59-
60-
# alchemy.com API key (used for wallet NFTS)
61-
# - cannot be restricted to IP/domain because vercel has no stable IPs and it happens during build & runtime api route call
62-
# - not required to build (unless testing wallet NFTs)>
63-
SSR_ALCHEMY_KEY=
6456

6557

6658
# Hubspot Access Token (used for contact us form)

apps/dashboard/src/@/actions/getBalancesFromMoralis.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

apps/dashboard/src/@/actions/getWalletNFTs.ts

Lines changed: 0 additions & 210 deletions
This file was deleted.

apps/dashboard/src/@/constants/server-envs.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ if (isProd && INSIGHT_SERVICE_API_KEY) {
5858
);
5959
}
6060

61-
export const MORALIS_API_KEY = process.env.MORALIS_API_KEY || "";
62-
63-
if (MORALIS_API_KEY) {
64-
experimental_taintUniqueValue(
65-
"Do not pass MORALIS_API_KEY to the client",
66-
process,
67-
MORALIS_API_KEY,
68-
);
69-
}
70-
7161
export const ANALYTICS_SERVICE_URL = process.env.ANALYTICS_SERVICE_URL || "";
7262

7363
export const STRIPE_SECRET_KEY = process.env.STRIPE_SECRET_KEY || "";

0 commit comments

Comments
 (0)