Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix / remove layer zero events from tx classification #684

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/utils/protocol-events-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export const protocolEventsMap: {readonly [key in ProtocolEvent]: ProtocolEventI
events: [
eventMap[EventType.SecondarySaleFees],
eventMap[EventType.BridgeableContractDeployed],
eventMap[EventType.AssignJob],
eventMap[EventType.RelayerParams],
// eventMap[EventType.AssignJob], // NOTE: LZ V1 events differ from LZ V2 events, so they will be ignored.
// eventMap[EventType.RelayerParams], // NOTE: LZ V1 events differ from LZ V2 events, so they will be ignored.
// UNKNOWN EVENT: 0x4e41ee13e03cd5e0446487b524fdc48af6acf26c074dacdbdfb6b574b42c8146
eventMap[EventType.PacketLZ],
// eventMap[EventType.PacketLZ], // NOTE: LZ V1 events differ from LZ V2 events, so they will be ignored.
eventMap[EventType.CrossChainMessageSent],
],
sqsEventNames: [SqsEventName.ContractDeployed, SqsEventName.BridgePreProcess],
Expand Down Expand Up @@ -111,10 +111,10 @@ export const protocolEventsMap: {readonly [key in ProtocolEvent]: ProtocolEventI
events: [
// eventMap[EventType.TransferERC721], // NOTE: transfer checks are skipped for efficiency. Filtering transfer logs is costly, and all relevant data is already available in the HolographableContractEvent.
eventMap[EventType.HolographableContractEvent],
eventMap[EventType.AssignJob],
eventMap[EventType.RelayerParams],
// eventMap[EventType.AssignJob], // NOTE: LZ V1 events differ from LZ V2 events, so they will be ignored.
// eventMap[EventType.RelayerParams],
// UNKNOWN EVENT: 0x4e41ee13e03cd5e0446487b524fdc48af6acf26c074dacdbdfb6b574b42c8146
eventMap[EventType.PacketLZ],
// eventMap[EventType.PacketLZ],
eventMap[EventType.CrossChainMessageSent],
],
sqsEventNames: [SqsEventName.BridgePreProcess],
Expand All @@ -124,7 +124,10 @@ export const protocolEventsMap: {readonly [key in ProtocolEvent]: ProtocolEventI
[ProtocolEvent.AvailableOperatorJob]: {
name: ProtocolEvent.AvailableOperatorJob,
contractMethodName: ContractMethodId.validateTransactionProofV1,
events: [eventMap[EventType.AvailableOperatorJob], eventMap[EventType.PacketReceived]],
events: [
eventMap[EventType.AvailableOperatorJob],
// eventMap[EventType.PacketReceived] // NOTE: LZ V1 events differ from LZ V2 events, so they will be ignored.
],
sqsEventNames: [SqsEventName.AvailableOperatorJob],
validateAndGetSqsEvents: (interestingTransaction: InterestingTransaction) =>
getSqsEventsFromTx(ProtocolEvent.AvailableOperatorJob, interestingTransaction),
Expand Down
Loading