Skip to content

feat: swap transaction batching (tx type + non-stx batch support) #6051

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
65d188f
chore: wip batch
micaelae Jun 27, 2025
c84a683
Revert "chore: wip batch"
micaelae Jun 27, 2025
429a514
chore: selector for max button visibility
micaelae Jun 30, 2025
8eb8a06
refactor: extract gas fee calc and USDT reset
micaelae Jul 1, 2025
05ce291
fix: don't poll tx status before confirmation
micaelae Jul 1, 2025
a880efd
feat: evm tx batching
micaelae Jul 1, 2025
2b515b9
chore: update changelogs
micaelae Jul 1, 2025
8c70ea7
Revert "chore: selector for max button visibility"
micaelae Jul 1, 2025
ba0d025
wip test fix
micaelae Jul 1, 2025
5d3b449
fix: disable 7702
micaelae Jul 1, 2025
62285f2
fix: preserve transaction type of batched transactions
micaelae Jul 1, 2025
5d66e31
chore: remove UserOperationController tx submission
micaelae Jul 1, 2025
48ae039
chore: always use batched EVM txs
micaelae Jul 1, 2025
0e426b5
Merge branch 'main' into gasless-submittx
micaelae Jul 1, 2025
2815345
chore: remove addUserOperationFromTransaction
micaelae Jul 1, 2025
96b71a9
chore: update changelog
micaelae Jul 1, 2025
f289608
chore: update yarn.lock
micaelae Jul 1, 2025
b9f95ac
chore: changelog
micaelae Jul 1, 2025
af58b54
fix: lint
micaelae Jul 1, 2025
136ad48
Merge branch 'swaps1367-rm-user-operation-tx' into gasless-submittx
micaelae Jul 1, 2025
dd44c66
fix: unit tests
micaelae Jul 1, 2025
f6c0173
fix: unit tests
micaelae Jul 1, 2025
2279d3b
fix: solana tests
micaelae Jul 1, 2025
cf502df
fix: addTransactionBatch snapshots
micaelae Jul 1, 2025
007e32e
chore: add a comment
micaelae Jul 2, 2025
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
2 changes: 2 additions & 0 deletions packages/bridge-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))
- Remove `addUserOperationFromTransaction` tx submission code and constructor arg since it is unsupported ([#6057](https://github.com/MetaMask/core/pull/6057))
- Remove @metamask/user-operation-controller dependency ([#6057](https://github.com/MetaMask/core/pull/6057))

## [34.0.0]

Expand Down
7 changes: 7 additions & 0 deletions packages/bridge-status-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `batchId` to BridgeHistoryItem to enable querying history by batchId when txId is not defined ([#6051](https://github.com/MetaMask/core/pull/6051))
- Add optional `type` to BridgeHistoryItem to indicate the TransactionType (bridge or swap). This mitigates an edge case in which batched STX lose their TransactionType after confirmation ([#6051](https://github.com/MetaMask/core/pull/6051))

### Changed

- **BREAKING** Add tx batching functionality, which requires an `addTransactionBatchFn` handler to be passed to the BridgeStatusController's constructor ([#6051](https://github.com/MetaMask/core/pull/6051))
- **BREAKING** Make BridgeHistoryItem.txMetaId optional. Batched transactions don't immediately have a transaction ID so a transaction may be keyed using batchId until it is confirmed ([#6051](https://github.com/MetaMask/core/pull/6051))
- **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))

### Fixed
Expand Down
1 change: 0 additions & 1 deletion packages/bridge-status-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@metamask/keyring-api": "^18.0.0",
"@metamask/polling-controller": "^14.0.0",
"@metamask/superstruct": "^3.1.0",
"@metamask/user-operation-controller": "^37.0.0",
"@metamask/utils": "^11.2.0",
"bignumber.js": "^9.1.2",
"uuid": "^8.3.2"
Expand Down
Loading
Loading