<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on enhancing the analytics functionality within the `dashboard` application by introducing new utility functions, updating existing API calls, and improving the data handling for contract analytics.
### Detailed summary
- Added export of `toEventSelector` from `thirdweb/utils`.
- Introduced `INSIGHT_SERVICE_API_KEY` in environment constants.
- Modified `ContractAnalyticsPageClient` to accept new props for function and event selectors.
- Created new analytics functions for total contract events, unique wallets, and transactions.
- Updated `isAnalyticsSupportedForChain` to use `INSIGHT_SERVICE_API_KEY`.
- Refactored analytics components to use new hooks for contract events and functions.
- Improved data fetching and error handling in analytics hooks.
- Enhanced UI components for displaying analytics data with loading states.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
127 lines
3.2 KiB
JSON
127 lines
3.2 KiB
JSON
{
|
|
"$schema": "https://turborepo.org/schema.json",
|
|
"globalEnv": ["CI", "TW_SECRET_KEY"],
|
|
"tasks": {
|
|
"build": {
|
|
"outputs": ["dist/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"bench": {
|
|
"cache": false,
|
|
"dependsOn": []
|
|
},
|
|
"typedoc": {
|
|
"outputs": ["typedoc/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"thirdweb-dashboard#build": {
|
|
"env": [
|
|
"SENTRY_AUTH_TOKEN",
|
|
"MORALIS_API_KEY",
|
|
"ETHERSCAN_KEY",
|
|
"SSR_ALCHEMY_KEY",
|
|
"BEEHIIV_API_KEY",
|
|
"GITHUB_API_TOKEN",
|
|
"LUMA_API_KEY",
|
|
"HUBSPOT_ACCESS_TOKEN",
|
|
"API_ROUTES_CLIENT_ID",
|
|
"DASHBOARD_SECRET_KEY",
|
|
"SIMPLEHASH_API_KEY",
|
|
"NEYNAR_API_KEY",
|
|
"THIRDWEB_ENGINE_URL",
|
|
"THIRDWEB_ACCESS_TOKEN",
|
|
"THIRDWEB_ENGINE_ACCESS_TOKEN",
|
|
"DEGEN_THIRDWEB_ENGINE_WALLET",
|
|
"THIRDWEB_ENGINE_WALLET",
|
|
"UNTHREAD_TRIAGE_CHANNEL_ID",
|
|
"UNTHREAD_EMAIL_INBOX_ID",
|
|
"UNTHREAD_FREE_TIER_ID",
|
|
"UNTHREAD_GROWTH_TIER_ID",
|
|
"UNTHREAD_PRO_TIER_ID",
|
|
"REDIS_URL",
|
|
"UNTHREAD_API_KEY",
|
|
"CHAINSAW_API_KEY",
|
|
"ANALYTICS_SERVICE_URL",
|
|
"ANALYTICS_SERVICE_API_KEY",
|
|
"DISABLE_FAUCET_CHAIN_IDS",
|
|
"API_SERVER_SECRET",
|
|
"TURNSTILE_SECRET_KEY",
|
|
"NEXT_PUBLIC_TURNSTILE_SITE_KEY",
|
|
"NEXT_PUBLIC_THIRDWEB_ENGINE_FAUCET_WALLET",
|
|
"NEXT_PUBLIC_NEBULA_URL",
|
|
"INSIGHT_SERVICE_API_KEY"
|
|
],
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"portal#build": {
|
|
"outputs": [".next/**", "!.next/cache/**", "searchIndex.json"],
|
|
"dependsOn": ["^build", "thirdweb#typedoc"]
|
|
},
|
|
"portal#dev": {
|
|
"dependsOn": ["^build", "thirdweb#typedoc"]
|
|
},
|
|
"playground-web#build": {
|
|
"env": ["ENGINE_ACCESS_TOKEN", "ENGINE_BACKEND_WALLET", "ENGINE_URL"],
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"wallet-ui#build": {
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"thirdweb#update-version": {
|
|
"inputs": ["$TURBO_DEFAULT$", "package.json"],
|
|
"outputs": ["src/version.ts"]
|
|
},
|
|
"test": {
|
|
"outputs": ["coverage/**"],
|
|
"inputs": ["$TURBO_DEFAULT$", "src/**", "test/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"storybook": {
|
|
"inputs": ["$TURBO_DEFAULT$", "src/**"]
|
|
},
|
|
"test:legacy": {
|
|
"outputs": ["coverage/**"],
|
|
"inputs": ["$TURBO_DEFAULT$", "src/**", "test/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"e2e": {
|
|
"outputs": [],
|
|
"inputs": ["$TURBO_DEFAULT$", "src/**", "fixtures/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"e2e:legacy": {
|
|
"outputs": [],
|
|
"inputs": ["$TURBO_DEFAULT$", "src/**", "fixtures/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"lint": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"lint:legacy": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"fix": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"format": {
|
|
"cache": false
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"thirdweb-dashboard#dev": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|