@@ -86,6 +86,7 @@ export function handlePayment(event: PaymentEvent): void {
8686 payment . amount = event . params . _amount ;
8787 payment . timestamp = event . block . timestamp ;
8888 payment . party = Bytes . fromHexString ( event . params . _party . toHex ( ) ) ;
89+ payment . transactionHash = event . transaction . hash ;
8990
9091 payment . save ( ) ;
9192}
@@ -124,6 +125,7 @@ export function handleHasToPayFee(event: HasToPayFeeEvent): void {
124125 hasToPayFee . escrow = escrowId ;
125126 hasToPayFee . party = partyValue . toString ( ) ;
126127 hasToPayFee . timestamp = event . block . timestamp ;
128+ hasToPayFee . transactionHash = event . transaction . hash ;
127129 hasToPayFee . save ( ) ;
128130
129131 escrow . save ( ) ;
@@ -157,6 +159,7 @@ export function handleNativeTransactionCreated(event: NativeTransactionCreatedEv
157159 let transactionCreatedId = event . transaction . hash . toHex ( ) + "-" + event . logIndex . toString ( ) ;
158160 let transactionCreated = new TransactionCreated ( transactionCreatedId ) ;
159161 transactionCreated . escrow = escrowId ;
162+ transactionCreated . transactionHash = event . transaction . hash ;
160163
161164 transactionCreated . save ( ) ;
162165}
@@ -190,6 +193,7 @@ export function handleERC20TransactionCreated(event: ERC20TransactionCreatedEven
190193 let transactionCreatedId = event . transaction . hash . toHex ( ) + "-" + event . logIndex . toString ( ) ;
191194 let transactionCreated = new TransactionCreated ( transactionCreatedId ) ;
192195 transactionCreated . escrow = escrowId ;
196+ transactionCreated . transactionHash = event . transaction . hash ;
193197
194198 transactionCreated . save ( ) ;
195199}
@@ -207,6 +211,7 @@ export function handleTransactionResolved(event: TransactionResolvedEvent): void
207211 transactionResolved . escrow = escrowId ;
208212 transactionResolved . resolution = event . params . _resolution ;
209213 transactionResolved . timestamp = event . block . timestamp ;
214+ transactionResolved . transactionHash = event . transaction . hash ;
210215 transactionResolved . save ( ) ;
211216
212217 let buyerId = escrow . buyer . toHex ( ) ;
@@ -257,6 +262,7 @@ export function handleDisputeRequest(event: DisputeRequestEvent): void {
257262 disputeRequest . escrow = escrow . id ;
258263 disputeRequest . timestamp = event . block . timestamp ;
259264 disputeRequest . from = Bytes . fromHexString ( event . transaction . from . toHex ( ) ) ;
265+ disputeRequest . transactionHash = event . transaction . hash ;
260266 disputeRequest . save ( ) ;
261267
262268 let buyer = getUser ( escrow . buyer . toHex ( ) ) ;
@@ -303,6 +309,7 @@ export function handleSettlementProposed(event: SettlementProposedEvent): void {
303309 proposal . party = partyValue ;
304310 proposal . amount = event . params . _amount ;
305311 proposal . timestamp = event . block . timestamp ;
312+ proposal . transactionHash = event . transaction . hash ;
306313
307314 proposal . save ( ) ;
308315 escrow . save ( ) ;
0 commit comments