This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ type Request @entity {
85
85
disputeID : BigInt !
86
86
"The time the dispute was created."
87
87
disputeCreationTime : BigInt !
88
- "The address of the party that challenged the request"
88
+ "The address of the party that challenged the request. "
89
89
challenger : Bytes !
90
90
"Tracks each round of a dispute in the form rounds[roundID]."
91
91
rounds : [Round ! ]! @derivedFrom (field : " request" )
@@ -95,10 +95,12 @@ type Request @entity {
95
95
token : Token !
96
96
"The evidences submitted for this request."
97
97
evidences : [Evidence ! ]! @derivedFrom (field : " request" )
98
- "The number of evidence submitted"
98
+ "The number of evidence submitted. "
99
99
numberOfEvidences : BigInt !
100
100
"The block this request was created."
101
101
blockNumber : BigInt !
102
+ "The transaction this request was resolved."
103
+ resolutionTx : Bytes
102
104
}
103
105
104
106
type Evidence @entity {
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export function handleTokenStatusChange(event: TokenStatusChange): void {
151
151
152
152
// Request executed.
153
153
request . resolutionTime = event . block . timestamp ;
154
+ request . resolutionTx = event . transaction . hash ;
154
155
request . result = ACCEPTED ;
155
156
if ( request . type == REGISTRATION_REQUESTED ) token . status = REGISTERED ;
156
157
else token . status = ABSENT ;
@@ -257,6 +258,7 @@ export function handleRuling(event: Ruling): void {
257
258
}
258
259
259
260
request . resolutionTime = event . block . timestamp ;
261
+ request . resolutionTx = event . transaction . hash ;
260
262
token . disputed = false ;
261
263
token . appealPeriodStart = BigInt . fromI32 ( 0 ) ;
262
264
token . appealPeriodEnd = BigInt . fromI32 ( 0 ) ;
You can’t perform that action at this time.
0 commit comments