Skip to content

Commit 8410be4

Browse files
Reset addresses & startblock in configs
1 parent 613bfc0 commit 8410be4

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

networks.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
22
"test": {
33
"ERC1538": {
4-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
5-
"startBlock": 30277777
4+
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7",
5+
"startBlock": 0
66
},
77
"Core": {
8-
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
9-
"startBlock": 30277777
8+
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7",
9+
"startBlock": 0
1010
},
1111
"AppRegistry": {
12-
"address": "0xB1C52075b276f87b1834919167312221d50c9D16",
13-
"startBlock": 30277777
12+
"address": "0xd5Fe43e3cDD29812949dc9b368345537D7B73001",
13+
"startBlock": 0
1414
},
1515
"DatasetRegistry": {
16-
"address": "0x799DAa22654128d0C64d5b79eac9283008158730",
17-
"startBlock": 30277777
16+
"address": "0xf3bd0602fA481230271c5396f146e5695D3750A6",
17+
"startBlock": 0
1818
},
1919
"WorkerpoolRegistry": {
20-
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4",
21-
"startBlock": 30277777
22-
}
20+
"address": "0x6Cb57fA761812c34645C945cA89AAe3602D42eD3",
21+
"startBlock": 0
22+
}
2323
},
2424
"bellecour": {
2525
"ERC1538": {
2626
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
27-
"startBlock": 30277777
27+
"startBlock": 4543300
2828
},
2929
"Core": {
3030
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
31-
"startBlock": 30277777
31+
"startBlock": 4543300
3232
},
3333
"AppRegistry": {
3434
"address": "0xB1C52075b276f87b1834919167312221d50c9D16",
35-
"startBlock": 30277777
35+
"startBlock": 4543300
3636
},
3737
"DatasetRegistry": {
3838
"address": "0x799DAa22654128d0C64d5b79eac9283008158730",
39-
"startBlock": 30277777
39+
"startBlock": 4543300
4040
},
4141
"WorkerpoolRegistry": {
4242
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4",
43-
"startBlock": 30277777
43+
"startBlock": 4543300
4444
}
4545
}
4646
}

src/Modules/IexecPoco.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export function handleOrdersMatched(event: OrdersMatchedEvent): void {
130130
let viewedDeal = contract.viewDeal(event.params.dealid);
131131
// The `sponsor` has been introduced on Bellecour for the PoCo v5.5.0 release:
132132
// https://blockscout.bellecour.iex.ec/tx/0x71b904f526a9be218d35748f57d74ef6da20d12c88f94cfa1ec5ae2de187cb98
133+
// TODO: Use grafting instead, see https://thegraph.com/docs/en/subgraphs/cookbook/grafting/
133134
const sponsor =
134135
chainName == 'bellecour' && event.block.number < BigInt.fromI32(30277938)
135136
? Address.zero().toHexString()

subgraph.bellecour.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dataSources:
1313
source:
1414
address: "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f"
1515
abi: ERC1538
16-
startBlock: 30277777
16+
startBlock: 4543300
1717
mapping:
1818
kind: ethereum/events
1919
apiVersion: 0.0.6
@@ -39,7 +39,7 @@ dataSources:
3939
source:
4040
address: "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f"
4141
abi: IexecInterfaceToken
42-
startBlock: 30277777
42+
startBlock: 4543300
4343
mapping:
4444
kind: ethereum/events
4545
apiVersion: 0.0.6
@@ -71,7 +71,7 @@ dataSources:
7171
- Unlock
7272
abis:
7373
- name: IexecInterfaceToken
74-
file: node_modules/@iexec/poco/artifacts/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json
74+
file: node_modules/@iexec/poco/build/contracts/IexecInterfaceNative.json
7575
eventHandlers:
7676
- event: CreateCategory(uint256,string,string,uint256)
7777
handler: handleCreateCategory
@@ -119,7 +119,7 @@ dataSources:
119119
source:
120120
address: "0xB1C52075b276f87b1834919167312221d50c9D16"
121121
abi: AppRegistry
122-
startBlock: 30277777
122+
startBlock: 4543300
123123
mapping:
124124
kind: ethereum/events
125125
apiVersion: 0.0.6
@@ -144,7 +144,7 @@ dataSources:
144144
source:
145145
address: "0x799DAa22654128d0C64d5b79eac9283008158730"
146146
abi: DatasetRegistry
147-
startBlock: 30277777
147+
startBlock: 4543300
148148
mapping:
149149
kind: ethereum/events
150150
apiVersion: 0.0.6
@@ -169,7 +169,7 @@ dataSources:
169169
source:
170170
address: "0xC76A18c78B7e530A165c5683CB1aB134E21938B4"
171171
abi: WorkerpoolRegistry
172-
startBlock: 30277777
172+
startBlock: 4543300
173173
mapping:
174174
kind: ethereum/events
175175
apiVersion: 0.0.6

0 commit comments

Comments
 (0)