Skip to content

Commit 5589884

Browse files
committed
Merge branch 'main' into yash/ocr-contracts-integration
2 parents 47bdd80 + 438027a commit 5589884

File tree

779 files changed

+14733
-8943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

779 files changed

+14733
-8943
lines changed

.changeset/cute-actors-beam.md

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

.changeset/shaky-candles-rule.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+
Deprecates `sortBy` parameter in Bridge.routes

.changeset/slick-cups-joke.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+
Adds TikTok as a new authentication method for In-App and Ecosystem Wallets.

.changeset/warm-ways-decide.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+
Hide quote value in payment widgets

apps/dashboard/.env.example

Lines changed: 20 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
#
21
# Public (client)
3-
#
4-
5-
# API authorized domain
6-
# not required to build, defaults to prod
7-
NEXT_PUBLIC_THIRDWEB_DOMAIN="localhost:3000"
2+
# ------------------------------------------------------------------------
83

94
# API host. For local development, please use "https://api.thirdweb-dev.com"
105
# otherwise: "https://api.thirdweb.com"
6+
# local host - http://127.0.0.1:3005
117
NEXT_PUBLIC_THIRDWEB_API_HOST="https://api.thirdweb-dev.com"
128

139
# Bridge API. For local development, please use "https://bridge.thirdweb-dev.com"
1410
# otherwise: "https://bridge.thirdweb.com"
1511
NEXT_PUBLIC_THIRDWEB_BRIDGE_HOST="https://bridge.thirdweb-dev.com"
1612

17-
# Paper API host
13+
# in-app wallet host
1814
NEXT_PUBLIC_THIRDWEB_EWS_API_HOST="https://ews.thirdweb-dev.com"
1915

20-
# thirdweb local api host
21-
# NEXT_PUBLIC_THIRDWEB_API_HOST="http://127.0.0.1:3005"
22-
23-
# Client ID
24-
# Get the client id from https://thirdweb.com/create-api-key and set it here,
16+
# Client ID - Required
17+
# Get the client id from https://thirdweb.com/create-api-key and set it here, and also set DASHBOARD_SECRET_KEY below
2518
# make sure to allow localhost:3000 in the allowed origins
26-
NEXT_PUBLIC_DASHBOARD_CLIENT_ID="<replace_me_with_your_client_id>"
19+
NEXT_PUBLIC_DASHBOARD_CLIENT_ID=""
2720

2821
# IPFS gateway url
2922
NEXT_PUBLIC_IPFS_GATEWAY_URL="https://{clientId}.thirdwebstorage-dev.com/ipfs/{cid}/{path}"
@@ -39,62 +32,35 @@ NEXT_PUBLIC_TYPESENSE_CONTRACT_API_KEY=
3932
# - not required for prod/staging
4033
NEXT_PUBLIC_POSTHOG_KEY=""
4134

42-
# Stripe Customer portal
43-
NEXT_PUBLIC_STRIPE_KEY=
44-
45-
NEXT_PUBLIC_STRIPE_PAYMENT_METHOD_CFG_ID=
46-
47-
#
48-
# Private (server)
49-
#
50-
# Get the secret key from https://thirdweb.com/create-api-key and set it here, Make sure to allow localhost:3000 in the allowed origins
51-
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
52-
53-
# Client id for api routes
54-
API_ROUTES_CLIENT_ID=
55-
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=
35+
# required for server wallet management
36+
NEXT_PUBLIC_THIRDWEB_VAULT_URL=""
37+
NEXT_PUBLIC_ENGINE_CLOUD_URL=""
5938

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=
6439

40+
# Demo Engine - required for showing demo engine page
41+
NEXT_PUBLIC_DEMO_ENGINE_URL=""
6542

66-
# Hubspot Access Token (used for contact us form)
67-
# - not required to build (unless testing contact us form)>
68-
HUBSPOT_ACCESS_TOKEN=
6943

70-
# Upload server url
71-
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-preview.com"
44+
# Private (server)
45+
# ------------------------------------------------------------------------
7246

