@metamask/transaction-controller 9.2.0 → 11.0.0

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/EtherscanRemoteTransactionSource.d.ts +2 -2
  3. package/dist/EtherscanRemoteTransactionSource.d.ts.map +1 -1
  4. package/dist/EtherscanRemoteTransactionSource.js +42 -19
  5. package/dist/EtherscanRemoteTransactionSource.js.map +1 -1
  6. package/dist/IncomingTransactionHelper.d.ts +4 -3
  7. package/dist/IncomingTransactionHelper.d.ts.map +1 -1
  8. package/dist/IncomingTransactionHelper.js +40 -25
  9. package/dist/IncomingTransactionHelper.js.map +1 -1
  10. package/dist/TransactionController.d.ts +114 -26
  11. package/dist/TransactionController.d.ts.map +1 -1
  12. package/dist/TransactionController.js +377 -120
  13. package/dist/TransactionController.js.map +1 -1
  14. package/dist/constants.d.ts +2 -0
  15. package/dist/constants.d.ts.map +1 -1
  16. package/dist/constants.js +26 -26
  17. package/dist/constants.js.map +1 -1
  18. package/dist/etherscan.d.ts +5 -6
  19. package/dist/etherscan.d.ts.map +1 -1
  20. package/dist/etherscan.js +7 -14
  21. package/dist/etherscan.js.map +1 -1
  22. package/dist/external-transactions.d.ts +10 -0
  23. package/dist/external-transactions.d.ts.map +1 -0
  24. package/dist/external-transactions.js +36 -0
  25. package/dist/external-transactions.js.map +1 -0
  26. package/dist/history.d.ts +15 -0
  27. package/dist/history.d.ts.map +1 -0
  28. package/dist/history.js +75 -0
  29. package/dist/history.js.map +1 -0
  30. package/dist/logger.d.ts +6 -0
  31. package/dist/logger.d.ts.map +1 -0
  32. package/dist/logger.js +8 -0
  33. package/dist/logger.js.map +1 -0
  34. package/dist/types.d.ts +129 -20
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/types.js +1 -0
  37. package/dist/types.js.map +1 -1
  38. package/dist/utils.d.ts +19 -10
  39. package/dist/utils.d.ts.map +1 -1
  40. package/dist/utils.js +49 -34
  41. package/dist/utils.js.map +1 -1
  42. package/package.json +5 -3
@@ -5,8 +5,9 @@ import type { AddApprovalRequest } from '@metamask/approval-controller';
5
5
  import type { BaseConfig, BaseState, RestrictedControllerMessenger } from '@metamask/base-controller';
6
6
  import { BaseController } from '@metamask/base-controller';
7
7
  import type { BlockTracker, NetworkState, Provider } from '@metamask/network-controller';
8
+ import type { Hex } from '@metamask/utils';
8
9
  import { EventEmitter } from 'events';
9
- import type { Transaction, TransactionMeta, WalletDevice } from './types';
10
+ import type { TransactionParams, TransactionMeta, TransactionReceipt, SendFlowHistoryEntry, WalletDevice } from './types';
10
11
  export declare const HARDFORK = Hardfork.London;
11
12
  /**
12
13
  * @type Result
@@ -17,15 +18,6 @@ export interface Result {
17
18
  result: Promise<string>;
18
19
  transactionMeta: TransactionMeta;
19
20
  }
20
- /**
21
- * @type Fetch All Options
22
- * @property fromBlock - String containing a specific block decimal number
23
- * @property etherscanApiKey - API key to be used to fetch token transactions
24
- */
25
- export interface FetchAllOptions {
26
- fromBlock?: string;
27
- etherscanApiKey?: string;
28
- }
29
21
  export interface GasPriceValue {
30
22
  gasPrice: string;
31
23
  }
