Skip to content

Commit

Permalink
Merge pull request #116 from miler012/main
Browse files Browse the repository at this point in the history
satori change subgragh node
  • Loading branch information
nitish-91 authored May 9, 2024
2 parents 2e828f1 + 85f1785 commit 27d9e64
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/l2-lxp-liquidity-reward.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion adapters/satori/src/sdk/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const SUBGRAPH_URL = "https://api.goldsky.com/api/public/project_cltzggx5i40gi01p3ezjv94bc/subgraphs/satori-linea/v0.0.1/gn"
export const SUBGRAPH_URL = "https://api.goldsky.com/api/private/project_cltzggx5i40gi01p3ezjv94bc/subgraphs/satori-linea/v0.0.1/gn"
export const ASSET = "0x176211869cA2b568f2A7D4EE941E073a821EE1ff"
export const SYMBOL = "USDC"
export const KEY = "Bearer clvyurggiicnn01ywgl4s4ys9"



Expand Down
4 changes: 2 additions & 2 deletions adapters/satori/src/sdk/subgraphDetails.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASSET, SYMBOL, SUBGRAPH_URL } from "./config";
import { ASSET, SYMBOL, SUBGRAPH_URL,KEY } from "./config";

export interface OutputDataSchemaRow {
block_number:number
Expand Down Expand Up @@ -37,7 +37,7 @@ export const getUserTVLByBlock = async (
let response = await fetch(subgraphUrl, {
method: "POST",
body: JSON.stringify({ query }),
headers: { "Content-Type": "application/json" },
headers: { "Content-Type": "application/json","Authorization":KEY},
});
let data = await response.json();
let snapshots = data.data.userLpSnapshots
Expand Down
4 changes: 2 additions & 2 deletions adapters/satori/src/sdk/subgraphDetailsV2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASSET, SYMBOL, SUBGRAPH_URL } from "./config";
import { ASSET, SYMBOL, SUBGRAPH_URL,KEY } from "./config";

export interface OutputDataSchemaRow {
block_number:number
Expand Down Expand Up @@ -31,7 +31,7 @@ export const getUserTVLByBlock = async (
let response = await fetch(subgraphUrl, {
method: "POST",
body: JSON.stringify({ query }),
headers: { "Content-Type": "application/json" },
headers: { "Content-Type": "application/json","Authorization":KEY},
});
if (response.ok === false) {
console.log("Response status:", response.statusText);
Expand Down

0 comments on commit 27d9e64

Please sign in to comment.