|
| 1 | +# SPDX-FileCopyrightText: 2020-2024 IEXEC BLOCKCHAIN TECH <[email protected]> |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +specVersion: 0.0.4 |
| 5 | +description: iExecPoCoV5 |
| 6 | +repository: https://github.com/iExecBlockchainComputing/PoCo-subgraph |
| 7 | +schema: |
| 8 | + file: ./schema.graphql |
| 9 | +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 | + |
| 33 | + - name: Core |
| 34 | + kind: ethereum/contract |
| 35 | + source: |
| 36 | + abi: IexecInterfaceToken |
| 37 | + mapping: |
| 38 | + kind: ethereum/events |
| 39 | + apiVersion: 0.0.6 |
| 40 | + language: wasm/assemblyscript |
| 41 | + entities: |
| 42 | + - Category |
| 43 | + - Protocol |
| 44 | + - Account |
| 45 | + - AppOrder |
| 46 | + - DatasetOrder |
| 47 | + - WorkerpoolOrder |
| 48 | + - RequesterOrder |
| 49 | + - Deal |
| 50 | + - SchedulerNotice |
| 51 | + - Task |
| 52 | + - Contribution |
| 53 | + - TaskInitialize |
| 54 | + - TaskContribute |
| 55 | + - TaskConsensus |
| 56 | + - TaskReveal |
| 57 | + - TaskReopen |
| 58 | + - TaskFinalize |
| 59 | + - TaskClaimed |
| 60 | + - AccurateContribution |
| 61 | + - FaultyContribution |
| 62 | + - Transfer |
| 63 | + - Reward |
| 64 | + - Seize |
| 65 | + - Lock |
| 66 | + - Unlock |
| 67 | + abis: |
| 68 | + - name: IexecInterfaceToken |
| 69 | + file: node_modules/@iexec/poco/artifacts/contracts/IexecInterfaceNative.sol/IexecInterfaceNative.json |
| 70 | + eventHandlers: |
| 71 | + - event: CreateCategory(uint256,string,string,uint256) |
| 72 | + handler: handleCreateCategory |
| 73 | + - event: OrdersMatched(bytes32,bytes32,bytes32,bytes32,bytes32,uint256) |
| 74 | + handler: handleOrdersMatched |
| 75 | + - event: SchedulerNotice(indexed address,bytes32) |
| 76 | + handler: handleSchedulerNotice |
| 77 | + - event: TaskInitialize(indexed bytes32,indexed address) |
| 78 | + handler: handleTaskInitialize |
| 79 | + - event: TaskContribute(indexed bytes32,indexed address,bytes32) |
| 80 | + handler: handleTaskContribute |
| 81 | + - event: TaskConsensus(indexed bytes32,bytes32) |
| 82 | + handler: handleTaskConsensus |
| 83 | + - event: TaskReveal(indexed bytes32,indexed address,bytes32) |
| 84 | + handler: handleTaskReveal |
| 85 | + - event: TaskReopen(indexed bytes32) |
| 86 | + handler: handleTaskReopen |
| 87 | + - event: TaskFinalize(indexed bytes32,bytes) |
| 88 | + handler: handleTaskFinalize |
| 89 | + - event: TaskClaimed(indexed bytes32) |
| 90 | + handler: handleTaskClaimed |
| 91 | + - event: AccurateContribution(indexed address,indexed bytes32) |
| 92 | + handler: handleAccurateContribution |
| 93 | + - event: FaultyContribution(indexed address,indexed bytes32) |
| 94 | + handler: handleFaultyContribution |
| 95 | + - event: Transfer(indexed address,indexed address,uint256) |
| 96 | + handler: handleTransfer |
| 97 | + - event: Reward(address,uint256,bytes32) |
| 98 | + handler: handleReward |
| 99 | + - event: Seize(address,uint256,bytes32) |
| 100 | + handler: handleSeize |
| 101 | + - event: Lock(address,uint256) |
| 102 | + handler: handleLock |
| 103 | + - event: Unlock(address,uint256) |
| 104 | + handler: handleUnlock |
| 105 | + file: ./src/Modules/index.ts |
| 106 | + |
| 107 | + # =============================== App registry ================================ |
| 108 | + - name: AppRegistry |
| 109 | + kind: ethereum/contract |
| 110 | + source: |
| 111 | + abi: AppRegistry |
| 112 | + mapping: |
| 113 | + kind: ethereum/events |
| 114 | + apiVersion: 0.0.6 |
| 115 | + language: wasm/assemblyscript |
| 116 | + entities: |
| 117 | + - App |
| 118 | + - AppTransfer |
| 119 | + abis: |
| 120 | + - name: App |
| 121 | + file: node_modules/@iexec/poco/build/contracts/App.json |
| 122 | + - name: AppRegistry |
| 123 | + file: node_modules/@iexec/poco/build/contracts/AppRegistry.json |
| 124 | + eventHandlers: |
| 125 | + - event: Transfer(indexed address,indexed address,indexed uint256) |
| 126 | + handler: handleTransferApp |
| 127 | + file: ./src/Registries/index.ts |
| 128 | + |
| 129 | + # ============================= Dataset registry ============================== |
| 130 | + - name: DatasetRegistry |
| 131 | + kind: ethereum/contract |
| 132 | + source: |
| 133 | + abi: DatasetRegistry |
| 134 | + mapping: |
| 135 | + kind: ethereum/events |
| 136 | + apiVersion: 0.0.6 |
| 137 | + language: wasm/assemblyscript |
| 138 | + entities: |
| 139 | + - Dataset |
| 140 | + - DatasetTransfer |
| 141 | + abis: |
| 142 | + - name: Dataset |
| 143 | + file: node_modules/@iexec/poco/build/contracts/Dataset.json |
| 144 | + - name: DatasetRegistry |
| 145 | + file: node_modules/@iexec/poco/build/contracts/DatasetRegistry.json |
| 146 | + eventHandlers: |
| 147 | + - event: Transfer(indexed address,indexed address,indexed uint256) |
| 148 | + handler: handleTransferDataset |
| 149 | + file: ./src/Registries/index.ts |
| 150 | + |
| 151 | + # ============================ Workerpool registry ============================ |
| 152 | + - name: WorkerpoolRegistry |
| 153 | + kind: ethereum/contract |
| 154 | + source: |
| 155 | + abi: WorkerpoolRegistry |
| 156 | + mapping: |
| 157 | + kind: ethereum/events |
| 158 | + apiVersion: 0.0.6 |
| 159 | + language: wasm/assemblyscript |
| 160 | + entities: |
| 161 | + - Workerpool |
| 162 | + - WorkerpoolTransfer |
| 163 | + abis: |
| 164 | + - name: Workerpool |
| 165 | + file: node_modules/@iexec/poco/build/contracts/Workerpool.json |
| 166 | + - name: WorkerpoolRegistry |
| 167 | + file: node_modules/@iexec/poco/build/contracts/WorkerpoolRegistry.json |
| 168 | + eventHandlers: |
| 169 | + - event: Transfer(indexed address,indexed address,indexed uint256) |
| 170 | + handler: handleTransferWorkerpool |
| 171 | + file: ./src/Registries/index.ts |
| 172 | + |
| 173 | +# ============================ Workerpool template ============================ |
| 174 | +templates: |
| 175 | + - name: Workerpool |
| 176 | + kind: ethereum/contract |
| 177 | + source: |
| 178 | + abi: Workerpool |
| 179 | + mapping: |
| 180 | + kind: ethereum/events |
| 181 | + apiVersion: 0.0.6 |
| 182 | + language: wasm/assemblyscript |
| 183 | + entities: |
| 184 | + - Workerpool |
| 185 | + - PolicyChange |
| 186 | + abis: |
| 187 | + - name: Workerpool |
| 188 | + file: node_modules/@iexec/poco/build/contracts/Workerpool.json |
| 189 | + eventHandlers: |
| 190 | + - event: PolicyUpdate(uint256,uint256,uint256,uint256) |
| 191 | + handler: handlePolicyUpdate |
| 192 | + file: ./src/Registries/index.ts |
0 commit comments