@metamask-previews/transaction-controller 35.0.0-preview-b0e8a44 → 35.0.0-preview-16e6df4

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 CHANGED
@@ -7,17 +7,10 @@ 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 `DISPLAYED_TRANSACTION_HISTORY_PATHS` constant, representing the transaction history paths that may be used for display ([#4555](https://github.com/MetaMask/core/pull/4555))
13
- - This was exported so that it might be used to ensure display logic and internal history logic remains in-sync.
14
- - Any paths listed here will have their timestamps preserved. Unlisted paths may be compressed by the controller to minimize history size, losing the timestamp.
15
- - Add `MAX_TRANSACTION_HISTORY_LENGTH` constant, representing the expected maximum size of the `history` property for a given transaction ([#4555](https://github.com/MetaMask/core/pull/4555))
16
- - Note that this is not strictly enforced, the length may exceed this number of all entries are "displayed" entries, but we expect this to be extremely improbable in practice.
17
-
18
- ### Fixed
10
+ ### Changed
19
11
 
20
- - Prevent transaction history from growing endlessly in size ([#4555](https://github.com/MetaMask/core/pull/4555))
12
+ - Remove `@metamask/accounts-controller`, `@metamask/approval-controller`, `@metamask/gas-fee-controller`, and `@metamask/network-controller` dependencies [#4556](https://github.com/MetaMask/core/pull/4556)
13
+ - These were listed under `peerDependencies` already, so they were redundant as dependencies.
21
14
 
22
15
  ## [35.0.0]
23
16
 
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkQKS2F7VGjs = require('./chunk-QKS2F7VG.js');
7
+ var _chunkPHSSZPCUjs = require('./chunk-PHSSZPCU.js');
8
8
  require('./chunk-PRUNMTRD.js');
9
9
  require('./chunk-NNCUD3QF.js');
10
10
  require('./chunk-KT6UAKBB.js');
@@ -13,7 +13,7 @@ require('./chunk-RXIUMVA5.js');
13
13
  require('./chunk-ULD4JC3Q.js');
14
14
  require('./chunk-7LXE4KHV.js');
15
15
  require('./chunk-V72C4MCR.js');
16
- require('./chunk-TIE3CPF7.js');
16
+ require('./chunk-QP75SWIQ.js');
17
17
  require('./chunk-NYKRCWBG.js');
18
18
  require('./chunk-WR5F34OW.js');
19
19
  require('./chunk-YVCX6Z75.js');
@@ -41,5 +41,5 @@ require('./chunk-Z4BLTVTB.js');
41
41
 
42
42
 
43
43
 
44
- exports.ApprovalState = _chunkQKS2F7VGjs.ApprovalState; exports.CANCEL_RATE = _chunkQKS2F7VGjs.CANCEL_RATE; exports.HARDFORK = _chunkQKS2F7VGjs.HARDFORK; exports.SPEED_UP_RATE = _chunkQKS2F7VGjs.SPEED_UP_RATE; exports.TransactionController = _chunkQKS2F7VGjs.TransactionController;
44
+ exports.ApprovalState = _chunkPHSSZPCUjs.ApprovalState; exports.CANCEL_RATE = _chunkPHSSZPCUjs.CANCEL_RATE; exports.HARDFORK = _chunkPHSSZPCUjs.HARDFORK; exports.SPEED_UP_RATE = _chunkPHSSZPCUjs.SPEED_UP_RATE; exports.TransactionController = _chunkPHSSZPCUjs.TransactionController;
45
45
  //# sourceMappingURL=TransactionController.js.map
@@ -4,7 +4,7 @@ import {
4
4
  HARDFORK,
5
5
  SPEED_UP_RATE,
6
6
  TransactionController
7
- } from "./chunk-5JWPMHSZ.mjs";
7
+ } from "./chunk-J2OIT7FN.mjs";
8
8
  import "./chunk-6DDVVUJC.mjs";
9
9
  import "./chunk-3AVRGHUO.mjs";
10
10
  import "./chunk-K4KOSAGM.mjs";
@@ -13,7 +13,7 @@ import "./chunk-5ZEJT5SN.mjs";
13
13
  import "./chunk-6B5BEO3R.mjs";
14
14
  import "./chunk-FRKQ3Z2L.mjs";
15
15
  import "./chunk-5G6OHAXI.mjs";
16
- import "./chunk-SMC5Q6ZH.mjs";
16
+ import "./chunk-XGRAHX6T.mjs";
17
17
  import "./chunk-VEVVBHP3.mjs";
18
18
  import "./chunk-Z4GV3YQQ.mjs";
19
19
  import "./chunk-FG74Z3F5.mjs";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  addInitialHistorySnapshot,
28
28
  updateTransactionHistory
29
- } from "./chunk-SMC5Q6ZH.mjs";
29
+ } from "./chunk-XGRAHX6T.mjs";
30
30
  import {
31
31
  OptimismLayer1GasFeeFlow
32
32
  } from "./chunk-VEVVBHP3.mjs";
@@ -2563,4 +2563,4 @@ export {
2563
2563
  ApprovalState,
2564
2564
  TransactionController
2565
2565
  };
2566
- //# sourceMappingURL=chunk-5JWPMHSZ.mjs.map
2566
+ //# sourceMappingURL=chunk-J2OIT7FN.mjs.map
@@ -26,7 +26,7 @@ var _chunkV72C4MCRjs = require('./chunk-V72C4MCR.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkTIE3CPF7js = require('./chunk-TIE3CPF7.js');
29
+ var _chunkQP75SWIQjs = require('./chunk-QP75SWIQ.js');
30
30
 
31
31
 
32
32
  var _chunkNYKRCWBGjs = require('./chunk-NYKRCWBG.js');
@@ -514,7 +514,7 @@ var TransactionController = class extends _basecontroller.BaseController {
514
514
  addedTransactionMeta.sendFlowHistory = sendFlowHistory ?? [];
515
515
  }
516
516
  if (!this.isHistoryDisabled) {
517
- addedTransactionMeta = _chunkTIE3CPF7js.addInitialHistorySnapshot.call(void 0, addedTransactionMeta);
517
+ addedTransactionMeta = _chunkQP75SWIQjs.addInitialHistorySnapshot.call(void 0, addedTransactionMeta);
518
518
  }
519
519
  addedTransactionMeta = _chunkQH2H4W3Njs.updateSwapsTransaction.call(void 0,
520
520
  addedTransactionMeta,
@@ -1998,7 +1998,7 @@ var TransactionController = class extends _basecontroller.BaseController {
1998
1998
  confirmedTxs,
1999
1999
  pendingTxs
2000
2000
  );
2001
- const newTransactionMeta = (transactionMeta.history ?? []).length === 0 && !this.isHistoryDisabled ? _chunkTIE3CPF7js.addInitialHistorySnapshot.call(void 0, transactionMeta) : transactionMeta;
2001
+ const newTransactionMeta = (transactionMeta.history ?? []).length === 0 && !this.isHistoryDisabled ? _chunkQP75SWIQjs.addInitialHistorySnapshot.call(void 0, transactionMeta) : transactionMeta;
2002
2002
  this.update((state) => {
2003
2003
  state.transactions = this.trimTransactionsForState([
2004
2004
  ...state.transactions,
@@ -2406,7 +2406,7 @@ updateTransactionInternal_fn = function({
2406
2406
  updatedTransactionParams = _chunkZ4BLTVTBjs.__privateMethod.call(void 0, this, _checkIfTransactionParamsUpdated, checkIfTransactionParamsUpdated_fn).call(this, transactionMeta2);
2407
2407
  const shouldSkipHistory = this.isHistoryDisabled || skipHistory;
2408
2408
  if (!shouldSkipHistory) {
2409
- transactionMeta2 = _chunkTIE3CPF7js.updateTransactionHistory.call(void 0,
2409
+ transactionMeta2 = _chunkQP75SWIQjs.updateTransactionHistory.call(void 0,
2410
2410
  transactionMeta2,
2411
2411
  note ?? "Transaction updated"
2412
2412
  );
@@ -2563,4 +2563,4 @@ getSelectedAccount_fn = function() {
2563
2563
 
2564
2564
 
2565
2565
  exports.HARDFORK = HARDFORK; exports.CANCEL_RATE = CANCEL_RATE; exports.SPEED_UP_RATE = SPEED_UP_RATE; exports.ApprovalState = ApprovalState; exports.TransactionController = TransactionController;
2566
- //# sourceMappingURL=chunk-QKS2F7VG.js.map
2566
+ //# sourceMappingURL=chunk-PHSSZPCU.js.map
@@ -0,0 +1,53 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/utils/history.ts
2
+ var _fastjsonpatch = require('fast-json-patch'); var _fastjsonpatch2 = _interopRequireDefault(_fastjsonpatch);
3
+ var _lodash = require('lodash');
4
+ function addInitialHistorySnapshot(transactionMeta) {
5
+ const snapshot = snapshotFromTransactionMeta(transactionMeta);
6
+ return _lodash.merge.call(void 0, {}, transactionMeta, { history: [snapshot] });
7
+ }
8
+ function updateTransactionHistory(transactionMeta, note) {
9
+ if (!transactionMeta.history) {
10
+ return transactionMeta;
11
+ }
12
+ const currentState = snapshotFromTransactionMeta(transactionMeta);
13
+ const previousState = replayHistory(transactionMeta.history);
14
+ const historyEntry = generateHistoryEntry(previousState, currentState, note);
15
+ if (historyEntry.length > 0) {
16
+ return _lodash.merge.call(void 0, {}, transactionMeta, {
17
+ history: [...transactionMeta.history, historyEntry]
18
+ });
19
+ }
20
+ return transactionMeta;
21
+ }
22
+ function generateHistoryEntry(previousState, currentState, note) {
23
+ const historyOperationsEntry = _fastjsonpatch2.default.compare(
24
+ previousState,
25
+ currentState
26
+ );
27
+ if (historyOperationsEntry[0]) {
28
+ if (note) {
29
+ historyOperationsEntry[0].note = note;
30
+ }
31
+ historyOperationsEntry[0].timestamp = Date.now();
32
+ }
33
+ return historyOperationsEntry;
34
+ }
35
+ function replayHistory(transactionHistory) {
36
+ const shortHistory = _lodash.cloneDeep.call(void 0, transactionHistory);
37
+ return shortHistory.reduce(
38
+ // TODO: Replace `any` with type
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
+ (val, entry) => _fastjsonpatch2.default.applyPatch(val, entry).newDocument
41
+ );
42
+ }
43
+ function snapshotFromTransactionMeta(transactionMeta) {
44
+ const snapshot = { ...transactionMeta };
45
+ delete snapshot.history;
46
+ return _lodash.cloneDeep.call(void 0, snapshot);
47
+ }
48
+
49
+
50
+
51
+
52
+ exports.addInitialHistorySnapshot = addInitialHistorySnapshot; exports.updateTransactionHistory = updateTransactionHistory;
53
+ //# sourceMappingURL=chunk-QP75SWIQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/history.ts"],"names":[],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,WAAW,aAAa;AAe1B,SAAS,0BACd,iBACiB;AACjB,QAAM,WAAW,4BAA4B,eAAe;AAC5D,SAAO,MAAM,CAAC,GAAG,iBAAiB,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC;AAC3D;AAWO,SAAS,yBACd,iBACA,MACiB;AACjB,MAAI,CAAC,gBAAgB,SAAS;AAC5B,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,4BAA4B,eAAe;AAChE,QAAM,gBAAgB,cAAc,gBAAgB,OAAO;AAC3D,QAAM,eAAe,qBAAqB,eAAe,cAAc,IAAI;AAE3E,MAAI,aAAa,SAAS,GAAG;AAC3B,WAAO,MAAM,CAAC,GAAG,iBAAiB;AAAA,MAChC,SAAS,CAAC,GAAG,gBAAgB,SAAS,YAAY;AAAA,IACpD,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAUA,SAAS,qBAGP,eACA,cACA,MACyB;AACzB,QAAM,yBAAyB,WAAW;AAAA,IACxC;AAAA,IACA;AAAA,EACF;AAEA,MAAI,uBAAuB,CAAC,GAAG;AAC7B,QAAI,MAAM;AACR,6BAAuB,CAAC,EAAE,OAAO;AAAA,IACnC;AACA,2BAAuB,CAAC,EAAE,YAAY,KAAK,IAAI;AAAA,EACjD;AACA,SAAO;AACT;AAQA,SAAS,cACP,oBACiB;AACjB,QAAM,eAAe,UAAU,kBAAkB;AACjD,SAAO,aAAa;AAAA;AAAA;AAAA,IAGlB,CAAC,KAAK,UAAe,WAAW,WAAW,KAAK,KAAK,EAAE;AAAA,EACzD;AACF;AAQA,SAAS,4BACP,iBACiB;AACjB,QAAM,WAAW,EAAE,GAAG,gBAAgB;AACtC,SAAO,SAAS;AAChB,SAAO,UAAU,QAAQ;AAC3B","sourcesContent":["import jsonDiffer from 'fast-json-patch';\nimport { cloneDeep, merge } from 'lodash';\n\nimport type {\n TransactionHistory,\n TransactionHistoryEntry,\n TransactionMeta,\n} from '../types';\n\n/**\n * Build a new version of the provided transaction with an initial history\n * entry, which is just a snapshot of the transaction.\n *\n * @param transactionMeta - TransactionMeta to add initial history snapshot to.\n * @returns A copy of `transactionMeta` with a new `history` property.\n */\nexport function addInitialHistorySnapshot(\n transactionMeta: TransactionMeta,\n): TransactionMeta {\n const snapshot = snapshotFromTransactionMeta(transactionMeta);\n return merge({}, transactionMeta, { history: [snapshot] });\n}\n\n/**\n * Builds a new version of the transaction with a new history entry if\n * it has a `history` property, or just returns the transaction.\n *\n * @param transactionMeta - TransactionMeta to add history entry to.\n * @param note - Note to add to history entry.\n * @returns A copy of `transactionMeta` with a new `history` entry if it has an\n * existing non-empty `history` array.\n */\nexport function updateTransactionHistory(\n transactionMeta: TransactionMeta,\n note: string,\n): TransactionMeta {\n if (!transactionMeta.history) {\n return transactionMeta;\n }\n\n const currentState = snapshotFromTransactionMeta(transactionMeta);\n const previousState = replayHistory(transactionMeta.history);\n const historyEntry = generateHistoryEntry(previousState, currentState, note);\n\n if (historyEntry.length > 0) {\n return merge({}, transactionMeta, {\n history: [...transactionMeta.history, historyEntry],\n });\n }\n return transactionMeta;\n}\n\n/**\n * Generates a history entry from the previous and new transaction metadata.\n *\n * @param previousState - The previous transaction metadata.\n * @param currentState - The new transaction metadata.\n * @param note - A note for the transaction metada update.\n * @returns An array of history operation.\n */\nfunction generateHistoryEntry(\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n previousState: any,\n currentState: TransactionMeta,\n note: string,\n): TransactionHistoryEntry {\n const historyOperationsEntry = jsonDiffer.compare(\n previousState,\n currentState,\n ) as TransactionHistoryEntry;\n // Add a note to the first operation, since it breaks if we append it to the entry\n if (historyOperationsEntry[0]) {\n if (note) {\n historyOperationsEntry[0].note = note;\n }\n historyOperationsEntry[0].timestamp = Date.now();\n }\n return historyOperationsEntry;\n}\n\n/**\n * Recovers previous transactionMeta from passed history array.\n *\n * @param transactionHistory - The transaction metadata to replay.\n * @returns The transaction metadata.\n */\nfunction replayHistory(\n transactionHistory: TransactionHistory,\n): TransactionMeta {\n const shortHistory = cloneDeep(transactionHistory);\n return shortHistory.reduce(\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (val, entry: any) => jsonDiffer.applyPatch(val, entry).newDocument,\n ) as TransactionMeta;\n}\n\n/**\n * Clone the transaction meta data without the history property.\n *\n * @param transactionMeta - The transaction metadata to snapshot.\n * @returns A deep clone of transaction metadata without history property.\n */\nfunction snapshotFromTransactionMeta(\n transactionMeta: TransactionMeta,\n): TransactionMeta {\n const snapshot = { ...transactionMeta };\n delete snapshot.history;\n return cloneDeep(snapshot);\n}\n"]}
@@ -0,0 +1,53 @@
1
+ // src/utils/history.ts
2
+ import jsonDiffer from "fast-json-patch";
3
+ import { cloneDeep, merge } from "lodash";
4
+ function addInitialHistorySnapshot(transactionMeta) {
5
+ const snapshot = snapshotFromTransactionMeta(transactionMeta);
6
+ return merge({}, transactionMeta, { history: [snapshot] });
7
+ }
8
+ function updateTransactionHistory(transactionMeta, note) {
9
+ if (!transactionMeta.history) {
10
+ return transactionMeta;
11
+ }
12
+ const currentState = snapshotFromTransactionMeta(transactionMeta);
13
+ const previousState = replayHistory(transactionMeta.history);
14
+ const historyEntry = generateHistoryEntry(previousState, currentState, note);
15
+ if (historyEntry.length > 0) {
16
+ return merge({}, transactionMeta, {
17
+ history: [...transactionMeta.history, historyEntry]
18
+ });
19
+ }
20
+ return transactionMeta;
21
+ }
22
+ function generateHistoryEntry(previousState, currentState, note) {
23
+ const historyOperationsEntry = jsonDiffer.compare(
24
+ previousState,
25
+ currentState
26
+ );
27
+ if (historyOperationsEntry[0]) {
28
+ if (note) {
29
+ historyOperationsEntry[0].note = note;
30
+ }
31
+ historyOperationsEntry[0].timestamp = Date.now();
32
+ }
33
+ return historyOperationsEntry;
34
+ }
35
+ function replayHistory(transactionHistory) {
36
+ const shortHistory = cloneDeep(transactionHistory);
37
+ return shortHistory.reduce(
38
+ // TODO: Replace `any` with type
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
+ (val, entry) => jsonDiffer.applyPatch(val, entry).newDocument
41
+ );
42
+ }
43
+ function snapshotFromTransactionMeta(transactionMeta) {
44
+ const snapshot = { ...transactionMeta };
45
+ delete snapshot.history;
46
+ return cloneDeep(snapshot);
47
+ }
48
+
49
+ export {
50
+ addInitialHistorySnapshot,
51
+ updateTransactionHistory
52
+ };
53
+ //# sourceMappingURL=chunk-XGRAHX6T.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/history.ts"],"sourcesContent":["import jsonDiffer from 'fast-json-patch';\nimport { cloneDeep, merge } from 'lodash';\n\nimport type {\n TransactionHistory,\n TransactionHistoryEntry,\n TransactionMeta,\n} from '../types';\n\n/**\n * Build a new version of the provided transaction with an initial history\n * entry, which is just a snapshot of the transaction.\n *\n * @param transactionMeta - TransactionMeta to add initial history snapshot to.\n * @returns A copy of `transactionMeta` with a new `history` property.\n */\nexport function addInitialHistorySnapshot(\n transactionMeta: TransactionMeta,\n): TransactionMeta {\n const snapshot = snapshotFromTransactionMeta(transactionMeta);\n return merge({}, transactionMeta, { history: [snapshot] });\n}\n\n/**\n * Builds a new version of the transaction with a new history entry if\n * it has a `history` property, or just returns the transaction.\n *\n * @param transactionMeta - TransactionMeta to add history entry to.\n * @param note - Note to add to history entry.\n * @returns A copy of `transactionMeta` with a new `history` entry if it has an\n * existing non-empty `history` array.\n */\nexport function updateTransactionHistory(\n transactionMeta: TransactionMeta,\n note: string,\n): TransactionMeta {\n if (!transactionMeta.history) {\n return transactionMeta;\n }\n\n const currentState = snapshotFromTransactionMeta(transactionMeta);\n const previousState = replayHistory(transactionMeta.history);\n const historyEntry = generateHistoryEntry(previousState, currentState, note);\n\n if (historyEntry.length > 0) {\n return merge({}, transactionMeta, {\n history: [...transactionMeta.history, historyEntry],\n });\n }\n return transactionMeta;\n}\n\n/**\n * Generates a history entry from the previous and new transaction metadata.\n *\n * @param previousState - The previous transaction metadata.\n * @param currentState - The new transaction metadata.\n * @param note - A note for the transaction metada update.\n * @returns An array of history operation.\n */\nfunction generateHistoryEntry(\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n previousState: any,\n currentState: TransactionMeta,\n note: string,\n): TransactionHistoryEntry {\n const historyOperationsEntry = jsonDiffer.compare(\n previousState,\n currentState,\n ) as TransactionHistoryEntry;\n // Add a note to the first operation, since it breaks if we append it to the entry\n if (historyOperationsEntry[0]) {\n if (note) {\n historyOperationsEntry[0].note = note;\n }\n historyOperationsEntry[0].timestamp = Date.now();\n }\n return historyOperationsEntry;\n}\n\n/**\n * Recovers previous transactionMeta from passed history array.\n *\n * @param transactionHistory - The transaction metadata to replay.\n * @returns The transaction metadata.\n */\nfunction replayHistory(\n transactionHistory: TransactionHistory,\n): TransactionMeta {\n const shortHistory = cloneDeep(transactionHistory);\n return shortHistory.reduce(\n // TODO: Replace `any` with type\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (val, entry: any) => jsonDiffer.applyPatch(val, entry).newDocument,\n ) as TransactionMeta;\n}\n\n/**\n * Clone the transaction meta data without the history property.\n *\n * @param transactionMeta - The transaction metadata to snapshot.\n * @returns A deep clone of transaction metadata without history property.\n */\nfunction snapshotFromTransactionMeta(\n transactionMeta: TransactionMeta,\n): TransactionMeta {\n const snapshot = { ...transactionMeta };\n delete snapshot.history;\n return cloneDeep(snapshot);\n}\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,WAAW,aAAa;AAe1B,SAAS,0BACd,iBACiB;AACjB,QAAM,WAAW,4BAA4B,eAAe;AAC5D,SAAO,MAAM,CAAC,GAAG,iBAAiB,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC;AAC3D;AAWO,SAAS,yBACd,iBACA,MACiB;AACjB,MAAI,CAAC,gBAAgB,SAAS;AAC5B,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,4BAA4B,eAAe;AAChE,QAAM,gBAAgB,cAAc,gBAAgB,OAAO;AAC3D,QAAM,eAAe,qBAAqB,eAAe,cAAc,IAAI;AAE3E,MAAI,aAAa,SAAS,GAAG;AAC3B,WAAO,MAAM,CAAC,GAAG,iBAAiB;AAAA,MAChC,SAAS,CAAC,GAAG,gBAAgB,SAAS,YAAY;AAAA,IACpD,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAUA,SAAS,qBAGP,eACA,cACA,MACyB;AACzB,QAAM,yBAAyB,WAAW;AAAA,IACxC;AAAA,IACA;AAAA,EACF;AAEA,MAAI,uBAAuB,CAAC,GAAG;AAC7B,QAAI,MAAM;AACR,6BAAuB,CAAC,EAAE,OAAO;AAAA,IACnC;AACA,2BAAuB,CAAC,EAAE,YAAY,KAAK,IAAI;AAAA,EACjD;AACA,SAAO;AACT;AAQA,SAAS,cACP,oBACiB;AACjB,QAAM,eAAe,UAAU,kBAAkB;AACjD,SAAO,aAAa;AAAA;AAAA;AAAA,IAGlB,CAAC,KAAK,UAAe,WAAW,WAAW,KAAK,KAAK,EAAE;AAAA,EACzD;AACF;AAQA,SAAS,4BACP,iBACiB;AACjB,QAAM,WAAW,EAAE,GAAG,gBAAgB;AACtC,SAAO,SAAS;AAChB,SAAO,UAAU,QAAQ;AAC3B;","names":[]}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQKS2F7VGjs = require('./chunk-QKS2F7VG.js');
5
+ var _chunkPHSSZPCUjs = require('./chunk-PHSSZPCU.js');
6
6
  require('./chunk-PRUNMTRD.js');
7
7
  require('./chunk-NNCUD3QF.js');
8
8
  require('./chunk-KT6UAKBB.js');
@@ -13,10 +13,7 @@ require('./chunk-RXIUMVA5.js');
13
13
  require('./chunk-ULD4JC3Q.js');
14
14
  require('./chunk-7LXE4KHV.js');
15
15
  require('./chunk-V72C4MCR.js');
16
-
17
-
18
-
19
- var _chunkTIE3CPF7js = require('./chunk-TIE3CPF7.js');
16
+ require('./chunk-QP75SWIQ.js');
20
17
  require('./chunk-NYKRCWBG.js');
21
18
  require('./chunk-WR5F34OW.js');
22
19
  require('./chunk-YVCX6Z75.js');
@@ -70,7 +67,5 @@ require('./chunk-Z4BLTVTB.js');
70
67
 
71
68
 
72
69
 
73
-
74
-
75
- exports.CANCEL_RATE = _chunkQKS2F7VGjs.CANCEL_RATE; exports.DISPLAYED_TRANSACTION_HISTORY_PATHS = _chunkTIE3CPF7js.DISPLAYED_TRANSACTION_HISTORY_PATHS; exports.GasFeeEstimateLevel = _chunkAYTU4HU5js.GasFeeEstimateLevel; exports.GasFeeEstimateType = _chunkAYTU4HU5js.GasFeeEstimateType; exports.HARDFORK = _chunkQKS2F7VGjs.HARDFORK; exports.MAX_TRANSACTION_HISTORY_LENGTH = _chunkTIE3CPF7js.MAX_TRANSACTION_HISTORY_LENGTH; exports.SimulationErrorCode = _chunkAYTU4HU5js.SimulationErrorCode; exports.SimulationTokenStandard = _chunkAYTU4HU5js.SimulationTokenStandard; exports.TransactionController = _chunkQKS2F7VGjs.TransactionController; exports.TransactionEnvelopeType = _chunkAYTU4HU5js.TransactionEnvelopeType; exports.TransactionStatus = _chunkAYTU4HU5js.TransactionStatus; exports.TransactionType = _chunkAYTU4HU5js.TransactionType; exports.UserFeeLevel = _chunkAYTU4HU5js.UserFeeLevel; exports.WalletDevice = _chunkAYTU4HU5js.WalletDevice; exports.determineTransactionType = _chunkSD6CWFDFjs.determineTransactionType; exports.isEIP1559Transaction = _chunkOZ6UB42Cjs.isEIP1559Transaction; exports.mergeGasFeeEstimates = _chunk76FONEDAjs.mergeGasFeeEstimates; exports.normalizeTransactionParams = _chunkOZ6UB42Cjs.normalizeTransactionParams;
70
+ exports.CANCEL_RATE = _chunkPHSSZPCUjs.CANCEL_RATE; exports.GasFeeEstimateLevel = _chunkAYTU4HU5js.GasFeeEstimateLevel; exports.GasFeeEstimateType = _chunkAYTU4HU5js.GasFeeEstimateType; exports.HARDFORK = _chunkPHSSZPCUjs.HARDFORK; exports.SimulationErrorCode = _chunkAYTU4HU5js.SimulationErrorCode; exports.SimulationTokenStandard = _chunkAYTU4HU5js.SimulationTokenStandard; exports.TransactionController = _chunkPHSSZPCUjs.TransactionController; exports.TransactionEnvelopeType = _chunkAYTU4HU5js.TransactionEnvelopeType; exports.TransactionStatus = _chunkAYTU4HU5js.TransactionStatus; exports.TransactionType = _chunkAYTU4HU5js.TransactionType; exports.UserFeeLevel = _chunkAYTU4HU5js.UserFeeLevel; exports.WalletDevice = _chunkAYTU4HU5js.WalletDevice; exports.determineTransactionType = _chunkSD6CWFDFjs.determineTransactionType; exports.isEIP1559Transaction = _chunkOZ6UB42Cjs.isEIP1559Transaction; exports.mergeGasFeeEstimates = _chunk76FONEDAjs.mergeGasFeeEstimates; exports.normalizeTransactionParams = _chunkOZ6UB42Cjs.normalizeTransactionParams;
76
71
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CANCEL_RATE,
3
3
  HARDFORK,
4
4
  TransactionController
5
- } from "./chunk-5JWPMHSZ.mjs";
5
+ } from "./chunk-J2OIT7FN.mjs";
6
6
  import "./chunk-6DDVVUJC.mjs";
7
7
  import "./chunk-3AVRGHUO.mjs";
8
8
  import "./chunk-K4KOSAGM.mjs";
@@ -13,10 +13,7 @@ import "./chunk-5ZEJT5SN.mjs";
13
13
  import "./chunk-6B5BEO3R.mjs";
14
14
  import "./chunk-FRKQ3Z2L.mjs";
15
15
  import "./chunk-5G6OHAXI.mjs";
16
- import {
17
- DISPLAYED_TRANSACTION_HISTORY_PATHS,
18
- MAX_TRANSACTION_HISTORY_LENGTH
19
- } from "./chunk-SMC5Q6ZH.mjs";
16
+ import "./chunk-XGRAHX6T.mjs";
20
17
  import "./chunk-VEVVBHP3.mjs";
21
18
  import "./chunk-Z4GV3YQQ.mjs";
22
19
  import "./chunk-FG74Z3F5.mjs";
@@ -55,11 +52,9 @@ import {
55
52
  import "./chunk-XUI43LEZ.mjs";
56
53
  export {
57
54
  CANCEL_RATE,
58
- DISPLAYED_TRANSACTION_HISTORY_PATHS,
59
55
  GasFeeEstimateLevel,
60
56
  GasFeeEstimateType,
61
57
  HARDFORK,
62
- MAX_TRANSACTION_HISTORY_LENGTH,
63
58
  SimulationErrorCode,
64
59
  SimulationTokenStandard,
65
60
  TransactionController,