@metamask-previews/transaction-controller 10.0.0-preview.2f7e793 → 10.0.0-preview.76bc0ab

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 (37) hide show
  1. package/dist/EtherscanRemoteTransactionSource.d.ts +3 -3
  2. package/dist/EtherscanRemoteTransactionSource.d.ts.map +1 -1
  3. package/dist/EtherscanRemoteTransactionSource.js +47 -24
  4. package/dist/EtherscanRemoteTransactionSource.js.map +1 -1
  5. package/dist/IncomingTransactionHelper.d.ts.map +1 -1
  6. package/dist/IncomingTransactionHelper.js +24 -18
  7. package/dist/IncomingTransactionHelper.js.map +1 -1
  8. package/dist/TransactionController.d.ts +71 -25
  9. package/dist/TransactionController.d.ts.map +1 -1
  10. package/dist/TransactionController.js +217 -106
  11. package/dist/TransactionController.js.map +1 -1
  12. package/dist/constants.d.ts +0 -19
  13. package/dist/constants.d.ts.map +1 -1
  14. package/dist/constants.js +0 -19
  15. package/dist/constants.js.map +1 -1
  16. package/dist/etherscan.d.ts +5 -6
  17. package/dist/etherscan.d.ts.map +1 -1
  18. package/dist/etherscan.js +6 -17
  19. package/dist/etherscan.js.map +1 -1
  20. package/dist/external-transactions.js +5 -5
  21. package/dist/external-transactions.js.map +1 -1
  22. package/dist/history.d.ts +15 -0
  23. package/dist/history.d.ts.map +1 -0
  24. package/dist/history.js +75 -0
  25. package/dist/history.js.map +1 -0
  26. package/dist/logger.d.ts +6 -0
  27. package/dist/logger.d.ts.map +1 -0
  28. package/dist/logger.js +8 -0
  29. package/dist/logger.js.map +1 -0
  30. package/dist/types.d.ts +108 -23
  31. package/dist/types.d.ts.map +1 -1
  32. package/dist/types.js.map +1 -1
  33. package/dist/utils.d.ts +16 -18
  34. package/dist/utils.d.ts.map +1 -1
  35. package/dist/utils.js +44 -48
  36. package/dist/utils.js.map +1 -1
  37. package/package.json +3 -1
@@ -7,7 +7,7 @@ import { BaseController } from '@metamask/base-controller';
7
7
  import type { BlockTracker, NetworkState, Provider } from '@metamask/network-controller';
8
8
  import type { Hex } from '@metamask/utils';
9
9
  import { EventEmitter } from 'events';
10
- import type { Transaction, TransactionMeta, TransactionReceipt, WalletDevice } from './types';
10
+ import type { TransactionParams, TransactionMeta, TransactionReceipt, SendFlowHistoryEntry, WalletDevice } from './types';
11
11
  export declare const HARDFORK = Hardfork.London;
12
12
  /**
13
13
  * @type Result
@@ -18,15 +18,6 @@ export interface Result {
18
18
  result: Promise<string>;
19
19
  transactionMeta: TransactionMeta;
20
20
  }
21
- /**
22
- * @type Fetch All Options
23
- * @property fromBlock - String containing a specific block decimal number
24
- * @property etherscanApiKey - API key to be used to fetch token transactions
25
- */
26
- export interface FetchAllOptions {
27
- fromBlock?: string;
28
- etherscanApiKey?: string;
29
- }
30
21
  export interface GasPriceValue {
31
22
  gasPrice: string;
32
23
  }
