diff --git a/.gitignore b/.gitignore index 07ee98c5..60edadad 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ lib package-lock.json yarn-error.log .DS_Store -docker-compose.dev.yml +docker-compose-dev.yml .env.example diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index b198be5c..5b7641b8 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -28,8 +28,8 @@ services: CHAIN_ID: '1' POSTGRES_URI: 'postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres/${POSTGRES_DB}' SCHEMA: 'events' - # FEAT_EXCLUSIVE_TOKENS_FROM_TRANSACTIONS: "true" - # TOKENS_FROM_TRANSACTIONS_START_BLOCK: 9193266 + FEAT_EXCLUSIVE_TOKENS_FROM_TRANSACTIONS: "true" + TOKENS_FROM_TRANSACTIONS_START_BLOCK: 9193266 KAFKA_BROKERS: '${KAFKA_BROKERS}' KAFKA_SSL: '${KAFKA_SSL}' KAFKA_AUTH_USER: '${KAFKA_AUTH_USER}' @@ -40,35 +40,35 @@ services: MAX_TX_TO_PULL: 1000 BLOCK_FINALITY_THRESHOLD: 0 SECONDS_BETWEEN_RUNS: 1 - # FEAT_UNISWAP_V2_VIP_SWAP_EVENT: "true" - # UNISWAP_V2_VIP_SWAP_SOURCES: "UniswapV2,SushiSwap" - # UNISWAP_V2_VIP_SWAP_START_BLOCK: 10917104 - # FEAT_UNISWAP_V3_VIP_SWAP_EVENT: "true" - # UNISWAP_V3_VIP_SWAP_START_BLOCK: 12553659 - # FEAT_UNISWAP_V3_SWAP_EVENT: "true" - # UNISWAP_V3_SWAP_START_BLOCK: 16670838 - # FEAT_LIMIT_ORDERS: "true" - # V4_NATIVE_FILL_START_BLOCK: "11591021" - # FEAT_PLP_SWAP_EVENT: "true" - # PLP_VIP_START_BLOCK: 11377457 - # FEAT_OTC_ORDERS: "true" - # OTC_ORDERS_FEATURE_START_BLOCK: 13143075 - # FEAT_CANCEL_EVENTS: "true" - # FEAT_STAKING: "true" - # STAKING_DEPLOYMENT_BLOCK: 8952581 - # FEAT_RFQ_EVENT: "true" - # FEAT_V3_NATIVE_FILL: "true" - # FEAT_ERC20_BRIDGE_TRANSFER_FLASHWALLET: "true" - # FLASHWALLET_ADDRESS: "0x22f9dcf4647084d6c31b2765f6910cd85c178c18" - # FLASHWALLET_DEPLOYMENT_BLOCK: 12231666 - # FEAT_NFT: "true" - # NFT_FEATURE_START_BLOCK: 14258205 - # FEAT_UNISWAP_V2_PAIR_CREATED_EVENT: "true" - # UNISWAP_V2_PAIR_CREATED_PROTOCOL_CONTRACT_ADDRESSES_AND_START_BLOCKS: "UniswapV2:0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f:10000835,SushiSwap:0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac:10794229" - # FEAT_UNISWAP_V2_SYNC_EVENT: "true" - # UNISWAP_V2_SYNC_START_BLOCK: 10000835 - # FEAT_ONCHAIN_GOVERNANCE: "true" - # ONCHAIN_GOVERNANCE_START_BLOCK: 16990159 + FEAT_UNISWAP_V2_VIP_SWAP_EVENT: "true" + UNISWAP_V2_VIP_SWAP_SOURCES: "UniswapV2,SushiSwap" + UNISWAP_V2_VIP_SWAP_START_BLOCK: 10917104 + FEAT_UNISWAP_V3_VIP_SWAP_EVENT: "true" + UNISWAP_V3_VIP_SWAP_START_BLOCK: 12553659 + FEAT_UNISWAP_V3_SWAP_EVENT: "true" + UNISWAP_V3_SWAP_START_BLOCK: 16670838 + FEAT_LIMIT_ORDERS: "true" + V4_NATIVE_FILL_START_BLOCK: "11591021" + FEAT_PLP_SWAP_EVENT: "true" + PLP_VIP_START_BLOCK: 11377457 + FEAT_OTC_ORDERS: "true" + OTC_ORDERS_FEATURE_START_BLOCK: 13143075 + FEAT_CANCEL_EVENTS: "true" + FEAT_STAKING: "true" + STAKING_DEPLOYMENT_BLOCK: 8952581 + FEAT_RFQ_EVENT: "true" + FEAT_V3_NATIVE_FILL: "true" + FEAT_ERC20_BRIDGE_TRANSFER_FLASHWALLET: "true" + FLASHWALLET_ADDRESS: "0x22f9dcf4647084d6c31b2765f6910cd85c178c18" + FLASHWALLET_DEPLOYMENT_BLOCK: 12231666 + FEAT_NFT: "true" + NFT_FEATURE_START_BLOCK: 14258205 + FEAT_UNISWAP_V2_PAIR_CREATED_EVENT: "true" + UNISWAP_V2_PAIR_CREATED_PROTOCOL_CONTRACT_ADDRESSES_AND_START_BLOCKS: "UniswapV2:0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f:10000835,SushiSwap:0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac:10794229" + FEAT_UNISWAP_V2_SYNC_EVENT: "true" + UNISWAP_V2_SYNC_START_BLOCK: 10000835 + FEAT_ONCHAIN_GOVERNANCE: "true" + ONCHAIN_GOVERNANCE_START_BLOCK: 16990159 FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true" WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' diff --git a/src/scripts/pull_and_save_events_by_topic.ts b/src/scripts/pull_and_save_events_by_topic.ts index 385b2f78..fd848488 100644 --- a/src/scripts/pull_and_save_events_by_topic.ts +++ b/src/scripts/pull_and_save_events_by_topic.ts @@ -67,7 +67,7 @@ export class EventsByTopicScraper { ), ), ] as string[]; - + if (txHashes.length) { await getParseSaveTxAsync(connection, producer, web3Source, txHashes); }