@@ -66,6 +66,7 @@ type User @entity {
6666 shifts : [TokenAndETHShift ! ]! @derivedFrom (field : " juror" )
6767 draws : [Draw ! ]! @derivedFrom (field : " juror" )
6868 activeDisputes : BigInt !
69+ rounds : [Round ! ]!
6970 disputes : [Dispute ! ]!
7071 resolvedDisputes : [Dispute ! ]!
7172 totalResolvedDisputes : BigInt !
@@ -118,6 +119,9 @@ type Court @entity {
118119 id : ID !
119120 policy : String
120121 name : String
122+ description : String
123+ summary : String
124+ requiredSkills : String
121125 parent : Court
122126 hiddenVotes : Boolean !
123127 children : [Court ! ]! @derivedFrom (field : " parent" )
@@ -142,16 +146,20 @@ type Court @entity {
142146
143147type Dispute @entity {
144148 id : ID !
149+ disputeID : BigInt !
145150 court : Court !
146151 arbitrated : Arbitrable !
147152 period : Period !
148153 ruled : Boolean !
149154 currentRuling : BigInt !
150155 tied : Boolean !
151156 overridden : Boolean !
152- lastPeriodChange : BigInt !
157+ periodDeadline : BigInt ! # uint256j
158+ periodNotificationIndex : BigInt !
159+ lastPeriodChangeTs : BigInt !
160+ users : [User ! ]!
161+ lastPeriodChangeBlock : BigInt !
153162 lastPeriodChangeBlockNumber : BigInt !
154- periodDeadline : BigInt !
155163 rounds : [Round ! ]! @derivedFrom (field : " dispute" )
156164 currentRound : Round !
157165 currentRoundIndex : BigInt !
@@ -160,12 +168,18 @@ type Dispute @entity {
160168 disputeKitDispute : DisputeKitDispute @derivedFrom (field : " coreDispute" )
161169}
162170
171+ type PeriodIndexCounter @entity {
172+ id : String !
173+ counter : BigInt !
174+ }
175+
163176type Round @entity {
164177 id : ID ! # dispute.id-dispute.rounds.length
165178 disputeKit : DisputeKit !
166179 tokensAtStakePerJuror : BigInt !
167180 totalFeesForJurors : BigInt !
168181 nbVotes : BigInt !
182+ isCurrentRound : Boolean !
169183 repartitions : BigInt !
170184 penalties : BigInt !
171185 drawnJurors : [Draw ! ]! @derivedFrom (field : " round" )
@@ -181,6 +195,7 @@ type Draw @entity(immutable: true) {
181195 juror : User !
182196 voteID : BigInt !
183197 vote : Vote @derivedFrom (field : " draw" )
198+ drawNotificationIndex : BigInt
184199}
185200
186201type DisputeKit @entity {
0 commit comments