Skip to content

Commit 042ac68

Browse files
Merge branch 'main' into feature/add-remainingAccess-in-getGrantedAccess-function
2 parents 6739dc2 + b4ccb48 commit 042ac68

File tree

9 files changed

+45
-65
lines changed

9 files changed

+45
-65
lines changed

.drone-consider

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ packages/sdk/.drone.yml
33
packages/dataprotector-deserializer/.drone.yml
44
packages/sharing-smart-contract/.drone.yml
55
packages/smart-contract/.drone.yml
6-
packages/subgraph/.drone.yml
76
packages/protected-data-delivery-dapp/.drone.yml
87
packages/protected-data-delivery-dapp/deployment/.drone.yml

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"packages/sdk": "2.0.0-beta.18",
2+
"packages/sdk": "2.0.0-beta.19",
33
"packages/subgraph": "3.1.0-beta",
44
"packages/smart-contract": "0.2.0-beta",
55
"packages/sharing-smart-contract": "3.0.0-beta"

packages/sdk/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

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

5-
## [2.0.0-beta.18](https://github.com/iExecBlockchainComputing/dataprotector-sdk/compare/dataprotector-v2.0.0-beta.17...dataprotector-v2.0.0-beta.18) (2025-07-29)
5+
## [2.0.0-beta.19](https://github.com/iExecBlockchainComputing/dataprotector-sdk/compare/dataprotector-v2.0.0-beta.18...dataprotector-v2.0.0-beta.19) (2025-08-06)
66

77

