-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
chore(subgraph,networks): migrate all subgraphs to studio #13338
Conversation
@@ -62,9 +62,8 @@ export const avalanche: NetworkConfig = { | |||
startBlock: 17188332, | |||
subgraph: { | |||
endpoint: | |||
'https://api.thegraph.com/subgraphs/name/unlock-protocol/avalanche', | |||
endpointV2: |
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.
I think the apps still use endpointV2
though... so we need to change them as well.
@@ -53,11 +53,11 @@ export const celo: NetworkConfig = { | |||
provider: 'https://rpc.unlock-protocol.com/42220', | |||
publicLockVersionToDeploy: 13, | |||
publicProvider: 'https://forno.celo.org', | |||
startBlock: 7179039, | |||
startBlock: 13994123, |
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.
?? Hum, why this change?
@@ -33,7 +33,7 @@ export class SubgraphService { | |||
createSdk(networkId = 1) { | |||
const network = this.networks[networkId] | |||
|
|||
const client = new GraphQLClient(network.subgraph.endpointV2!) |
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.
Oh nice yuou fixed it!
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.
ok this is very cool! Thank you so much!
Actually it looks loke BSC is supported: https://thegraph.com/docs/en/developing/supported-networks/ |
so far deploying with
|
Are you sure you are using the latest version of the graph cli? |
52194bc
to
441db91
Compare
Also @clemsos will this be the opportunity to fix the production CI job? https://github.com/unlock-protocol/unlock/actions/runs/7902183545/job/21567271870 |
Description
This PR includes several things
endpointV2
param from networks package (it is confusing and unconsistent atm)List of networks migrated
(not supported by stuudio)Issues
Fixes #12867
Refs #
Checklist:
Release Note Draft Snippet