@pimlico/alto 0.0.0-main.20241218T163308 → 0.0.0-main.20241220T183546
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/esm/cli/config/bundler.d.ts +32 -20
- package/esm/cli/config/bundler.js +3 -1
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.js +13 -2
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/deploySimulationsContract.js +45 -19
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +2 -1
- package/esm/cli/handler.js.map +1 -1
- package/esm/cli/parseArgs.js +1 -1
- package/esm/cli/parseArgs.js.map +1 -1
- package/esm/executor/executor.js +45 -20
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.d.ts +1 -1
- package/esm/executor/types.d.ts +25 -0
- package/esm/executor/types.js +2 -0
- package/esm/executor/types.js.map +1 -0
- package/esm/executor/utils.d.ts +4 -2
- package/esm/executor/utils.js +20 -6
- package/esm/executor/utils.js.map +1 -1
- package/esm/mempool/mempool.js +7 -1
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationHandler.d.ts +3 -1
- package/esm/rpc/estimation/gasEstimationHandler.js +3 -1
- package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationsV06.d.ts +3 -1
- package/esm/rpc/estimation/gasEstimationsV06.js +9 -1
- package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationsV07.d.ts +21 -11
- package/esm/rpc/estimation/gasEstimationsV07.js +216 -48
- package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/esm/rpc/estimation/types.d.ts +9 -2
- package/esm/rpc/estimation/types.js.map +1 -1
- package/esm/rpc/rpcHandler.d.ts +53 -1
- package/esm/rpc/rpcHandler.js +221 -146
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.d.ts +18 -3
- package/esm/rpc/validation/SafeValidator.js +15 -6
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +41 -6
- package/esm/rpc/validation/UnsafeValidator.js +27 -10
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/types/contracts/EntryPointSimulationsV7.d.ts +983 -15
- package/esm/types/contracts/EntryPointSimulationsV7.js +1178 -425
- package/esm/types/contracts/EntryPointSimulationsV7.js.map +1 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js +2 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/esm/types/interfaces.d.ts +41 -6
- package/esm/types/mempool.d.ts +3 -2
- package/esm/types/mempool.js +10 -3
- package/esm/types/mempool.js.map +1 -1
- package/esm/types/schemas.d.ts +896 -40
- package/esm/types/schemas.js +61 -2
- package/esm/types/schemas.js.map +1 -1
- package/esm/types/validation.d.ts +210 -210
- package/esm/types/validation.js +1 -1
- package/esm/types/validation.js.map +1 -1
- package/esm/utils/helpers.d.ts +14 -1
- package/esm/utils/helpers.js +14 -0
- package/esm/utils/helpers.js.map +1 -1
- package/esm/utils/metrics.d.ts +3 -3
- package/esm/utils/userop.d.ts +1 -1
- package/esm/utils/validation.d.ts +5 -2
- package/esm/utils/validation.js +9 -4
- package/esm/utils/validation.js.map +1 -1
- package/lib/cli/config/bundler.d.ts +32 -20
- package/lib/cli/config/bundler.js +3 -1
- package/lib/cli/config/bundler.js.map +1 -1
- package/lib/cli/config/options.js +13 -2
- package/lib/cli/config/options.js.map +1 -1
- package/lib/cli/deploySimulationsContract.js +43 -17
- package/lib/cli/deploySimulationsContract.js.map +1 -1
- package/lib/cli/handler.js +2 -1
- package/lib/cli/handler.js.map +1 -1
- package/lib/cli/parseArgs.js +1 -1
- package/lib/cli/parseArgs.js.map +1 -1
- package/lib/executor/executor.js +44 -19
- package/lib/executor/executor.js.map +1 -1
- package/lib/executor/executorManager.d.ts +1 -1
- package/lib/executor/types.d.ts +25 -0
- package/lib/executor/types.js +3 -0
- package/lib/executor/types.js.map +1 -0
- package/lib/executor/utils.d.ts +4 -2
- package/lib/executor/utils.js +21 -6
- package/lib/executor/utils.js.map +1 -1
- package/lib/mempool/mempool.js +7 -1
- package/lib/mempool/mempool.js.map +1 -1
- package/lib/rpc/estimation/gasEstimationHandler.d.ts +3 -1
- package/lib/rpc/estimation/gasEstimationHandler.js +3 -1
- package/lib/rpc/estimation/gasEstimationHandler.js.map +1 -1
- package/lib/rpc/estimation/gasEstimationsV06.d.ts +3 -1
- package/lib/rpc/estimation/gasEstimationsV06.js +9 -1
- package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -1
- package/lib/rpc/estimation/gasEstimationsV07.d.ts +21 -11
- package/lib/rpc/estimation/gasEstimationsV07.js +213 -45
- package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/lib/rpc/estimation/types.d.ts +9 -2
- package/lib/rpc/estimation/types.js.map +1 -1
- package/lib/rpc/rpcHandler.d.ts +53 -1
- package/lib/rpc/rpcHandler.js +220 -145
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/rpc/validation/SafeValidator.d.ts +18 -3
- package/lib/rpc/validation/SafeValidator.js +15 -6
- package/lib/rpc/validation/SafeValidator.js.map +1 -1
- package/lib/rpc/validation/UnsafeValidator.d.ts +41 -6
- package/lib/rpc/validation/UnsafeValidator.js +27 -10
- package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
- package/lib/types/contracts/EntryPointSimulationsV7.d.ts +983 -15
- package/lib/types/contracts/EntryPointSimulationsV7.js +1179 -426
- package/lib/types/contracts/EntryPointSimulationsV7.js.map +1 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +3 -2
- package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/lib/types/interfaces.d.ts +41 -6
- package/lib/types/mempool.d.ts +3 -2
- package/lib/types/mempool.js +12 -4
- package/lib/types/mempool.js.map +1 -1
- package/lib/types/schemas.d.ts +896 -40
- package/lib/types/schemas.js +61 -2
- package/lib/types/schemas.js.map +1 -1
- package/lib/types/validation.d.ts +210 -210
- package/lib/types/validation.js +2 -2
- package/lib/types/validation.js.map +1 -1
- package/lib/utils/helpers.d.ts +14 -1
- package/lib/utils/helpers.js +16 -1
- package/lib/utils/helpers.js.map +1 -1
- package/lib/utils/metrics.d.ts +3 -3
- package/lib/utils/userop.d.ts +1 -1
- package/lib/utils/validation.d.ts +5 -2
- package/lib/utils/validation.js +9 -4
- package/lib/utils/validation.js.map +1 -1
- package/package.json +1 -1
package/lib/types/mempool.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { Address, Chain } from "viem";
|
|
2
2
|
import type { Account } from "viem/accounts";
|
|
3
|
-
import type { CompressedUserOperation, HexData32, UserOperation } from "./index.js";
|
|
3
|
+
import type { CompressedUserOperation, HexData32, UserOperation, UserOperation7702 } from "./index.js";
|
|
4
4
|
export interface ReferencedCodeHashes {
|
|
5
5
|
addresses: string[];
|
|
6
6
|
hash: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const deriveUserOperation: (op: MempoolUserOperation) => UserOperation;
|
|
9
9
|
export declare const isCompressedType: (op: MempoolUserOperation) => boolean;
|
|
10
|
-
export
|
|
10
|
+
export declare const is7702Type: (op: MempoolUserOperation) => op is UserOperation7702;
|
|
11
|
+
export type MempoolUserOperation = UserOperation | CompressedUserOperation | UserOperation7702;
|
|
11
12
|
export type TransactionInfo = {
|
|
12
13
|
transactionType: "default" | "compressed";
|
|
13
14
|
transactionHash: HexData32;
|
package/lib/types/mempool.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubmissionStatus = exports.isCompressedType = exports.deriveUserOperation = void 0;
|
|
3
|
+
exports.SubmissionStatus = exports.is7702Type = exports.isCompressedType = exports.deriveUserOperation = void 0;
|
|
4
4
|
const deriveUserOperation = (op) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
if ((0, exports.isCompressedType)(op)) {
|
|
6
|
+
return op.inflatedOp;
|
|
7
|
+
}
|
|
8
|
+
if ((0, exports.is7702Type)(op)) {
|
|
9
|
+
return op.userOperation;
|
|
10
|
+
}
|
|
11
|
+
return op;
|
|
8
12
|
};
|
|
9
13
|
exports.deriveUserOperation = deriveUserOperation;
|
|
10
14
|
const isCompressedType = (op) => {
|
|
11
15
|
return "compressedCalldata" in op;
|
|
12
16
|
};
|
|
13
17
|
exports.isCompressedType = isCompressedType;
|
|
18
|
+
const is7702Type = (op) => {
|
|
19
|
+
return "authorization" in op;
|
|
20
|
+
};
|
|
21
|
+
exports.is7702Type = is7702Type;
|
|
14
22
|
var SubmissionStatus;
|
|
15
23
|
(function (SubmissionStatus) {
|
|
16
24
|
SubmissionStatus["NotSubmitted"] = "not_submitted";
|
package/lib/types/mempool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mempool.js","sourceRoot":"","sources":["../../types/mempool.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"mempool.js","sourceRoot":"","sources":["../../types/mempool.ts"],"names":[],"mappings":";;;AAiBO,MAAM,mBAAmB,GAAG,CAC/B,EAAwB,EACX,EAAE;IACf,IAAI,IAAA,wBAAgB,EAAC,EAAE,CAAC,EAAE,CAAC;QACvB,OAAQ,EAA8B,CAAC,UAAU,CAAA;IACrD,CAAC;IAED,IAAI,IAAA,kBAAU,EAAC,EAAE,CAAC,EAAE,CAAC;QACjB,OAAQ,EAAwB,CAAC,aAAa,CAAA;IAClD,CAAC;IAED,OAAO,EAAmB,CAAA;AAC9B,CAAC,CAAA;AAZY,QAAA,mBAAmB,uBAY/B;AAEM,MAAM,gBAAgB,GAAG,CAAC,EAAwB,EAAW,EAAE;IAClE,OAAO,oBAAoB,IAAI,EAAE,CAAA;AACrC,CAAC,CAAA;AAFY,QAAA,gBAAgB,oBAE5B;AAEM,MAAM,UAAU,GAAG,CACtB,EAAwB,EACD,EAAE;IACzB,OAAO,eAAe,IAAI,EAAE,CAAA;AAChC,CAAC,CAAA;AAJY,QAAA,UAAU,cAItB;AAsCD,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,kDAA8B,CAAA;IAC9B,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;AACzB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B"}
|