@metamask-previews/transaction-controller 56.2.0-preview-748e5947 → 56.2.0-preview-559651c0
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 +7 -0
- package/dist/TransactionController.cjs +6 -0
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +4 -2
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +4 -2
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +6 -0
- 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 +26 -1
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +26 -1
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/batch.cjs +89 -6
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.d.cts +4 -0
- package/dist/utils/batch.d.cts.map +1 -1
- package/dist/utils/batch.d.mts +4 -0
- package/dist/utils/batch.d.mts.map +1 -1
- package/dist/utils/batch.mjs +89 -6
- package/dist/utils/batch.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ 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 optional approval request when calling `addTransactionBatch` ([#5793](https://github.com/MetaMask/core/pull/5793))
|
|
13
|
+
- Add `transactionBatches` array to state.
|
|
14
|
+
- Add `TransactionBatchMeta` type.
|
|
15
|
+
- Add `addBatchMetadata` to store batch metadata and `wipeTransactionBatches` to clean up state after batch hook completion.
|
|
16
|
+
|
|
10
17
|
## [56.2.0]
|
|
11
18
|
|
|
12
19
|
### Added
|
|
@@ -71,6 +71,10 @@ const metadata = {
|
|
|
71
71
|
persist: true,
|
|
72
72
|
anonymous: false,
|
|
73
73
|
},
|
|
74
|
+
transactionBatches: {
|
|
75
|
+
persist: true,
|
|
76
|
+
anonymous: false,
|
|
77
|
+
},
|
|
74
78
|
methodData: {
|
|
75
79
|
persist: true,
|
|
76
80
|
anonymous: false,
|
|
@@ -115,6 +119,7 @@ function getDefaultTransactionControllerState() {
|
|
|
115
119
|
return {
|
|
116
120
|
methodData: {},
|
|
117
121
|
transactions: [],
|
|
122
|
+
transactionBatches: [],
|
|
118
123
|
lastFetchedBlockNumbers: {},
|
|
119
124
|
submitHistory: [],
|
|
120
125
|
};
|
|
@@ -329,6 +334,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
329
334
|
chainId: __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getChainId).call(this, networkClientId),
|
|
330
335
|
networkClientId,
|
|
331
336
|
}),
|
|
337
|
+
update: this.update.bind(this),
|
|
332
338
|
});
|
|
333
339
|
}
|
|
334
340
|
/**
|