Skip to content

Commit

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

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

console.log('indexSwaps', this.subgraphURL, variables);
console.log('indexSwaps', this.subgraphURL, JSON.stringify(variables));
const {
data: { data },
} = await Utils._post(
Expand Down
5 changes: 5 additions & 0 deletions src/lib/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ export async function fetchBlocksTimestamps({
blocks: blockNumberSliced,
};

console.log(
'fetchBlocksTimestamps',
subgraphURL,
JSON.stringify(variables),
);
const {
data: { data },
} = await thegraphClient.post<{
Expand Down

0 comments on commit 518223b

Please sign in to comment.