Skip to content

Commit

Permalink
fix: subgraph api key
Browse files Browse the repository at this point in the history
  • Loading branch information
berteotti committed Aug 27, 2024
1 parent 71264d6 commit 02a6b3e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@svgr/webpack": "^8.0.1",
"eslint": "^8.28.0",
"eslint-config-turbo": "latest",
"turbo": "^1.9.4"
"turbo": "^2.0.14"
},
"dependencies": {
"fathom-client": "^3.6.0"
Expand Down
1 change: 0 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "latest",
"abitype": "^0.2.5",
"dotenv": "^16.0.1",
"node-fetch": "2.x.x",
"nodemon": "^2.0.18",
"rimraf": "^3.0.2",
Expand Down
4 changes: 3 additions & 1 deletion packages/sdk/src/vaults/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export const COW_SETTLEMENT_ADDRESS_LIST: Record<ChainId, string> = {

const API_BASE_URL = "https://gateway-arbitrum.network.thegraph.com/api";
const SUBGRAPH_API_KEY = process.env.STACKLY_SUBGRAPH_API_KEY ?? "";

console.log("------------");
console.log(process.env.STACKLY_SUBGRAPH_API_KEY);
console.log("------------");
const ETHEREUM_SUBGRAPH_ENDPOINT_URL =
process.env.ETHEREUM_SUBGRAPH_API_URL ??
`${API_BASE_URL}/${SUBGRAPH_API_KEY}/subgraphs/id/7s9rGBffUTL8kDZuxvvpuc46v44iuDarbrADBFw5uVp2`;
Expand Down
24 changes: 22 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
{
"globalEnv": [
"STACKLY_SUBGRAPH_API_KEY",
"ETHEREUM_SUBGRAPH_API_URL",
"GNOSIS_SUBGRAPH_API_URL",
"ARBITRUM_SUBGRAPH_API_URL"
],
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"globalDependencies": [".env"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
"env": [
"STACKLY_SUBGRAPH_API_KEY",
"ETHEREUM_SUBGRAPH_API_URL",
"GNOSIS_SUBGRAPH_API_URL",
"ARBITRUM_SUBGRAPH_API_URL"
],
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
"inputs": [
"$TURBO_DEFAULT$",
".env.production.local",
".env.local",
".env.production",
".env"
]
},
"lint": {
"outputs": []
Expand Down

0 comments on commit 02a6b3e

Please sign in to comment.