Skip to content

Commit f93ba63

Browse files
committed
chore: neo subgraph deployment
1 parent ea9dcc9 commit f93ba63

File tree

2 files changed

+197
-3
lines changed

2 files changed

+197
-3
lines changed

subgraph/core-neo/subgraph.template.yaml

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ dataSources:
106106
- name: DisputeKitClassic
107107
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitClassicNeo.json
108108
- name: KlerosCore
109-
file: ../../contracts/deployments/_PLACEHOLDER_/KlerosCoreNeo.json
109+
# FIX: temporarily point to abi with event addition
110+
file: ./abi-migrations/KlerosCoreNeo.json
110111
eventHandlers:
111112
- event: DisputeCreation(indexed uint256,uint256,bytes)
112113
handler: handleDisputeCreation
@@ -139,7 +140,83 @@ dataSources:
139140
- ClassicContribution
140141
abis:
141142
- name: DisputeKitShutter
142-
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitShutter.json
143+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitShutterNeo.json
144+
- name: DisputeKitClassic # Required on Alchemy
145+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitClassicNeo.json
146+
- name: KlerosCore
147+
# FIX: temporarily point to abi with event addition
148+
file: ./abi-migrations/KlerosCoreNeo.json
149+
eventHandlers:
150+
- event: DisputeCreation(indexed uint256,uint256,bytes)
151+
handler: handleDisputeCreation
152+
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
153+
handler: handleContributionEvent
154+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
155+
handler: handleWithdrawal
156+
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
157+
handler: handleChoiceFunded
158+
- event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
159+
handler: handleVoteCast
160+
- event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
161+
handler: handleCommitCast
162+
file: ./src/DisputeKitClassic.ts
163+
- kind: ethereum
164+
name: DisputeKitGated
165+
network: _PLACEHOLDER_
166+
source:
167+
address: "_PLACEHOLDER_"
168+
abi: DisputeKitGated
169+
startBlock: _PLACEHOLDER_
170+
mapping:
171+
kind: ethereum/events
172+
apiVersion: 0.0.7
173+
language: wasm/assemblyscript
174+
entities:
175+
- ClassicDispute
176+
- ClassicRound
177+
- ClassicVote
178+
- ClassicContribution
179+
abis:
180+
- name: DisputeKitGated
181+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitGatedNeo.json
182+
- name: DisputeKitClassic # Required on Alchemy
183+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitClassicNeo.json
184+
- name: KlerosCore
185+
# FIX: temporarily point to abi with event addition
186+
file: ./abi-migrations/KlerosCoreNeo.json
187+
eventHandlers:
188+
- event: DisputeCreation(indexed uint256,uint256,bytes)
189+
handler: handleDisputeCreation
190+
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
191+
handler: handleContributionEvent
192+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
193+
handler: handleWithdrawal
194+
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
195+
handler: handleChoiceFunded
196+
- event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
197+
handler: handleVoteCast
198+
- event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
199+
handler: handleCommitCast
200+
file: ./src/DisputeKitClassic.ts
201+
- kind: ethereum
202+
name: DisputeKitGatedShutter
203+
network: _PLACEHOLDER_
204+
source:
205+
address: "_PLACEHOLDER_"
206+
abi: DisputeKitGatedShutter
207+
startBlock: _PLACEHOLDER_
208+
mapping:
209+
kind: ethereum/events
210+
apiVersion: 0.0.7
211+
language: wasm/assemblyscript
212+
entities:
213+
- ClassicDispute
214+
- ClassicRound
215+
- ClassicVote
216+
- ClassicContribution
217+
abis:
218+
- name: DisputeKitGatedShutter
219+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitGatedShutterNeo.json
143220
- name: DisputeKitClassic # Required on Alchemy
144221
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitClassicNeo.json
145222
- name: KlerosCore

