Configures database connection.
Regular TypeORM connection.
Sample value if you want to use SQLite:
{
type: 'sqlite',
database: 'data/db.sqlite',
}
Sample value if you want to use PostgreSQL:
{
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgrespassword',
database: 'postgres',
schema: 'indexer',
}
Optional
hasuraConfigures Hasura for the indexer app.
Optional
httpConfigures HTTP server of this indexer app mainly for monitoring.
Optional
ipfsConfigures connections to IPFS for metadata retrieval.
Optional
loggingConfigures logging of app execution.
The non-empty array of IndexerModule to be executed for indexing.
The indexing config specific for particular Tezos networks e.g. mainnet
.
Configures actual indexing.
Configures connection to Tezos node to be used to fetch blockchain data.
Optional
timeConfigures generic time related features.
Optional
usageConfigures usage statistics.
Generated using TypeDoc
Entire config for an indexer app built using Dappetizer with standard Dappetizer DbContext. It corresponds to the value exported from a config file, see candidateConfigFileNames.
Compared to DappetizerConfig, it adds database property which specifies TypeORM connection.
Example
Sample
dappetizer.config.ts
file with only mandatory values specified: