Skip to content

Commit

Permalink
Reset addresses & startblock in configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjams committed Feb 7, 2025
1 parent 613bfc0 commit 8410be4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
32 changes: 16 additions & 16 deletions networks.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"test": {
"ERC1538": {
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
"startBlock": 30277777
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7",
"startBlock": 0
},
"Core": {
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
"startBlock": 30277777
"address": "0xc4b11f41746D3Ad8504da5B383E1aB9aa969AbC7",
"startBlock": 0
},
"AppRegistry": {
"address": "0xB1C52075b276f87b1834919167312221d50c9D16",
"startBlock": 30277777
"address": "0xd5Fe43e3cDD29812949dc9b368345537D7B73001",
"startBlock": 0
},
"DatasetRegistry": {
"address": "0x799DAa22654128d0C64d5b79eac9283008158730",
"startBlock": 30277777
"address": "0xf3bd0602fA481230271c5396f146e5695D3750A6",
"startBlock": 0
},
"WorkerpoolRegistry": {
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4",
"startBlock": 30277777
}
"address": "0x6Cb57fA761812c34645C945cA89AAe3602D42eD3",
"startBlock": 0
}
},
"bellecour": {
"ERC1538": {
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
"startBlock": 30277777
"startBlock": 4543300
},
"Core": {
"address": "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f",
"startBlock": 30277777
"startBlock": 4543300
},
"AppRegistry": {
"address": "0xB1C52075b276f87b1834919167312221d50c9D16",
"startBlock": 30277777
"startBlock": 4543300
},
"DatasetRegistry": {
"address": "0x799DAa22654128d0C64d5b79eac9283008158730",
"startBlock": 30277777
"startBlock": 4543300
},
"WorkerpoolRegistry": {
"address": "0xC76A18c78B7e530A165c5683CB1aB134E21938B4",
"startBlock": 30277777
"startBlock": 4543300
}
}
}
1 change: 1 addition & 0 deletions src/Modules/IexecPoco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export function handleOrdersMatched(event: OrdersMatchedEvent): void {
let viewedDeal = contract.viewDeal(event.params.dealid);
// The `sponsor` has been introduced on Bellecour for the PoCo v5.5.0 release:
// https://blockscout.bellecour.iex.ec/tx/0x71b904f526a9be218d35748f57d74ef6da20d12c88f94cfa1ec5ae2de187cb98
// TODO: Use grafting instead, see https://thegraph.com/docs/en/subgraphs/cookbook/grafting/
const sponsor =
chainName == 'bellecour' && event.block.number < BigInt.fromI32(30277938)
? Address.zero().toHexString()
Expand Down
12 changes: 6 additions & 6 deletions subgraph.bellecour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dataSources:
source:
address: "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f"
abi: ERC1538
startBlock: 30277777
startBlock: 4543300
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand All @@ -39,7 +39,7 @@ dataSources:
source:
address: "0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f"
abi: IexecInterfaceToken
startBlock: 30277777
startBlock: 4543300
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand Down Expand Up @@ -71,7 +71,7 @@ dataSources:
- Unlock
abis:
- name: IexecInterfaceToken
file: node_modules/@iexec/poco/artifacts/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json
file: node_modules/@iexec/poco/build/contracts/IexecInterfaceNative.json
eventHandlers:
- event: CreateCategory(uint256,string,string,uint256)
handler: handleCreateCategory
Expand Down Expand Up @@ -119,7 +119,7 @@ dataSources:
source:
address: "0xB1C52075b276f87b1834919167312221d50c9D16"
abi: AppRegistry
startBlock: 30277777
startBlock: 4543300
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand All @@ -144,7 +144,7 @@ dataSources:
source:
address: "0x799DAa22654128d0C64d5b79eac9283008158730"
abi: DatasetRegistry
startBlock: 30277777
startBlock: 4543300
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand All @@ -169,7 +169,7 @@ dataSources:
source:
address: "0xC76A18c78B7e530A165c5683CB1aB134E21938B4"
abi: WorkerpoolRegistry
startBlock: 30277777
startBlock: 4543300
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand Down

0 comments on commit 8410be4

Please sign in to comment.