diff --git a/src/perps-v3.ts b/src/perps-v3.ts index c9c97590..dadaea84 100644 --- a/src/perps-v3.ts +++ b/src/perps-v3.ts @@ -115,6 +115,7 @@ export function handleOrderSettled(event: OrderSettledEvent): void { order.newSize = event.params.newSize; order.referralFees = event.params.referralFees; order.settler = event.params.settler; + order.txHash = event.transaction.hash.toHex(); order.pnl = ZERO; let positionId = event.params.marketId.toString() + '-' + event.params.accountId.toString(); diff --git a/subgraphs/perps-v3.graphql b/subgraphs/perps-v3.graphql index cdee0ed6..1853b2e1 100644 --- a/subgraphs/perps-v3.graphql +++ b/subgraphs/perps-v3.graphql @@ -38,6 +38,7 @@ type OrderSettled @entity { trackingCode: Bytes! settler: Bytes! pnl: BigInt! + txHash: String! } type PerpsV3Position @entity {