Skip to content

Conversation

@NikolasHaimerl
Copy link
Contributor

@NikolasHaimerl NikolasHaimerl commented Nov 18, 2025

Adds tracking for SimpleTransferCompletedEvents for OFT.
Useful links: https://hyperevmscan.io/tx/0xf72cfb2c0a9f781057cd4f7beca6fc6bd9290f1d73adef1142b8ac1b0ed7186c#eventlog#36

…d utility

Move SimpleTransferFlowCompleted event processing logic from CctpRepository to a shared hyperEvmExecutor utility module. Add support for tracking these events in OFT indexer by fetching ComposeDelivered events and extracting SimpleTransferFlowCompleted events from transaction receipts. Update method signatures to use block
@NikolasHaimerl NikolasHaimerl changed the base branch from nikolas/remove-default-mapping to nikolas/track-FallbackHyperEVMFlowCompleted November 18, 2025 08:30
* The unique keys to check for. It is recommended these keys to be indexed columns, so that the query is faster.
* @param comparisonKeys - The keys to compare for changes.
*/
protected async saveAndHandleFinalisationBatch<Entity extends ObjectLiteral>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this function to be able to share the storing function for Simple transfers for OFT and CCTP, see https://github.com/across-protocol/indexer/pull/433/files#diff-103d64d5e62515d16ca06086549eabe7dbc05b089ad0c69d013da5fc23918d84R52

@NikolasHaimerl NikolasHaimerl marked this pull request as ready for review November 18, 2025 15:26
@NikolasHaimerl NikolasHaimerl force-pushed the nikolas/track-FallbackHyperEVMFlowCompleted branch from cec1bb8 to 8ba3d4e Compare November 19, 2025 11:26
// Taken from https://hyperevmscan.io/address/0x2beF20D17a17f6903017d27D1A35CC9Dc72b0888#code
[CHAIN_IDs.HYPEREVM]: "0x2beF20D17a17f6903017d27D1A35CC9Dc72b0888",
};
("");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this line do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 2b99900

Comment on lines 183 to 189
const composeDeliveredEvents = await fetchEvents(
this.provider,
ENDPOINT_V2_ADDRESS,
"event ComposeDelivered(address from, address to, bytes32 guid, uint16 index)",
blockRange.from,
blockRange.to,
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this getLogs() RPC call be made only if chainId is HyperEVM (either mainnet or testnet)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 2b99900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants