From 2c3d80731cb2f2273d2b1c05636a59c5f19bcdc6 Mon Sep 17 00:00:00 2001 From: Gabito Esmiapodo <4015436+gabitoesmiapodo@users.noreply.github.com> Date: Fri, 2 May 2025 20:19:01 -0300 Subject: [PATCH] chore: update .env.example --- .env.example | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 799a2601..de4bbab7 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,14 @@ # Env variables are pre-processed and "type-safed" in /src/env.ts # So, if you decide to add a new variable, you HAVE to define it there, to be able to consume it in the app. -# App information # App's name. Mandatory. PUBLIC_APP_NAME="dAppBooster" # App's description. Optional. -PUBLIC_APP_DESCRIPTION="A modern blockchain boilerplate built to quickly get you started with your next project." +PUBLIC_APP_DESCRIPTION='' # App's URL. Optional. -PUBLIC_APP_URL=https://dappbooster.vercel.app/ +PUBLIC_APP_URL='' # App's logo. Optional. -PUBLIC_APP_LOGO=https://dappbooster.vercel.app/appLogo.svg +PUBLIC_APP_LOGO='' # Include testnets. Optional. PUBLIC_INCLUDE_TESTNETS=true @@ -22,7 +21,7 @@ PUBLIC_WALLETCONNECT_PROJECT_ID= # Native token address PUBLIC_NATIVE_TOKEN_ADDRESS=0x0000000000000000000000000000000000000000 -# RPCs. If you want to use an RPC different from the one provided by wagmi. +# RPCs. Complete if you want to use a different RPC from the one provided by wagmi. PUBLIC_RPC_ARBITRUM= PUBLIC_RPC_ARBITRUM_SEPOLIA= PUBLIC_RPC_BASE= @@ -35,3 +34,43 @@ PUBLIC_RPC_OPTIMISM_SEPOLIA= PUBLIC_RPC_POLYGON= PUBLIC_RPC_POLYGON_MUMBAI= PUBLIC_RPC_SEPOLIA= + +# Subgraph +########################################################### +########################################################### +# IMPORTANT # +# If you miss to explicitly set ANY of the env vars, # +# the script will SKIP the codegen and the app will # +# likely crash... # +########################################################### +########################################################### +# +# You need to provide your own API key, get one at https://thegraph.com/studio/apikeys/ +PUBLIC_SUBGRAPHS_API_KEY= +# 'development' or 'production' +PUBLIC_SUBGRAPHS_ENVIRONMENT='production' +# +# Subgraph chains resource ids: a comma separated list consisting of :: +# +# These are the resource ids we use for our demos, change for your own. +# We use individual vars for convenience and readability, and later join them in PUBLIC_SUBGRAPHS_CHAINS_RESOURCE_IDS +# +UNISWAP_ARB=42161:uniswap:FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX +UNISWAP_POLYGON=137:uniswap:BvYimJ6vCLkk63oWZy7WB5cVDTVVMugUAF35RAUZpQXE +UNISWAP_OP=10:uniswap:EgnS9YE1avupkvCNj9fHnJxppfEmNNywYJtghqiu2pd9 +AAVE_BASE=8453:aave:GQFbb95cE6d8mV989mL5figjaGaKCQB3xqYrr1bRyXqF + +# Join in PUBLIC_SUBGRAPHS_CHAINS_RESOURCE_IDS +PUBLIC_SUBGRAPHS_CHAINS_RESOURCE_IDS='$UNISWAP_ARB,$UNISWAP_POLYGON,$UNISWAP_OP,$AAVE_BASE' + +# Subgraph URLs +# Must have the replaceable strings [apiKey], [resourceId], and optionally [subgraphId] +# +# These are the subgraph URLs used in our demos, change for your own subgraph URLs. +# +# Development: +# e.g.: PUBLIC_SUBGRAPHS_DEVELOPMENT_URL='https://api.studio.thegraph.com/query/[apiKey]/[subgraphId]/[resourceId]' +PUBLIC_SUBGRAPHS_DEVELOPMENT_URL='https://api.studio.thegraph.com/query/[apiKey]/[subgraphId]/[resourceId]' +# Production: +# e.g.: PUBLIC_SUBGRAPHS_PRODUCTION_URL='https://name.network.thegraph.com/api/[apiKey]/subgraphs/id/[resourceId]' +PUBLIC_SUBGRAPHS_PRODUCTION_URL='https://gateway-arbitrum.network.thegraph.com/api/[apiKey]/subgraphs/id/[resourceId]'