Skip to content

Commit

Permalink
temp: add thegraph logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KanievskyiDanylo committed Jun 6, 2024
1 parent 31332f1 commit 2963b2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export async function getSuccessfulSwaps({
: {},
);

console.log('fetcSwaps', subgraphURL, variables);
const { data } = await thegraphClient.post<SwapsGQLRespose>(subgraphURL, {
query: regorgBlockHashes ? SwapsQueryBlockHash : SwapsQuery,
variables,
Expand Down
3 changes: 3 additions & 0 deletions src/lib/block-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class BlockInfo {
number_lt: lastFetchedBlock + 100,
};
try {
console.log('updateBlockInfo', this.subgraphURL, variables);
const {
data: { data },
} = await Utils._post(
Expand Down Expand Up @@ -99,6 +100,7 @@ export class BlockInfo {
block,
};
try {
console.log('getBlockTimeStamp', this.subgraphURL, variables);
const {
data: { data },
} = await thegraphClient.post(
Expand Down Expand Up @@ -128,6 +130,7 @@ export class BlockInfo {
time_gte: time,
};
try {
console.log('getBlockAfterTimeStamp', this.subgraphURL, variables);
const {
data: { data },
} = await Utils._post(
Expand Down
1 change: 1 addition & 0 deletions src/lib/swaps-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class SwapsTracker {
number_lt: toBlock,
};

console.log('indexSwaps', this.subgraphURL, variables);
const {
data: { data },
} = await Utils._post(
Expand Down

0 comments on commit 2963b2a

Please sign in to comment.