8+
### Added
9+
10+
* add support for arbitrum-mainnet ([#478](https://github.com/iExecBlockchainComputing/dataprotector-sdk/issues/478)) ([a624569](https://github.com/iExecBlockchainComputing/dataprotector-sdk/commit/a624569df8c762180355ea26b6739c1e66e85d4f))
11+
812
### Changed
913

1014
* Add admin address input to initialize function in ABI ([#473](https://github.com/iExecBlockchainComputing/dataprotector-sdk/issues/473)) ([74870fe](https://github.com/iExecBlockchainComputing/dataprotector-sdk/commit/74870feb37c606894bdfaff29165cff3775dd6fd))

packages/sdk/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iexec/dataprotector",
3-
"version": "2.0.0-beta.18",
3+
"version": "2.0.0-beta.19",
44
"description": "This product enables users to confidentially store data–such as mail address, documents, personal information ...",
55
"type": "module",
66
"types": "dist/src/index.d.ts",
@@ -61,7 +61,7 @@
6161
"debug": "^4.3.4",
6262
"ethers": "^6.13.2",
6363
"graphql-request": "^6.0.0",
64-
"iexec": "^8.17.1",
64+
"iexec": "^8.18.0",
6565
"jszip": "^3.7.1",
6666
"kubo-rpc-client": "^4.1.1",
6767
"magic-bytes.js": "^1.0.15",

packages/sdk/src/config/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ const CHAIN_CONFIG: Record<ChainId, ChainConfig> = {
3838
workerpoolAddress: '0xB967057a21dc6A66A29721d96b8Aa7454B7c383F',
3939
isExperimental: true,
4040
},
41+
// Arbitrum Mainnet
42+
42161: {
43+
name: 'arbitrum-mainnet',
44+
dataprotectorContractAddress: '0xF08f91F7646FDb95a4E24977b8Db91318252A667',
45+
sharingContractAddress: '0x2dA2D268281d79b81D609D68e4507e7ACDfd7E05',
46+
subgraphUrl:
47+
'https://thegraph.arbitrum.iex.ec/api/subgraphs/id/Ep5zs5zVr4tDiVuQJepUu51e5eWYJpka624X4DMBxe3u',
48+
ipfsGateway: 'https://ipfs-gateway.arbitrum-mainnet.iex.ec',
49+
ipfsNode: 'https://ipfs-upload.arbitrum-mainnet.iex.ec',
50+
smsDebugURL: 'https://sms-debug.arbitrum-mainnet.iex.ec',
51+
workerpoolAddress: '0x2C06263943180Cc024dAFfeEe15612DB6e5fD248',
52+
},
4153
};
4254

4355
export const getChainConfig = (

packages/subgraph/.drone.yml

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

packages/subgraph/README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,30 @@ npm run create-local
2424
npm run deploy-local
2525
```
2626

27-
The subgraph will be available at: http://localhost:8000/subgraphs/name/DataProtector/graphql
27+
The subgraph will be available at: <http://localhost:8000/subgraphs/name/DataProtector/graphql>
2828

2929
### Thegraph network
3030

3131
To deploy this subgraph on Thegraph network:
3232

33-
1. Update `networks.json` file to use the correct addresses for the correct network.
33+
1. Set up your environment variables in `.env` file:
3434

35-
2. Authenticate: `npx graph auth <token>`
35+
```bash
36+
SUBGRAPH_SLUG=your-subgraph-slug
37+
SUBGRAPH_DEPLOY_KEY=your-deploy-key
38+
SUBGRAPH_NETWORK_NAME=your-network-name
39+
VERSION_LABEL=your-version-label
40+
```
3641

37-
3. Deploy: `npx graph deploy <slug> --network <name>`
42+
2. Deploy using the npm script:
3843

39-
### Hosted Production Environments
40-
41-
We use CI/CD pipelines to deploy our subgraphs to hosted environments.
44+
```bash
45+
npm run deploy-studio
46+
```
4247

4348
### Self-Hosted Subgraph Deployment Process
4449

50+
We use CI/CD pipelines to deploy our subgraphs to hosted environments.
4551
For zero-downtime updates to the production subgraph:
4652

4753
1. **Index the New Version (Temporary Deployment)**
@@ -59,7 +65,7 @@ For zero-downtime updates to the production subgraph:
5965
- This swaps the deployments with no service interruption
6066

6167
4. **Verify the Deployment**
62-
- Access the production subgraph at: https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2/graphql
68+
- Access the production subgraph at: <https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2/graphql>
6369

6470
## Query Examples
6571

@@ -108,14 +114,14 @@ query MyQuery($requiredSchema: [String!]!, $start: Int!, $range: Int!) {
108114

109115
1. Update schema.graphql and subgraph.yaml as needed
110116
2. Run codegen to generate TypeScript types: `npm run codegen`
111-
3. Implement mapping handlers in src/ files
117+
3. Implement mapping handlers in `src/` files
112118
4. Build the subgraph: `npm run build`
113119
5. Test locally before deploying to production environments
114120

115121
## CI/CD Integration
116122

117123
Our repository uses automated workflows to build, test, and deploy the subgraph:
118124

119-
- ABI validation checks ensure contract ABIs are up-to-date
120-
- Docker images are built and pushed with appropriate tags based on the source branch
121-
- Deployment follows a staged approach to ensure zero downtime
125+
- **ABI Validation**: Ensures contract ABIs are up-to-date across all packages
126+
- **Testing**: Unit and integration tests validate subgraph functionality (TODO)
127+
- **Zero-Downtime Deployment**: Staged deployment process ensures continuous service availability

release-please-config.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"packages": {
2525
"packages/sdk": {
2626
"release-type": "node",
27-
"component": "dataprotector",
2827
"changelog-path": "CHANGELOG.md",
2928
"include-v-in-tag": true,
3029
"prerelease": true,
@@ -33,16 +32,11 @@
3332
},
3433
"packages/subgraph": {
3534
"release-type": "node",
36-
"component": "subgraph",
3735
"changelog-path": "CHANGELOG.md",
38-
"include-v-in-tag": true,
39-
"prerelease": true,
40-
"prerelease-type": "beta",
41-
"versioning": "prerelease"
36+
"include-v-in-tag": true
4237
},
4338
"packages/smart-contract": {
4439
"release-type": "node",
45-
"component": "core-smart-contracts",
4640
"changelog-path": "CHANGELOG.md",
4741
"include-v-in-tag": true,
4842
"prerelease": true,
@@ -51,7 +45,6 @@
5145
},
5246
"packages/sharing-smart-contract": {
5347
"release-type": "node",
54-
"component": "sharing-smart-contracts",
5548
"changelog-path": "CHANGELOG.md",
5649
"include-v-in-tag": true,
5750
"prerelease": true,

0 commit comments

Comments
 (0)