Skip to content

poc: confirmation intents #34097

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

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft

poc: confirmation intents #34097

wants to merge 22 commits into from

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Jul 4, 2025

Description

POC of "intents" support within a transaction confirmation.

This enables native or ERC-20 assets required by the transaction to be automatically obtained on approval, via integrated swaps and bridging.

Includes:

  • Developer options button to trigger an example Hyperliquid deposit transaction using Arbitrum USDC.
  • Automatic intent asset detection using transaction value, gas fee, and token transfer data.
  • Support for dApp specified assets via the auxilaryFunds capability in a wallet_sendCalls RPC request.
  • Multi-chain asset selection using standard bridging modal, filtered to assets with sufficient balance.
  • Automatic default asset selection based on highest balance.
  • Support for multiple target assets resulting in multiple sequential bridges.
  • Use of transaction batch flow if source asset is on same chain, resulting in atomic EIP-7702 if account is upgraded.

See #6073 for associated core changes.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Manual testing steps

Screenshots/Recordings

Before

After

Developer Options Confirmation Asset Selection
Hyperliquid.Bridge.mov
Hyperliquid.Atomic.Swap.mov

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Support atomic swap and intent via extra transactions.
Support approvals.
Add gas fee row.
Override asset picker.
Split components.
Split hooks.
Rename intents-row to intents-section.
Rename useIntentsData to useIntentsQuote.
Add loader.
Support native source tokens.
Split rows.
Add quote indicator icon.
Add dynamic targets.
Support decimal input.
Combine targets on same token.
Fix target if no balance.
Remove 7702 check.
@matthewwalsh0 matthewwalsh0 added the team-confirmations Push issues to confirmations team label Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant