Skip to content

Commit 5bf8680

Browse files
authored
refactor: remove ERC1538 references and update related configurations (#52)
1 parent 82afe8f commit 5bf8680

File tree

8 files changed

+16
-153
lines changed

8 files changed

+16
-153
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ To add support for a new network, update the `networks.json` file with the netwo
109109
```json
110110
{
111111
"network-name": {
112-
"ERC1538": {
113-
"address": "0x...",
114-
"startBlock": 1234567
115-
},
116112
"Core": {
117113
"address": "0x...",
118114
"startBlock": 1234567
@@ -148,3 +144,8 @@ The deployment process will automatically generate the appropriate subgraph conf
148144
## Resources
149145

150146
- [thegraph docs](https://thegraph.com/docs/en/)
147+
148+
## TODO
149+
150+
- Rename the `Core` key to `Diamond` in `networks.json` and update all references accordingly.
151+
- Remove support and configuration entries for the `bellecour` network from `networks.json`, GHA pipeline, and related documentation.

networks.json

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"fuji": {
3-
"ERC1538": {
4-
"address": "0x14B465079537655E1662F012e99EBa3863c8B9E0",
5-
"startBlock": 39496461
6-
},
73
"Core": {
84
"address": "0x14B465079537655E1662F012e99EBa3863c8B9E0",
95
"startBlock": 39496461
@@ -22,32 +18,24 @@
2218
}
2319
},
2420
"arbitrum-sepolia": {
25-
"ERC1538": {
26-
"address": "0x14B465079537655E1662F012e99EBa3863c8B9E0",
27-
"startBlock": 145249746
28-
},
2921
"Core": {
30-
"address": "0x14B465079537655E1662F012e99EBa3863c8B9E0",
31-
"startBlock": 145249746
22+
"address": "0xB2157BF2fAb286b2A4170E3491Ac39770111Da3E",
23+
"startBlock": 178282956
3224
},
3325
"AppRegistry": {
34-
"address": "0x4a6531ce5150ee716b2d93865D0fbB9ce5492D17",
35-
"startBlock": 145249746
26+
"address": "0x9950D94fb074182ee93ff79A50Cd698C4983281F",
27+
"startBlock": 178283215
3628
},
3729
"DatasetRegistry": {
38-
"address": "0x3441A0C9FE488c51fcABa2bAAA048720f4D4F72D",
39-
"startBlock": 145249746
30+
"address": "0x07Cc4E1EA30dD02796795876509A3BfC5053128D",
31+
"startBlock": 178283257
4032
},
4133
"WorkerpoolRegistry": {
42-
"address": "0xf81970E3CB0f8711bEaA79135e686873FfbBAC4A",
43-
"startBlock": 145249746
34+
"address": "0xe3c13bb4A5068601c6A08041Cb50887B07B5F398",
35+
"startBlock": 178283233
4436
}
4537
},
4638
"arbitrum-one": {
47-
"ERC1538": {
48-
"address": "0x0000000000000000000000000000000000000000",
49-
"startBlock": 0
50-
},
5139
"Core": {
5240
"address": "0x0000000000000000000000000000000000000000",
5341
"startBlock": 0
@@ -66,10 +54,6 @@
6654
}
6755
},
6856
"bellecour": {
69-
"ERC1538": {
70-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
71-
"startBlock": 4543300
72-
},
7357
"Core": {
7458
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
7559
"startBlock": 4543300
@@ -88,10 +72,6 @@
8872
}
8973
},
9074
"mainnet": {
91-
"ERC1538": {
92-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
93-
"startBlock": 9917600
94-
},
9575
"Core": {
9676
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
9777
"startBlock": 9917600

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"zod": "^3.24.3"
5757
},
5858
"dependencies": {
59-
"@iexec/poco": "^5.5.0",
60-
"@iexec/solidity": "^0.1.1"
59+
"@iexec/poco": "^5.5.0"
6160
}
6261
}

schema.graphql

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,6 @@ type Transaction @entity {
2727
workerpoolEvents: [WorkerpoolEvent!]! @derivedFrom(field: "transaction")
2828
ressourceTransferEvent: [RessourceTransferEvent!]!
2929
@derivedFrom(field: "transaction")
30-
erc1538Events: [ERC1538Event!]! @derivedFrom(field: "transaction")
31-
}
32-
33-
# ================================== ERC1538 ==================================
34-
type ERC1538Module @entity {
35-
id: ID!
36-
functions: [ERC1538Function!]! @derivedFrom(field: "module")
37-
}
38-
39-
type ERC1538Function @entity {
40-
id: ID!
41-
module: ERC1538Module!
42-
name: String!
43-
updates: [ERC1538FunctionUpdate!]! @derivedFrom(field: "functionId")
44-
}
45-
46-
interface ERC1538Event {
47-
id: ID!
48-
transaction: Transaction!
49-
timestamp: BigInt!
50-
}
51-
52-
type ERC1538FunctionUpdate implements ERC1538Event @entity {
53-
id: ID!
54-
transaction: Transaction!
55-
timestamp: BigInt!
56-
functionId: ERC1538Function!
57-
oldmodule: ERC1538Module!
58-
newmodule: ERC1538Module!
59-
}
60-
61-
type ERC1538CommitMessage implements ERC1538Event @entity {
62-
id: ID!
63-
transaction: Transaction!
64-
timestamp: BigInt!
65-
message: String!
6630
}
6731

6832
# ============================== Address objects ==============================

src/ERC1538/ERC1538.ts

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

subgraph.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,6 @@ repository: https://github.com/iExecBlockchainComputing/PoCo-subgraph
77
schema:
88
file: ./schema.graphql
99
dataSources:
10-
- name: ERC1538
11-
kind: ethereum/contract
12-
source:
13-
abi: ERC1538
14-
mapping:
15-
kind: ethereum/events
16-
apiVersion: 0.0.6
17-
language: wasm/assemblyscript
18-
entities:
19-
- ERC1538Module
20-
- ERC1538Function
21-
- ERC1538FunctionUpdateEvent
22-
- ERC1538CommitMessageEvent
23-
abis:
24-
- name: ERC1538
25-
file: node_modules/@iexec/solidity/build/contracts/IERC1538.json
26-
eventHandlers:
27-
- event: CommitMessage(string)
28-
handler: handleCommitMessage
29-
- event: FunctionUpdate(indexed bytes4,indexed address,indexed address,string)
30-
handler: handleFunctionUpdate
31-
file: ./src/ERC1538/ERC1538.ts
32-
3310
- name: Core
3411
kind: ethereum/contract
3512
source:

tests/e2e/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const client = new ApolloClient({
1212
cache: new InMemoryCache(),
1313
});
1414
const networkName = env.NETWORK_NAME!;
15-
const iexecProxyAddress = (config as any)[networkName].ERC1538.address;
15+
const iexecProxyAddress = (config as any)[networkName].Core.address;
1616

1717
describe('Integration tests', () => {
1818
it('should index a newly created app', async () => {

0 commit comments

Comments
 (0)