Skip to content

Commit

Permalink
Merge pull request #203 from SwaprHQ/fix-subgraph-api-key
Browse files Browse the repository at this point in the history
fix: subgraph api key
  • Loading branch information
berteotti authored Aug 27, 2024
2 parents 71264d6 + 62dfc1f commit 237b213
Show file tree
Hide file tree
Showing 5 changed files with 25 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
3 changes: 2 additions & 1 deletion packages/sdk/src/vaults/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,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 ?? "";

const SUBGRAPH_API_KEY =
process.env.STACKLY_SUBGRAPH_API_KEY ?? "e7b7ff845e506590498946cd6bf83bf6";
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 237b213

Please sign in to comment.