@metamask-previews/transaction-controller 59.0.0-preview-7509efdb → 59.0.0-preview-1abef88
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 +0 -8
- package/dist/TransactionController.cjs +1 -3
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +0 -2
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +0 -2
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +1 -3
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.cjs +3 -7
- package/dist/hooks/ExtraTransactionsPublishHook.cjs.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.d.cts.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.d.mts.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.mjs +3 -7
- package/dist/hooks/ExtraTransactionsPublishHook.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +0 -10
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +0 -10
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/batch.cjs +2 -8
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.mjs +2 -8
- package/dist/utils/batch.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,14 +7,6 @@ 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 `fiatValue` property on `addTransaction` options ([#6178](https://github.com/MetaMask/core/pull/6178))
|
|
13
|
-
|
|
14
|
-
### Fixed
|
|
15
|
-
|
|
16
|
-
- Preserve provided `origin` in `transactions` when calling `addTransactionBatch` ([#6178](https://github.com/MetaMask/core/pull/6178))
|
|
17
|
-
|
|
18
10
|
## [59.0.0]
|
|
19
11
|
|
|
20
12
|
### Added
|
|
@@ -363,7 +363,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
363
363
|
* @param options.batchId - A custom ID for the batch this transaction belongs to.
|
|
364
364
|
* @param options.deviceConfirmedOn - An enum to indicate what device confirmed the transaction.
|
|
365
365
|
* @param options.disableGasBuffer - Whether to disable the gas estimation buffer.
|
|
366
|
-
* @param options.fiatValue - The fiat value of the transaction to be used to passed metrics.
|
|
367
366
|
* @param options.method - RPC method that requested the transaction.
|
|
368
367
|
* @param options.nestedTransactions - Params for any nested transactions encoded in the data.
|
|
369
368
|
* @param options.origin - The origin of the transaction request, such as a dApp hostname.
|
|
@@ -381,7 +380,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
381
380
|
*/
|
|
382
381
|
async addTransaction(txParams, options) {
|
|
383
382
|
(0, logger_1.projectLogger)('Adding transaction', txParams, options);
|
|
384
|
-
const { actionId, batchId, deviceConfirmedOn, disableGasBuffer,
|
|
383
|
+
const { actionId, batchId, deviceConfirmedOn, disableGasBuffer, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, swaps = {}, traceContext, type, } = options;
|
|
385
384
|
txParams = (0, utils_2.normalizeTransactionParams)(txParams);
|
|
386
385
|
if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
|
|
387
386
|
throw new Error(`Network client not found - ${networkClientId}`);
|
|
@@ -431,7 +430,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
431
430
|
delegationAddress,
|
|
432
431
|
deviceConfirmedOn,
|
|
433
432
|
disableGasBuffer,
|
|
434
|
-
fiatValue,
|
|
435
433
|
id: (0, uuid_1.v1)(),
|
|
436
434
|
isFirstTimeInteraction: undefined,
|
|
437
435
|
nestedTransactions,
|