@metamask-previews/user-operation-controller 41.2.9-preview-8bfa290fb → 42.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.
Files changed (159) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/dist/{BlockTrackerPollingController.d.mts → BlockTrackerPollingController.d.ts} +11 -11
  3. package/dist/BlockTrackerPollingController.d.ts.map +1 -0
  4. package/dist/{BlockTrackerPollingController.mjs → BlockTrackerPollingController.js} +17 -19
  5. package/dist/BlockTrackerPollingController.js.map +1 -0
  6. package/dist/{UserOperationController-method-action-types.d.cts → UserOperationController-method-action-types.d.ts} +2 -2
  7. package/dist/UserOperationController-method-action-types.d.ts.map +1 -0
  8. package/dist/{UserOperationController-method-action-types.mjs → UserOperationController-method-action-types.js} +1 -1
  9. package/dist/UserOperationController-method-action-types.js.map +1 -0
  10. package/dist/{UserOperationController.d.cts → UserOperationController.d.ts} +13 -15
  11. package/dist/UserOperationController.d.ts.map +1 -0
  12. package/dist/UserOperationController.js +495 -0
  13. package/dist/UserOperationController.js.map +1 -0
  14. package/dist/{constants.d.cts → constants.d.ts} +1 -1
  15. package/dist/constants.d.ts.map +1 -0
  16. package/dist/{constants.mjs → constants.js} +1 -1
  17. package/dist/constants.js.map +1 -0
  18. package/dist/helpers/{Bundler.d.cts → Bundler.d.ts} +2 -2
  19. package/dist/helpers/Bundler.d.ts.map +1 -0
  20. package/dist/helpers/Bundler.js +74 -0
  21. package/dist/helpers/Bundler.js.map +1 -0
  22. package/dist/helpers/{PendingUserOperationTracker.d.cts → PendingUserOperationTracker.d.ts} +10 -12
  23. package/dist/helpers/PendingUserOperationTracker.d.ts.map +1 -0
  24. package/dist/helpers/PendingUserOperationTracker.js +115 -0
  25. package/dist/helpers/PendingUserOperationTracker.js.map +1 -0
  26. package/dist/helpers/{SnapSmartContractAccount.d.cts → SnapSmartContractAccount.d.ts} +3 -3
  27. package/dist/helpers/SnapSmartContractAccount.d.ts.map +1 -0
  28. package/dist/helpers/SnapSmartContractAccount.js +47 -0
  29. package/dist/helpers/SnapSmartContractAccount.js.map +1 -0
  30. package/dist/index.d.ts +4 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +3 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/logger.d.ts +4 -0
  35. package/dist/logger.d.ts.map +1 -0
  36. package/dist/{logger.mjs → logger.js} +2 -2
  37. package/dist/logger.js.map +1 -0
  38. package/dist/{types.d.mts → types.d.ts} +3 -3
  39. package/dist/types.d.ts.map +1 -0
  40. package/dist/{types.mjs → types.js} +1 -1
  41. package/dist/types.js.map +1 -0
  42. package/dist/utils/{chain-id.d.cts → chain-id.d.ts} +1 -1
  43. package/dist/utils/chain-id.d.ts.map +1 -0
  44. package/dist/utils/{chain-id.mjs → chain-id.js} +1 -1
  45. package/dist/utils/chain-id.js.map +1 -0
  46. package/dist/utils/{gas-fees.d.cts → gas-fees.d.ts} +6 -6
  47. package/dist/utils/gas-fees.d.ts.map +1 -0
  48. package/dist/utils/{gas-fees.mjs → gas-fees.js} +8 -15
  49. package/dist/utils/gas-fees.js.map +1 -0
  50. package/dist/utils/{gas.d.mts → gas.d.ts} +2 -2
  51. package/dist/utils/gas.d.ts.map +1 -0
  52. package/dist/utils/{gas.mjs → gas.js} +7 -14
  53. package/dist/utils/gas.js.map +1 -0
  54. package/dist/utils/{transaction.d.cts → transaction.d.ts} +3 -3
  55. package/dist/utils/transaction.d.ts.map +1 -0
  56. package/dist/utils/{transaction.mjs → transaction.js} +6 -13
  57. package/dist/utils/transaction.js.map +1 -0
  58. package/dist/utils/{validation.d.cts → validation.d.ts} +3 -3
  59. package/dist/utils/validation.d.ts.map +1 -0
  60. package/dist/utils/{validation.mjs → validation.js} +5 -5
  61. package/dist/utils/validation.js.map +1 -0
  62. package/package.json +24 -28
  63. package/dist/BlockTrackerPollingController.cjs +0 -68
  64. package/dist/BlockTrackerPollingController.cjs.map +0 -1
  65. package/dist/BlockTrackerPollingController.d.cts +0 -41
  66. package/dist/BlockTrackerPollingController.d.cts.map +0 -1
  67. package/dist/BlockTrackerPollingController.d.mts.map +0 -1
  68. package/dist/BlockTrackerPollingController.mjs.map +0 -1
  69. package/dist/UserOperationController-method-action-types.cjs +0 -7
  70. package/dist/UserOperationController-method-action-types.cjs.map +0 -1
  71. package/dist/UserOperationController-method-action-types.d.cts.map +0 -1
  72. package/dist/UserOperationController-method-action-types.d.mts +0 -57
  73. package/dist/UserOperationController-method-action-types.d.mts.map +0 -1
  74. package/dist/UserOperationController-method-action-types.mjs.map +0 -1
  75. package/dist/UserOperationController.cjs +0 -495
  76. package/dist/UserOperationController.cjs.map +0 -1
  77. package/dist/UserOperationController.d.cts.map +0 -1
  78. package/dist/UserOperationController.d.mts +0 -136
  79. package/dist/UserOperationController.d.mts.map +0 -1
  80. package/dist/UserOperationController.mjs +0 -489
  81. package/dist/UserOperationController.mjs.map +0 -1
  82. package/dist/constants.cjs +0 -7
  83. package/dist/constants.cjs.map +0 -1
  84. package/dist/constants.d.cts.map +0 -1
  85. package/dist/constants.d.mts +0 -4
  86. package/dist/constants.d.mts.map +0 -1
  87. package/dist/constants.mjs.map +0 -1
  88. package/dist/helpers/Bundler.cjs +0 -91
  89. package/dist/helpers/Bundler.cjs.map +0 -1
  90. package/dist/helpers/Bundler.d.cts.map +0 -1
  91. package/dist/helpers/Bundler.d.mts +0 -46
  92. package/dist/helpers/Bundler.d.mts.map +0 -1
  93. package/dist/helpers/Bundler.mjs +0 -87
  94. package/dist/helpers/Bundler.mjs.map +0 -1
  95. package/dist/helpers/PendingUserOperationTracker.cjs +0 -127
  96. package/dist/helpers/PendingUserOperationTracker.cjs.map +0 -1
  97. package/dist/helpers/PendingUserOperationTracker.d.cts.map +0 -1
  98. package/dist/helpers/PendingUserOperationTracker.d.mts +0 -51
  99. package/dist/helpers/PendingUserOperationTracker.d.mts.map +0 -1
  100. package/dist/helpers/PendingUserOperationTracker.mjs +0 -127
  101. package/dist/helpers/PendingUserOperationTracker.mjs.map +0 -1
  102. package/dist/helpers/SnapSmartContractAccount.cjs +0 -64
  103. package/dist/helpers/SnapSmartContractAccount.cjs.map +0 -1
  104. package/dist/helpers/SnapSmartContractAccount.d.cts.map +0 -1
  105. package/dist/helpers/SnapSmartContractAccount.d.mts +0 -10
  106. package/dist/helpers/SnapSmartContractAccount.d.mts.map +0 -1
  107. package/dist/helpers/SnapSmartContractAccount.mjs +0 -60
  108. package/dist/helpers/SnapSmartContractAccount.mjs.map +0 -1
  109. package/dist/index.cjs +0 -19
  110. package/dist/index.cjs.map +0 -1
  111. package/dist/index.d.cts +0 -4
  112. package/dist/index.d.cts.map +0 -1
  113. package/dist/index.d.mts +0 -4
  114. package/dist/index.d.mts.map +0 -1
  115. package/dist/index.mjs +0 -3
  116. package/dist/index.mjs.map +0 -1
  117. package/dist/logger.cjs +0 -8
  118. package/dist/logger.cjs.map +0 -1
  119. package/dist/logger.d.cts +0 -5
  120. package/dist/logger.d.cts.map +0 -1
  121. package/dist/logger.d.mts +0 -5
  122. package/dist/logger.d.mts.map +0 -1
  123. package/dist/logger.mjs.map +0 -1
  124. package/dist/types.cjs +0 -16
  125. package/dist/types.cjs.map +0 -1
  126. package/dist/types.d.cts +0 -294
  127. package/dist/types.d.cts.map +0 -1
  128. package/dist/types.d.mts.map +0 -1
  129. package/dist/types.mjs.map +0 -1
  130. package/dist/utils/chain-id.cjs +0 -17
  131. package/dist/utils/chain-id.cjs.map +0 -1
  132. package/dist/utils/chain-id.d.cts.map +0 -1
  133. package/dist/utils/chain-id.d.mts +0 -8
  134. package/dist/utils/chain-id.d.mts.map +0 -1
  135. package/dist/utils/chain-id.mjs.map +0 -1
  136. package/dist/utils/gas-fees.cjs +0 -194
  137. package/dist/utils/gas-fees.cjs.map +0 -1
  138. package/dist/utils/gas-fees.d.cts.map +0 -1
  139. package/dist/utils/gas-fees.d.mts +0 -24
  140. package/dist/utils/gas-fees.d.mts.map +0 -1
  141. package/dist/utils/gas-fees.mjs.map +0 -1
  142. package/dist/utils/gas.cjs +0 -72
  143. package/dist/utils/gas.cjs.map +0 -1
  144. package/dist/utils/gas.d.cts +0 -10
  145. package/dist/utils/gas.d.cts.map +0 -1
  146. package/dist/utils/gas.d.mts.map +0 -1
  147. package/dist/utils/gas.mjs.map +0 -1
  148. package/dist/utils/transaction.cjs +0 -117
  149. package/dist/utils/transaction.cjs.map +0 -1
  150. package/dist/utils/transaction.d.cts.map +0 -1
  151. package/dist/utils/transaction.d.mts +0 -10
  152. package/dist/utils/transaction.d.mts.map +0 -1
  153. package/dist/utils/transaction.mjs.map +0 -1
  154. package/dist/utils/validation.cjs +0 -162
  155. package/dist/utils/validation.cjs.map +0 -1
  156. package/dist/utils/validation.d.cts.map +0 -1
  157. package/dist/utils/validation.d.mts +0 -33
  158. package/dist/utils/validation.d.mts.map +0 -1
  159. package/dist/utils/validation.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -9,8 +9,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Changed
