File tree Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ dataSources:
8
8
name : KlerosCore
9
9
network : arbitrum-one
10
10
source :
11
- address : " 0xCd415C03dfa85B02646C7e2977F22a480c4354F1 "
11
+ address : " 0x991d2df165670b9cac3B022f4B68D65b664222ea "
12
12
abi : KlerosCore
13
- startBlock : 190274596
13
+ startBlock : 272063254
14
14
mapping :
15
15
kind : ethereum/events
16
16
apiVersion : 0.0.7
@@ -64,9 +64,9 @@ dataSources:
64
64
name : PolicyRegistry
65
65
network : arbitrum-one
66
66
source :
67
- address : " 0x26c1980120F1C82cF611D666CE81D2b54d018547 "
67
+ address : " 0x553dcbF6aB3aE06a1064b5200Df1B5A9fB403d3c "
68
68
abi : PolicyRegistry
69
- startBlock : 190274403
69
+ startBlock : 272063037
70
70
mapping :
71
71
kind : ethereum/events
72
72
apiVersion : 0.0.7
@@ -84,9 +84,9 @@ dataSources:
84
84
name : DisputeKitClassic
85
85
network : arbitrum-one
86
86
source :
87
- address : " 0xb7c292cD9Fd3d20De84a71AE1caF054eEB6374A9 "
87
+ address : " 0x70B464be85A547144C72485eBa2577E5D3A45421 "
88
88
abi : DisputeKitClassic
89
- startBlock : 190274518
89
+ startBlock : 272063168
90
90
mapping :
91
91
kind : ethereum/events
92
92
apiVersion : 0.0.7
@@ -119,9 +119,9 @@ dataSources:
119
119
name : EvidenceModule
120
120
network : arbitrum-one
121
121
source :
122
- address : " 0xe62B776498F48061ef9425fCEf30F3d1370DB005 "
122
+ address : " 0x48e052B4A6dC4F30e90930F1CeaAFd83b3981EB3 "
123
123
abi : EvidenceModule
124
- startBlock : 190274441
124
+ startBlock : 272063086
125
125
mapping :
126
126
kind : ethereum/events
127
127
apiVersion : 0.0.7
@@ -140,9 +140,9 @@ dataSources:
140
140
name : SortitionModule
141
141
network : arbitrum-one
142
142
source :
143
- address : " 0x614498118850184c62f82d08261109334bFB050f "
143
+ address : " 0x21A9402aDb818744B296e1d1BE58C804118DC03D "
144
144
abi : SortitionModule
145
- startBlock : 190274557
145
+ startBlock : 272063201
146
146
mapping :
147
147
kind : ethereum/events
148
148
apiVersion : 0.0.7
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ type Dispute @entity {
160
160
disputeID : BigInt !
161
161
court : Court !
162
162
createdAt : BigInt
163
+ transactionHash : String !
163
164
arbitrated : Arbitrable !
164
165
period : Period !
165
166
ruled : Boolean !
@@ -180,6 +181,8 @@ type Dispute @entity {
180
181
arbitrableChainId :BigInt
181
182
externalDisputeId :BigInt
182
183
templateId :BigInt
184
+ rulingTimestamp :BigInt
185
+ rulingTransactionHash :String
183
186
}
184
187
185
188
type PeriodIndexCounter @entity {
@@ -303,6 +306,8 @@ type ClassicJustification @entity {
303
306
choice : BigInt !
304
307
votes : [ClassicVote ! ]! @derivedFrom (field : " justification" )
305
308
reference : String !
309
+ transactionHash : String !
310
+ timestamp : BigInt !
306
311
}
307
312
308
313
type ClassicEvidenceGroup implements EvidenceGroup @entity {
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ export function handleVoteCast(event: VoteCast): void {
66
66
justification . localRound = currentLocalRoundID ;
67
67
justification . choice = choice ;
68
68
justification . reference = event . params . _justification ;
69
+ justification . transactionHash = event . transaction . hash . toHexString ( ) ;
70
+ justification . timestamp = event . block . timestamp ;
69
71
justification . save ( ) ;
70
72
const currentRulingInfo = updateCountsAndGetCurrentRuling (
71
73
currentLocalRoundID ,
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ export function handleRuling(event: Ruling): void {
184
184
const dispute = Dispute . load ( disputeID . toString ( ) ) ;
185
185
if ( ! dispute ) return ;
186
186
dispute . ruled = true ;
187
+ dispute . rulingTransactionHash = event . transaction . hash . toHexString ( ) ;
188
+ dispute . rulingTimestamp = event . block . timestamp ;
187
189
dispute . save ( ) ;
188
190
const court = Court . load ( dispute . court ) ;
189
191
if ( ! court ) return ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export function createDisputeFromEvent(event: DisputeCreation): void {
21
21
dispute . lastPeriodChange = event . block . timestamp ;
22
22
dispute . lastPeriodChangeBlockNumber = event . block . number ;
23
23
dispute . periodNotificationIndex = getAndIncrementPeriodCounter ( dispute . period ) ;
24
+ dispute . transactionHash = event . transaction . hash . toHexString ( ) ;
24
25
const court = Court . load ( courtID ) ;
25
26
if ( ! court ) return ;
26
27
dispute . periodDeadline = event . block . timestamp . plus ( court . timesPerPeriod [ 0 ] ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kleros/kleros-v2-subgraph" ,
3
- "version" : " 0.9 .1" ,
3
+ "version" : " 0.10 .1" ,
4
4
"license" : " MIT" ,
5
5
"scripts" : {
6
6
"update:core:arbitrum-sepolia-devnet" : " ./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia core/subgraph.yaml" ,
You can’t perform that action at this time.
0 commit comments