Skip to content
Open
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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=
3 changes: 2 additions & 1 deletion indexer/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down