mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 12:56:20 +00:00
f3c65cbd64
* Ignore watch contract jobs in event processing complete handler * Update job-queue config and handle errors on job completion hook * Update graph decimal implementation * Return generic type from method to read watcher config * Export fill prefetch batch size default value
30 lines
853 B
TypeScript
30 lines
853 B
TypeScript
//
|
|
// Copyright 2021 Vulcanize, Inc.
|
|
//
|
|
|
|
export const MAX_REORG_DEPTH = 16;
|
|
export const DIFF_MERGE_BATCH_SIZE = 10000;
|
|
|
|
export const QUEUE_BLOCK_PROCESSING = 'block-processing';
|
|
export const QUEUE_EVENT_PROCESSING = 'event-processing';
|
|
export const QUEUE_CHAIN_PRUNING = 'chain-pruning';
|
|
export const QUEUE_BLOCK_CHECKPOINT = 'block-checkpoint';
|
|
export const QUEUE_HOOKS = 'hooks';
|
|
|
|
export const JOB_KIND_INDEX = 'index';
|
|
export const JOB_KIND_PRUNE = 'prune';
|
|
|
|
export const JOB_KIND_EVENTS = 'events';
|
|
export const JOB_KIND_CONTRACT = 'contract';
|
|
|
|
export const DEFAULT_CONFIG_PATH = 'environments/local.toml';
|
|
|
|
export const UNKNOWN_EVENT_NAME = '__unknown__';
|
|
|
|
export const KIND_ACTIVE = 'active';
|
|
export const KIND_LAZY = 'lazy';
|
|
|
|
export const DEFAULT_PREFETCH_BATCH_SIZE = 10;
|
|
|
|
export const DEFAULT_MAX_GQL_CACHE_SIZE = Math.pow(2, 20) * 8; // 8 MB
|