staterecover: adds blobscan to local stack (#279)

* staterecover: adds blobscan to local stack

* staterecover: adds blobscan env file

* connect port 4001 for blobscan-api

* statereover: improve test utils for code reuse

---------

Co-authored-by: thedarkjester <grant.southey@consensys.net>
This commit is contained in:
Pedro Novais
2024-11-21 10:08:07 +00:00
committed by GitHub
parent c0b28f1970
commit 3d5d4e6ab0
7 changed files with 238 additions and 42 deletions

View File

@@ -0,0 +1,92 @@
# Since .env is gitignored, you can use .env.example to build a new `.env` file when you clone the repo.
# Keep this file up-to-date when you add new variables to \`.env\`.
# This file will be committed to version control, so make sure not to have any secrets in it.
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.
# We use dotenv to load Prisma from Next.js' .env file
# @see https://www.prisma.io/docs/reference/database-reference/connection-urls
# DATABASE_URL=postgresql://blobscan:s3cr3t@localhost:5432/blobscan_dev?schema=public
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/blobscan
BLOBSCAN_WEB_TAG=next
BLOBSCAN_API_TAG=next
INDEXER_TAG=master
DENCUN_FORK_SLOT=0
############################
#### rest api server APP
############################
BLOBSCAN_API_PORT=4001
EXTERNAL_API_PORT=4001
CHAIN_ID=31648428
LOG_LEVEL=debug
NETWORK_NAME=devnet
# SENTRY_DSN_API=
############################
#### blobscan indexer APP
############################
SECRET_KEY=supersecret
BLOBSCAN_API_ENDPOINT=http://blobscan-api:4001
BEACON_NODE_ENDPOINT=http://l1-cl-node:4000
EXECUTION_NODE_ENDPOINT=http://l1-el-node:8545
RUST_LOG=blob_indexer=info
LOGGER=default
NODE_ENV=development
# SENTRY_DSN_INDEXER=
### telemetry
# METRICS_ENABLED=
# TRACES_ENABLED=
# OTLP_AUTH_USERNAME=
# OTLP_AUTH_PASSWORD=
# OTEL_EXPORTER_OTLP_PROTOCOL=
# OTEL_EXPORTER_OTLP_ENDPOINT=
# OTEL_DIAG_ENABLED=
### blobscan website
### NOTE: Just place holder for now. Not used in the project atm
EXTERNAL_WEB_PORT=3000
# BEE_ENDPOINT=
CHAIN_ID=31648428
NETWORK_NAME=devnet
# GOOGLE_STORAGE_BUCKET_NAME=blobscan-test-bucket
# GOOGLE_STORAGE_PROJECT_ID=blobscan-test-project
# GOOGLE_SERVICE_KEY=
# GOOGLE_STORAGE_API_ENDPOINT=http://localhost:4443
BLOB_PROPAGATOR_ENABLED=false
GOOGLE_STORAGE_ENABLED=false
POSTGRES_STORAGE_ENABLED=true
SWARM_STORAGE_ENABLED=false
REDIS_URI=redis://redis:6379/1
# PRISMA_BATCH_OPERATIONS_MAX_SIZE=
# FEEDBACK_WEBHOOK_URL=
# @see https://next-auth.js.org/configuration/options#nextauth_url
NEXTAUTH_URL=http://localhost:3000
# You can generate the secret via 'openssl rand -base64 32' on Unix
# @see https://next-auth.js.org/configuration/options#secret
SECRET_KEY=supersecret
NEXT_PUBLIC_NETWORK_NAME=mainnet
NEXT_PUBLIC_VERCEL_ANALYTICS_ENABLED=false
NEXT_PUBLIC_BEACON_BASE_URL=https://dora.ethpandaops.io/
NEXT_PUBLIC_EXPLORER_BASE_URL=https://etherscan.io/