@metamask-previews/transaction-controller 53.0.0-preview-ded32bd → 53.0.0-preview-88ffa32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - Add types for `isAtomicBatchSupported` method ([#5600](https://github.com/MetaMask/core/pull/5600))
13
+ - `IsAtomicBatchSupportedRequest`
14
+ - `IsAtomicBatchSupportedResult`
15
+ - `IsAtomicBatchSupportedResultEntry`
16
+
17
+ ### Changed
18
+
19
+ - **BREAKING:** Update signature of `isAtomicBatchSupported` method ([#5600](https://github.com/MetaMask/core/pull/5600))
20
+ - Replace `address` argument with `request` object containing `address` and optional `chainIds`.
21
+ - Return array of `IsAtomicBatchSupportedResultEntry` objects.
22
+ - Skip `origin` validation for `batch` transaction type ([#5586](https://github.com/MetaMask/core/pull/5586))
23
+
10
24
  ## [53.0.0]
11
25
 
12
26
  ### Added
@@ -334,12 +334,12 @@ class TransactionController extends base_controller_1.BaseController {
334
334
  /**
335
335
  * Determine which chains support atomic batch transactions with the given account address.
336
336
  *
337
- * @param address - The address of the account to check.
338
- * @returns The supported chain IDs.
337
+ * @param request - Request object containing the account address and other parameters.
338
+ * @returns Result object containing the supported chains and related information.
339
339
  */
340
- async isAtomicBatchSupported(address) {
340
+ async isAtomicBatchSupported(request) {
341
341
  return (0, batch_1.isAtomicBatchSupported)({
342
- address,
342
+ ...request,
343
343
  getEthQuery: (chainId) => __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getEthQuery).call(this, { chainId }),
344
344
  messenger: this.messagingSystem,
345
345
  publicKeyEIP7702: __classPrivateFieldGet(this, _TransactionController_publicKeyEIP7702, "f"),