@metamask-previews/transaction-controller 73.1.1-preview-6ebaf4e52 → 73.1.1-preview-b6e8e7385
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 +12 -0
- package/dist/TransactionController-method-action-types.d.ts +11 -1
- package/dist/TransactionController-method-action-types.d.ts.map +1 -1
- package/dist/TransactionController-method-action-types.js.map +1 -1
- package/dist/TransactionController.d.ts +9 -4
- package/dist/TransactionController.d.ts.map +1 -1
- package/dist/TransactionController.js +83 -11
- package/dist/TransactionController.js.map +1 -1
- package/dist/helpers/PendingTransactionTracker.d.ts.map +1 -1
- package/dist/helpers/PendingTransactionTracker.js +2 -1
- package/dist/helpers/PendingTransactionTracker.js.map +1 -1
- package/dist/hooks/CollectPublishHook.d.ts +3 -3
- package/dist/hooks/CollectPublishHook.d.ts.map +1 -1
- package/dist/hooks/CollectPublishHook.js +6 -7
- package/dist/hooks/CollectPublishHook.js.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.d.ts.map +1 -1
- package/dist/hooks/ExtraTransactionsPublishHook.js +3 -2
- package/dist/hooks/ExtraTransactionsPublishHook.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +60 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/batch.js +2 -3
- package/dist/utils/batch.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ 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 `sourceAssetId` to the external Solana execution checkpoint, so support diagnostics can classify the source asset without other transaction metadata ([#10274](https://github.com/MetaMask/core/pull/10274))
|
|
13
|
+
- Add the phase-aware external Solana execution checkpoint `metamaskPay.solanaExecution` and its `MetamaskPaySolanaExecution` types, without changing legacy EVM Pay fields ([#10273](https://github.com/MetaMask/core/pull/10273))
|
|
14
|
+
- Add externally handled publish results and lifecycle finalization for hashless non-EVM parent transactions ([#10273](https://github.com/MetaMask/core/pull/10273))
|
|
15
|
+
- The `hooks.publish` constructor option may now return any `PublishHookResult`, including an empty result for the default EVM fallback or an externally handled outcome.
|
|
16
|
+
- Add the `confirmTransaction` method and messenger action to confirm a submitted externally published transaction.
|
|
17
|
+
- `PendingTransactionTracker` skips externally published transactions until their `isIntentComplete` flag is set.
|
|
18
|
+
- Add `lastValidBlockHeight` to the external Solana execution checkpoint, so recovery can detect an expired source transaction.
|
|
19
|
+
- Add `targetChainId`, `targetTokenAddress` and `followUpFailureReason` to the external Solana execution checkpoint, so recovery can run and report the non-atomic follow-up without quote state.
|
|
20
|
+
- At startup, an `approved` or `signed` transaction whose external Solana execution checkpoint has left the `ready` phase is moved to `submitted` with `isExternalPublish` instead of being failed, so recovery can still confirm or fail it.
|
|
21
|
+
|
|
10
22
|
### Changed
|
|
11
23
|
|
|
12
24
|
- Bump `uuid` from `^14.0.1` to `^14.0.2` ([#11305](https://github.com/MetaMask/core/pull/11305))
|
|
@@ -174,6 +174,16 @@ export type TransactionControllerWipeTransactionsAction = {
|
|
|
174
174
|
type: `TransactionController:wipeTransactions`;
|
|
175
175
|
handler: TransactionController['wipeTransactions'];
|
|
176
176
|
};
|
|
177
|
+
/**
|
|
178
|
+
* Marks an existing externally handled transaction as confirmed and emits
|
|
179
|
+
* the standard lifecycle events.
|
|
180
|
+
*
|
|
181
|
+
* @param transactionId - Existing transaction ID.
|
|
182
|
+
*/
|
|
183
|
+
export type TransactionControllerConfirmTransactionAction = {
|
|
184
|
+
type: `TransactionController:confirmTransaction`;
|
|
185
|
+
handler: TransactionController['confirmTransaction'];
|
|
186
|
+
};
|
|
177
187
|
/**
|
|
178
188
|
* Adds external provided transaction to state as confirmed transaction.
|
|
179
189
|
*
|
|
@@ -421,5 +431,5 @@ export type TransactionControllerGetGasFeeTokensAction = {
|
|
|
421
431
|
/**
|
|
422
432
|
* Union of all TransactionController action types.
|
|
423
433
|
*/
|
|
424
|
-
export type TransactionControllerMethodActions = TransactionControllerHandleMethodDataAction | TransactionControllerAddTransactionBatchAction | TransactionControllerIsAtomicBatchSupportedAction | TransactionControllerAddTransactionAction | TransactionControllerStopTransactionAction | TransactionControllerSpeedUpTransactionAction | TransactionControllerEstimateGasAction | TransactionControllerEstimateGasBatchAction | TransactionControllerEstimateGasBufferedAction | TransactionControllerUpdateTransactionAction | TransactionControllerUpdateTransactionMetadataAction | TransactionControllerFailTransactionAction | TransactionControllerUpdateSecurityAlertResponseAction | TransactionControllerWipeTransactionsAction | TransactionControllerConfirmExternalTransactionAction | TransactionControllerUpdateTransactionGasFeesAction | TransactionControllerUpdatePreviousGasParamsAction | TransactionControllerGetNonceLockAction | TransactionControllerUpdateEditableParamsAction | TransactionControllerSetTransactionActiveAction | TransactionControllerApproveTransactionsWithSameNonceAction | TransactionControllerUpdateCustodialTransactionAction | TransactionControllerGetTransactionsAction | TransactionControllerEstimateGasFeeAction | TransactionControllerGetLayer1GasFeeAction | TransactionControllerClearUnapprovedTransactionsAction | TransactionControllerAbortTransactionSigningAction | TransactionControllerUpdateAtomicBatchDataAction | TransactionControllerUpdateBatchTransactionsAction | TransactionControllerUpdateSelectedGasFeeTokenAction | TransactionControllerUpdateRequiredTransactionIdsAction | TransactionControllerEmulateNewTransactionAction | TransactionControllerEmulateTransactionUpdateAction | TransactionControllerGetGasFeeTokensAction;
|
|
434
|
+
export type TransactionControllerMethodActions = TransactionControllerHandleMethodDataAction | TransactionControllerAddTransactionBatchAction | TransactionControllerIsAtomicBatchSupportedAction | TransactionControllerAddTransactionAction | TransactionControllerStopTransactionAction | TransactionControllerSpeedUpTransactionAction | TransactionControllerEstimateGasAction | TransactionControllerEstimateGasBatchAction | TransactionControllerEstimateGasBufferedAction | TransactionControllerUpdateTransactionAction | TransactionControllerUpdateTransactionMetadataAction | TransactionControllerFailTransactionAction | TransactionControllerUpdateSecurityAlertResponseAction | TransactionControllerWipeTransactionsAction | TransactionControllerConfirmTransactionAction | TransactionControllerConfirmExternalTransactionAction | TransactionControllerUpdateTransactionGasFeesAction | TransactionControllerUpdatePreviousGasParamsAction | TransactionControllerGetNonceLockAction | TransactionControllerUpdateEditableParamsAction | TransactionControllerSetTransactionActiveAction | TransactionControllerApproveTransactionsWithSameNonceAction | TransactionControllerUpdateCustodialTransactionAction | TransactionControllerGetTransactionsAction | TransactionControllerEstimateGasFeeAction | TransactionControllerGetLayer1GasFeeAction | TransactionControllerClearUnapprovedTransactionsAction | TransactionControllerAbortTransactionSigningAction | TransactionControllerUpdateAtomicBatchDataAction | TransactionControllerUpdateBatchTransactionsAction | TransactionControllerUpdateSelectedGasFeeTokenAction | TransactionControllerUpdateRequiredTransactionIdsAction | TransactionControllerEmulateNewTransactionAction | TransactionControllerEmulateTransactionUpdateAction | TransactionControllerGetGasFeeTokensAction;
|
|
425
435
|
//# sourceMappingURL=TransactionController-method-action-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionController-method-action-types.d.ts","sourceRoot":"","sources":["../src/TransactionController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iDAAiD,GAAG;IAC9D,IAA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oDAAoD,GACpD,0CAA0C,GAC1C,sDAAsD,GACtD,2CAA2C,GAC3C,qDAAqD,GACrD,mDAAmD,GACnD,kDAAkD,GAClD,uCAAuC,GACvC,+CAA+C,GAC/C,+CAA+C,GAC/C,2DAA2D,GAC3D,qDAAqD,GACrD,0CAA0C,GAC1C,yCAAyC,GACzC,0CAA0C,GAC1C,sDAAsD,GACtD,kDAAkD,GAClD,gDAAgD,GAChD,kDAAkD,GAClD,oDAAoD,GACpD,uDAAuD,GACvD,gDAAgD,GAChD,mDAAmD,GACnD,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"TransactionController-method-action-types.d.ts","sourceRoot":"","sources":["../src/TransactionController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iDAAiD,GAAG;IAC9D,IAAI,EAAE,8CAA8C,CAAC;IACrD,OAAO,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;CAC1D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,sCAAsC,CAAC;IAC7C,OAAO,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;CAClD,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,qBAAqB,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AC1C,yCAAyC,GACzC,0CAA0C,GAC1C,sDAAsD,GACtD,kDAAkD,GAClD,gDAAgD,GAChD,kDAAkD,GAClD,oDAAoD,GACpD,uDAAuD,GACvD,gDAAgD,GAChD,mDAAmD,GACnD,0CAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionController-method-action-types.js","sourceRoot":"","sources":["../src/TransactionController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { TransactionController } from './TransactionController.js';\n\n/**\n * Handle new method data request.\n *\n * @param fourBytePrefix - The method prefix.\n * @param networkClientId - The ID of the network client used to fetch the method data.\n * @returns The method data object corresponding to the given signature prefix.\n */\nexport type TransactionControllerHandleMethodDataAction = {\n type: `TransactionController:handleMethodData`;\n handler: TransactionController['handleMethodData'];\n};\n\n/**\n * Add a batch of transactions to be submitted after approval.\n *\n * @param request - Request object containing the transactions to add.\n * @returns Result object containing the generated batch ID.\n */\nexport type TransactionControllerAddTransactionBatchAction = {\n type: `TransactionController:addTransactionBatch`;\n handler: TransactionController['addTransactionBatch'];\n};\n\n/**\n * Determine which chains support atomic batch transactions with the given account address.\n *\n * @param request - Request object containing the account address and other parameters.\n * @returns Result object containing the supported chains and related information.\n */\nexport type TransactionControllerIsAtomicBatchSupportedAction = {\n type: `TransactionController:isAtomicBatchSupported`;\n handler: TransactionController['isAtomicBatchSupported'];\n};\n\n/**\n * Add a new unapproved transaction to state. Parameters will be validated, a\n * unique transaction ID will be generated, and `gas` and `gasPrice` will be calculated\n * if not provided. A `<tx.id>:unapproved` hub event will be emitted once added.\n *\n * @param txParams - Standard parameters for an Ethereum transaction.\n * @param options - Additional options to control how the transaction is added.\n * @returns Object containing a promise resolving to the transaction hash if approved.\n */\nexport type TransactionControllerAddTransactionAction = {\n type: `TransactionController:addTransaction`;\n handler: TransactionController['addTransaction'];\n};\n\n/**\n * Attempts to cancel a transaction based on its ID by setting its status to \"rejected\"\n * and emitting a `<tx.id>:finished` hub event.\n *\n * @param transactionId - The ID of the transaction to cancel.\n * @param gasValues - The gas values to use for the cancellation transaction.\n * @param options - The options for the cancellation transaction.\n * @param options.actionId - Unique ID persisted on transaction metadata.\n * @param options.estimatedBaseFee - The estimated base fee of the transaction.\n */\nexport type TransactionControllerStopTransactionAction = {\n type: `TransactionController:stopTransaction`;\n handler: TransactionController['stopTransaction'];\n};\n\n/**\n * Attempts to speed up a transaction increasing transaction gasPrice by ten percent.\n *\n * @param transactionId - The ID of the transaction to speed up.\n * @param gasValues - The gas values to use for the speed up transaction.\n * @param options - The options for the speed up transaction.\n * @param options.actionId - Unique ID persisted on transaction metadata.\n * @param options.estimatedBaseFee - The estimated base fee of the transaction.\n */\nexport type TransactionControllerSpeedUpTransactionAction = {\n type: `TransactionController:speedUpTransaction`;\n handler: TransactionController['speedUpTransaction'];\n};\n\n/**\n * Estimates required gas for a given transaction.\n *\n * @param transaction - The transaction to estimate gas for.\n * @param networkClientId - The network client id to use for the estimate.\n * @param options - Additional options for the estimate.\n * @param options.ignoreDelegationSignatures - Ignore signature errors if submitting delegations to the DelegationManager.\n * @returns The gas and gas price.\n */\nexport type TransactionControllerEstimateGasAction = {\n type: `TransactionController:estimateGas`;\n handler: TransactionController['estimateGas'];\n};\n\n/**\n * Estimates required gas for a batch of transactions.\n *\n * @param request - Request object.\n * @param request.chainId - Chain ID of the transactions.\n * @param request.from - Address of the sender.\n * @param request.transactions - Array of transactions within a batch request.\n * @returns Object containing the gas limit.\n */\nexport type TransactionControllerEstimateGasBatchAction = {\n type: `TransactionController:estimateGasBatch`;\n handler: TransactionController['estimateGasBatch'];\n};\n\n/**\n * Estimates required gas for a given transaction and add additional gas buffer with the given multiplier.\n *\n * @param transaction - The transaction params to estimate gas for.\n * @param multiplier - The multiplier to use for the gas buffer.\n * @param networkClientId - The network client id to use for the estimate.\n * @returns The buffered estimated gas and whether the estimation failed.\n */\nexport type TransactionControllerEstimateGasBufferedAction = {\n type: `TransactionController:estimateGasBuffered`;\n handler: TransactionController['estimateGasBuffered'];\n};\n\n/**\n * Updates an existing transaction in state.\n *\n * @param transactionMeta - The new transaction to store in state.\n * @param note - A note or update reason to be logged.\n */\nexport type TransactionControllerUpdateTransactionAction = {\n type: `TransactionController:updateTransaction`;\n handler: TransactionController['updateTransaction'];\n};\n\n/**\n * Updates transaction metadata.\n *\n * @param options - Update options.\n * @param options.transactionId - ID of the transaction to update.\n * @param options.callback - Function that mutates the transaction metadata.\n * @param options.skipResimulate - Whether to skip automatic re-simulation.\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateTransactionMetadataAction = {\n type: `TransactionController:updateTransactionMetadata`;\n handler: TransactionController['updateTransactionMetadata'];\n};\n\n/**\n * Mark a transaction as failed, transitioning it through the standard failure\n * path.\n *\n * Unlike `updateTransaction`, this emits the transaction lifecycle events\n * (`transactionFailed`, `transactionStatusUpdated`, `transactionFinished`), so\n * downstream subscribers such as the bridge status controller and metrics are\n * notified. Intended for callers that finalize a transaction out-of-band, for\n * example the smart transactions controller when the relay cancels a smart\n * transaction that never landed on chain.\n *\n * @param transactionId - The ID of the transaction to mark as failed.\n * @param error - The error describing why the transaction failed.\n */\nexport type TransactionControllerFailTransactionAction = {\n type: `TransactionController:failTransaction`;\n handler: TransactionController['failTransaction'];\n};\n\n/**\n * Update the security alert response for a transaction.\n *\n * @param transactionId - ID of the transaction.\n * @param securityAlertResponse - The new security alert response for the transaction.\n */\nexport type TransactionControllerUpdateSecurityAlertResponseAction = {\n type: `TransactionController:updateSecurityAlertResponse`;\n handler: TransactionController['updateSecurityAlertResponse'];\n};\n\n/**\n * Remove transactions from state.\n *\n * @param options - The options bag.\n * @param options.address - Remove transactions from this account only. Defaults to all accounts.\n * @param options.chainId - Remove transactions for the specified chain only. Defaults to all chains.\n */\nexport type TransactionControllerWipeTransactionsAction = {\n type: `TransactionController:wipeTransactions`;\n handler: TransactionController['wipeTransactions'];\n};\n\n/**\n * Adds external provided transaction to state as confirmed transaction.\n *\n * @param transactionMeta - TransactionMeta to add transactions.\n * @param transactionReceipt - TransactionReceipt of the external transaction.\n * @param baseFeePerGas - Base fee per gas of the external transaction.\n */\nexport type TransactionControllerConfirmExternalTransactionAction = {\n type: `TransactionController:confirmExternalTransaction`;\n handler: TransactionController['confirmExternalTransaction'];\n};\n\n/**\n * Update the gas values of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param gasValues - Gas values to update.\n * @param gasValues.gas - Same as transaction.gasLimit.\n * @param gasValues.gasLimit - Maxmimum number of units of gas to use for this transaction.\n * @param gasValues.gasPrice - Price per gas for legacy transactions.\n * @param gasValues.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @param gasValues.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param gasValues.estimateUsed - Which estimate level was used.\n * @param gasValues.estimateSuggested - Which estimate level that the API suggested.\n * @param gasValues.defaultGasEstimates - The default estimate for gas.\n * @param gasValues.originalGasEstimate - Original estimate for gas.\n * @param gasValues.userEditedGasLimit - The gas limit supplied by user.\n * @param gasValues.userFeeLevel - Estimate level user selected.\n * @returns The updated transactionMeta.\n */\nexport type TransactionControllerUpdateTransactionGasFeesAction = {\n type: `TransactionController:updateTransactionGasFees`;\n handler: TransactionController['updateTransactionGasFees'];\n};\n\n/**\n * Update the previous gas values of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param previousGas - Previous gas values to update.\n * @param previousGas.gasLimit - Maximum number of units of gas to use for this transaction.\n * @param previousGas.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param previousGas.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @returns The updated transactionMeta.\n */\nexport type TransactionControllerUpdatePreviousGasParamsAction = {\n type: `TransactionController:updatePreviousGasParams`;\n handler: TransactionController['updatePreviousGasParams'];\n};\n\n/**\n * Acquires a nonce lock for the given address on the specified network,\n * ensuring that nonces are assigned sequentially without conflicts.\n *\n * @param address - The account address for which to acquire the nonce lock.\n * @param networkClientId - The ID of the network client to use.\n * @returns A promise that resolves to a nonce lock containing the next nonce and a release function.\n */\nexport type TransactionControllerGetNonceLockAction = {\n type: `TransactionController:getNonceLock`;\n handler: TransactionController['getNonceLock'];\n};\n\n/**\n * Updates the editable parameters of a transaction.\n *\n * @param txId - The ID of the transaction to update.\n * @param params - The editable parameters to update.\n * @param params.containerTypes - Container types applied to the parameters.\n * @param params.data - Data to pass with the transaction.\n * @param params.from - Address to send the transaction from.\n * @param params.gas - Maximum number of units of gas to use for the transaction.\n * @param params.gasPrice - Price per gas for legacy transactions.\n * @param params.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param params.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @param params.updateType - Whether to update the transaction type. Defaults to `true`.\n * @param params.to - Address to send the transaction to.\n * @param params.value - Value associated with the transaction.\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateEditableParamsAction = {\n type: `TransactionController:updateEditableParams`;\n handler: TransactionController['updateEditableParams'];\n};\n\n/**\n * Update the isActive state of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param isActive - The active state.\n */\nexport type TransactionControllerSetTransactionActiveAction = {\n type: `TransactionController:setTransactionActive`;\n handler: TransactionController['setTransactionActive'];\n};\n\n/**\n * Signs and returns the raw transaction data for provided transaction params list.\n *\n * @param listOfTxParams - The list of transaction params to approve.\n * @param opts - Options bag.\n * @param opts.hasNonce - Whether the transactions already have a nonce.\n * @returns The raw transactions.\n */\nexport type TransactionControllerApproveTransactionsWithSameNonceAction = {\n type: `TransactionController:approveTransactionsWithSameNonce`;\n handler: TransactionController['approveTransactionsWithSameNonce'];\n};\n\n/**\n * Update a custodial transaction.\n *\n * @param request - The custodial transaction update request.\n *\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateCustodialTransactionAction = {\n type: `TransactionController:updateCustodialTransaction`;\n handler: TransactionController['updateCustodialTransaction'];\n};\n\n/**\n * Search transaction metadata for matching entries.\n *\n * @param opts - Options bag.\n * @param opts.initialList - The transactions to search. Defaults to the current state.\n * @param opts.limit - The maximum number of transactions to return. No limit by default.\n * @param opts.searchCriteria - An object containing values or functions for transaction properties to filter transactions with.\n * @returns An array of transactions matching the provided options.\n */\nexport type TransactionControllerGetTransactionsAction = {\n type: `TransactionController:getTransactions`;\n handler: TransactionController['getTransactions'];\n};\n\n/**\n * Estimates the gas fees for a transaction.\n *\n * @param args - The arguments for estimating gas fees.\n * @param args.transactionParams - The transaction parameters to estimate fees for.\n * @param args.chainId - The chain ID to use. If not provided, the network client ID is used to determine the chain.\n * @param args.networkClientId - The network client ID to use for the estimation.\n * @returns A promise that resolves to the estimated gas fee response.\n */\nexport type TransactionControllerEstimateGasFeeAction = {\n type: `TransactionController:estimateGasFee`;\n handler: TransactionController['estimateGasFee'];\n};\n\n/**\n * Determine the layer 1 gas fee for the given transaction parameters.\n *\n * @param request - The request object.\n * @param request.transactionParams - The transaction parameters to estimate the layer 1 gas fee for.\n * @param request.chainId - The ID of the chain where the transaction will be executed.\n * @param request.networkClientId - The ID of a specific network client to process the transaction.\n * @returns The layer 1 gas fee.\n */\nexport type TransactionControllerGetLayer1GasFeeAction = {\n type: `TransactionController:getLayer1GasFee`;\n handler: TransactionController['getLayer1GasFee'];\n};\n\n/**\n * Removes unapproved transactions from state.\n */\nexport type TransactionControllerClearUnapprovedTransactionsAction = {\n type: `TransactionController:clearUnapprovedTransactions`;\n handler: TransactionController['clearUnapprovedTransactions'];\n};\n\n/**\n * Stop the signing process for a specific transaction.\n * Throws an error causing the transaction status to be set to failed.\n *\n * @param transactionId - The ID of the transaction to stop signing.\n */\nexport type TransactionControllerAbortTransactionSigningAction = {\n type: `TransactionController:abortTransactionSigning`;\n handler: TransactionController['abortTransactionSigning'];\n};\n\n/**\n * Update the transaction data of a single nested transaction within an atomic batch transaction.\n *\n * @param options - The options bag.\n * @param options.transactionId - ID of the atomic batch transaction.\n * @param options.transactionIndex - Index of the nested transaction within the atomic batch transaction.\n * @param options.transactionData - New data to set for the nested transaction.\n * @returns The updated data for the atomic batch transaction.\n */\nexport type TransactionControllerUpdateAtomicBatchDataAction = {\n type: `TransactionController:updateAtomicBatchData`;\n handler: TransactionController['updateAtomicBatchData'];\n};\n\n/**\n * Update the batch transactions associated with a transaction.\n * These transactions will be submitted with the main transaction as a batch.\n *\n * @param request - The request object.\n * @param request.transactionId - The ID of the transaction to update.\n * @param request.batchTransactions - The new batch transactions.\n */\nexport type TransactionControllerUpdateBatchTransactionsAction = {\n type: `TransactionController:updateBatchTransactions`;\n handler: TransactionController['updateBatchTransactions'];\n};\n\n/**\n * Update the selected gas fee token for a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param contractAddress - The contract address of the selected gas fee token.\n */\nexport type TransactionControllerUpdateSelectedGasFeeTokenAction = {\n type: `TransactionController:updateSelectedGasFeeToken`;\n handler: TransactionController['updateSelectedGasFeeToken'];\n};\n\n/**\n * Update the required transaction IDs for a transaction.\n *\n * @param request - The request object.\n * @param request.transactionId - The ID of the transaction to update.\n * @param request.requiredTransactionIds - The additional required transaction IDs.\n * @param request.append - Whether to append the IDs to any existing values. Defaults to true.\n */\nexport type TransactionControllerUpdateRequiredTransactionIdsAction = {\n type: `TransactionController:updateRequiredTransactionIds`;\n handler: TransactionController['updateRequiredTransactionIds'];\n};\n\n/**\n * Emulate a new transaction.\n *\n * @param transactionId - The transaction ID.\n */\nexport type TransactionControllerEmulateNewTransactionAction = {\n type: `TransactionController:emulateNewTransaction`;\n handler: TransactionController['emulateNewTransaction'];\n};\n\n/**\n * Emulate a transaction update.\n *\n * @param transactionMeta - Transaction metadata.\n */\nexport type TransactionControllerEmulateTransactionUpdateAction = {\n type: `TransactionController:emulateTransactionUpdate`;\n handler: TransactionController['emulateTransactionUpdate'];\n};\n\n/**\n * Retrieve available gas fee tokens for a transaction.\n *\n * @param request - The request object containing transaction details.\n * @returns The list of available gas fee tokens.\n */\nexport type TransactionControllerGetGasFeeTokensAction = {\n type: `TransactionController:getGasFeeTokens`;\n handler: TransactionController['getGasFeeTokens'];\n};\n\n/**\n * Union of all TransactionController action types.\n */\nexport type TransactionControllerMethodActions =\n | TransactionControllerHandleMethodDataAction\n | TransactionControllerAddTransactionBatchAction\n | TransactionControllerIsAtomicBatchSupportedAction\n | TransactionControllerAddTransactionAction\n | TransactionControllerStopTransactionAction\n | TransactionControllerSpeedUpTransactionAction\n | TransactionControllerEstimateGasAction\n | TransactionControllerEstimateGasBatchAction\n | TransactionControllerEstimateGasBufferedAction\n | TransactionControllerUpdateTransactionAction\n | TransactionControllerUpdateTransactionMetadataAction\n | TransactionControllerFailTransactionAction\n | TransactionControllerUpdateSecurityAlertResponseAction\n | TransactionControllerWipeTransactionsAction\n | TransactionControllerConfirmExternalTransactionAction\n | TransactionControllerUpdateTransactionGasFeesAction\n | TransactionControllerUpdatePreviousGasParamsAction\n | TransactionControllerGetNonceLockAction\n | TransactionControllerUpdateEditableParamsAction\n | TransactionControllerSetTransactionActiveAction\n | TransactionControllerApproveTransactionsWithSameNonceAction\n | TransactionControllerUpdateCustodialTransactionAction\n | TransactionControllerGetTransactionsAction\n | TransactionControllerEstimateGasFeeAction\n | TransactionControllerGetLayer1GasFeeAction\n | TransactionControllerClearUnapprovedTransactionsAction\n | TransactionControllerAbortTransactionSigningAction\n | TransactionControllerUpdateAtomicBatchDataAction\n | TransactionControllerUpdateBatchTransactionsAction\n | TransactionControllerUpdateSelectedGasFeeTokenAction\n | TransactionControllerUpdateRequiredTransactionIdsAction\n | TransactionControllerEmulateNewTransactionAction\n | TransactionControllerEmulateTransactionUpdateAction\n | TransactionControllerGetGasFeeTokensAction;\n"]}
|
|
1
|
+
{"version":3,"file":"TransactionController-method-action-types.js","sourceRoot":"","sources":["../src/TransactionController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { TransactionController } from './TransactionController.js';\n\n/**\n * Handle new method data request.\n *\n * @param fourBytePrefix - The method prefix.\n * @param networkClientId - The ID of the network client used to fetch the method data.\n * @returns The method data object corresponding to the given signature prefix.\n */\nexport type TransactionControllerHandleMethodDataAction = {\n type: `TransactionController:handleMethodData`;\n handler: TransactionController['handleMethodData'];\n};\n\n/**\n * Add a batch of transactions to be submitted after approval.\n *\n * @param request - Request object containing the transactions to add.\n * @returns Result object containing the generated batch ID.\n */\nexport type TransactionControllerAddTransactionBatchAction = {\n type: `TransactionController:addTransactionBatch`;\n handler: TransactionController['addTransactionBatch'];\n};\n\n/**\n * Determine which chains support atomic batch transactions with the given account address.\n *\n * @param request - Request object containing the account address and other parameters.\n * @returns Result object containing the supported chains and related information.\n */\nexport type TransactionControllerIsAtomicBatchSupportedAction = {\n type: `TransactionController:isAtomicBatchSupported`;\n handler: TransactionController['isAtomicBatchSupported'];\n};\n\n/**\n * Add a new unapproved transaction to state. Parameters will be validated, a\n * unique transaction ID will be generated, and `gas` and `gasPrice` will be calculated\n * if not provided. A `<tx.id>:unapproved` hub event will be emitted once added.\n *\n * @param txParams - Standard parameters for an Ethereum transaction.\n * @param options - Additional options to control how the transaction is added.\n * @returns Object containing a promise resolving to the transaction hash if approved.\n */\nexport type TransactionControllerAddTransactionAction = {\n type: `TransactionController:addTransaction`;\n handler: TransactionController['addTransaction'];\n};\n\n/**\n * Attempts to cancel a transaction based on its ID by setting its status to \"rejected\"\n * and emitting a `<tx.id>:finished` hub event.\n *\n * @param transactionId - The ID of the transaction to cancel.\n * @param gasValues - The gas values to use for the cancellation transaction.\n * @param options - The options for the cancellation transaction.\n * @param options.actionId - Unique ID persisted on transaction metadata.\n * @param options.estimatedBaseFee - The estimated base fee of the transaction.\n */\nexport type TransactionControllerStopTransactionAction = {\n type: `TransactionController:stopTransaction`;\n handler: TransactionController['stopTransaction'];\n};\n\n/**\n * Attempts to speed up a transaction increasing transaction gasPrice by ten percent.\n *\n * @param transactionId - The ID of the transaction to speed up.\n * @param gasValues - The gas values to use for the speed up transaction.\n * @param options - The options for the speed up transaction.\n * @param options.actionId - Unique ID persisted on transaction metadata.\n * @param options.estimatedBaseFee - The estimated base fee of the transaction.\n */\nexport type TransactionControllerSpeedUpTransactionAction = {\n type: `TransactionController:speedUpTransaction`;\n handler: TransactionController['speedUpTransaction'];\n};\n\n/**\n * Estimates required gas for a given transaction.\n *\n * @param transaction - The transaction to estimate gas for.\n * @param networkClientId - The network client id to use for the estimate.\n * @param options - Additional options for the estimate.\n * @param options.ignoreDelegationSignatures - Ignore signature errors if submitting delegations to the DelegationManager.\n * @returns The gas and gas price.\n */\nexport type TransactionControllerEstimateGasAction = {\n type: `TransactionController:estimateGas`;\n handler: TransactionController['estimateGas'];\n};\n\n/**\n * Estimates required gas for a batch of transactions.\n *\n * @param request - Request object.\n * @param request.chainId - Chain ID of the transactions.\n * @param request.from - Address of the sender.\n * @param request.transactions - Array of transactions within a batch request.\n * @returns Object containing the gas limit.\n */\nexport type TransactionControllerEstimateGasBatchAction = {\n type: `TransactionController:estimateGasBatch`;\n handler: TransactionController['estimateGasBatch'];\n};\n\n/**\n * Estimates required gas for a given transaction and add additional gas buffer with the given multiplier.\n *\n * @param transaction - The transaction params to estimate gas for.\n * @param multiplier - The multiplier to use for the gas buffer.\n * @param networkClientId - The network client id to use for the estimate.\n * @returns The buffered estimated gas and whether the estimation failed.\n */\nexport type TransactionControllerEstimateGasBufferedAction = {\n type: `TransactionController:estimateGasBuffered`;\n handler: TransactionController['estimateGasBuffered'];\n};\n\n/**\n * Updates an existing transaction in state.\n *\n * @param transactionMeta - The new transaction to store in state.\n * @param note - A note or update reason to be logged.\n */\nexport type TransactionControllerUpdateTransactionAction = {\n type: `TransactionController:updateTransaction`;\n handler: TransactionController['updateTransaction'];\n};\n\n/**\n * Updates transaction metadata.\n *\n * @param options - Update options.\n * @param options.transactionId - ID of the transaction to update.\n * @param options.callback - Function that mutates the transaction metadata.\n * @param options.skipResimulate - Whether to skip automatic re-simulation.\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateTransactionMetadataAction = {\n type: `TransactionController:updateTransactionMetadata`;\n handler: TransactionController['updateTransactionMetadata'];\n};\n\n/**\n * Mark a transaction as failed, transitioning it through the standard failure\n * path.\n *\n * Unlike `updateTransaction`, this emits the transaction lifecycle events\n * (`transactionFailed`, `transactionStatusUpdated`, `transactionFinished`), so\n * downstream subscribers such as the bridge status controller and metrics are\n * notified. Intended for callers that finalize a transaction out-of-band, for\n * example the smart transactions controller when the relay cancels a smart\n * transaction that never landed on chain.\n *\n * @param transactionId - The ID of the transaction to mark as failed.\n * @param error - The error describing why the transaction failed.\n */\nexport type TransactionControllerFailTransactionAction = {\n type: `TransactionController:failTransaction`;\n handler: TransactionController['failTransaction'];\n};\n\n/**\n * Update the security alert response for a transaction.\n *\n * @param transactionId - ID of the transaction.\n * @param securityAlertResponse - The new security alert response for the transaction.\n */\nexport type TransactionControllerUpdateSecurityAlertResponseAction = {\n type: `TransactionController:updateSecurityAlertResponse`;\n handler: TransactionController['updateSecurityAlertResponse'];\n};\n\n/**\n * Remove transactions from state.\n *\n * @param options - The options bag.\n * @param options.address - Remove transactions from this account only. Defaults to all accounts.\n * @param options.chainId - Remove transactions for the specified chain only. Defaults to all chains.\n */\nexport type TransactionControllerWipeTransactionsAction = {\n type: `TransactionController:wipeTransactions`;\n handler: TransactionController['wipeTransactions'];\n};\n\n/**\n * Marks an existing externally handled transaction as confirmed and emits\n * the standard lifecycle events.\n *\n * @param transactionId - Existing transaction ID.\n */\nexport type TransactionControllerConfirmTransactionAction = {\n type: `TransactionController:confirmTransaction`;\n handler: TransactionController['confirmTransaction'];\n};\n\n/**\n * Adds external provided transaction to state as confirmed transaction.\n *\n * @param transactionMeta - TransactionMeta to add transactions.\n * @param transactionReceipt - TransactionReceipt of the external transaction.\n * @param baseFeePerGas - Base fee per gas of the external transaction.\n */\nexport type TransactionControllerConfirmExternalTransactionAction = {\n type: `TransactionController:confirmExternalTransaction`;\n handler: TransactionController['confirmExternalTransaction'];\n};\n\n/**\n * Update the gas values of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param gasValues - Gas values to update.\n * @param gasValues.gas - Same as transaction.gasLimit.\n * @param gasValues.gasLimit - Maxmimum number of units of gas to use for this transaction.\n * @param gasValues.gasPrice - Price per gas for legacy transactions.\n * @param gasValues.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @param gasValues.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param gasValues.estimateUsed - Which estimate level was used.\n * @param gasValues.estimateSuggested - Which estimate level that the API suggested.\n * @param gasValues.defaultGasEstimates - The default estimate for gas.\n * @param gasValues.originalGasEstimate - Original estimate for gas.\n * @param gasValues.userEditedGasLimit - The gas limit supplied by user.\n * @param gasValues.userFeeLevel - Estimate level user selected.\n * @returns The updated transactionMeta.\n */\nexport type TransactionControllerUpdateTransactionGasFeesAction = {\n type: `TransactionController:updateTransactionGasFees`;\n handler: TransactionController['updateTransactionGasFees'];\n};\n\n/**\n * Update the previous gas values of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param previousGas - Previous gas values to update.\n * @param previousGas.gasLimit - Maximum number of units of gas to use for this transaction.\n * @param previousGas.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param previousGas.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @returns The updated transactionMeta.\n */\nexport type TransactionControllerUpdatePreviousGasParamsAction = {\n type: `TransactionController:updatePreviousGasParams`;\n handler: TransactionController['updatePreviousGasParams'];\n};\n\n/**\n * Acquires a nonce lock for the given address on the specified network,\n * ensuring that nonces are assigned sequentially without conflicts.\n *\n * @param address - The account address for which to acquire the nonce lock.\n * @param networkClientId - The ID of the network client to use.\n * @returns A promise that resolves to a nonce lock containing the next nonce and a release function.\n */\nexport type TransactionControllerGetNonceLockAction = {\n type: `TransactionController:getNonceLock`;\n handler: TransactionController['getNonceLock'];\n};\n\n/**\n * Updates the editable parameters of a transaction.\n *\n * @param txId - The ID of the transaction to update.\n * @param params - The editable parameters to update.\n * @param params.containerTypes - Container types applied to the parameters.\n * @param params.data - Data to pass with the transaction.\n * @param params.from - Address to send the transaction from.\n * @param params.gas - Maximum number of units of gas to use for the transaction.\n * @param params.gasPrice - Price per gas for legacy transactions.\n * @param params.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.\n * @param params.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.\n * @param params.updateType - Whether to update the transaction type. Defaults to `true`.\n * @param params.to - Address to send the transaction to.\n * @param params.value - Value associated with the transaction.\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateEditableParamsAction = {\n type: `TransactionController:updateEditableParams`;\n handler: TransactionController['updateEditableParams'];\n};\n\n/**\n * Update the isActive state of a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param isActive - The active state.\n */\nexport type TransactionControllerSetTransactionActiveAction = {\n type: `TransactionController:setTransactionActive`;\n handler: TransactionController['setTransactionActive'];\n};\n\n/**\n * Signs and returns the raw transaction data for provided transaction params list.\n *\n * @param listOfTxParams - The list of transaction params to approve.\n * @param opts - Options bag.\n * @param opts.hasNonce - Whether the transactions already have a nonce.\n * @returns The raw transactions.\n */\nexport type TransactionControllerApproveTransactionsWithSameNonceAction = {\n type: `TransactionController:approveTransactionsWithSameNonce`;\n handler: TransactionController['approveTransactionsWithSameNonce'];\n};\n\n/**\n * Update a custodial transaction.\n *\n * @param request - The custodial transaction update request.\n *\n * @returns The updated transaction metadata.\n */\nexport type TransactionControllerUpdateCustodialTransactionAction = {\n type: `TransactionController:updateCustodialTransaction`;\n handler: TransactionController['updateCustodialTransaction'];\n};\n\n/**\n * Search transaction metadata for matching entries.\n *\n * @param opts - Options bag.\n * @param opts.initialList - The transactions to search. Defaults to the current state.\n * @param opts.limit - The maximum number of transactions to return. No limit by default.\n * @param opts.searchCriteria - An object containing values or functions for transaction properties to filter transactions with.\n * @returns An array of transactions matching the provided options.\n */\nexport type TransactionControllerGetTransactionsAction = {\n type: `TransactionController:getTransactions`;\n handler: TransactionController['getTransactions'];\n};\n\n/**\n * Estimates the gas fees for a transaction.\n *\n * @param args - The arguments for estimating gas fees.\n * @param args.transactionParams - The transaction parameters to estimate fees for.\n * @param args.chainId - The chain ID to use. If not provided, the network client ID is used to determine the chain.\n * @param args.networkClientId - The network client ID to use for the estimation.\n * @returns A promise that resolves to the estimated gas fee response.\n */\nexport type TransactionControllerEstimateGasFeeAction = {\n type: `TransactionController:estimateGasFee`;\n handler: TransactionController['estimateGasFee'];\n};\n\n/**\n * Determine the layer 1 gas fee for the given transaction parameters.\n *\n * @param request - The request object.\n * @param request.transactionParams - The transaction parameters to estimate the layer 1 gas fee for.\n * @param request.chainId - The ID of the chain where the transaction will be executed.\n * @param request.networkClientId - The ID of a specific network client to process the transaction.\n * @returns The layer 1 gas fee.\n */\nexport type TransactionControllerGetLayer1GasFeeAction = {\n type: `TransactionController:getLayer1GasFee`;\n handler: TransactionController['getLayer1GasFee'];\n};\n\n/**\n * Removes unapproved transactions from state.\n */\nexport type TransactionControllerClearUnapprovedTransactionsAction = {\n type: `TransactionController:clearUnapprovedTransactions`;\n handler: TransactionController['clearUnapprovedTransactions'];\n};\n\n/**\n * Stop the signing process for a specific transaction.\n * Throws an error causing the transaction status to be set to failed.\n *\n * @param transactionId - The ID of the transaction to stop signing.\n */\nexport type TransactionControllerAbortTransactionSigningAction = {\n type: `TransactionController:abortTransactionSigning`;\n handler: TransactionController['abortTransactionSigning'];\n};\n\n/**\n * Update the transaction data of a single nested transaction within an atomic batch transaction.\n *\n * @param options - The options bag.\n * @param options.transactionId - ID of the atomic batch transaction.\n * @param options.transactionIndex - Index of the nested transaction within the atomic batch transaction.\n * @param options.transactionData - New data to set for the nested transaction.\n * @returns The updated data for the atomic batch transaction.\n */\nexport type TransactionControllerUpdateAtomicBatchDataAction = {\n type: `TransactionController:updateAtomicBatchData`;\n handler: TransactionController['updateAtomicBatchData'];\n};\n\n/**\n * Update the batch transactions associated with a transaction.\n * These transactions will be submitted with the main transaction as a batch.\n *\n * @param request - The request object.\n * @param request.transactionId - The ID of the transaction to update.\n * @param request.batchTransactions - The new batch transactions.\n */\nexport type TransactionControllerUpdateBatchTransactionsAction = {\n type: `TransactionController:updateBatchTransactions`;\n handler: TransactionController['updateBatchTransactions'];\n};\n\n/**\n * Update the selected gas fee token for a transaction.\n *\n * @param transactionId - The ID of the transaction to update.\n * @param contractAddress - The contract address of the selected gas fee token.\n */\nexport type TransactionControllerUpdateSelectedGasFeeTokenAction = {\n type: `TransactionController:updateSelectedGasFeeToken`;\n handler: TransactionController['updateSelectedGasFeeToken'];\n};\n\n/**\n * Update the required transaction IDs for a transaction.\n *\n * @param request - The request object.\n * @param request.transactionId - The ID of the transaction to update.\n * @param request.requiredTransactionIds - The additional required transaction IDs.\n * @param request.append - Whether to append the IDs to any existing values. Defaults to true.\n */\nexport type TransactionControllerUpdateRequiredTransactionIdsAction = {\n type: `TransactionController:updateRequiredTransactionIds`;\n handler: TransactionController['updateRequiredTransactionIds'];\n};\n\n/**\n * Emulate a new transaction.\n *\n * @param transactionId - The transaction ID.\n */\nexport type TransactionControllerEmulateNewTransactionAction = {\n type: `TransactionController:emulateNewTransaction`;\n handler: TransactionController['emulateNewTransaction'];\n};\n\n/**\n * Emulate a transaction update.\n *\n * @param transactionMeta - Transaction metadata.\n */\nexport type TransactionControllerEmulateTransactionUpdateAction = {\n type: `TransactionController:emulateTransactionUpdate`;\n handler: TransactionController['emulateTransactionUpdate'];\n};\n\n/**\n * Retrieve available gas fee tokens for a transaction.\n *\n * @param request - The request object containing transaction details.\n * @returns The list of available gas fee tokens.\n */\nexport type TransactionControllerGetGasFeeTokensAction = {\n type: `TransactionController:getGasFeeTokens`;\n handler: TransactionController['getGasFeeTokens'];\n};\n\n/**\n * Union of all TransactionController action types.\n */\nexport type TransactionControllerMethodActions =\n | TransactionControllerHandleMethodDataAction\n | TransactionControllerAddTransactionBatchAction\n | TransactionControllerIsAtomicBatchSupportedAction\n | TransactionControllerAddTransactionAction\n | TransactionControllerStopTransactionAction\n | TransactionControllerSpeedUpTransactionAction\n | TransactionControllerEstimateGasAction\n | TransactionControllerEstimateGasBatchAction\n | TransactionControllerEstimateGasBufferedAction\n | TransactionControllerUpdateTransactionAction\n | TransactionControllerUpdateTransactionMetadataAction\n | TransactionControllerFailTransactionAction\n | TransactionControllerUpdateSecurityAlertResponseAction\n | TransactionControllerWipeTransactionsAction\n | TransactionControllerConfirmTransactionAction\n | TransactionControllerConfirmExternalTransactionAction\n | TransactionControllerUpdateTransactionGasFeesAction\n | TransactionControllerUpdatePreviousGasParamsAction\n | TransactionControllerGetNonceLockAction\n | TransactionControllerUpdateEditableParamsAction\n | TransactionControllerSetTransactionActiveAction\n | TransactionControllerApproveTransactionsWithSameNonceAction\n | TransactionControllerUpdateCustodialTransactionAction\n | TransactionControllerGetTransactionsAction\n | TransactionControllerEstimateGasFeeAction\n | TransactionControllerGetLayer1GasFeeAction\n | TransactionControllerClearUnapprovedTransactionsAction\n | TransactionControllerAbortTransactionSigningAction\n | TransactionControllerUpdateAtomicBatchDataAction\n | TransactionControllerUpdateBatchTransactionsAction\n | TransactionControllerUpdateSelectedGasFeeTokenAction\n | TransactionControllerUpdateRequiredTransactionIdsAction\n | TransactionControllerEmulateNewTransactionAction\n | TransactionControllerEmulateTransactionUpdateAction\n | TransactionControllerGetGasFeeTokensAction;\n"]}
|
|
@@ -13,7 +13,7 @@ import type { RemoteFeatureFlagControllerGetStateAction } from '@metamask/remote
|
|
|
13
13
|
import type { SentinelApiServiceSimulateTransactionsAction } from '@metamask/sentinel-api-service';
|
|
14
14
|
import type { Hex } from '@metamask/utils';
|
|
15
15
|
import type { TransactionControllerMethodActions } from './TransactionController-method-action-types.js';
|
|
16
|
-
import type { SavedGasFees, SendFlowHistoryEntry, TransactionParams, TransactionMeta, TransactionReceipt, SecurityAlertResponse, GasFeeFlowResponse, GasPriceValue, FeeMarketEIP1559Values, SubmitHistoryEntry, TransactionBatchRequest, TransactionBatchResult, BatchTransactionParams, UpdateCustodialTransactionRequest, PublishBatchHook, GasFeeToken, IsAtomicBatchSupportedResult, IsAtomicBatchSupportedRequest, AfterAddHook, TransactionBatchMeta, BeforeSignHook, GetSimulationConfig, AddTransactionOptions, GetGasFeeTokensRequest } from './types.js';
|
|
16
|
+
import type { SavedGasFees, SendFlowHistoryEntry, TransactionParams, TransactionMeta, TransactionReceipt, SecurityAlertResponse, GasFeeFlowResponse, GasPriceValue, FeeMarketEIP1559Values, SubmitHistoryEntry, TransactionBatchRequest, TransactionBatchResult, BatchTransactionParams, UpdateCustodialTransactionRequest, PublishBatchHook, GasFeeToken, IsAtomicBatchSupportedResult, IsAtomicBatchSupportedRequest, AfterAddHook, TransactionBatchMeta, BeforeSignHook, GetSimulationConfig, AddTransactionOptions, PublishHookResult, GetGasFeeTokensRequest } from './types.js';
|
|
17
17
|
import { TransactionContainerType } from './types.js';
|
|
18
18
|
import type { EstimateGasBatchResult } from './utils/gas.js';
|
|
19
19
|
/**
|
|
@@ -149,9 +149,7 @@ export type TransactionControllerOptions = {
|
|
|
149
149
|
*/
|
|
150
150
|
beforeSign?: BeforeSignHook;
|
|
151
151
|
/** Alternate logic to publish a transaction. */
|
|
152
|
-
publish?: (transactionMeta: TransactionMeta) => Promise<
|
|
153
|
-
transactionHash: string;
|
|
154
|
-
}>;
|
|
152
|
+
publish?: (transactionMeta: TransactionMeta) => Promise<PublishHookResult>;
|
|
155
153
|
publishBatch?: PublishBatchHook;
|
|
156
154
|
};
|
|
157
155
|
};
|
|
@@ -515,6 +513,13 @@ export declare class TransactionController extends BaseController<typeof control
|
|
|
515
513
|
* @returns The transactionMeta.
|
|
516
514
|
*/
|
|
517
515
|
updateTransactionSendFlowHistory(transactionID: string, _currentSendFlowHistoryLength: number, _sendFlowHistoryToAdd: SendFlowHistoryEntry[]): TransactionMeta;
|
|
516
|
+
/**
|
|
517
|
+
* Marks an existing externally handled transaction as confirmed and emits
|
|
518
|
+
* the standard lifecycle events.
|
|
519
|
+
*
|
|
520
|
+
* @param transactionId - Existing transaction ID.
|
|
521
|
+
*/
|
|
522
|
+
confirmTransaction(transactionId: string): void;
|
|
518
523
|
/**
|
|
519
524
|
* Adds external provided transaction to state as confirmed transaction.
|
|
520
525
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionController.d.ts","sourceRoot":"","sources":["../src/TransactionController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,0CAA0C,EAC1C,gCAAgC,EAChC,4CAA4C,EAC7C,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAEV,kCAAkC,EAEnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM3D,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EACV,wCAAwC,EACxC,6CAA6C,EAC7C,kDAAkD,EACnD,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,0CAA0C,EAE3C,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACV,+BAA+B,EAC/B,+CAA+C,EAC/C,sCAAsC,EACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAEV,eAAe,EAEf,iCAAiC,EAEjC,mDAAmD,EACnD,2CAA2C,EAC3C,+CAA+C,EAC/C,+BAA+B,EAC/B,8CAA8C,EAC/C,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,0CAA0C,CAAC;AAO1G,OAAO,KAAK,EAA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AgB3B;IAmCD;;OAEG;IACH,2BAA2B,IAAI,IAAI,CAOlC;IAED;;;;;OAKG;IACH,uBAAuB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAkBnD;IAED;;;;;;;;OAQG;IACG,qBAAqB,CAAC,EAC1B,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,GAAG,CAAC;KACtB,GAAG,OAAO,CAAC,GAAG,CAAC,CAuEf;IAED;;;;;;;OAOG;IACH,uBAAuB,CAAC,EACtB,aAAa,EACb,iBAAiB,GAClB,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;KAC7C,GAAG,IAAI,CAWP;IAED;;;;;OAKG;IACH,yBAAyB,CACvB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,GAAG,GAAG,SAAS,GAC/B,IAAI,CAeN;IAED;;;;;;;OAOG;IACH,4BAA4B,CAAC,EAC3B,aAAa,EACb,sBAAsB,EACtB,MAAM,GACP,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,sBAAsB,EAAE,MAAM,EAAE,CAAC;QACjC,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,GAAG,IAAI,CASP;IAED;;;;OAIG;IACH,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAmBjD;IAED;;;;OAIG;IACH,wBAAwB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CA4B/D;IAqqDD;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,WAAW,EAAE,CAAC,CA2BxB;CACF"}
|
|
1
|
+
{"version":3,"file":"TransactionController.d.ts","sourceRoot":"","sources":["../src/TransactionController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,0CAA0C,EAC1C,gCAAgC,EAChC,4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B,GAAG,OAAO,CAAC,GAAG,CAAC,CAuEf;IAED;;;;;;;OAOG;IACH,uBAAuB,CAAC,EACtB,aAAa,EACb,iBAAiB,GAClB,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;KAC7C,GAAG,IAAI,CAWP;IAED;;;;;OAKG;IACH,yBAAyB,CACvB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,GAAG,GAAG,SAAS,GAC/B,IAAI,CAeN;IAED;;;;;;;OAOG;IACH,4BAA4B,CAAC,EAC3B,aAAa,EACb,sBAAsB,EACtB,MAAM,GACP,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,sBAAsB,EAAE,MAAM,EAAE,CAAC;QACjC,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,GAAG,IAAI,CASP;IAED;;;;OAIG;IACH,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAmBjD;IAED;;;;OAIG;IACH,wBAAwB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CA4B/D;IAutDD;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,WAAW,EAAE,CAAC,CA2BxB;CACF"}
|
|
@@ -121,6 +121,18 @@ function getDefaultTransactionControllerState() {
|
|
|
121
121
|
submitHistory: [],
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Whether an external publication checkpoint shows the transaction may already
|
|
126
|
+
* have crossed the external signing boundary, so it must not be failed at
|
|
127
|
+
* startup.
|
|
128
|
+
*
|
|
129
|
+
* @param transactionMeta - Transaction to check.
|
|
130
|
+
* @returns True if the external publication has started.
|
|
131
|
+
*/
|
|
132
|
+
function hasExternalPublishStarted(transactionMeta) {
|
|
133
|
+
const phase = transactionMeta.metamaskPay?.solanaExecution?.phase;
|
|
134
|
+
return phase !== undefined && phase !== 'ready';
|
|
135
|
+
}
|
|
124
136
|
// === MESSENGER ===
|
|
125
137
|
const MESSENGER_EXPOSED_METHODS = [
|
|
126
138
|
'abortTransactionSigning',
|
|
@@ -129,6 +141,7 @@ const MESSENGER_EXPOSED_METHODS = [
|
|
|
129
141
|
'approveTransactionsWithSameNonce',
|
|
130
142
|
'clearUnapprovedTransactions',
|
|
131
143
|
'confirmExternalTransaction',
|
|
144
|
+
'confirmTransaction',
|
|
132
145
|
'emulateNewTransaction',
|
|
133
146
|
'emulateTransactionUpdate',
|
|
134
147
|
'estimateGas',
|
|
@@ -827,6 +840,26 @@ export class TransactionController extends BaseController {
|
|
|
827
840
|
// Return the transaction unchanged
|
|
828
841
|
return this.#getTransactionOrThrow(transactionID);
|
|
829
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* Marks an existing externally handled transaction as confirmed and emits
|
|
845
|
+
* the standard lifecycle events.
|
|
846
|
+
*
|
|
847
|
+
* @param transactionId - Existing transaction ID.
|
|
848
|
+
*/
|
|
849
|
+
confirmTransaction(transactionId) {
|
|
850
|
+
const transactionMeta = this.#getTransactionOrThrow(transactionId);
|
|
851
|
+
if (transactionMeta.status !== TransactionStatus.submitted ||
|
|
852
|
+
!transactionMeta.isExternalPublish) {
|
|
853
|
+
throw new Error('Only submitted externally published transactions can be confirmed');
|
|
854
|
+
}
|
|
855
|
+
const updatedTransactionMeta = this.#updateTransactionInternal({ transactionId }, (draftTransactionMeta) => {
|
|
856
|
+
draftTransactionMeta.status = TransactionStatus.confirmed;
|
|
857
|
+
});
|
|
858
|
+
this.#onTransactionStatusChange(updatedTransactionMeta);
|
|
859
|
+
this.messenger.publish(`${controllerName}:transactionConfirmed`, updatedTransactionMeta);
|
|
860
|
+
this.messenger.publish(`${controllerName}:transactionFinished`, updatedTransactionMeta);
|
|
861
|
+
this.#internalEvents.emit(`${transactionId}:finished`, updatedTransactionMeta);
|
|
862
|
+
}
|
|
830
863
|
/**
|
|
831
864
|
* Adds external provided transaction to state as confirmed transaction.
|
|
832
865
|
*
|
|
@@ -1544,6 +1577,10 @@ export class TransactionController extends BaseController {
|
|
|
1544
1577
|
#failIncompleteTransactions() {
|
|
1545
1578
|
const incompleteTransactions = this.state.transactions.filter((transaction) => [TransactionStatus.approved, TransactionStatus.signed].includes(transaction.status));
|
|
1546
1579
|
for (const transactionMeta of incompleteTransactions) {
|
|
1580
|
+
if (hasExternalPublishStarted(transactionMeta)) {
|
|
1581
|
+
this.#resumeExternalPublish(transactionMeta);
|
|
1582
|
+
continue;
|
|
1583
|
+
}
|
|
1547
1584
|
const requiredTransactionIds = transactionMeta.requiredTransactionIds ?? [];
|
|
1548
1585
|
const allRequiredConfirmed = requiredTransactionIds.length > 0 &&
|
|
1549
1586
|
requiredTransactionIds.every((id) => {
|
|
@@ -1564,6 +1601,20 @@ export class TransactionController extends BaseController {
|
|
|
1564
1601
|
}
|
|
1565
1602
|
}
|
|
1566
1603
|
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Hands a transaction whose external publication may already have crossed
|
|
1606
|
+
* the signing boundary over to external observation, instead of failing it.
|
|
1607
|
+
*
|
|
1608
|
+
* @param transactionMeta - Transaction left incomplete by a restart.
|
|
1609
|
+
*/
|
|
1610
|
+
#resumeExternalPublish(transactionMeta) {
|
|
1611
|
+
const updatedTransactionMeta = this.#updateTransactionInternal({ transactionId: transactionMeta.id }, (draftTransactionMeta) => {
|
|
1612
|
+
draftTransactionMeta.isExternalPublish = true;
|
|
1613
|
+
draftTransactionMeta.status = TransactionStatus.submitted;
|
|
1614
|
+
draftTransactionMeta.submittedTime ??= new Date().getTime();
|
|
1615
|
+
});
|
|
1616
|
+
this.#onTransactionStatusChange(updatedTransactionMeta);
|
|
1617
|
+
}
|
|
1567
1618
|
async #processApproval(transactionMeta, { actionId, publishHook, requireApproval, shouldShowRequest = true, traceContext, }) {
|
|
1568
1619
|
const { id: transactionId, isStateOnly } = transactionMeta;
|
|
1569
1620
|
if (isStateOnly) {
|
|
@@ -1638,6 +1689,11 @@ export class TransactionController extends BaseController {
|
|
|
1638
1689
|
case TransactionStatus.submitted:
|
|
1639
1690
|
resultCallbacks?.success();
|
|
1640
1691
|
return finalMeta.hash;
|
|
1692
|
+
case TransactionStatus.rejected: {
|
|
1693
|
+
const error = finalMeta.error;
|
|
1694
|
+
resultCallbacks?.error(error);
|
|
1695
|
+
throw error;
|
|
1696
|
+
}
|
|
1641
1697
|
default: {
|
|
1642
1698
|
const internalError = rpcErrors.internal(`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(finalMeta ?? transactionId)}`);
|
|
1643
1699
|
resultCallbacks?.error(internalError);
|
|
@@ -1729,12 +1785,24 @@ export class TransactionController extends BaseController {
|
|
|
1729
1785
|
});
|
|
1730
1786
|
publishHook = extraTransactionsPublishHook.getHook();
|
|
1731
1787
|
}
|
|
1732
|
-
const
|
|
1788
|
+
const publishResult = await publishHook(transactionMeta, rawTx ?? '0x');
|
|
1789
|
+
const { transactionHash: hash } = publishResult;
|
|
1790
|
+
if (publishResult.externallyHandled) {
|
|
1791
|
+
if (publishResult.outcome === 'user-rejected') {
|
|
1792
|
+
this.#rejectTransaction(transactionId);
|
|
1793
|
+
return ApprovalState.NotApproved;
|
|
1794
|
+
}
|
|
1795
|
+
if (publishResult.outcome === 'not-submitted') {
|
|
1796
|
+
this.#failTransaction(transactionMeta, new Error(publishResult.error ?? 'External transaction was not submitted'));
|
|
1797
|
+
return ApprovalState.NotApproved;
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1733
1800
|
// eslint-disable-next-line require-atomic-updates
|
|
1734
1801
|
transactionMeta = this.#updateTransactionInternal({
|
|
1735
1802
|
transactionId,
|
|
1736
1803
|
}, (draftTxMeta) => {
|
|
1737
1804
|
draftTxMeta.hash = hash;
|
|
1805
|
+
draftTxMeta.isExternalPublish = publishResult.externallyHandled;
|
|
1738
1806
|
draftTxMeta.status = TransactionStatus.submitted;
|
|
1739
1807
|
draftTxMeta.submittedTime ??= new Date().getTime();
|
|
1740
1808
|
if (shouldUpdatePreTxBalance) {
|
|
@@ -2520,19 +2588,23 @@ export class TransactionController extends BaseController {
|
|
|
2520
2588
|
this.#internalEvents.emit(`${transactionMeta.id}:finished`, newTransactionMeta);
|
|
2521
2589
|
}
|
|
2522
2590
|
async #defaultPublishHook({ networkClientId, publishHookOverride, traceContext, }, transactionMeta, signedTx) {
|
|
2523
|
-
let
|
|
2591
|
+
let result = {};
|
|
2524
2592
|
await this.#trace({ name: 'Publish', parentContext: traceContext }, async () => {
|
|
2525
2593
|
const publishHook = publishHookOverride ?? this.#publish;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2594
|
+
result = await publishHook(transactionMeta, signedTx);
|
|
2595
|
+
if (!result.externallyHandled && !result.transactionHash) {
|
|
2596
|
+
// eslint-disable-next-line require-atomic-updates
|
|
2597
|
+
result = {
|
|
2598
|
+
transactionHash: await this.#publishTransaction({
|
|
2599
|
+
...transactionMeta,
|
|
2600
|
+
networkClientId,
|
|
2601
|
+
rawTx: signedTx,
|
|
2602
|
+
}),
|
|
2603
|
+
};
|
|
2604
|
+
}
|
|
2533
2605
|
});
|
|
2534
|
-
log('Publish successful',
|
|
2535
|
-
return
|
|
2606
|
+
log('Publish successful', result);
|
|
2607
|
+
return result;
|
|
2536
2608
|
}
|
|
2537
2609
|
async #getGasFeeTokens(transaction) {
|
|
2538
2610
|
const { chainId } = transaction;
|