Entire config for an indexer app built using Dappetizer. It corresponds to the value exported from a config file, see candidateConfigFileNames. If you intend to use standard Dappetizer DbContext, then DappetizerConfigUsingDb should be used instead.

Example

Sample dappetizer.config.ts file with only mandatory values specified:

import { DappetizerConfig } from '@tezos-dappetizer/indexer';

const config: DappetizerConfig = {
modules: [
{
id: 'your-node-module-or-relative-path',
config: 'module-config',
},
],
networks: {
mainnet: {
indexing: {
fromBlockLevel: 1796556,
},
tezosNode: {
url: 'https://mainnet-tezos.giganode.io',
},
},
testnet: {
indexing: {
fromBlockLevel: 856123,
},
tezosNode: {
url: 'https://testnet-tezos.giganode.io',
},
},
},
};

export default config;

Hierarchy

Properties

Configures HTTP server of this indexer app mainly for monitoring.

Configures connections to IPFS for metadata retrieval.

Configures logging of app execution.

modules: NonEmptyArray<{
    config?: unknown;
    id: string;
}>

The non-empty array of IndexerModule to be executed for indexing.

networks: {
    [network: string]: {
        indexing: IndexingDappetizerConfig;
        tezosNode: TezosNodeDappetizerConfig;
    };
}

The indexing config specific for particular Tezos networks e.g. mainnet.

Type declaration

Configures generic time related features.

Configures usage statistics.

Generated using TypeDoc