Skip to content

Commit 47bb658

Browse files
alcercujaybuidl
authored andcommitted
chore(subgraph): update subgraph.yaml and clean schema
1 parent 316f1f8 commit 47bb658

File tree

2 files changed

+13
-28
lines changed

2 files changed

+13
-28
lines changed

subgraph/schema.graphql

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,22 +156,6 @@ type DisputeKit @entity {
156156
courts: [Court!]! @derivedFrom(field: "supportedDisputeKits")
157157
}
158158

159-
type GatewayDispute @entity {
160-
id: ID!
161-
homeDispute: Dispute!
162-
arbitrator: Bytes!
163-
disputeHash: Bytes!
164-
arbitrationCost: BigInt!
165-
relayer: Bytes!
166-
}
167-
168-
type OutgoingBatch @entity {
169-
id: ID! # messageHash
170-
size: BigInt!
171-
epoch: BigInt!
172-
batchMerkleRoot: String!
173-
}
174-
175159
type Counter @entity {
176160
id: ID! # Will be the timestamp except for the counter which will be 0
177161
stakedPNK: BigInt!

subgraph/subgraph.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ dataSources:
1414
apiVersion: 0.0.6
1515
language: wasm/assemblyscript
1616
entities:
17-
- Court
18-
- Juror
17+
- User
18+
- Arbitrable
1919
- TokenAndETHShift
2020
- JurorTokensPerCourt
21+
- Court
22+
- Dispute
2123
- Round
2224
- Draw
23-
- Dispute
2425
- DisputeKit
25-
- PNKStakedDataPoint
26-
- ETHPaidDataPoint
27-
- PNKRedistributedDataPoint
28-
- ActiveJurorsDataPoint
29-
- CasesDataPoint
26+
- Counter
3027
abis:
3128
- name: KlerosCore
3229
file: ../contracts/deployments/arbitrumGoerli/KlerosCore.json
@@ -84,8 +81,12 @@ dataSources:
8481
apiVersion: 0.0.6
8582
language: wasm/assemblyscript
8683
entities:
87-
- EvidenceGroup
88-
- Evidence
84+
- ClassicDispute
85+
- ClassicRound
86+
- ClassicVote
87+
- ClassicEvidenceGroup
88+
- ClassicEvidence
89+
- ClassicContribution
8990
abis:
9091
- name: DisputeKitClassic
9192
file: ../contracts/deployments/arbitrumGoerli/DisputeKitClassic.json
@@ -94,8 +95,8 @@ dataSources:
9495
handler: handleDisputeCreation
9596
- event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
9697
handler: handleContributionEvent
97-
# - event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
98-
# handler: handleWithdrawal
98+
- event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
99+
handler: handleWithdrawal
99100
- event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
100101
handler: handleChoiceFunded
101102
- event: Evidence(indexed address,indexed uint256,indexed address,string)

0 commit comments

Comments
 (0)