Skip to content
Draft
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
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ DATABASE_URL=postgres://postgres:postgres@localhost:5432/grants_stack_indexer
# METIS_ANDROMEDA_RPC_URL

#COINGECKO_API_KEY=
#IPFS_GATEWAY=
#IPFS_GATEWAYs=[]
#WHITELISTED_ADDRESSES=["0x123..","0x456.."]

# optional, enable the Postgraphile Pro plugin: https://www.npmjs.com/package/@graphile/pro
#GRAPHILE_LICENSE
10 changes: 8 additions & 2 deletions docs/reindexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ When deploying changes to the indexer, it's important to clarify the results you
- The indexer will create a new schema in Postgres named `chain_data_${version}`. If this schema does not exist, it will be created, all necessary tables will be set up, and indexing will start from scratch.
- If the schema already exists, the indexer will resume indexing from the last indexed block unless the `--drop-db` flag is specified via the CLI. This will drop the existing database and start fresh.

### Using `--drop-db` in Development
### Dropping Schemas in Development

- During development, you can use the `--drop-db` flag to ensure the indexer always deletes the existing schema and migrates from scratch. This can be useful for testing schema changes and event handler modifications without retaining old data.
- During development, you can use the `--drop-db` flag to ensure the indexer always deletes all existing schema and migrates from scratch. This can be useful for testing schema changes and event handler modifications without retaining old data.

- During development, you can use the `--drop-chain-db` flag to ensure the indexer always deletes chain schema and migrates from scratch.

- During development, you can use the `--drop-ipfs-db` flag to ensure the indexer always deletes ipfs schema and migrates from scratch.

- During development, you can use the `--drop-price-db` flag to ensure the indexer always deletes price schema and migrates from scratch.

### Important Notes

Expand Down
36 changes: 18 additions & 18 deletions indexer-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ services:
ENABLE_RESOURCE_MONITOR: ${ENABLE_RESOURCE_MONITOR}
ESTIMATES_LINEARQF_WORKER_POOL_SIZE: ${ESTIMATES_LINEARQF_WORKER_POOL_SIZE}
PINO_PRETTY: ${PINO_PRETTY}
IPFS_GATEWAY: ${IPFS_GATEWAY}
IPFS_GATEWAYS: ${IPFS_GATEWAYS}
COINGECKO_API_KEY: ${COINGECKO_API_KEY}
GRAPHILE_LICENSE: ${GRAPHILE_LICENSE}
SEPOLIA_RPC_URL: ${SEPOLIA_RPC_URL}
POLYGON_MUMBAI_RPC_URL: ${POLYGON_MUMBAI_RPC_URL}
AVALANCHE_RPC_URL: ${AVALANCHE_RPC_URL}
OPTIMISM_RPC_URL: ${OPTIMISM_RPC_URL}
SEPOLIA_RPC_URLS: ${SEPOLIA_RPC_URLS}
POLYGON_MUMBAI_RPC_URLS: ${POLYGON_MUMBAI_RPC_URLS}
AVALANCHE_RPC_URLS: ${AVALANCHE_RPC_URLS}
OPTIMISM_RPC_URLS: ${OPTIMISM_RPC_URLS}
SENTRY_DSN: ${SENTRY_DSN}
PGN_TESTNET_RPC_URL: ${PGN_TESTNET_RPC_URL}
ARBITRUM_GOERLI_RPC_URL: ${ARBITRUM_GOERLI_RPC_URL}
FANTOM_RPC_URL: ${FANTOM_RPC_URL}
BASE_RPC_URL: ${BASE_RPC_URL}
PGN_RPC_URL: ${PGN_RPC_URL}
GOERLI_RPC_URL: ${GOERLI_RPC_URL}
AVALANCHE_FUJI_RPC_URL: ${AVALANCHE_FUJI_RPC_URL}
ARBITRUM_RPC_URL: ${ARBITRUM_RPC_URL}
SEI_MAINNET_RPC_URL: ${SEI_MAINNET_RPC_URL}
MAINNET_RPC_URL: ${MAINNET_RPC_URL}
POLYGON_RPC_URL: ${POLYGON_RPC_URL}
METIS_ANDROMEDA_RPC_URL: ${METIS_ANDROMEDA_RPC_URL}
SCROLL_SEPOLIA_RPC_URL: ${SCROLL_SEPOLIA_RPC_URL}
ARBITRUM_GOERLI_RPC_URLS: ${ARBITRUM_GOERLI_RPC_URLS}
FANTOM_RPC_URLS: ${FANTOM_RPC_URLS}
BASE_RPC_URLS: ${BASE_RPC_URLS}
PGN_RPC_URLS: ${PGN_RPC_URLS}
GOERLI_RPC_URLS: ${GOERLI_RPC_URLS}
AVALANCHE_FUJI_RPC_URLS: ${AVALANCHE_FUJI_RPC_URLS}
ARBITRUM_RPC_URLS: ${ARBITRUM_RPC_URLS}
SEI_MAINNET_RPC_URLS: ${SEI_MAINNET_RPC_URLS}
MAINNET_RPC_URLS: ${MAINNET_RPC_URLS}
POLYGON_RPC_URLS: ${POLYGON_RPC_URLS}
METIS_ANDROMEDA_RPC_URLS: ${METIS_ANDROMEDA_RPC_URLS}
SCROLL_SEPOLIA_RPC_URLS: ${SCROLL_SEPOLIA_RPC_URLS}
DATABASE_URL: "postgresql://postgres:postgres@db:5432/grants_stack_indexer"

index:
Expand All @@ -62,7 +62,7 @@ services:
ENABLE_RESOURCE_MONITOR: ${ENABLE_RESOURCE_MONITOR}
ESTIMATES_LINEARQF_WORKER_POOL_SIZE: ${ESTIMATES_LINEARQF_WORKER_POOL_SIZE}
PINO_PRETTY: ${PINO_PRETTY}
IPFS_GATEWAY: ${IPFS_GATEWAY}
IPFS_GATEWAYS: ${IPFS_GATEWAYS}
COINGECKO_API_KEY: ${COINGECKO_API_KEY}
GRAPHILE_LICENSE: ${GRAPHILE_LICENSE}
SEPOLIA_RPC_URL: ${SEPOLIA_RPC_URL}
Expand Down
Loading