Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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=
Expand All @@ -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 <chainId>:<subgraphId>:<resourceId>
#
# 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]'