Skip to content

Commit

Permalink
Update graph endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
llunaCreixent committed Oct 16, 2024
1 parent 65fa507 commit 2e7b283
Show file tree
Hide file tree
Showing 3 changed files with 1,792 additions and 904 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Circles statistics and analysis toolkit
Options:
-V, --version output the version number
-e, --endpoint <url> graphQL subgraph endpoint (default: "https://graph.provisioning.circles.garden/..")
-e, --endpoint <url> graphQL subgraph endpoint (default: "https://graph.infra.circles.garden/..")
-f, --format <csv|json> file format of output file (default: "csv")
-o, --output <path> optional file output for tabular data
-s, --relayer_address <str> address of relayer funder (default: "0x0739..")
Expand Down
4 changes: 2 additions & 2 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const PAGINATION_SIZE = 1000;

const configuration = {
endpoint:
'https://graph.provisioning.circles.garden/subgraphs/name/circlesubi/circles-ubi',
'https://graph.infra.circles.garden/subgraphs/name/circlesubi/circles-ubi',
relayerAddresses: ['0x0739a8d036c966ac9161ea14855ce0f94c15b87b', '0x9944ce8e27ce1f16c4003f108b1c09e5ae011ba0'],
format: 'csv',
log: undefined,
Expand Down Expand Up @@ -58,7 +58,7 @@ async function fetchFromGraph(
first = PAGINATION_SIZE,
) {
const query = `{
${name}(first: ${first}, orderBy: id, where: {id_gt: "${lastID}", ${where}}) {
${name}(first: ${first}, orderBy: id, where: {id_gt: "${lastID}", ${where}, time_gt: "1690754400", time_lt: "1704150000"}) {
${fields}
}
}`;
Expand Down
Loading

0 comments on commit 2e7b283

Please sign in to comment.