diff --git a/.env.example b/.env.example index 2f3c091..606d53c 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,47 @@ PORT=3000 DATABASE_URL=postgres://user:password@localhost:5432/db DATABASE_PORT=5432 +DATABASE_USERNAME=postgres +DATABASE_PASSWORD=postgres + JWT_SECRET=super_secret_long_string_at_least_32_chars HASH_PEPPER=secure_random_pepper_at_least_16_chars NODE_ENV=development + +################################################################################ + +# Cairo/StarkNet integration +# Set CAIRO_MOCK=true for local development without a chain connection. +CAIRO_MOCK=true + +# When CAIRO_MOCK is false/empty, set these: +# CAIRO_RPC_URL= +# CAIRO_ACCOUNT_ADDRESS= +# CAIRO_PRIVATE_KEY= +# CAIRO_FACTORY_CONTRACT_ADDRESS= +# Optional: CAMPAIGN_CREATED_EVENT_KEY= + +################################################################################ + +# Soroban indexer +# These values are used by code under indexer/. +INDEXER_PORT=4000 +INDEXER_LOG_LEVEL=info + +# Indexer database configuration (can use same or separate database) +INDEXER_DATABASE_HOST=localhost +INDEXER_DATABASE_PORT=5432 +INDEXER_DATABASE_USERNAME=postgres +INDEXER_DATABASE_PASSWORD=postgres +INDEXER_DATABASE_NAME=fundable_indexer +INDEXER_DATABASE_SSL=false + +SOROBAN_RPC_URL=https://soroban-testnet.stellar.org +STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015 +POLL_INTERVAL_MS=5000 +START_LEDGER= + +# Comma-separated contract IDs. Keep production values out of commits unless +# they are intended to be public configuration. +STREAMS_CONTRACT_IDS= +DISTRIBUTIONS_CONTRACT_IDS= diff --git a/indexer/common/package.json b/indexer/common/package.json index 3fc95d4..3bfd1e1 100644 --- a/indexer/common/package.json +++ b/indexer/common/package.json @@ -4,7 +4,8 @@ "private": true, "type": "module", "exports": { - ".": "./src/index.ts" + ".": "./src/index.ts", + "./db": "./src/db/index.ts" }, "scripts": { "build": "tsc -p tsconfig.json",