73-
# Unthread variables - only required for submitting the support form in /support
74-
UNTHREAD_API_KEY=""
75-
UNTHREAD_TRIAGE_CHANNEL_ID=""
76-
UNTHREAD_EMAIL_INBOX_ID=""
77-
UNTHREAD_FREE_TIER_ID=""
78-
UNTHREAD_GROWTH_TIER_ID=""
79-
UNTHREAD_PRO_TIER_ID=""
47+
# Get the secret key from https://thirdweb.com/create-api-key and set it here and also set NEXT_PUBLIC_DASHBOARD_CLIENT_ID above,
48+
# Make sure to allow localhost:3000 in the allowed origins
49+
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
8050

81-
# Demo Engine
82-
NEXT_PUBLIC_DEMO_ENGINE_URL=""
51+
# Client id for api routes - required for contract OG image generation
52+
API_ROUTES_CLIENT_ID=
8353

8454
# API server secret (required for thirdweb.com SIWE login). Copy from Vercel.
8555
API_SERVER_SECRET=""
8656

87-
# Used for the Faucet page (/<chain_id>)
57+
# Used in faucet on chain page (/<chain-id>) and login page (/login) - turnstile is disabled in localhost development
8858
NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
8959
TURNSTILE_SECRET_KEY=""
60+
9061
REDIS_URL=""
9162

9263
ANALYTICS_SERVICE_URL=""
9364

94-
9565
# required for billing parts of the dashboard (team -> settings -> billing / invoices)
9666
STRIPE_SECRET_KEY=""
97-
98-
# required for server wallet management
99-
NEXT_PUBLIC_THIRDWEB_VAULT_URL=""
100-
NEXT_PUBLIC_ENGINE_CLOUD_URL=""

apps/dashboard/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ module.exports = {
9696
name: "posthog-js",
9797
},
9898
],
99+
patterns: [
100+
{
101+
group: ["**/../@/**"],
102+
message: "Use absolute imports instead. Example: '@/foo/bar..'",
103+
},
104+
],
99105
},
100106
],
101107
"no-restricted-syntax": [

apps/dashboard/next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const ContentSecurityPolicy = `
99
img-src * data: blob:;
1010
media-src * data: blob:;
1111
object-src 'none';
12-
style-src 'self' 'unsafe-inline' vercel.live;
12+
style-src 'self' 'unsafe-inline' vercel.live us.posthog.com;
1313
font-src 'self' vercel.live assets.vercel.com framerusercontent.com fonts.gstatic.com;
1414
frame-src * data:;
15-
script-src 'self' 'unsafe-eval' 'unsafe-inline' 'wasm-unsafe-eval' 'inline-speculation-rules' *.thirdweb.com *.thirdweb-dev.com vercel.live js.stripe.com framerusercontent.com events.framer.com challenges.cloudflare.com googletagmanager.com us-assets.i.posthog.com edit.framer.com;
15+
script-src 'self' 'unsafe-eval' 'unsafe-inline' 'wasm-unsafe-eval' 'inline-speculation-rules' *.thirdweb.com *.thirdweb-dev.com vercel.live js.stripe.com framerusercontent.com events.framer.com challenges.cloudflare.com googletagmanager.com us-assets.i.posthog.com edit.framer.com framer.com googletagmanager.com;
1616
connect-src * data: blob:;
1717
worker-src 'self' blob:;
1818
block-all-mixed-content;

apps/dashboard/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"react-error-boundary": "6.0.0",
5858
"react-hook-form": "7.55.0",
5959
"react-markdown": "10.1.0",
60-
"react-qrcode-logo": "^3.0.0",
6160
"react-table": "^7.8.0",
6261
"recharts": "2.15.3",
6362
"remark-gfm": "4.0.1",
@@ -130,4 +129,4 @@
130129
"update-checkly": "npx checkly deploy"
131130
},
132131
"version": "3.0.0"
133-
}
132+
}

apps/dashboard/src/@/actions/getAccount.ts renamed to apps/dashboard/src/@/actions/account/getAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use server";
22

3-
import { getRawAccount } from "../../app/(app)/account/settings/getAccount";
3+
import { getRawAccount } from "@/api/account/get-account";
44

55
export async function getRawAccountAction() {
66
return getRawAccount();

0 commit comments

Comments
 (0)