@@ -43,7 +35,7 @@ export interface FeeMarketEIP1559Values {
43
35
  */
44
36
  export interface TransactionConfig extends BaseConfig {
45
37
  interval: number;
46
- sign?: (transaction: Transaction, from: string) => Promise<any>;
38
+ sign?: (txParams: TransactionParams, from: string) => Promise<any>;
47
39
  txHistoryLimit: number;
48
40
  }
49
41
  /**
@@ -98,6 +90,8 @@ export declare type TransactionControllerMessenger = RestrictedControllerMesseng
98
90
  */
99
91
  export declare class TransactionController extends BaseController<TransactionConfig, TransactionState> {
100
92
  private ethQuery;
93
+ private readonly isHistoryDisabled;
94
+ private readonly isSendFlowHistoryDisabled;
101
95
  private readonly nonceTracker;
102
96
  private registry;
103
97
  private readonly provider;
@@ -125,27 +119,31 @@ export declare class TransactionController extends BaseController<TransactionCon
125
119
  *
126
120
  * @param options - The controller options.
127
121
  * @param options.blockTracker - The block tracker used to poll for new blocks data.
122
+ * @param options.disableHistory - Whether to disable storing history in transaction metadata.
123
+ * @param options.disableSendFlowHistory - Explicitly disable transaction metadata history.
128
124
  * @param options.getNetworkState - Gets the state of the network controller.
129
125
  * @param options.getSelectedAddress - Gets the address of the currently selected account.
130
126
  * @param options.incomingTransactions - Configuration options for incoming transaction support.
131
- * @param options.incomingTransactions.apiKey - An optional API key to use when fetching remote transaction data.
132
127
  * @param options.incomingTransactions.includeTokenTransfers - Whether or not to include ERC20 token transfers.
133
128
  * @param options.incomingTransactions.isEnabled - Whether or not incoming transaction retrieval is enabled.
134
- * @param options.incomingTransactions.updateTransactions - Whether or not to update local transactions using remote transaction data.
129
+ * @param options.incomingTransactions.queryEntireHistory - Whether to initially query the entire transaction history or only recent blocks.
130
+ * @param options.incomingTransactions.updateTransactions - Whether to update local transactions using remote transaction data.
135
131
  * @param options.messenger - The controller messenger.
136
132
  * @param options.onNetworkStateChange - Allows subscribing to network controller state changes.
137
133
  * @param options.provider - The provider used to create the underlying EthQuery instance.
138
134
  * @param config - Initial options used to configure this controller.
139
135
  * @param state - Initial state to set on this controller.
140
136
  */
141
- constructor({ blockTracker, getNetworkState, getSelectedAddress, incomingTransactions, messenger, onNetworkStateChange, provider, }: {
137
+ constructor({ blockTracker, disableHistory, disableSendFlowHistory, getNetworkState, getSelectedAddress, incomingTransactions, messenger, onNetworkStateChange, provider, }: {
142
138
  blockTracker: BlockTracker;
139
+ disableHistory: boolean;
140
+ disableSendFlowHistory: boolean;
143
141
  getNetworkState: () => NetworkState;
144
142
  getSelectedAddress: () => string;
145
143
  incomingTransactions: {
146
- apiKey?: string;
147
144
  includeTokenTransfers?: boolean;
148
145
  isEnabled?: () => boolean;
146
+ queryEntireHistory?: boolean;
149
147
  updateTransactions?: boolean;
150
148
  };
151
149
  messenger: TransactionControllerMessenger;
@@ -170,19 +168,23 @@ export declare class TransactionController extends BaseController<TransactionCon
170
168
  * unique transaction id will be generated, and gas and gasPrice will be calculated
171
169
  * if not provided. If A `<tx.id>:unapproved` hub event will be emitted once added.
172
170
  *
173
- * @param transaction - The transaction object to add.
171
+ * @param txParams - Standard parameters for an Ethereum transaction.
174
172
  * @param opts - Additional options to control how the transaction is added.
173
+ * @param opts.actionId - Unique ID to prevent duplicate requests.
175
174
  * @param opts.deviceConfirmedOn - An enum to indicate what device confirmed the transaction.
176
175
  * @param opts.origin - The origin of the transaction request, such as a dApp hostname.
177
176
  * @param opts.requireApproval - Whether the transaction requires approval by the user, defaults to true unless explicitly disabled.
178
177
  * @param opts.securityAlertResponse - Response from security validator.
178
+ * @param opts.sendFlowHistory - The sendFlowHistory entries to add.
179
179
  * @returns Object containing a promise resolving to the transaction hash if approved.
180
180
  */
181
- addTransaction(transaction: Transaction, { deviceConfirmedOn, origin, requireApproval, securityAlertResponse, }?: {
181
+ addTransaction(txParams: TransactionParams, { actionId, deviceConfirmedOn, origin, requireApproval, securityAlertResponse, sendFlowHistory, }?: {
182
+ actionId?: string;
182
183
  deviceConfirmedOn?: WalletDevice;
183
184
  origin?: string;
184
185
  requireApproval?: boolean | undefined;
185
186
  securityAlertResponse?: Record<string, unknown>;
187
+ sendFlowHistory?: SendFlowHistoryEntry[];
186
188
  }): Promise<Result>;
187
189
  startIncomingTransactionPolling(): void;
188
190
  stopIncomingTransactionPolling(): void;
@@ -195,23 +197,25 @@ export declare class TransactionController extends BaseController<TransactionCon
195
197
  * Attempts to cancel a transaction based on its ID by setting its status to "rejected"
196
198
  * and emitting a `<tx.id>:finished` hub event.
197
199
  *
198
- * @param transactionID - The ID of the transaction to cancel.
200
+ * @param transactionId - The ID of the transaction to cancel.
199
201
  * @param gasValues - The gas values to use for the cancellation transaction.
200
202
  * @param options - The options for the cancellation transaction.
201
203
  * @param options.estimatedBaseFee - The estimated base fee of the transaction.
202
204
  */
203
- stopTransaction(transactionID: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { estimatedBaseFee }?: {
205
+ stopTransaction(transactionId: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { estimatedBaseFee }?: {
204
206
  estimatedBaseFee?: string;
205
207
  }): Promise<void>;
206
208
  /**
207
209
  * Attempts to speed up a transaction increasing transaction gasPrice by ten percent.
208
210
  *
209
- * @param transactionID - The ID of the transaction to speed up.
210
- * @param gasValues - The gas values to use for the speed up transation.
211
+ * @param transactionId - The ID of the transaction to speed up.
212
+ * @param gasValues - The gas values to use for the speed up transaction.
211
213
  * @param options - The options for the speed up transaction.
214
+ * @param options.actionId - Unique ID to prevent duplicate requests
212
215
  * @param options.estimatedBaseFee - The estimated base fee of the transaction.
213
216
  */
214
- speedUpTransaction(transactionID: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { estimatedBaseFee }?: {
217
+ speedUpTransaction(transactionId: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { actionId, estimatedBaseFee, }?: {
218
+ actionId?: string;
215
219
  estimatedBaseFee?: string;
216
220
  }): Promise<void>;
217
221
  /**
@@ -220,7 +224,7 @@ export declare class TransactionController extends BaseController<TransactionCon
220
224
  * @param transaction - The transaction to estimate gas for.
221
225
  * @returns The gas and gas price.
222
226
  */
223
- estimateGas(transaction: Transaction): Promise<{
227
+ estimateGas(transaction: TransactionParams): Promise<{
224
228
  gas: string;
225
229
  gasPrice: any;
226
230
  estimateGasError?: undefined;
@@ -238,8 +242,9 @@ export declare class TransactionController extends BaseController<TransactionCon
238
242
  * Updates an existing transaction in state.
239
243
  *
240
244
  * @param transactionMeta - The new transaction to store in state.
245
+ * @param note - A note or update reason to include in the transaction history.
241
246
  */
242
- updateTransaction(transactionMeta: TransactionMeta): void;
247
+ updateTransaction(transactionMeta: TransactionMeta, note: string): void;
243
248
  /**
244
249
  * Removes all transactions from state, optionally based on the current network.
245
250
  *
@@ -251,6 +256,54 @@ export declare class TransactionController extends BaseController<TransactionCon
251
256
  wipeTransactions(ignoreNetwork?: boolean, address?: string): void;
252
257
  startIncomingTransactionProcessing(): void;
253
258
  stopIncomingTransactionProcessing(): void;
259
+ /**
260
+ * Adds external provided transaction to state as confirmed transaction.
261
+ *
262
+ * @param transactionMeta - TransactionMeta to add transactions.
263
+ * @param transactionReceipt - TransactionReceipt of the external transaction.
264
+ * @param baseFeePerGas - Base fee per gas of the external transaction.
265
+ */
266
+ confirmExternalTransaction(transactionMeta: TransactionMeta, transactionReceipt: TransactionReceipt, baseFeePerGas: Hex): Promise<void>;
267
+ /**
268
+ * Append new send flow history to a transaction.
269
+ *
270
+ * @param transactionID - The ID of the transaction to update.
271
+ * @param currentSendFlowHistoryLength - The length of the current sendFlowHistory array.
272
+ * @param sendFlowHistoryToAdd - The sendFlowHistory entries to add.
273
+ * @returns The updated transactionMeta.
274
+ */
275
+ updateTransactionSendFlowHistory(transactionID: string, currentSendFlowHistoryLength: number, sendFlowHistoryToAdd: SendFlowHistoryEntry[]): TransactionMeta;
276
+ /**
277
+ * Update the gas values of a transaction.
278
+ *
279
+ * @param transactionId - The ID of the transaction to update.
280
+ * @param gasValues - Gas values to update.
281
+ * @param gasValues.gas - Same as transaction.gasLimit.
282
+ * @param gasValues.gasLimit - Maxmimum number of units of gas to use for this transaction.
283
+ * @param gasValues.gasPrice - Price per gas for legacy transactions.
284
+ * @param gasValues.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.
285
+ * @param gasValues.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.
286
+ * @param gasValues.estimateUsed - Which estimate level was used.
287
+ * @param gasValues.estimateSuggested - Which estimate level that the API suggested.
288
+ * @param gasValues.defaultGasEstimates - The default estimate for gas.
289
+ * @param gasValues.originalGasEstimate - Original estimate for gas.
290
+ * @param gasValues.userEditedGasLimit - The gas limit supplied by user.
291
+ * @param gasValues.userFeeLevel - Estimate level user selected.
292
+ * @returns The updated transactionMeta.
293
+ */
294
+ updateTransactionGasFees(transactionId: string, { defaultGasEstimates, estimateUsed, estimateSuggested, gas, gasLimit, gasPrice, maxPriorityFeePerGas, maxFeePerGas, originalGasEstimate, userEditedGasLimit, userFeeLevel, }: {
295
+ defaultGasEstimates?: string;
296
+ estimateUsed?: string;
297
+ estimateSuggested?: string;
298
+ gas?: string;
299
+ gasLimit?: string;
300
+ gasPrice?: string;
301
+ maxPriorityFeePerGas?: string;
302
+ maxFeePerGas?: string;
303
+ originalGasEstimate?: string;
304
+ userEditedGasLimit?: boolean;
305
+ userFeeLevel?: string;
306
+ }): TransactionMeta;
254
307
  private processApproval;
255
308
  /**
256
309
  * Approves a transaction and updates it's status in state. If this is not a
@@ -258,14 +311,14 @@ export declare class TransactionController extends BaseController<TransactionCon
258
311
  * using the sign configuration property, then published to the blockchain.
259
312
  * A `<tx.id>:finished` hub event is fired after success or failure.
260
313
  *
261
- * @param transactionID - The ID of the transaction to approve.
314
+ * @param transactionId - The ID of the transaction to approve.
262
315
  */
263
316
  private approveTransaction;
264
317
  /**
265
318
  * Cancels a transaction based on its ID by setting its status to "rejected"
266
319
  * and emitting a `<tx.id>:finished` hub event.
267
320
  *
268
- * @param transactionID - The ID of the transaction to cancel.
321
+ * @param transactionId - The ID of the transaction to cancel.
269
322
  */
270
323
  private cancelTransaction;
271
324
  /**
@@ -333,6 +386,41 @@ export declare class TransactionController extends BaseController<TransactionCon
333
386
  private onIncomingTransactions;
334
387
  private onUpdatedLastFetchedBlockNumbers;
335
388
  private generateDappSuggestedGasFees;
389
+ /**
390
+ * Validates and adds external provided transaction to state.
391
+ *
392
+ * @param transactionMeta - Nominated external transaction to be added to state.
393
+ */
394
+ private addExternalTransaction;
395
+ /**
396
+ * Sets other txMeta statuses to dropped if the txMeta that has been confirmed has other transactions
397
+ * in the transactions have the same nonce.
398
+ *
399
+ * @param transactionId - Used to identify original transaction.
400
+ */
401
+ private markNonceDuplicatesDropped;
402
+ /**
403
+ * Method to set transaction status to dropped.
404
+ *
405
+ * @param transactionMeta - TransactionMeta of transaction to be marked as dropped.
406
+ */
407
+ private setTransactionStatusDropped;
408
+ /**
409
+ * Get transaction with provided actionId.
410
+ *
411
+ * @param actionId - Unique ID to prevent duplicate requests
412
+ * @returns the filtered transaction
413
+ */
414
+ private getTransactionWithActionId;
415
+ private waitForTransactionFinished;
416
+ /**
417
+ * Updates the r, s, and v properties of a TransactionMeta object
418
+ * with values from a signed transaction.
419
+ *
420
+ * @param transactionMeta - The TransactionMeta object to update.
421
+ * @param signedTx - The encompassing type for all transaction types containing r, s, and v values.
422
+ */
423
+ private updateTransactionMetaRSV;
336
424
  }
337
425
  export default TransactionController;
338
426
  //# sourceMappingURL=TransactionController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionController.d.ts","sourceRoot":"","sources":["../src/TransactionController.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAA4B,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAc3D,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,YAAY,EAEb,MAAM,SAAS,CAAC;AAgBjB,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW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