@metamask-previews/smart-transactions-controller 26.0.1-preview-6eff555ee → 27.0.0-preview-0a30e47
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 +21 -1
- package/dist/{SmartTransactionsController-method-action-types.d.mts → SmartTransactionsController-method-action-types.d.ts} +2 -2
- package/dist/SmartTransactionsController-method-action-types.d.ts.map +1 -0
- package/dist/{SmartTransactionsController-method-action-types.mjs → SmartTransactionsController-method-action-types.js} +1 -1
- package/dist/SmartTransactionsController-method-action-types.js.map +1 -0
- package/dist/{SmartTransactionsController.d.cts → SmartTransactionsController.d.ts} +22 -22
- package/dist/SmartTransactionsController.d.ts.map +1 -0
- package/dist/SmartTransactionsController.js +725 -0
- package/dist/SmartTransactionsController.js.map +1 -0
- package/dist/{constants.d.cts → constants.d.ts} +1 -1
- package/dist/constants.d.ts.map +1 -0
- package/dist/{constants.mjs → constants.js} +1 -1
- package/dist/constants.js.map +1 -0
- package/dist/featureFlags/{feature-flags.d.mts → feature-flags.d.ts} +4 -4
- package/dist/featureFlags/feature-flags.d.ts.map +1 -0
- package/dist/featureFlags/{feature-flags.mjs → feature-flags.js} +4 -4
- package/dist/featureFlags/feature-flags.js.map +1 -0
- package/dist/featureFlags/{index.d.cts → index.d.ts} +3 -3
- package/dist/featureFlags/index.d.ts.map +1 -0
- package/dist/featureFlags/{index.mjs → index.js} +3 -3
- package/dist/featureFlags/index.js.map +1 -0
- package/dist/featureFlags/{validators.d.mts → validators.d.ts} +2 -2
- package/dist/featureFlags/validators.d.ts.map +1 -0
- package/dist/featureFlags/{validators.mjs → validators.js} +3 -3
- package/dist/featureFlags/validators.js.map +1 -0
- package/dist/{index.d.cts → index.d.ts} +8 -8
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/{selectors.d.cts → selectors.d.ts} +3 -3
- package/dist/selectors.d.ts.map +1 -0
- package/dist/{selectors.mjs → selectors.js} +3 -3
- package/dist/selectors.js.map +1 -0
- package/dist/{types.d.cts → types.d.ts} +5 -5
- package/dist/types.d.ts.map +1 -0
- package/dist/{types.mjs → types.js} +1 -1
- package/dist/types.js.map +1 -0
- package/dist/{utils.d.mts → utils.d.ts} +6 -6
- package/dist/utils.d.ts.map +1 -0
- package/dist/{utils.mjs → utils.js} +15 -22
- package/dist/utils.js.map +1 -0
- package/package.json +23 -27
- package/dist/SmartTransactionsController-method-action-types.cjs +0 -7
- package/dist/SmartTransactionsController-method-action-types.cjs.map +0 -1
- package/dist/SmartTransactionsController-method-action-types.d.cts +0 -94
- package/dist/SmartTransactionsController-method-action-types.d.cts.map +0 -1
- package/dist/SmartTransactionsController-method-action-types.d.mts.map +0 -1
- package/dist/SmartTransactionsController-method-action-types.mjs.map +0 -1
- package/dist/SmartTransactionsController.cjs +0 -729
- package/dist/SmartTransactionsController.cjs.map +0 -1
- package/dist/SmartTransactionsController.d.cts.map +0 -1
- package/dist/SmartTransactionsController.d.mts +0 -169
- package/dist/SmartTransactionsController.d.mts.map +0 -1
- package/dist/SmartTransactionsController.mjs +0 -729
- package/dist/SmartTransactionsController.mjs.map +0 -1
- package/dist/constants.cjs +0 -55
- package/dist/constants.cjs.map +0 -1
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.mts +0 -43
- package/dist/constants.d.mts.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/featureFlags/feature-flags.cjs +0 -121
- package/dist/featureFlags/feature-flags.cjs.map +0 -1
- package/dist/featureFlags/feature-flags.d.cts +0 -76
- package/dist/featureFlags/feature-flags.d.cts.map +0 -1
- package/dist/featureFlags/feature-flags.d.mts.map +0 -1
- package/dist/featureFlags/feature-flags.mjs.map +0 -1
- package/dist/featureFlags/index.cjs +0 -14
- package/dist/featureFlags/index.cjs.map +0 -1
- package/dist/featureFlags/index.d.cts.map +0 -1
- package/dist/featureFlags/index.d.mts +0 -3
- package/dist/featureFlags/index.d.mts.map +0 -1
- package/dist/featureFlags/index.mjs.map +0 -1
- package/dist/featureFlags/validators.cjs +0 -128
- package/dist/featureFlags/validators.cjs.map +0 -1
- package/dist/featureFlags/validators.d.cts +0 -148
- package/dist/featureFlags/validators.d.cts.map +0 -1
- package/dist/featureFlags/validators.d.mts.map +0 -1
- package/dist/featureFlags/validators.mjs.map +0 -1
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -8
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -7
- package/dist/index.mjs.map +0 -1
- package/dist/selectors.cjs +0 -66
- package/dist/selectors.cjs.map +0 -1
- package/dist/selectors.d.cts.map +0 -1
- package/dist/selectors.d.mts +0 -181
- package/dist/selectors.d.mts.map +0 -1
- package/dist/selectors.mjs.map +0 -1
- package/dist/types.cjs +0 -94
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts +0 -192
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs.map +0 -1
- package/dist/utils.cjs +0 -251
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -69
- package/dist/utils.d.cts.map +0 -1
- package/dist/utils.d.mts.map +0 -1
- package/dist/utils.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [27.0.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** Drop CommonJS support ([#9536](https://github.com/MetaMask/core/pull/9536))
|
|
15
|
+
- This package is now ESM-only, but can still be used in CommonJS projects via `require(esm)` in modern Node.js versions (22+), or dynamic imports in older Node.js versions.
|
|
16
|
+
- **BREAKING:** Bump minimum Node.js version to 22 ([#9976](https://github.com/MetaMask/core/pull/9976))
|
|
17
|
+
- **BREAKING:** Bump TypeScript target to ES2022 ([#10019](https://github.com/MetaMask/core/pull/10019))
|
|
18
|
+
- This package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
|
|
19
|
+
- Bump `@metamask/base-controller` from `^9.1.0` to `^10.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
20
|
+
- Bump `@metamask/controller-utils` from `^12.3.0` to `^13.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
21
|
+
- Bump `@metamask/eth-json-rpc-provider` from `^6.0.1` to `^7.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
22
|
+
- Bump `@metamask/messenger` from `^2.0.0` to `^3.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
23
|
+
- Bump `@metamask/network-controller` from `^36.0.0` to `^37.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
24
|
+
- Bump `@metamask/polling-controller` from `^16.0.9` to `^17.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
25
|
+
- Bump `@metamask/profile-sync-controller` from `^30.0.0` to `^31.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
26
|
+
- Bump `@metamask/remote-feature-flag-controller` from `^6.1.1` to `^7.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
27
|
+
- Bump `@metamask/transaction-controller` from `^69.8.1` to `^70.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
28
|
+
|
|
10
29
|
## [26.0.1]
|
|
11
30
|
|
|
12
31
|
### Changed
|
|
@@ -102,7 +121,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
102
121
|
- Bump `@metamask/transaction-controller` from `^68.0.0` to `^68.0.1` ([#9177](https://github.com/MetaMask/core/pull/9177))
|
|
103
122
|
- Drop unused dependencies `@ethereumjs/tx`, `@ethereumjs/util`, and `fast-json-patch` ([#9139](https://github.com/MetaMask/core/pull/9139))
|
|
104
123
|
|
|
105
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@
|
|
124
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@27.0.0...HEAD
|
|
125
|
+
[27.0.0]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@26.0.1...@metamask/smart-transactions-controller@27.0.0
|
|
106
126
|
[26.0.1]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@26.0.0...@metamask/smart-transactions-controller@26.0.1
|
|
107
127
|
[26.0.0]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@25.1.1...@metamask/smart-transactions-controller@26.0.0
|
|
108
128
|
[25.1.1]: https://github.com/MetaMask/core/compare/@metamask/smart-transactions-controller@25.1.0...@metamask/smart-transactions-controller@25.1.1
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file is auto generated.
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
*/
|
|
5
|
-
import type { SmartTransactionsController } from
|
|
5
|
+
import type { SmartTransactionsController } from './SmartTransactionsController.js';
|
|
6
6
|
export type SmartTransactionsControllerCheckPollAction = {
|
|
7
7
|
type: `SmartTransactionsController:checkPoll`;
|
|
8
8
|
handler: SmartTransactionsController['checkPoll'];
|
|
@@ -91,4 +91,4 @@ export type SmartTransactionsControllerWipeSmartTransactionsAction = {
|
|
|
91
91
|
* Union of all SmartTransactionsController action types.
|
|
92
92
|
*/
|
|
93
93
|
export type SmartTransactionsControllerMethodActions = SmartTransactionsControllerCheckPollAction | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction | SmartTransactionsControllerPollAction | SmartTransactionsControllerStopAction | SmartTransactionsControllerSetOptInStateAction | SmartTransactionsControllerTrackStxStatusChangeAction | SmartTransactionsControllerIsNewSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionsAction | SmartTransactionsControllerFetchSmartTransactionsStatusAction | SmartTransactionsControllerClearFeesAction | SmartTransactionsControllerGetFeesAction | SmartTransactionsControllerSubmitSignedTransactionsAction | SmartTransactionsControllerCancelSmartTransactionAction | SmartTransactionsControllerFetchLivenessAction | SmartTransactionsControllerSetStatusRefreshIntervalAction | SmartTransactionsControllerGetTransactionsAction | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction | SmartTransactionsControllerWipeSmartTransactionsAction;
|
|
94
|
-
//# sourceMappingURL=SmartTransactionsController-method-action-types.d.
|
|
94
|
+
//# sourceMappingURL=SmartTransactionsController-method-action-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.d.ts","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,sEAAsE,GAChF;IACE,IAAI,EAAE,mEAAmE,CAAC;IAC1E,OAAO,EAAE,2BAA2B,CAAC,uCAAuC,CAAC,CAAC;CAC/E,CAAC;AAEJ,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,kCAAkC,CAAC;IACzC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,kCAAkC,CAAC;IACzC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,qDAAqD,GAAG;I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,OAAO,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,2BAA2B,CAAC,0BAA0B,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,6CAA6C,CAAC;IACpD,OAAO,EAAE,2BAA2B,CAAC,iBAAiB,CAAC,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,iEAAiE,GAC3E;IACE,IAAI,EAAE,8DAA8D,CAAC;IACrE,OAAO,EAAE,2BAA2B,CAAC,kCAAkC,CAAC,CAAC;CAC1E,CAAC;AAEJ,MAAM,MAAM,sDAAsD,GAAG;IACnE,IAAI,EAAE,mDAAmD,CAAC;IAC1D,OAAO,EAAE,2BAA2B,CAAC,uBAAuB,CAAC,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,0CAA0C,GAC1C,sEAAsE,GACtE,qCAAqC,GACrC,qCAAqC,GACrC,8CAA8C,GAC9C,qDAAqD,GACrD,sDAAsD,GACtD,uDAAuD,GACvD,wDAAwD,GACxD,6DAA6D,GAC7D,0CAA0C,GAC1C,wCAAwC,GACxC,yDAAyD,GACzD,uDAAuD,GACvD,8CAA8C,GAC9C,yDAAyD,GACzD,gDAAgD,GAChD,iEAAiE,GACjE,sDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.js","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { SmartTransactionsController } from './SmartTransactionsController.js';\n\nexport type SmartTransactionsControllerCheckPollAction = {\n type: `SmartTransactionsController:checkPoll`;\n handler: SmartTransactionsController['checkPoll'];\n};\n\nexport type SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction =\n {\n type: `SmartTransactionsController:initializeSmartTransactionsForChainId`;\n handler: SmartTransactionsController['initializeSmartTransactionsForChainId'];\n };\n\nexport type SmartTransactionsControllerPollAction = {\n type: `SmartTransactionsController:poll`;\n handler: SmartTransactionsController['poll'];\n};\n\nexport type SmartTransactionsControllerStopAction = {\n type: `SmartTransactionsController:stop`;\n handler: SmartTransactionsController['stop'];\n};\n\nexport type SmartTransactionsControllerSetOptInStateAction = {\n type: `SmartTransactionsController:setOptInState`;\n handler: SmartTransactionsController['setOptInState'];\n};\n\nexport type SmartTransactionsControllerTrackStxStatusChangeAction = {\n type: `SmartTransactionsController:trackStxStatusChange`;\n handler: SmartTransactionsController['trackStxStatusChange'];\n};\n\nexport type SmartTransactionsControllerIsNewSmartTransactionAction = {\n type: `SmartTransactionsController:isNewSmartTransaction`;\n handler: SmartTransactionsController['isNewSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionAction = {\n type: `SmartTransactionsController:updateSmartTransaction`;\n handler: SmartTransactionsController['updateSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionsAction = {\n type: `SmartTransactionsController:updateSmartTransactions`;\n handler: SmartTransactionsController['updateSmartTransactions'];\n};\n\nexport type SmartTransactionsControllerFetchSmartTransactionsStatusAction = {\n type: `SmartTransactionsController:fetchSmartTransactionsStatus`;\n handler: SmartTransactionsController['fetchSmartTransactionsStatus'];\n};\n\nexport type SmartTransactionsControllerClearFeesAction = {\n type: `SmartTransactionsController:clearFees`;\n handler: SmartTransactionsController['clearFees'];\n};\n\nexport type SmartTransactionsControllerGetFeesAction = {\n type: `SmartTransactionsController:getFees`;\n handler: SmartTransactionsController['getFees'];\n};\n\nexport type SmartTransactionsControllerSubmitSignedTransactionsAction = {\n type: `SmartTransactionsController:submitSignedTransactions`;\n handler: SmartTransactionsController['submitSignedTransactions'];\n};\n\nexport type SmartTransactionsControllerCancelSmartTransactionAction = {\n type: `SmartTransactionsController:cancelSmartTransaction`;\n handler: SmartTransactionsController['cancelSmartTransaction'];\n};\n\n/**\n * Fetches the liveness status of Smart Transactions for a given chain.\n *\n * @param options - The options object.\n * @param options.chainId - The chain ID to fetch liveness for. Preferred over networkClientId.\n * @param options.networkClientId - The network client ID to derive chain ID from.\n * @returns A promise that resolves to the liveness status.\n */\nexport type SmartTransactionsControllerFetchLivenessAction = {\n type: `SmartTransactionsController:fetchLiveness`;\n handler: SmartTransactionsController['fetchLiveness'];\n};\n\nexport type SmartTransactionsControllerSetStatusRefreshIntervalAction = {\n type: `SmartTransactionsController:setStatusRefreshInterval`;\n handler: SmartTransactionsController['setStatusRefreshInterval'];\n};\n\nexport type SmartTransactionsControllerGetTransactionsAction = {\n type: `SmartTransactionsController:getTransactions`;\n handler: SmartTransactionsController['getTransactions'];\n};\n\nexport type SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction =\n {\n type: `SmartTransactionsController:getSmartTransactionByMinedTxHash`;\n handler: SmartTransactionsController['getSmartTransactionByMinedTxHash'];\n };\n\nexport type SmartTransactionsControllerWipeSmartTransactionsAction = {\n type: `SmartTransactionsController:wipeSmartTransactions`;\n handler: SmartTransactionsController['wipeSmartTransactions'];\n};\n\n/**\n * Union of all SmartTransactionsController action types.\n */\nexport type SmartTransactionsControllerMethodActions =\n | SmartTransactionsControllerCheckPollAction\n | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction\n | SmartTransactionsControllerPollAction\n | SmartTransactionsControllerStopAction\n | SmartTransactionsControllerSetOptInStateAction\n | SmartTransactionsControllerTrackStxStatusChangeAction\n | SmartTransactionsControllerIsNewSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionsAction\n | SmartTransactionsControllerFetchSmartTransactionsStatusAction\n | SmartTransactionsControllerClearFeesAction\n | SmartTransactionsControllerGetFeesAction\n | SmartTransactionsControllerSubmitSignedTransactionsAction\n | SmartTransactionsControllerCancelSmartTransactionAction\n | SmartTransactionsControllerFetchLivenessAction\n | SmartTransactionsControllerSetStatusRefreshIntervalAction\n | SmartTransactionsControllerGetTransactionsAction\n | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction\n | SmartTransactionsControllerWipeSmartTransactionsAction;\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { ControllerGetStateAction, ControllerStateChangeEvent } from
|
|
2
|
-
import type { TraceCallback } from
|
|
3
|
-
import type { Messenger } from
|
|
4
|
-
import type { NetworkClientId, NetworkControllerGetNetworkClientByIdAction, NetworkControllerGetStateAction, NetworkControllerStateChangeEvent } from
|
|
5
|
-
import type { AuthenticationController } from
|
|
6
|
-
import type { RemoteFeatureFlagControllerGetStateAction, RemoteFeatureFlagControllerStateChangeEvent } from
|
|
7
|
-
import type { TransactionControllerFailTransactionAction, TransactionControllerGetNonceLockAction, TransactionControllerGetTransactionsAction, TransactionMeta, TransactionParams } from
|
|
8
|
-
import type { Hex } from
|
|
9
|
-
import { MetaMetricsEventCategory, MetaMetricsEventName } from
|
|
10
|
-
import type { SmartTransactionsControllerMethodActions } from
|
|
11
|
-
import type { Fees, IndividualTxFees, SignedCanceledTransaction, SignedTransaction, SignedTransactionWithMetadata, SmartTransaction, SmartTransactionsStatus, UnsignedTransaction, MetaMetricsProps, FeatureFlags, ClientId } from
|
|
12
|
-
import { SmartTransactionStatuses } from
|
|
13
|
-
import { getSmartTransactionMetricsProperties, getSmartTransactionMetricsSensitiveProperties } from
|
|
1
|
+
import type { ControllerGetStateAction, ControllerStateChangeEvent } from '@metamask/base-controller';
|
|
2
|
+
import type { TraceCallback } from '@metamask/controller-utils';
|
|
3
|
+
import type { Messenger } from '@metamask/messenger';
|
|
4
|
+
import type { NetworkClientId, NetworkControllerGetNetworkClientByIdAction, NetworkControllerGetStateAction, NetworkControllerStateChangeEvent } from '@metamask/network-controller';
|
|
5
|
+
import type { AuthenticationController } from '@metamask/profile-sync-controller';
|
|
6
|
+
import type { RemoteFeatureFlagControllerGetStateAction, RemoteFeatureFlagControllerStateChangeEvent } from '@metamask/remote-feature-flag-controller';
|
|
7
|
+
import type { TransactionControllerFailTransactionAction, TransactionControllerGetNonceLockAction, TransactionControllerGetTransactionsAction, TransactionMeta, TransactionParams } from '@metamask/transaction-controller';
|
|
8
|
+
import type { Hex } from '@metamask/utils';
|
|
9
|
+
import { MetaMetricsEventCategory, MetaMetricsEventName } from './constants.js';
|
|
10
|
+
import type { SmartTransactionsControllerMethodActions } from './SmartTransactionsController-method-action-types.js';
|
|
11
|
+
import type { Fees, IndividualTxFees, SignedCanceledTransaction, SignedTransaction, SignedTransactionWithMetadata, SmartTransaction, SmartTransactionsStatus, UnsignedTransaction, MetaMetricsProps, FeatureFlags, ClientId } from './types.js';
|
|
12
|
+
import { SmartTransactionStatuses } from './types.js';
|
|
13
|
+
import { getSmartTransactionMetricsProperties, getSmartTransactionMetricsSensitiveProperties } from './utils.js';
|
|
14
14
|
export declare const DEFAULT_INTERVAL: number;
|
|
15
15
|
/**
|
|
16
16
|
* The name of the {@link SmartTransactionsController}
|
|
@@ -89,18 +89,18 @@ export type SmartTransactionsControllerPollingInput = {
|
|
|
89
89
|
chainIds: Hex[];
|
|
90
90
|
};
|
|
91
91
|
declare const SmartTransactionsController_base: (abstract new (...args: any[]) => {
|
|
92
|
-
readonly
|
|
93
|
-
"__#6@#intervalLength": number | undefined;
|
|
94
|
-
setIntervalLength(intervalLength: number): void;
|
|
95
|
-
getIntervalLength(): number | undefined;
|
|
96
|
-
_startPolling(input: SmartTransactionsControllerPollingInput): void;
|
|
97
|
-
_stopPollingByPollingTokenSetId(key: string): void;
|
|
98
|
-
readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
|
|
99
|
-
readonly "__#3@#callbacks": Map<string, Set<(input: SmartTransactionsControllerPollingInput) => void>>;
|
|
92
|
+
readonly _callbacks: Map<string, Set<(input: SmartTransactionsControllerPollingInput) => void>>;
|
|
100
93
|
_executePoll(input: SmartTransactionsControllerPollingInput): Promise<void>;
|
|
101
94
|
startPolling(input: SmartTransactionsControllerPollingInput): string;
|
|
102
95
|
stopAllPolling(): void;
|
|
103
96
|
stopPollingByPollingToken(pollingToken: string): void;
|
|
97
|
+
readonly _intervalIds: Record<import("@metamask/polling-controller").PollingTokenSetId, NodeJS.Timeout>;
|
|
98
|
+
_intervalLength: number | undefined;
|
|
99
|
+
setIntervalLength(intervalLength: number): void;
|
|
100
|
+
getIntervalLength(): number | undefined;
|
|
101
|
+
_startPolling(input: SmartTransactionsControllerPollingInput): void;
|
|
102
|
+
_stopPollingByPollingTokenSetId(key: import("@metamask/polling-controller").PollingTokenSetId): void;
|
|
103
|
+
readonly _pollingTokenSets: Map<import("@metamask/polling-controller").PollingTokenSetId, Set<string>>;
|
|
104
104
|
onPollingComplete(input: SmartTransactionsControllerPollingInput, callback: (input: SmartTransactionsControllerPollingInput) => void): void;
|
|
105
105
|
}) & typeof import("@metamask/base-controller").BaseController;
|
|
106
106
|
export declare class SmartTransactionsController extends SmartTransactionsController_base<typeof controllerName, SmartTransactionsControllerState, SmartTransactionsControllerMessenger> {
|
|
@@ -166,4 +166,4 @@ export declare class SmartTransactionsController extends SmartTransactionsContro
|
|
|
166
166
|
}): void;
|
|
167
167
|
}
|
|
168
168
|
export {};
|
|
169
|
-
//# sourceMappingURL=SmartTransactionsController.d.
|
|
169
|
+
//# sourceMappingURL=SmartTransactionsController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController.d.ts","sourceRoot":"","sources":["../src/SmartTransactionsController.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,eAAe,EACf,2CAA2C,E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