Skip to content

Commit

Permalink
fix: missing receipts flag on subgraph manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
  • Loading branch information
tmigone authored and juanmardefago committed Feb 16, 2023
1 parent 2e92707 commit 9261844
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/mappings/helpers/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { getOutBoxTransactionExecutedData } from "./events/OutBoxTransactionExec
import { getMessageDeliveredData } from "./events/MessageDelivered";
import { getInboxMessageDeliveredData } from "./events/InboxMessageDelivered";
import { getTxToL2Data } from "./events/TxToL2";
import { BridgeDepositTransaction } from "../../types/schema";

// Gets transactionIndex
// Returns null if the withdrawal call is made under the following conditions:
Expand Down Expand Up @@ -77,8 +76,7 @@ export function getTransactionIndexFromLogs(
// Calculates Arbitrum's retryable ticket ID using tx event data
// Returns null if the required events are not found or if there are multiple duplicate events (i.e: a multicall call)
export function getRetryableTicketId(
event: DepositInitiated,
entity: BridgeDepositTransaction
event: DepositInitiated
): string | null {
// Get the data from the events
let messageDeliveredData = getMessageDeliveredData(event);
Expand Down
2 changes: 1 addition & 1 deletion src/mappings/l1Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function handleDepositInitiated(event: DepositInitiated): void {
entity.to = event.params.to
entity.amount = event.params.amount
entity.l1Token = event.params.l1Token
entity.retryableTicketId = getRetryableTicketId(event, entity)
entity.retryableTicketId = getRetryableTicketId(event)

// Deposits initiated through Arbitrum's gateway router will emit a TransferRouted event
let EVENT_SIGNATURE = 'TransferRouted(address,address,address,address)'
Expand Down
3 changes: 3 additions & 0 deletions subgraph.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ dataSources:
eventHandlers:
- event: DepositInitiated(address,indexed address,indexed address,indexed uint256,uint256)
handler: handleDepositInitiated
receipt: true
- event: WithdrawalFinalized(address,indexed address,indexed address,indexed uint256,uint256)
handler: handleWithdrawalFinalized
receipt: true
Expand Down Expand Up @@ -478,8 +479,10 @@ dataSources:
eventHandlers:
- event: WithdrawalInitiated(address,indexed address,indexed address,indexed uint256,uint256,uint256)
handler: handleWithdrawalInitiated
receipt: true
- event: DepositFinalized(indexed address,indexed address,indexed address,uint256)
handler: handleDepositFinalized
receipt: true
- kind: ethereum/contract
name: ArbRetryableTx
network: {{network}}
Expand Down

0 comments on commit 9261844

Please # to comment.