@metamask-previews/user-operation-controller 41.2.9-preview-3e34650c2 → 41.2.9-preview-4f4c98e
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 +4 -0
- package/dist/{BlockTrackerPollingController.d.mts → BlockTrackerPollingController.d.ts} +11 -11
- package/dist/BlockTrackerPollingController.d.ts.map +1 -0
- package/dist/{BlockTrackerPollingController.mjs → BlockTrackerPollingController.js} +17 -16
- package/dist/BlockTrackerPollingController.js.map +1 -0
- package/dist/{UserOperationController-method-action-types.d.cts → UserOperationController-method-action-types.d.ts} +2 -2
- package/dist/UserOperationController-method-action-types.d.ts.map +1 -0
- package/dist/{UserOperationController-method-action-types.mjs → UserOperationController-method-action-types.js} +1 -1
- package/dist/UserOperationController-method-action-types.js.map +1 -0
- package/dist/{UserOperationController.d.cts → UserOperationController.d.ts} +13 -15
- package/dist/UserOperationController.d.ts.map +1 -0
- package/dist/{UserOperationController.mjs → UserOperationController.js} +19 -20
- package/dist/UserOperationController.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/helpers/{Bundler.d.cts → Bundler.d.ts} +2 -2
- package/dist/helpers/Bundler.d.ts.map +1 -0
- package/dist/helpers/{Bundler.mjs → Bundler.js} +2 -2
- package/dist/helpers/Bundler.js.map +1 -0
- package/dist/helpers/{PendingUserOperationTracker.d.cts → PendingUserOperationTracker.d.ts} +10 -12
- package/dist/helpers/PendingUserOperationTracker.d.ts.map +1 -0
- package/dist/helpers/{PendingUserOperationTracker.mjs → PendingUserOperationTracker.js} +9 -16
- package/dist/helpers/PendingUserOperationTracker.js.map +1 -0
- package/dist/helpers/{SnapSmartContractAccount.d.cts → SnapSmartContractAccount.d.ts} +3 -3
- package/dist/helpers/SnapSmartContractAccount.d.ts.map +1 -0
- package/dist/helpers/{SnapSmartContractAccount.mjs → SnapSmartContractAccount.js} +3 -3
- package/dist/helpers/SnapSmartContractAccount.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/{logger.mjs → logger.js} +2 -2
- package/dist/logger.js.map +1 -0
- package/dist/{types.d.mts → types.d.ts} +3 -3
- 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/{chain-id.d.cts → chain-id.d.ts} +1 -1
- package/dist/utils/chain-id.d.ts.map +1 -0
- package/dist/utils/{chain-id.mjs → chain-id.js} +1 -1
- package/dist/utils/chain-id.js.map +1 -0
- package/dist/utils/{gas-fees.d.cts → gas-fees.d.ts} +6 -6
- package/dist/utils/gas-fees.d.ts.map +1 -0
- package/dist/utils/{gas-fees.mjs → gas-fees.js} +8 -15
- package/dist/utils/gas-fees.js.map +1 -0
- package/dist/utils/{gas.d.mts → gas.d.ts} +2 -2
- package/dist/utils/gas.d.ts.map +1 -0
- package/dist/utils/{gas.mjs → gas.js} +7 -14
- package/dist/utils/gas.js.map +1 -0
- package/dist/utils/{transaction.d.cts → transaction.d.ts} +3 -3
- package/dist/utils/transaction.d.ts.map +1 -0
- package/dist/utils/{transaction.mjs → transaction.js} +6 -13
- package/dist/utils/transaction.js.map +1 -0
- package/dist/utils/{validation.d.cts → validation.d.ts} +3 -3
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/{validation.mjs → validation.js} +5 -5
- package/dist/utils/validation.js.map +1 -0
- package/package.json +13 -17
- package/dist/BlockTrackerPollingController.cjs +0 -68
- package/dist/BlockTrackerPollingController.cjs.map +0 -1
- package/dist/BlockTrackerPollingController.d.cts +0 -41
- package/dist/BlockTrackerPollingController.d.cts.map +0 -1
- package/dist/BlockTrackerPollingController.d.mts.map +0 -1
- package/dist/BlockTrackerPollingController.mjs.map +0 -1
- package/dist/UserOperationController-method-action-types.cjs +0 -7
- package/dist/UserOperationController-method-action-types.cjs.map +0 -1
- package/dist/UserOperationController-method-action-types.d.cts.map +0 -1
- package/dist/UserOperationController-method-action-types.d.mts +0 -57
- package/dist/UserOperationController-method-action-types.d.mts.map +0 -1
- package/dist/UserOperationController-method-action-types.mjs.map +0 -1
- package/dist/UserOperationController.cjs +0 -495
- package/dist/UserOperationController.cjs.map +0 -1
- package/dist/UserOperationController.d.cts.map +0 -1
- package/dist/UserOperationController.d.mts +0 -136
- package/dist/UserOperationController.d.mts.map +0 -1
- package/dist/UserOperationController.mjs.map +0 -1
- package/dist/constants.cjs +0 -7
- package/dist/constants.cjs.map +0 -1
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.mts +0 -4
- package/dist/constants.d.mts.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/helpers/Bundler.cjs +0 -91
- package/dist/helpers/Bundler.cjs.map +0 -1
- package/dist/helpers/Bundler.d.cts.map +0 -1
- package/dist/helpers/Bundler.d.mts +0 -46
- package/dist/helpers/Bundler.d.mts.map +0 -1
- package/dist/helpers/Bundler.mjs.map +0 -1
- package/dist/helpers/PendingUserOperationTracker.cjs +0 -127
- package/dist/helpers/PendingUserOperationTracker.cjs.map +0 -1
- package/dist/helpers/PendingUserOperationTracker.d.cts.map +0 -1
- package/dist/helpers/PendingUserOperationTracker.d.mts +0 -51
- package/dist/helpers/PendingUserOperationTracker.d.mts.map +0 -1
- package/dist/helpers/PendingUserOperationTracker.mjs.map +0 -1
- package/dist/helpers/SnapSmartContractAccount.cjs +0 -64
- package/dist/helpers/SnapSmartContractAccount.cjs.map +0 -1
- package/dist/helpers/SnapSmartContractAccount.d.cts.map +0 -1
- package/dist/helpers/SnapSmartContractAccount.d.mts +0 -10
- package/dist/helpers/SnapSmartContractAccount.d.mts.map +0 -1
- package/dist/helpers/SnapSmartContractAccount.mjs.map +0 -1
- package/dist/index.cjs +0 -19
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -4
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -4
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -3
- package/dist/index.mjs.map +0 -1
- package/dist/logger.cjs +0 -8
- package/dist/logger.cjs.map +0 -1
- package/dist/logger.d.cts +0 -5
- package/dist/logger.d.cts.map +0 -1
- package/dist/logger.d.mts +0 -5
- package/dist/logger.d.mts.map +0 -1
- package/dist/logger.mjs.map +0 -1
- package/dist/types.cjs +0 -16
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -294
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs.map +0 -1
- package/dist/utils/chain-id.cjs +0 -17
- package/dist/utils/chain-id.cjs.map +0 -1
- package/dist/utils/chain-id.d.cts.map +0 -1
- package/dist/utils/chain-id.d.mts +0 -8
- package/dist/utils/chain-id.d.mts.map +0 -1
- package/dist/utils/chain-id.mjs.map +0 -1
- package/dist/utils/gas-fees.cjs +0 -194
- package/dist/utils/gas-fees.cjs.map +0 -1
- package/dist/utils/gas-fees.d.cts.map +0 -1
- package/dist/utils/gas-fees.d.mts +0 -24
- package/dist/utils/gas-fees.d.mts.map +0 -1
- package/dist/utils/gas-fees.mjs.map +0 -1
- package/dist/utils/gas.cjs +0 -72
- package/dist/utils/gas.cjs.map +0 -1
- package/dist/utils/gas.d.cts +0 -10
- package/dist/utils/gas.d.cts.map +0 -1
- package/dist/utils/gas.d.mts.map +0 -1
- package/dist/utils/gas.mjs.map +0 -1
- package/dist/utils/transaction.cjs +0 -117
- package/dist/utils/transaction.cjs.map +0 -1
- package/dist/utils/transaction.d.cts.map +0 -1
- package/dist/utils/transaction.d.mts +0 -10
- package/dist/utils/transaction.d.mts.map +0 -1
- package/dist/utils/transaction.mjs.map +0 -1
- package/dist/utils/validation.cjs +0 -162
- package/dist/utils/validation.cjs.map +0 -1
- package/dist/utils/validation.d.cts.map +0 -1
- package/dist/utils/validation.d.mts +0 -33
- package/dist/utils/validation.d.mts.map +0 -1
- package/dist/utils/validation.mjs.map +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BlockTrackerPollingController = exports.BlockTrackerPollingControllerOnly = void 0;
|
|
9
|
-
const base_controller_1 = require("@metamask/base-controller");
|
|
10
|
-
const polling_controller_1 = require("@metamask/polling-controller");
|
|
11
|
-
/**
|
|
12
|
-
* BlockTrackerPollingControllerMixin
|
|
13
|
-
* A polling controller that polls using a block tracker.
|
|
14
|
-
*
|
|
15
|
-
* @param Base - The base class to mix onto.
|
|
16
|
-
* @returns The composed class.
|
|
17
|
-
*/
|
|
18
|
-
// This is a function that's used as class, and the return type is inferred from
|
|
19
|
-
// the class defined inside the function scope, so this can't be easily typed.
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/naming-convention
|
|
21
|
-
function BlockTrackerPollingControllerMixin(Base) {
|
|
22
|
-
var _BlockTrackerPollingController_activeListeners;
|
|
23
|
-
class BlockTrackerPollingController extends (0, polling_controller_1.AbstractPollingControllerBaseMixin)(Base) {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
_BlockTrackerPollingController_activeListeners.set(this, {});
|
|
27
|
-
}
|
|
28
|
-
_startPolling(input) {
|
|
29
|
-
const key = (0, polling_controller_1.getKey)(input);
|
|
30
|
-
if (__classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key]) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const networkClient = this._getNetworkClientById(input.networkClientId);
|
|
34
|
-
if (networkClient) {
|
|
35
|
-
const updateOnNewBlock = this._executePoll.bind(this, input);
|
|
36
|
-
// TODO: Either fix this lint violation or explain why it's necessary to ignore.
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
38
|
-
networkClient.blockTracker.addListener('latest', updateOnNewBlock);
|
|
39
|
-
__classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key] = updateOnNewBlock;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
throw new Error(`Unable to retrieve blockTracker for networkClientId ${input.networkClientId}`);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
_stopPollingByPollingTokenSetId(key) {
|
|
46
|
-
const { networkClientId } = JSON.parse(key);
|
|
47
|
-
const networkClient = this._getNetworkClientById(networkClientId);
|
|
48
|
-
if (networkClient && __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key]) {
|
|
49
|
-
const listener = __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key];
|
|
50
|
-
if (listener) {
|
|
51
|
-
// TODO: Either fix this lint violation or explain why it's necessary to ignore.
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
53
|
-
networkClient.blockTracker.removeListener('latest', listener);
|
|
54
|
-
delete __classPrivateFieldGet(this, _BlockTrackerPollingController_activeListeners, "f")[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
_BlockTrackerPollingController_activeListeners = new WeakMap();
|
|
60
|
-
return BlockTrackerPollingController;
|
|
61
|
-
}
|
|
62
|
-
class Empty {
|
|
63
|
-
}
|
|
64
|
-
const BlockTrackerPollingControllerOnly = () => BlockTrackerPollingControllerMixin(Empty);
|
|
65
|
-
exports.BlockTrackerPollingControllerOnly = BlockTrackerPollingControllerOnly;
|
|
66
|
-
const BlockTrackerPollingController = () => BlockTrackerPollingControllerMixin(base_controller_1.BaseController);
|
|
67
|
-
exports.BlockTrackerPollingController = BlockTrackerPollingController;
|
|
68
|
-
//# sourceMappingURL=BlockTrackerPollingController.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTrackerPollingController.cjs","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":";;;;;;;;AAAA,+DAA2D;AAK3D,qEAKsC;AAWtC;;;;;;GAMG;AACH,gFAAgF;AAChF,8EAA8E;AAC9E,kHAAkH;AAClH,SAAS,kCAAkC,CAGzC,IAAW;;IACX,MAAe,6BAA8B,SAAQ,IAAA,uDAAkC,EAGrF,IAAI,CAAC;QAHP;;YAIE,yDAAqE,EAAE,EAAC;QA2C1E,CAAC;QArCC,aAAa,CAAC,KAAmB;YAC/B,MAAM,GAAG,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,CAAC;YAE1B,IAAI,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,MAAM,QAAQ,GAAG,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,CAAC,GAAG,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC;QACH,CAAC;KACF;;IAED,OAAO,6BAA6B,CAAC;AACvC,CAAC;AAED,MAAM,KAAK;CAAG;AAEP,MAAM,iCAAiC,GAAG,GAK7C,EAAE,CAAC,kCAAkC,CAA6B,KAAK,CAAC,CAAC;AALhE,QAAA,iCAAiC,qCAK+B;AAEtE,MAAM,6BAA6B,GAAG,GAKzC,EAAE,CACJ,kCAAkC,CAChC,gCAAc,CACf,CAAC;AARS,QAAA,6BAA6B,iCAQtC","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 #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"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* The minimum input required to start polling for a {@link BlockTrackerPollingController}.
|
|
7
|
-
* Implementing classes may provide additional properties.
|
|
8
|
-
*/
|
|
9
|
-
export type BlockTrackerPollingInput = {
|
|
10
|
-
networkClientId: NetworkClientId;
|
|
11
|
-
};
|
|
12
|
-
declare class Empty {
|
|
13
|
-
}
|
|
14
|
-
export declare const BlockTrackerPollingControllerOnly: <PollingInput extends BlockTrackerPollingInput>() => (abstract new (...args: any[]) => {
|
|
15
|
-
"__#21@#activeListeners": Record<string, (options: Json) => Promise<void>>;
|
|
16
|
-
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
|
|
17
|
-
_startPolling(input: PollingInput): void;
|
|
18
|
-
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
|
|
19
|
-
readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
|
|
20
|
-
readonly "__#3@#callbacks": Map<string, Set<(input: PollingInput) => void>>;
|
|
21
|
-
_executePoll(input: PollingInput): Promise<void>;
|
|
22
|
-
startPolling(input: PollingInput): string;
|
|
23
|
-
stopAllPolling(): void;
|
|
24
|
-
stopPollingByPollingToken(pollingToken: string): void;
|
|
25
|
-
onPollingComplete(input: PollingInput, callback: (input: PollingInput) => void): void;
|
|
26
|
-
}) & typeof Empty;
|
|
27
|
-
export declare const BlockTrackerPollingController: <PollingInput extends BlockTrackerPollingInput>() => (abstract new (...args: any[]) => {
|
|
28
|
-
"__#21@#activeListeners": Record<string, (options: Json) => Promise<void>>;
|
|
29
|
-
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
|
|
30
|
-
_startPolling(input: PollingInput): void;
|
|
31
|
-
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
|
|
32
|
-
readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
|
|
33
|
-
readonly "__#3@#callbacks": Map<string, Set<(input: PollingInput) => void>>;
|
|
34
|
-
_executePoll(input: PollingInput): Promise<void>;
|
|
35
|
-
startPolling(input: PollingInput): string;
|
|
36
|
-
stopAllPolling(): void;
|
|
37
|
-
stopPollingByPollingToken(pollingToken: string): void;
|
|
38
|
-
onPollingComplete(input: PollingInput, callback: (input: PollingInput) => void): void;
|
|
39
|
-
}) & typeof BaseController;
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=BlockTrackerPollingController.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTrackerPollingController.d.cts","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,qCAAqC;AACtC,OAAO,EAIL,iBAAiB,EAClB,qCAAqC;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAoEF,cAAM,KAAK;CAAG;AAEd,eAAO,MAAM,iCAAiC;uDAlDC,IAAI,KAAK,QAAQ,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;iBA4BW,CAAC;AAE7E,eAAO,MAAM,6BAA6B;uDAzDK,IAAI,KAAK,QAAQ,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;0BAsC9D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTrackerPollingController.d.mts","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,qCAAqC;AACtC,OAAO,EAIL,iBAAiB,EAClB,qCAAqC;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAoEF,cAAM,KAAK;CAAG;AAEd,eAAO,MAAM,iCAAiC;uDAlDC,IAAI,KAAK,QAAQ,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;iBA4BW,CAAC;AAE7E,eAAO,MAAM,6BAA6B;uDAzDK,IAAI,KAAK,QAAQ,IAAI,CAAC;2CAG9C,eAAe,GAC/B,aAAa,GAAG,SAAS;wCAEQ,IAAI;yCAqBH,iBAAiB,GAAG,IAAI;;;;;;;;0BAsC9D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTrackerPollingController.mjs","sourceRoot":"","sources":["../src/BlockTrackerPollingController.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAK3D,OAAO,EACL,kCAAkC,EAClC,MAAM,EAGP,qCAAqC;AAWtC;;;;;;GAMG;AACH,gFAAgF;AAChF,8EAA8E;AAC9E,kHAAkH;AAClH,SAAS,kCAAkC,CAGzC,IAAW;;IACX,MAAe,6BAA8B,SAAQ,kCAAkC,CAGrF,IAAI,CAAC;QAHP;;YAIE,yDAAqE,EAAE,EAAC;QA2C1E,CAAC;QArCC,aAAa,CAAC,KAAmB;YAC/B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAE1B,IAAI,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,MAAM,QAAQ,GAAG,uBAAA,IAAI,sDAAiB,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,uBAAA,IAAI,sDAAiB,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 #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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserOperationController-method-action-types.cjs","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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserOperationController-method-action-types.d.cts","sourceRoot":"","sources":["../src/UserOperationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,sCAAqC;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"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is auto generated.
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { UserOperationController } from "./UserOperationController.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* Create and submit a user operation.
|
|
8
|
-
*
|
|
9
|
-
* @param request - Information required to create a user operation.
|
|
10
|
-
* @param request.data - Data to include in the resulting transaction.
|
|
11
|
-
* @param request.maxFeePerGas - Maximum fee per gas to pay towards the transaction.
|
|
12
|
-
* @param request.maxPriorityFeePerGas - Maximum priority fee per gas to pay towards the transaction.
|
|
13
|
-
* @param request.to - Destination address of the resulting transaction.
|
|
14
|
-
* @param request.value - Value to include in the resulting transaction.
|
|
15
|
-
* @param options - Configuration options when creating a user operation.
|
|
16
|
-
* @param options.networkClientId - ID of the network client used to query the chain.
|
|
17
|
-
* @param options.origin - Origin of the user operation, such as the hostname of a dApp.
|
|
18
|
-
* @param options.requireApproval - Whether to require user approval before submitting the user operation. Defaults to true.
|
|
19
|
-
* @param options.smartContractAccount - Smart contract abstraction to provide the contract specific values such as call data and nonce. Defaults to the current snap account.
|
|
20
|
-
* @param options.swaps - Swap metadata to record with the user operation.
|
|
21
|
-
* @param options.type - Type of the transaction.
|
|
22
|
-
*/
|
|
23
|
-
export type UserOperationControllerAddUserOperationAction = {
|
|
24
|
-
type: `UserOperationController:addUserOperation`;
|
|
25
|
-
handler: UserOperationController['addUserOperation'];
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Create and submit a user operation equivalent to the provided transaction.
|
|
29
|
-
*
|
|
30
|
-
* @param transaction - Transaction to use as the basis for the user operation.
|
|
31
|
-
* @param options - Configuration options when creating a user operation.
|
|
32
|
-
* @param options.networkClientId - ID of the network client used to query the chain.
|
|
33
|
-
* @param options.origin - Origin of the user operation, such as the hostname of a dApp.
|
|
34
|
-
* @param options.requireApproval - Whether to require user approval before submitting the user operation. Defaults to true.
|
|
35
|
-
* @param options.smartContractAccount - Smart contract abstraction to provide the contract specific values such as call data and nonce. Defaults to the current snap account.
|
|
36
|
-
* @param options.swaps - Swap metadata to record with the user operation.
|
|
37
|
-
* @param options.type - Type of the transaction.
|
|
38
|
-
*/
|
|
39
|
-
export type UserOperationControllerAddUserOperationFromTransactionAction = {
|
|
40
|
-
type: `UserOperationController:addUserOperationFromTransaction`;
|
|
41
|
-
handler: UserOperationController['addUserOperationFromTransaction'];
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Starts polling for pending user operations on the given network.
|
|
45
|
-
*
|
|
46
|
-
* @param networkClientId - The ID of the network client to poll.
|
|
47
|
-
* @returns The polling token that can be used to stop polling.
|
|
48
|
-
*/
|
|
49
|
-
export type UserOperationControllerStartPollingByNetworkClientIdAction = {
|
|
50
|
-
type: `UserOperationController:startPollingByNetworkClientId`;
|
|
51
|
-
handler: UserOperationController['startPollingByNetworkClientId'];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Union of all UserOperationController action types.
|
|
55
|
-
*/
|
|
56
|
-
export type UserOperationControllerMethodActions = UserOperationControllerAddUserOperationAction | UserOperationControllerAddUserOperationFromTransactionAction | UserOperationControllerStartPollingByNetworkClientIdAction;
|
|
57
|
-
//# sourceMappingURL=UserOperationController-method-action-types.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserOperationController-method-action-types.d.mts","sourceRoot":"","sources":["../src/UserOperationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,sCAAqC;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserOperationController-method-action-types.mjs","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"]}
|