2021-08-12 09:58:13 +00:00
|
|
|
//
|
|
|
|
// Copyright 2021 Vulcanize, Inc.
|
|
|
|
//
|
|
|
|
|
2021-07-23 13:52:55 +00:00
|
|
|
export const MAX_REORG_DEPTH = 16;
|
2022-10-19 09:54:14 +00:00
|
|
|
export const DIFF_MERGE_BATCH_SIZE = 10000;
|
2021-08-18 10:20:44 +00:00
|
|
|
|
|
|
|
export const QUEUE_BLOCK_PROCESSING = 'block-processing';
|
|
|
|
export const QUEUE_EVENT_PROCESSING = 'event-processing';
|
|
|
|
export const QUEUE_CHAIN_PRUNING = 'chain-pruning';
|
2021-10-12 10:32:56 +00:00
|
|
|
export const QUEUE_BLOCK_CHECKPOINT = 'block-checkpoint';
|
|
|
|
export const QUEUE_HOOKS = 'hooks';
|
2021-08-30 05:46:54 +00:00
|
|
|
|
|
|
|
export const JOB_KIND_INDEX = 'index';
|
|
|
|
export const JOB_KIND_PRUNE = 'prune';
|
2021-09-02 04:57:56 +00:00
|
|
|
|
2021-12-10 05:14:10 +00:00
|
|
|
export const JOB_KIND_EVENTS = 'events';
|
2021-12-08 05:41:29 +00:00
|
|
|
export const JOB_KIND_CONTRACT = 'contract';
|
|
|
|
|
2021-09-02 04:57:56 +00:00
|
|
|
export const DEFAULT_CONFIG_PATH = 'environments/local.toml';
|
2021-09-21 11:13:55 +00:00
|
|
|
|
|
|
|
export const UNKNOWN_EVENT_NAME = '__unknown__';
|
2021-09-28 04:52:21 +00:00
|
|
|
|
|
|
|
export const KIND_ACTIVE = 'active';
|
|
|
|
export const KIND_LAZY = 'lazy';
|
2022-11-15 09:26:08 +00:00
|
|
|
|
|
|
|
export const DEFAULT_MAX_GQL_CACHE_SIZE = Math.pow(2, 20) * 8; // 8 MB
|