Skip to content

Commit 93d9993

Browse files
feature/update bas subgraph URL (#425)
Co-authored-by: abbes benayache <[email protected]>
1 parent 75029e1 commit 93d9993

File tree

5 files changed

+44
-168
lines changed

5 files changed

+44
-168
lines changed

environments/environments.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"protectedDataDeliveryWhitelistAddress": "0x256bcd881c33bdf9df952f2a0148f27d439f2e64",
1616
"protectedDataDeliveryDappAddress": "0x1cb7D4F3FFa203F211e57357D759321C6CE49921",
1717
"protectedDataDeliveryDappEns": "protected-data-delivery.apps.iexec.eth",
18-
"dataprotectorSubgraphUrl": "https://thegraph-product.iex.ec/subgraphs/name/bellecour/dataprotector-v2"
18+
"dataprotectorSubgraphUrl": "https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2"
1919
},
2020
"staging": {
2121
"smsUrl": "https://sms.scone-prod.stagingv8.iex.ec",
@@ -33,6 +33,6 @@
3333
"protectedDataDeliveryWhitelistAddress": "0x3da63b3fbeb6e4ad28d91d3d1adc452253f44029",
3434
"protectedDataDeliveryDappAddress": "0x295869EF57EA9028DCC208e187bab33D48618259",
3535
"protectedDataDeliveryDappEns": "protected-data-delivery-staging.apps.iexec.eth",
36-
"dataprotectorSubgraphUrl": "https://thegraph-product.iex.ec/subgraphs/name/bellecour/staging-dataprotector-v2"
36+
"dataprotectorSubgraphUrl": "https://thegraph-staging.iex.ec/subgraphs/name/bellecour/staging-dataprotector-v2"
3737
}
38-
}
38+
}

packages/sdk/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## NEXT
6+
7+
### Changed
8+
9+
- Updated the default base URL for subgraphs:
10+
- Production: <https://thegraph.iex.ec>
11+
- Staging: <https://thegraph-staging.iex.ec>
12+
513
## [2.0.0-beta.15] (2025-04-04)
614

715
### Changed

packages/sdk/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const DEFAULT_SHARING_CONTRACT_ADDRESS =
1313
'0x1390c3c6a545198809F1C7c5Dd2600ef74D60925'.toLowerCase();
1414

1515
export const DEFAULT_SUBGRAPH_URL =
16-
'https://thegraph-product.iex.ec/subgraphs/name/bellecour/dataprotector-v2';
16+
'https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2';
1717

1818
export const DEFAULT_DEBUG_SMS_URL = 'https://sms-debug.iex.ec';
1919

packages/sdk/tests/e2e/dataProtectorSharing/consumeProtectedData.test.ts

Lines changed: 0 additions & 159 deletions
This file was deleted.

packages/subgraph/README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ npm run deploy-local
2222

2323
### Test Subgrah API
2424

25-
Deployed to : http://localhost:8000/subgraphs/name/DataProtector/graphql
25+
Deployed to : <http://localhost:8000/subgraphs/name/DataProtector/graphql>
2626

2727
Request Example on GraphiQL :
2828

2929
Query for GraphiQL API
30+
3031
```graphql
3132
query MyQuery($requiredSchema: [String!]!, $start: Int!, $range: Int!) {
3233
protectedDatas(
@@ -68,10 +69,36 @@ Query Variables :
6869

6970
## Hosted
7071

71-
Trigger deployment via promote action on CI.
72+
You can trigger a deployment using the promote action on the CI.
73+
74+
### Self Hosted Subgraph
75+
76+
To deploy a new version of a subgraph on the iExec self-hosted service, follow these steps:
77+
78+
1. Index the New Subgraph
79+
80+
First, index the new version of the subgraph using the temporary subgraph deployment.
81+
Trigger its deployment with the target:
82+
83+
```sh
84+
subgraph-deploy-tmp
85+
```
86+
87+
2. Wait for Indexing Completion
88+
89+
Once the temporary subgraph has finished indexing, you can proceed to the production deployment.
90+
91+
3. Deploy to Production (No Downtime)
92+
93+
Trigger the production deployment with :
94+
95+
```sh
96+
subgraph-deploy-prod
97+
```
7298

73-
### Hosted dev subgraph
99+
This ensures a seamless transition with no downtime.
74100

75-
Promote with target `dev-subgraph` to deploy on https://thegraph-product.iex.ec/subgraphs/name/bellecour/dev-dataprotector
101+
4. Verify the Deployment
76102

77-
### Subgraph API on Production
103+
Visit the following URL to check the new version of the subgraph:
104+
<https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2/graphql>

0 commit comments

Comments
 (0)