Skip to content

Add useCrossVmTransctionStatus hook #2514

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

Merged
merged 3 commits into from
Jun 17, 2025
Merged

Conversation

jribbink
Copy link
Contributor

@jribbink jribbink commented Jun 11, 2025

Closes #2497

@jribbink jribbink requested a review from a team as a code owner June 11, 2025 16:41
Copy link

changeset-bot bot commented Jun 11, 2025

🦋 Changeset detected

Latest commit: 31b5a2e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@onflow/kit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chasefleming chasefleming requested a review from Copilot June 11, 2025 22:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new hook to track cross-VM Flow transactions and extract EVM outcomes.

  • Introduces useCrossVmTransactionStatus hook to subscribe to Flow transactions and parse EVM call events
  • Parses EVM.TransactionExecuted events into a simple CallOutcome structure
  • Adds accompanying tests, exports the hook in index.ts, and updates the changeset

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/kit/src/hooks/useCrossVmTransactionStatus.ts New hook implementation for cross-VM transaction status and EVM event parsing
packages/kit/src/hooks/useCrossVmTransactionStatus.test.ts Unit tests covering various status and event scenarios
packages/kit/src/hooks/index.ts Export of the new hook
.changeset/old-owls-tap.md Bumped minor version and added hook to changelog
Comments suppressed due to low confidence (1)

packages/kit/src/hooks/useCrossVmTransactionStatus.test.ts:5

  • The mock import from node:test is not used in these tests. Removing it will eliminate the unused import warning.
import {mock} from "node:test"

jribbink and others added 2 commits June 11, 2025 16:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jribbink jribbink merged commit fcab03f into master Jun 17, 2025
1 check passed
@jribbink jribbink deleted the jribbink/cross-vm-status branch June 17, 2025 16:12
@github-actions github-actions bot mentioned this pull request Jun 17, 2025
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.

Add useCrossVmTransactionStatus
2 participants