From 2963b2af59c6de98a6b2f0dfb1dffbdd234779c0 Mon Sep 17 00:00:00 2001 From: Danylo Kanievskyi Date: Thu, 6 Jun 2024 22:17:08 +0300 Subject: [PATCH] temp: add thegraph logs --- .../gas-refund-program/transactions-indexing/swaps-subgraph.ts | 1 + src/lib/block-info.ts | 3 +++ src/lib/swaps-tracker.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/scripts/gas-refund-program/transactions-indexing/swaps-subgraph.ts b/scripts/gas-refund-program/transactions-indexing/swaps-subgraph.ts index 4be4fc0d..de04e055 100644 --- a/scripts/gas-refund-program/transactions-indexing/swaps-subgraph.ts +++ b/scripts/gas-refund-program/transactions-indexing/swaps-subgraph.ts @@ -129,6 +129,7 @@ export async function getSuccessfulSwaps({ : {}, ); + console.log('fetcSwaps', subgraphURL, variables); const { data } = await thegraphClient.post(subgraphURL, { query: regorgBlockHashes ? SwapsQueryBlockHash : SwapsQuery, variables, diff --git a/src/lib/block-info.ts b/src/lib/block-info.ts index 37c4bc9c..03d97e38 100644 --- a/src/lib/block-info.ts +++ b/src/lib/block-info.ts @@ -66,6 +66,7 @@ export class BlockInfo { number_lt: lastFetchedBlock + 100, }; try { + console.log('updateBlockInfo', this.subgraphURL, variables); const { data: { data }, } = await Utils._post( @@ -99,6 +100,7 @@ export class BlockInfo { block, }; try { + console.log('getBlockTimeStamp', this.subgraphURL, variables); const { data: { data }, } = await thegraphClient.post( @@ -128,6 +130,7 @@ export class BlockInfo { time_gte: time, }; try { + console.log('getBlockAfterTimeStamp', this.subgraphURL, variables); const { data: { data }, } = await Utils._post( diff --git a/src/lib/swaps-tracker.ts b/src/lib/swaps-tracker.ts index 3eeb6ff6..a8cf0432 100644 --- a/src/lib/swaps-tracker.ts +++ b/src/lib/swaps-tracker.ts @@ -154,6 +154,7 @@ export class SwapsTracker { number_lt: toBlock, }; + console.log('indexSwaps', this.subgraphURL, variables); const { data: { data }, } = await Utils._post(