-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch subgraph URLs to decentralized network #58
Conversation
97f3c21
to
b0c4628
Compare
import os | ||
|
||
GRAPH_API_KEY = os.environ.get('GRAPH_API_KEY') | ||
GRAPH_BASE_URL = f'https://gateway-arbitrum.network.thegraph.com/api/{GRAPH_API_KEY}/subgraphs/id/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you not be using this in the production
configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we will, this is still a draft
5854b30
to
684cdbb
Compare
CARBON_HOLDERS_SG_ID = 'DAd5YXDcVuHtYYAcqViqWDqE1hSRCrVULvcBWQHojCxD' | ||
PAIRS_SG_ID = 'Fd2ydz1RopNrgtH9eoHeVrsCPjg7ACWxyLKJKSVeHjW6' | ||
|
||
if os.environ.get('ENV') == 'production': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that environment variable set?
Yes it should be, I added it to the k8s setup elsewhere in this PR
…-------- Original Message --------
On 6/6/24 5:59 AM, biwano wrote:
@biwano commented on this pull request.
---------------------------------------------------------------
In [flows/constants.py](#58 (comment)):
> -)
+import os
+
+GRAPH_API_KEY = os.environ.get('GRAPH_API_KEY')
+GRAPH_BASE_URL = f'https://gateway-arbitrum.network.thegraph.com/api/{GRAPH_API_KEY}/subgraphs/id/'
+GRAPH_DEV_BASE_URL = 'https://api.studio.thegraph.com/query/71975/'
+GRAPH_VERSION_SUFFIX = '/version/latest'
+
+CARBON_SG_ID = '5WCNJmuBbejEU3jqL5Hswde5Vkn2yrQWfeJrhUSRGp8J'
+CARBON_LEGACY_SG_ID = '2z66bx6cRCMHrkBcd5ZhN2Z6JgCtntgHFemgtte3qr82'
+CARBON_ETH_SG_ID = '4krJ9sutnjfZgKUjfKcnnukRqwsAycfXKvdApHbKf8zf'
+CARBON_CELO_SG_ID = 'Cv1ZbYYcWp9oKEdaygT8ui9yzgMLLJjdhWeVRmD6yTfA'
+CARBON_HOLDERS_SG_ID = 'DAd5YXDcVuHtYYAcqViqWDqE1hSRCrVULvcBWQHojCxD'
+PAIRS_SG_ID = 'Fd2ydz1RopNrgtH9eoHeVrsCPjg7ACWxyLKJKSVeHjW6'
+
+if os.environ.get('ENV') == 'production':
Is that environment variable set?
—
Reply to this email directly, [view it on GitHub](#58 (review)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AVWO2NWNRIPIFOK6SYK7YBLZGBFL3AVCNFSM6AAAAABGXLWXRWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMBRG42DOMBRGI).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
684cdbb
to
c012cf1
Compare
DO NOT MERGE UNTIL ALL SUBGRAPHS ARE UPGRADED!