@@ -44,7 +35,7 @@ export interface FeeMarketEIP1559Values {
44
35
  */
45
36
  export interface TransactionConfig extends BaseConfig {
46
37
  interval: number;
47
- sign?: (transaction: Transaction, from: string) => Promise<any>;
38
+ sign?: (txParams: TransactionParams, from: string) => Promise<any>;
48
39
  txHistoryLimit: number;
49
40
  }
50
41
  /**
@@ -99,6 +90,8 @@ export declare type TransactionControllerMessenger = RestrictedControllerMesseng
99
90
  */
100
91
  export declare class TransactionController extends BaseController<TransactionConfig, TransactionState> {
101
92
  private ethQuery;
93
+ private readonly isHistoryDisabled;
94
+ private readonly isSendFlowHistoryDisabled;
102
95
  private readonly nonceTracker;
103
96
  private registry;
104
97
  private readonly provider;
@@ -126,10 +119,11 @@ export declare class TransactionController extends BaseController<TransactionCon
126
119
  *
127
120
  * @param options - The controller options.
128
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.
129
124
  * @param options.getNetworkState - Gets the state of the network controller.
130
125
  * @param options.getSelectedAddress - Gets the address of the currently selected account.
131
126
  * @param options.incomingTransactions - Configuration options for incoming transaction support.
132
- * @param options.incomingTransactions.apiKey - An optional API key to use when fetching remote transaction data.
133
127
  * @param options.incomingTransactions.includeTokenTransfers - Whether or not to include ERC20 token transfers.
134
128
  * @param options.incomingTransactions.isEnabled - Whether or not incoming transaction retrieval is enabled.
135
129
  * @param options.incomingTransactions.queryEntireHistory - Whether to initially query the entire transaction history or only recent blocks.
@@ -140,12 +134,13 @@ export declare class TransactionController extends BaseController<TransactionCon
140
134
  * @param config - Initial options used to configure this controller.
141
135
  * @param state - Initial state to set on this controller.
142
136
  */
143
- constructor({ blockTracker, getNetworkState, getSelectedAddress, incomingTransactions, messenger, onNetworkStateChange, provider, }: {
137
+ constructor({ blockTracker, disableHistory, disableSendFlowHistory, getNetworkState, getSelectedAddress, incomingTransactions, messenger, onNetworkStateChange, provider, }: {
144
138
  blockTracker: BlockTracker;
139
+ disableHistory: boolean;
140
+ disableSendFlowHistory: boolean;
145
141
  getNetworkState: () => NetworkState;
146
142
  getSelectedAddress: () => string;
147
143
  incomingTransactions: {
148
- apiKey?: string;
149
144
  includeTokenTransfers?: boolean;
150
145
  isEnabled?: () => boolean;
151
146
  queryEntireHistory?: boolean;
@@ -173,21 +168,23 @@ export declare class TransactionController extends BaseController<TransactionCon
173
168
  * unique transaction id will be generated, and gas and gasPrice will be calculated
174
169
  * if not provided. If A `<tx.id>:unapproved` hub event will be emitted once added.
175
170
  *
176
- * @param transaction - The transaction object to add.
171
+ * @param txParams - Standard parameters for an Ethereum transaction.
177
172
  * @param opts - Additional options to control how the transaction is added.
178
173
  * @param opts.actionId - Unique ID to prevent duplicate requests.
179
174
  * @param opts.deviceConfirmedOn - An enum to indicate what device confirmed the transaction.
180
175
  * @param opts.origin - The origin of the transaction request, such as a dApp hostname.
181
176
  * @param opts.requireApproval - Whether the transaction requires approval by the user, defaults to true unless explicitly disabled.
182
177
  * @param opts.securityAlertResponse - Response from security validator.
178
+ * @param opts.sendFlowHistory - The sendFlowHistory entries to add.
183
179
  * @returns Object containing a promise resolving to the transaction hash if approved.
184
180
  */
185
- addTransaction(transaction: Transaction, { actionId, deviceConfirmedOn, origin, requireApproval, securityAlertResponse, }?: {
181
+ addTransaction(txParams: TransactionParams, { actionId, deviceConfirmedOn, origin, requireApproval, securityAlertResponse, sendFlowHistory, }?: {
186
182
  actionId?: string;
187
183
  deviceConfirmedOn?: WalletDevice;
188
184
  origin?: string;
189
185
  requireApproval?: boolean | undefined;
190
186
  securityAlertResponse?: Record<string, unknown>;
187
+ sendFlowHistory?: SendFlowHistoryEntry[];
191
188
  }): Promise<Result>;
192
189
  startIncomingTransactionPolling(): void;
193
190
  stopIncomingTransactionPolling(): void;
@@ -200,24 +197,24 @@ export declare class TransactionController extends BaseController<TransactionCon
200
197
  * Attempts to cancel a transaction based on its ID by setting its status to "rejected"
201
198
  * and emitting a `<tx.id>:finished` hub event.
202
199
  *
203
- * @param transactionID - The ID of the transaction to cancel.
200
+ * @param transactionId - The ID of the transaction to cancel.
204
201
  * @param gasValues - The gas values to use for the cancellation transaction.
205
202
  * @param options - The options for the cancellation transaction.
206
203
  * @param options.estimatedBaseFee - The estimated base fee of the transaction.
207
204
  */
208
- stopTransaction(transactionID: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { estimatedBaseFee }?: {
205
+ stopTransaction(transactionId: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { estimatedBaseFee }?: {
209
206
  estimatedBaseFee?: string;
210
207
  }): Promise<void>;
211
208
  /**
212
209
  * Attempts to speed up a transaction increasing transaction gasPrice by ten percent.
213
210
  *
214
- * @param transactionID - The ID of the transaction to speed up.
211
+ * @param transactionId - The ID of the transaction to speed up.
215
212
  * @param gasValues - The gas values to use for the speed up transaction.
216
213
  * @param options - The options for the speed up transaction.
217
214
  * @param options.actionId - Unique ID to prevent duplicate requests
218
215
  * @param options.estimatedBaseFee - The estimated base fee of the transaction.
219
216
  */
220
- speedUpTransaction(transactionID: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { actionId, estimatedBaseFee, }?: {
217
+ speedUpTransaction(transactionId: string, gasValues?: GasPriceValue | FeeMarketEIP1559Values, { actionId, estimatedBaseFee, }?: {
221
218
  actionId?: string;
222
219
  estimatedBaseFee?: string;
223
220
  }): Promise<void>;
@@ -227,7 +224,7 @@ export declare class TransactionController extends BaseController<TransactionCon
227
224
  * @param transaction - The transaction to estimate gas for.
228
225
  * @returns The gas and gas price.
229
226
  */
230
- estimateGas(transaction: Transaction): Promise<{
227
+ estimateGas(transaction: TransactionParams): Promise<{
231
228
  gas: string;
232
229
  gasPrice: any;
233
230
  estimateGasError?: undefined;
@@ -245,8 +242,9 @@ export declare class TransactionController extends BaseController<TransactionCon
245
242
  * Updates an existing transaction in state.
246
243
  *
247
244
  * @param transactionMeta - The new transaction to store in state.
245
+ * @param note - A note or update reason to include in the transaction history.
248
246
  */
249
- updateTransaction(transactionMeta: TransactionMeta): void;
247
+ updateTransaction(transactionMeta: TransactionMeta, note: string): void;
250
248
  /**
251
249
  * Removes all transactions from state, optionally based on the current network.
252
250
  *
@@ -266,6 +264,46 @@ export declare class TransactionController extends BaseController<TransactionCon
266
264
  * @param baseFeePerGas - Base fee per gas of the external transaction.
267
265
  */
268
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;
269
307
  private processApproval;
270
308
  /**
271
309
  * Approves a transaction and updates it's status in state. If this is not a
@@ -273,14 +311,14 @@ export declare class TransactionController extends BaseController<TransactionCon
273
311
  * using the sign configuration property, then published to the blockchain.
274
312
  * A `<tx.id>:finished` hub event is fired after success or failure.
275
313
  *
276
- * @param transactionID - The ID of the transaction to approve.
314
+ * @param transactionId - The ID of the transaction to approve.
277
315
  */
278
316
  private approveTransaction;
279
317
  /**
280
318
  * Cancels a transaction based on its ID by setting its status to "rejected"
281
319
  * and emitting a `<tx.id>:finished` hub event.
282
320
  *
283
- * @param transactionID - The ID of the transaction to cancel.
321
+ * @param transactionId - The ID of the transaction to cancel.
284
322
  */
285
323
  private cancelTransaction;
286
324
  /**
@@ -333,7 +371,7 @@ export declare class TransactionController extends BaseController<TransactionCon
333
371
  private getTransaction;
334
372
  private getApprovalId;
335
373
  private isTransactionCompleted;
336
- private getChainAndNetworkId;
374
+ private getChainId;
337
375
  private prepareUnsignedEthTx;
338
376
  /**
339
377
  * `@ethereumjs/tx` uses `@ethereumjs/common` as a configuration tool for
@@ -375,6 +413,14 @@ export declare class TransactionController extends BaseController<TransactionCon
375
413
  */
376
414
  private getTransactionWithActionId;
377
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;
378
424
  }
379
425
  export default TransactionController;
380
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;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAOtC,OAAO,KAAK,EAEV,WAAW,EACX,eAA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sBAAsB;IA4BpC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IA8BlC;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAKnC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;YAMpB,0BAA0B;CASzC;AAED,eAAe,qBAAqB,CAAC"}
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;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAStC,OAAO,KAAK,EAEV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACb,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,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAkB,SAAQ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