You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Explanation
Support transactions in Relay quotes via delegation and EIP-7702.
## References
Related to
[#5945](MetaMask/MetaMask-planning#5945)
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds EIP-7702 delegation support to include target transactions in
Relay quotes and submission, requiring a new getDelegationTransaction
option, updating polling/fees, and normalizing Hyperliquid deposits.
>
> - **Breaking**:
> - Require `getDelegationTransaction` in `TransactionPayController`
options; expose `TransactionPayController:getDelegationTransaction`
action and related types/exports.
> - **Relay strategy**:
> - Include transactions in Relay quote requests: add
`authorizationList`, set `tradeType` to `EXACT_OUTPUT`, and send `txs`
(token transfer + delegation).
> - Add `CHAIN_ID_HYPERCORE` and normalize Arbitrum USDC deposits to
direct Hyperliquid deposits; skip delegation when no tx params or
Hypercore.
> - Remove `skipTransaction` handling; always set target network fee to
`0` in quotes.
> - Submission: poll Relay status (configurable
`RELAY_POLLING_INTERVAL`); skip polling for same-chain; handle
`fallback` status; return target `transactionHash` (or `0x0` fallback);
clear original tx nonce and mark intent complete; track required tx IDs.
> - **Totals**:
> - Change token filtering to ignore `skipIfBalance` balance sufficiency
when summing amounts.
> - **Misc**:
> - Update tests and changelog; minor constants/util refactors.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1d4c565. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments