@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 +14 -0
- package/dist/TransactionController.cjs +4 -4
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +4 -4
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +4 -4
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +4 -4
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +23 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +23 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/batch.cjs +16 -8
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.d.cts +4 -3
- package/dist/utils/batch.d.cts.map +1 -1
- package/dist/utils/batch.d.mts +4 -3
- package/dist/utils/batch.d.mts.map +1 -1
- package/dist/utils/batch.mjs +16 -8
- package/dist/utils/batch.mjs.map +1 -1
- package/dist/utils/validation.cjs +4 -2
- package/dist/utils/validation.cjs.map +1 -1
- package/dist/utils/validation.d.cts.map +1 -1
- package/dist/utils/validation.d.mts.map +1 -1
- package/dist/utils/validation.mjs +4 -2
- package/dist/utils/validation.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
338
|
-
* @returns
|
|
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(
|
|
340
|
+
async isAtomicBatchSupported(request) {
|
|
341
341
|
return (0, batch_1.isAtomicBatchSupported)({
|
|
342
|
-
|
|
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"),
|