update graph to thegraph,add graphApiKey #40
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "nanli777torn/classic-ui:development"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Explanation
update graph to thegraph,add graphApiKey
Users can set graphApiKey by themselves
https://thegraph.com provides 100,000 requests per month to each user.
More information
The default setting is my thegraph apikey for the time being.
Screenshots/Screencaps
@ -28,3 +36,1 @@
42161: 'https://tornadocash-rpc.com/subgraphs/name/tornadocash/arbitrum-tornado-subgraph',
43114: 'https://api.thegraph.com/subgraphs/name/tornadocash/avalanche-tornado-subgraph',
11155111: 'https://tornadocash-rpc.com/subgraphs/name/tornadocash/sepolia-tornado-subgraph'
56:
Some comments,
TheGraph is an american company, if the US Gov requests to remove any Tornado Cash subgraphs, they must comply.
Therefore, not only the graphApiKey but also the entire endpoint URL ( https://gateway.thegraph.com/api ) should be in replaceable format ( you can refer my previous work https://codeberg.org/tornadocash/classic-ui/pulls/2/files about the changes ).
Also, I would recommend leaving the default URL as is, it is under the control of Theo and will be fixed during this week.
@ -10,3 +10,3 @@
"fix:vuex": "node ./scripts/vuex.js",
"dev": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192\" nuxt",
"dev:lts": "yarn fix:vuex && cross-env NODE_OPTIONS=\"--max_old_space_size=8192 --openssl-legacy-provider\" nuxt",
"dev:lts": "yarn fix:vuex && cross-env NODE_OPTIONS=\"--max_old_space_size=8192 \" nuxt",
Also please do not remove necessary flags for Node.js LTS version, it is required after the supported Node.js version 18.x https://nodejs.org/en/about/previous-releases#release-schedule. Upgrade your node.js if you are using node.js older than that.
Checkout
From your project repository, check out a new branch and test the changes.