Skip to content

Commit

Permalink
Feat/switch to decentralized (#821)
Browse files Browse the repository at this point in the history
* fix: update url

* fix: update subgraph keys
  • Loading branch information
jeffywu authored May 17, 2024
1 parent 29fbb7e commit af39b70
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 403 deletions.
2 changes: 1 addition & 1 deletion apps/system-cache/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"options": {
"commands": [
{
"command": "wrangler dev --local --var NX_COMMIT_REF:$(git rev-parse HEAD)"
"command": "wrangler dev --env dev --test-scheduled --var NX_COMMIT_REF:$(git rev-parse HEAD)"
}
],
"cwd": "apps/system-cache"
Expand Down
2 changes: 1 addition & 1 deletion apps/system-cache/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name = "system-cache-dev"
[env.dev.vars]
NX_ENV = "dev"
VERSION = "v2"
SUPPORTED_CHAINS = ['mainnet', 'goerli']
SUPPORTED_CHAINS = ['mainnet']

[env.dev.durable_objects]
bindings = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"url-loader": "^4.1.1",
"webpack": "^5.75.0",
"webpack-merge": "^5.8.0",
"wrangler": "^2.19.0"
"wrangler": "^3.55.0"
},
"workspaces": [
"packages/**",
Expand Down
2 changes: 1 addition & 1 deletion packages/graph-client/src/GraphClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class GraphClient {
public apollo: ApolloClient<NormalizedCacheObject>;

public static graphUrls = {
'mainnet/notional': `https://gateway.thegraph.com/api/${subgraphApiKey}/subgraphs/id/71WhECGDCsRfgVSdeEg2SVuveBuHa4P44VxebdVaQic5`,
'mainnet/notional': `"https://gateway-arbitrum.network.thegraph.com/api/${subgraphApiKey}/subgraphs/id/BnVrrrzw6cLHxFUkgtfmWcF83DopC8jrYnrMnysVKptm"`,
'goerli/notional':
'https://api.thegraph.com/subgraphs/name/notional-finance/goerli-v2',
};
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/config/graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"kovan:poll": 5000,
"goerli:http": "https://api.thegraph.com/subgraphs/name/notional-finance/goerli-v2",
"goerli:poll": 5000,
"mainnet:http": "https://api.thegraph.com/subgraphs/name/notional-finance/mainnet-v2",
"mainnet:http": "https://gateway-arbitrum.network.thegraph.com/api/[apiKey]/subgraphs/id/BnVrrrzw6cLHxFUkgtfmWcF83DopC8jrYnrMnysVKptm",
"mainnet:poll": 7000
}
Loading

0 comments on commit af39b70

Please sign in to comment.