subgraph/core-neo/subgraph.yaml

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# THIS FILE IS AUTO-GENERATED BY update.sh FROM subgraph.template.yaml, ANY CHANGES WILL BE LOST.
22
specVersion: 0.0.5
3+
description: Kleros v2 Core Neo
4+
repository: https://github.com/kleros/kleros-v2/tree/dev/subgraph/core-neo
35
schema:
46
file: ./schema.graphql
57
features:
@@ -105,7 +107,122 @@ dataSources:
105107
- name: DisputeKitClassic
106108
file: ../../contracts/deployments/arbitrum/DisputeKitClassicNeo.json
107109
- name: KlerosCore
108-
file: ../../contracts/deployments/arbitrum/KlerosCoreNeo.json
110+
# FIX: temporarily point to abi with event addition
111+
file: ./abi-migrations/KlerosCoreNeo.json
112+
eventHandlers:
113+
- event: DisputeCreation(indexed uint256,uint256,bytes)
114+
handler: handleDisputeCreation
115+
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
116+
handler: handleContributionEvent
117+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
118+
handler: handleWithdrawal
119+
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
120+
handler: handleChoiceFunded
121+
- event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
122+
handler: handleVoteCast
123+
- event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
124+
handler: handleCommitCast
125+
file: ./src/DisputeKitClassic.ts
126+
- kind: ethereum
127+
name: DisputeKitShutter
128+
network: arbitrum-one
129+
source:
130+
address: "0x9D3e3f1765744c2a1BC6F6088549770444BBC768"
131+
abi: DisputeKitShutter
132+
startBlock: 364034407
133+
mapping:
134+
kind: ethereum/events
135+
apiVersion: 0.0.7
136+
language: wasm/assemblyscript
137+
entities:
138+
- ClassicDispute
139+
- ClassicRound
140+
- ClassicVote
141+
- ClassicContribution
142+
abis:
143+
- name: DisputeKitShutter
144+
file: ../../contracts/deployments/arbitrum/DisputeKitShutterNeo.json
145+
- name: DisputeKitClassic # Required on Alchemy
146+
file: ../../contracts/deployments/arbitrum/DisputeKitClassicNeo.json
147+
- name: KlerosCore
148+
# FIX: temporarily point to abi with event addition
149+
file: ./abi-migrations/KlerosCoreNeo.json
150+
eventHandlers:
151+
- event: DisputeCreation(indexed uint256,uint256,bytes)
152+
handler: handleDisputeCreation
153+
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
154+
handler: handleContributionEvent
155+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
156+
handler: handleWithdrawal
157+
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
158+
handler: handleChoiceFunded
159+
- event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
160+
handler: handleVoteCast
161+
- event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
162+
handler: handleCommitCast
163+
file: ./src/DisputeKitClassic.ts
164+
- kind: ethereum
165+
name: DisputeKitGated
166+
network: arbitrum-one
167+
source:
168+
address: "0xaE1eed20C125B739b64c948820C61F809ad9a925"
169+
abi: DisputeKitGated
170+
startBlock: 364034429
171+
mapping:
172+
kind: ethereum/events
173+
apiVersion: 0.0.7
174+
language: wasm/assemblyscript
175+
entities:
176+
- ClassicDispute
177+
- ClassicRound
178+
- ClassicVote
179+
- ClassicContribution
180+
abis:
181+
- name: DisputeKitGated
182+
file: ../../contracts/deployments/arbitrum/DisputeKitGatedNeo.json
183+
- name: DisputeKitClassic # Required on Alchemy
184+
file: ../../contracts/deployments/arbitrum/DisputeKitClassicNeo.json
185+
- name: KlerosCore
186+
# FIX: temporarily point to abi with event addition
187+
file: ./abi-migrations/KlerosCoreNeo.json
188+
eventHandlers:
189+
- event: DisputeCreation(indexed uint256,uint256,bytes)
190+
handler: handleDisputeCreation
191+
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
192+
handler: handleContributionEvent
193+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
194+
handler: handleWithdrawal
195+
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
196+
handler: handleChoiceFunded
197+
- event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
198+
handler: handleVoteCast
199+
- event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
200+
handler: handleCommitCast
201+
file: ./src/DisputeKitClassic.ts
202+
- kind: ethereum
203+
name: DisputeKitGatedShutter
204+
network: arbitrum-one
205+
source:
206+
address: "0x788330092B9704809C19858E39EB9Ac402c2E47b"
207+
abi: DisputeKitGatedShutter
208+
startBlock: 364034451
209+
mapping:
210+
kind: ethereum/events
211+
apiVersion: 0.0.7
212+
language: wasm/assemblyscript
213+
entities:
214+
- ClassicDispute
215+
- ClassicRound
216+
- ClassicVote
217+
- ClassicContribution
218+
abis:
219+
- name: DisputeKitGatedShutter
220+
file: ../../contracts/deployments/arbitrum/DisputeKitGatedShutterNeo.json
221+
- name: DisputeKitClassic # Required on Alchemy
222+
file: ../../contracts/deployments/arbitrum/DisputeKitClassicNeo.json
223+
- name: KlerosCore
224+
# FIX: temporarily point to abi with event addition
225+
file: ./abi-migrations/KlerosCoreNeo.json
109226
eventHandlers:
110227
- event: DisputeCreation(indexed uint256,uint256,bytes)
111228
handler: handleDisputeCreation

0 commit comments

Comments
 (0)