11
11
 
12
- - Bump `@metamask/transaction-controller` from `^69.6.1` to `^69.7.0` ([#10046](https://github.com/MetaMask/core/pull/10046))
12
+ - Bump `uuid` from `^8.3.2` to `^9.0.1` ([#10117](https://github.com/MetaMask/core/pull/10117))
13
+
14
+ ## [42.0.0]
15
+
16
+ ### Changed
17
+
18
+ - **BREAKING:** Drop CommonJS support ([#9536](https://github.com/MetaMask/core/pull/9536))
19
+ - 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.
20
+ - **BREAKING:** Bump minimum Node.js version to 22 ([#9976](https://github.com/MetaMask/core/pull/9976))
21
+ - **BREAKING:** Bump TypeScript target to ES2022 ([#10019](https://github.com/MetaMask/core/pull/10019))
22
+ - This package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
23
+ - Bump `@metamask/transaction-controller` from `^69.6.1` to `^70.0.0` ([#10046](https://github.com/MetaMask/core/pull/10046), [#10080](https://github.com/MetaMask/core/pull/10080), [#10124](https://github.com/MetaMask/core/pull/10124), [#10160](https://github.com/MetaMask/core/pull/10160))
13
24
  - Bump `@metamask/utils` from `^11.11.0` to `^11.12.0` ([#10076](https://github.com/MetaMask/core/pull/10076))
25
+ - Bump `@metamask/approval-controller` from `^9.0.2` to `^10.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
26
+ - Bump `@metamask/base-controller` from `^9.1.0` to `^10.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
27
+ - Bump `@metamask/controller-utils` from `^12.3.0` to `^13.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
28
+ - Bump `@metamask/gas-fee-controller` from `^26.3.2` to `^27.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
29
+ - Bump `@metamask/keyring-controller` from `^27.1.1` to `^28.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
30
+ - Bump `@metamask/messenger` from `^2.0.0` to `^3.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
31
+ - Bump `@metamask/network-controller` from `^36.0.0` to `^37.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
32
+ - Bump `@metamask/polling-controller` from `^16.0.9` to `^17.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
14
33
 
15
34
  ## [41.2.9]
16
35
 
@@ -666,7 +685,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
666
685
 
667
686
  - Initial Release ([#3749](https://github.com/MetaMask/core/pull/3749))
668
687
 
669
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@41.2.9...HEAD
688
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@42.0.0...HEAD
689
+ [42.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@41.2.9...@metamask/user-operation-controller@42.0.0
670
690
  [41.2.9]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@41.2.8...@metamask/user-operation-controller@41.2.9
671
691
  [41.2.8]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@41.2.7...@metamask/user-operation-controller@41.2.8
672
692
  [41.2.7]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@41.2.6...@metamask/user-operation-controller@41.2.7
@@ -1,7 +1,7 @@
1
- import { BaseController } from "@metamask/base-controller";
2
- import type { NetworkClientId, NetworkClient } from "@metamask/network-controller";
3
- import { PollingTokenSetId } from "@metamask/polling-controller";
4
- import type { Json } from "@metamask/utils";
1
+ import { BaseController } from '@metamask/base-controller';
2
+ import type { NetworkClientId, NetworkClient } from '@metamask/network-controller';
3
+ import { PollingTokenSetId } from '@metamask/polling-controller';
4
+ import type { Json } from '@metamask/utils';
5
5
  /**
6
6
  * The minimum input required to start polling for a {@link BlockTrackerPollingController}.
7
7
  * Implementing classes may provide additional properties.
@@ -12,12 +12,12 @@ export type BlockTrackerPollingInput = {
12
12
  declare class Empty {
13
13
  }
14
14
  export declare const BlockTrackerPollingControllerOnly: <PollingInput extends BlockTrackerPollingInput>() => (abstract new (...args: any[]) => {
15
- "__#21@#activeListeners": Record<string, (options: Json) => Promise<void>>;
15
+ _activeListeners: Record<string, (options: Json) => Promise<void>>;
16
16
  _getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
17
17
  _startPolling(input: PollingInput): void;
18
18
  _stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
19
- readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
20
- readonly "__#3@#callbacks": Map<string, Set<(input: PollingInput) => void>>;
19
+ readonly _pollingTokenSets: Map<PollingTokenSetId, Set<string>>;
20
+ readonly _callbacks: Map<string, Set<(input: PollingInput) => void>>;
21
21
  _executePoll(input: PollingInput): Promise<void>;
22
22
  startPolling(input: PollingInput): string;
23
23
  stopAllPolling(): void;
@@ -25,12 +25,12 @@ export declare const BlockTrackerPollingControllerOnly: <PollingInput extends Bl
25
25
  onPollingComplete(input: PollingInput, callback: (input: PollingInput) => void): void;
26
26
  }) & typeof Empty;
27
27
  export declare const BlockTrackerPollingController: <PollingInput extends BlockTrackerPollingInput>() => (abstract new (...args: any[]) => {
28
- "__#21@#activeListeners": Record<string, (options: Json) => Promise<void>>;
28
+ _activeListeners: Record<string, (options: Json) => Promise<void>>;
29
29
  _getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
30
30
  _startPolling(input: PollingInput): void;
31
31
  _stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
32
- readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
33
- readonly "__#3@#callbacks": Map<string, Set<(input: PollingInput) => void>>;
32
+ readonly _pollingTokenSets: Map<PollingTokenSetId, Set<string>>;
33
+ readonly _callbacks: Map<string, Set<(input: PollingInput) => void>>;
34
34
  _executePoll(input: PollingInput): Promise<void>;
35
35
  startPolling(input: PollingInput): string;
36
36
  stopAllPolling(): void;
@@ -38,4 +38,4 @@ export declare const BlockTrackerPollingController: <PollingInput extends BlockT
38
38
  onPollingComplete(input: PollingInput, callback: (input: PollingInput) => void): void;
39
39
  }) & typeof BaseController;
40
40
  export {};
41
- //# sourceMappingURL=BlockTrackerPollingController.d.mts.map
41
+ //# sourceMappingURL=BlockTrackerPollingController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockTrackerPollingController.d.ts","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAIL,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AA4EF,cAAM,KAAK;CAAG;AAEd,eAAO,MAAM,iCAAiC,GAC5C,YAAY,SAAS,wBAAwB;+CAnDA,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;iBA4BW,CAAC;AAE7E,eAAO,MAAM,6BAA6B,GACxC,YAAY,SAAS,wBAAwB;+CA1DA,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;0BAsC9D,CAAC"}
@@ -1,10 +1,5 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- import { BaseController } from "@metamask/base-controller";
7
- import { AbstractPollingControllerBaseMixin, getKey } from "@metamask/polling-controller";
1
+ import { BaseController } from '@metamask/base-controller';
2
+ import { AbstractPollingControllerBaseMixin, getKey, } from '@metamask/polling-controller';
8
3
  /**
9
4
  * BlockTrackerPollingControllerMixin
10
5
  * A polling controller that polls using a block tracker.
@@ -16,15 +11,19 @@ import { AbstractPollingControllerBaseMixin, getKey } from "@metamask/polling-co
16
11
  // the class defined inside the function scope, so this can't be easily typed.
17
12
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/naming-convention
18
13
  function BlockTrackerPollingControllerMixin(Base) {
19
- var _BlockTrackerPollingController_activeListeners;
20
14
  class BlockTrackerPollingController extends AbstractPollingControllerBaseMixin(Base) {
21
- constructor() {
22
- super(...arguments);
23
- _BlockTrackerPollingController_activeListeners.set(this, {});
24
- }
15
+ // This field is public (rather than using `#`) so that declaration
16
+ // emission can describe it. Private/protected members on the class
17
+ // returned by an exported mixin function trigger TS4094, and giving the
18
+ // mixin an explicit return type to work around that breaks consumers
19
+ // that supply the base class's own type arguments via
20
+ // `BlockTrackerPollingController()<Name, State, Messenger>`. The
21
+ // leading underscore signals "internal, do not use" without needing
22
+ // true privacy.
23
+ _activeListeners = {};
25
24
  _startPolling(input) {
26
25
  const key = getKey(input);
27
- if (__classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key]) {
26
+ if (this._activeListeners[key]) {
28
27
  return;
29
28
  }
30
29
  const networkClient = this._getNetworkClientById(input.networkClientId);
@@ -33,7 +32,7 @@ function BlockTrackerPollingControllerMixin(Base) {
33
32
  // TODO: Either fix this lint violation or explain why it's necessary to ignore.
34
33
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
35
34
  networkClient.blockTracker.addListener('latest', updateOnNewBlock);
36
- __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key] = updateOnNewBlock;
35
+ this._activeListeners[key] = updateOnNewBlock;
37
36
  }
38
37
  else {
39
38
  throw new Error(`Unable to retrieve blockTracker for networkClientId ${input.networkClientId}`);
@@ -42,22 +41,21 @@ function BlockTrackerPollingControllerMixin(Base) {
42
41
  _stopPollingByPollingTokenSetId(key) {
43
42
  const { networkClientId } = JSON.parse(key);
44
43
  const networkClient = this._getNetworkClientById(networkClientId);
45
- if (networkClient && __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key]) {
46
- const listener = __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key];
44
+ if (networkClient && this._activeListeners[key]) {
45
+ const listener = this._activeListeners[key];
47
46
  if (listener) {
48
47
  // TODO: Either fix this lint violation or explain why it's necessary to ignore.
49
48
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
50
49
  networkClient.blockTracker.removeListener('latest', listener);
51
- delete __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key];
50
+ delete this._activeListeners[key];
52
51
  }
53
52
  }
54
53
  }
55
54
  }
56
- _BlockTrackerPollingController_activeListeners = new WeakMap();
57
55
  return BlockTrackerPollingController;
58
56
  }
59
57
  class Empty {
60
58
  }
61
59
  export const BlockTrackerPollingControllerOnly = () => BlockTrackerPollingControllerMixin(Empty);
62
60
  export const BlockTrackerPollingController = () => BlockTrackerPollingControllerMixin(BaseController);
63
- //# sourceMappingURL=BlockTrackerPollingController.mjs.map
61
+ //# sourceMappingURL=BlockTrackerPollingController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockTrackerPollingController.js","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,OAAO,EACL,kCAAkC,EAClC,MAAM,GAGP,MAAM,8BAA8B,CAAC;AAWtC;;;;;;GAMG;AACH,gFAAgF;AAChF,8EAA8E;AAC9E,kHAAkH;AAClH,SAAS,kCAAkC,CAGzC,IAAW;IACX,MAAe,6BAA8B,SAAQ,kCAAkC,CAGrF,IAAI,CAAC;QACL,mEAAmE;QACnE,mEAAmE;QACnE,wEAAwE;QACxE,qEAAqE;QACrE,sDAAsD;QACtD,iEAAiE;QACjE,oEAAoE;QACpE,gBAAgB;QAChB,gBAAgB,GAAqD,EAAE,CAAC;QAMxE,aAAa,CAAC,KAAmB;YAC/B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAE1B,IAAI,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,OAAO;YACT,CAAC;YAED,MAAM,aAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACxE,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC7D,gFAAgF;gBAChF,kEAAkE;gBAClE,aAAa,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;gBACnE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC;YAChD,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,KAAK,CACb,uDAAuD,KAAK,CAAC,eAAe,EAAE,CAC/E,CAAC;YACJ,CAAC;QACH,CAAC;QAED,+BAA+B,CAAC,GAAsB;YACpD,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,qBAAqB,CAC9C,eAAkC,CACnC,CAAC;YAEF,IAAI,aAAa,IAAI,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBAC5C,IAAI,QAAQ,EAAE,CAAC;oBACb,gFAAgF;oBAChF,kEAAkE;oBAClE,aAAa,CAAC,YAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;oBAC9D,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC;QACH,CAAC;KACF;IAED,OAAO,6BAA6B,CAAC;AACvC,CAAC;AAED,MAAM,KAAK;CAAG;AAEd,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAK7C,EAAE,CAAC,kCAAkC,CAA6B,KAAK,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAKzC,EAAE,CACJ,kCAAkC,CAChC,cAAc,CACf,CAAC","sourcesContent":["import { BaseController } from '@metamask/base-controller';\nimport type {\n NetworkClientId,\n NetworkClient,\n} from '@metamask/network-controller';\nimport {\n AbstractPollingControllerBaseMixin,\n getKey,\n Constructor,\n PollingTokenSetId,\n} from '@metamask/polling-controller';\nimport type { Json } from '@metamask/utils';\n\n/**\n * The minimum input required to start polling for a {@link BlockTrackerPollingController}.\n * Implementing classes may provide additional properties.\n */\nexport type BlockTrackerPollingInput = {\n networkClientId: NetworkClientId;\n};\n\n/**\n * BlockTrackerPollingControllerMixin\n * A polling controller that polls using a block tracker.\n *\n * @param Base - The base class to mix onto.\n * @returns The composed class.\n */\n// This is a function that's used as class, and the return type is inferred from\n// the class defined inside the function scope, so this can't be easily typed.\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/naming-convention\nfunction BlockTrackerPollingControllerMixin<\n TBase extends Constructor,\n PollingInput extends BlockTrackerPollingInput,\n>(Base: TBase) {\n abstract class BlockTrackerPollingController extends AbstractPollingControllerBaseMixin<\n TBase,\n PollingInput\n >(Base) {\n // This field is public (rather than using `#`) so that declaration\n // emission can describe it. Private/protected members on the class\n // returned by an exported mixin function trigger TS4094, and giving the\n // mixin an explicit return type to work around that breaks consumers\n // that supply the base class's own type arguments via\n // `BlockTrackerPollingController()<Name, State, Messenger>`. The\n // leading underscore signals \"internal, do not use\" without needing\n // true privacy.\n _activeListeners: Record<string, (options: Json) => Promise<void>> = {};\n\n abstract _getNetworkClientById(\n networkClientId: NetworkClientId,\n ): NetworkClient | undefined;\n\n _startPolling(input: PollingInput): void {\n const key = getKey(input);\n\n if (this._activeListeners[key]) {\n return;\n }\n\n const networkClient = this._getNetworkClientById(input.networkClientId);\n if (networkClient) {\n const updateOnNewBlock = this._executePoll.bind(this, input);\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n networkClient.blockTracker.addListener('latest', updateOnNewBlock);\n this._activeListeners[key] = updateOnNewBlock;\n } else {\n throw new Error(\n `Unable to retrieve blockTracker for networkClientId ${input.networkClientId}`,\n );\n }\n }\n\n _stopPollingByPollingTokenSetId(key: PollingTokenSetId): void {\n const { networkClientId } = JSON.parse(key);\n const networkClient = this._getNetworkClientById(\n networkClientId as NetworkClientId,\n );\n\n if (networkClient && this._activeListeners[key]) {\n const listener = this._activeListeners[key];\n if (listener) {\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n networkClient.blockTracker.removeListener('latest', listener);\n delete this._activeListeners[key];\n }\n }\n }\n }\n\n return BlockTrackerPollingController;\n}\n\nclass Empty {}\n\nexport const BlockTrackerPollingControllerOnly = <\n PollingInput extends BlockTrackerPollingInput,\n // The return type is inferred from the class defined inside the function\n // scope, so this can't be easily typed.\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n>() => BlockTrackerPollingControllerMixin<typeof Empty, PollingInput>(Empty);\n\nexport const BlockTrackerPollingController = <\n PollingInput extends BlockTrackerPollingInput,\n // The return type is inferred from the class defined inside the function\n // scope, so this can't be easily typed.\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n>() =>\n BlockTrackerPollingControllerMixin<typeof BaseController, PollingInput>(\n BaseController,\n );\n"]}
@@ -2,7 +2,7 @@
2
2
  * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
- import type { UserOperationController } from "./UserOperationController.cjs";
5
+ import type { UserOperationController } from './UserOperationController.js';
6
6
  /**
7
7
  * Create and submit a user operation.
8
8
  *
@@ -54,4 +54,4 @@ export type UserOperationControllerStartPollingByNetworkClientIdAction = {
54
54
  * Union of all UserOperationController action types.
55
55
  */
56
56
  export type UserOperationControllerMethodActions = UserOperationControllerAddUserOperationAction | UserOperationControllerAddUserOperationFromTransactionAction | UserOperationControllerStartPollingByNetworkClientIdAction;
57
- //# sourceMappingURL=UserOperationController-method-action-types.d.cts.map
57
+ //# sourceMappingURL=UserOperationController-method-action-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserOperationController-method-action-types.d.ts","sourceRoot":"","sources":["../src/UserOperationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,0CAA0C,CAAC;IACjD,OAAO,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;CACtD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,4DAA4D,GAAG;IACzE,IAAI,EAAE,yDAAyD,CAAC;IAChE,OAAO,EAAE,uBAAuB,CAAC,iCAAiC,CAAC,CAAC;CACrE,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,0DAA0D,GAAG;IACvE,IAAI,EAAE,uDAAuD,CAAC;IAC9D,OAAO,EAAE,uBAAuB,CAAC,+BAA+B,CAAC,CAAC;CACnE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,6CAA6C,GAC7C,4DAA4D,GAC5D,0DAA0D,CAAC"}
@@ -3,4 +3,4 @@
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
6
- //# sourceMappingURL=UserOperationController-method-action-types.mjs.map
6
+ //# sourceMappingURL=UserOperationController-method-action-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserOperationController-method-action-types.js","sourceRoot":"","sources":["../src/UserOperationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { UserOperationController } from './UserOperationController.js';\n\n/**\n * Create and submit a user operation.\n *\n * @param request - Information required to create a user operation.\n * @param request.data - Data to include in the resulting transaction.\n * @param request.maxFeePerGas - Maximum fee per gas to pay towards the transaction.\n * @param request.maxPriorityFeePerGas - Maximum priority fee per gas to pay towards the transaction.\n * @param request.to - Destination address of the resulting transaction.\n * @param request.value - Value to include in the resulting transaction.\n * @param options - Configuration options when creating a user operation.\n * @param options.networkClientId - ID of the network client used to query the chain.\n * @param options.origin - Origin of the user operation, such as the hostname of a dApp.\n * @param options.requireApproval - Whether to require user approval before submitting the user operation. Defaults to true.\n * @param options.smartContractAccount - Smart contract abstraction to provide the contract specific values such as call data and nonce. Defaults to the current snap account.\n * @param options.swaps - Swap metadata to record with the user operation.\n * @param options.type - Type of the transaction.\n */\nexport type UserOperationControllerAddUserOperationAction = {\n type: `UserOperationController:addUserOperation`;\n handler: UserOperationController['addUserOperation'];\n};\n\n/**\n * Create and submit a user operation equivalent to the provided transaction.\n *\n * @param transaction - Transaction to use as the basis for the user operation.\n * @param options - Configuration options when creating a user operation.\n * @param options.networkClientId - ID of the network client used to query the chain.\n * @param options.origin - Origin of the user operation, such as the hostname of a dApp.\n * @param options.requireApproval - Whether to require user approval before submitting the user operation. Defaults to true.\n * @param options.smartContractAccount - Smart contract abstraction to provide the contract specific values such as call data and nonce. Defaults to the current snap account.\n * @param options.swaps - Swap metadata to record with the user operation.\n * @param options.type - Type of the transaction.\n */\nexport type UserOperationControllerAddUserOperationFromTransactionAction = {\n type: `UserOperationController:addUserOperationFromTransaction`;\n handler: UserOperationController['addUserOperationFromTransaction'];\n};\n\n/**\n * Starts polling for pending user operations on the given network.\n *\n * @param networkClientId - The ID of the network client to poll.\n * @returns The polling token that can be used to stop polling.\n */\nexport type UserOperationControllerStartPollingByNetworkClientIdAction = {\n type: `UserOperationController:startPollingByNetworkClientId`;\n handler: UserOperationController['startPollingByNetworkClientId'];\n};\n\n/**\n * Union of all UserOperationController action types.\n */\nexport type UserOperationControllerMethodActions =\n | UserOperationControllerAddUserOperationAction\n | UserOperationControllerAddUserOperationFromTransactionAction\n | UserOperationControllerStartPollingByNetworkClientIdAction;\n"]}
@@ -1,17 +1,15 @@
1
- /// <reference types="node" />
2
- /// <reference types="npm-which/node_modules/@types/node/events.js" />
3
- import type { ApprovalControllerAddRequestAction } from "@metamask/approval-controller";
4
- import { BaseController } from "@metamask/base-controller";
5
- import type { ControllerGetStateAction, ControllerStateChangeEvent } from "@metamask/base-controller";
6
- import type { GasFeeState } from "@metamask/gas-fee-controller";
7
- import type { KeyringControllerPrepareUserOperationAction, KeyringControllerPatchUserOperationAction, KeyringControllerSignUserOperationAction } from "@metamask/keyring-controller";
8
- import type { Messenger } from "@metamask/messenger";
9
- import type { NetworkControllerGetNetworkClientByIdAction } from "@metamask/network-controller";
10
- import { TransactionType } from "@metamask/transaction-controller";
11
- import type { TransactionMeta, TransactionParams } from "@metamask/transaction-controller";
12
- import EventEmitter from "events";
13
- import type { SmartContractAccount, UserOperationMetadata } from "./types.cjs";
14
- import type { UserOperationControllerMethodActions } from "./UserOperationController-method-action-types.cjs";
1
+ import type { ApprovalControllerAddRequestAction } from '@metamask/approval-controller';
2
+ import { BaseController } from '@metamask/base-controller';
3
+ import type { ControllerGetStateAction, ControllerStateChangeEvent } from '@metamask/base-controller';
4
+ import type { GasFeeState } from '@metamask/gas-fee-controller';
5
+ import type { KeyringControllerPrepareUserOperationAction, KeyringControllerPatchUserOperationAction, KeyringControllerSignUserOperationAction } from '@metamask/keyring-controller';
6
+ import type { Messenger } from '@metamask/messenger';
7
+ import type { NetworkControllerGetNetworkClientByIdAction } from '@metamask/network-controller';
8
+ import { TransactionType } from '@metamask/transaction-controller';
9
+ import type { TransactionMeta, TransactionParams } from '@metamask/transaction-controller';
10
+ import EventEmitter from 'events';
11
+ import type { SmartContractAccount, UserOperationMetadata } from './types.js';
12
+ import type { UserOperationControllerMethodActions } from './UserOperationController-method-action-types.js';
15
13
  declare const controllerName = "UserOperationController";
16
14
  type Events = {
17
15
  'transaction-updated': [metadata: TransactionMeta];
@@ -133,4 +131,4 @@ export declare class UserOperationController extends BaseController<typeof contr
133
131
  startPollingByNetworkClientId(networkClientId: string): string;
134
132
  }
135
133
  export {};
136
- //# sourceMappingURL=UserOperationController.d.cts.map
134
+ //# sourceMappingURL=UserOperationController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserOperationController.d.ts","sourceRoot":"","sources":["../src/UserOperationController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAE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