@pimlico/alto 0.0.0-main.20250605T142651 → 0.0.0-main.20250611T105955

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 (129) hide show
  1. package/contracts/EIP712.sol/EIP712.json +1 -1
  2. package/contracts/ERC165.sol/ERC165.json +1 -1
  3. package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -1
  4. package/contracts/EntryPoint.sol/EntryPoint.json +1 -1
  5. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -0
  6. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -0
  7. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -0
  8. package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -0
  9. package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -0
  10. package/contracts/EntryPointSimulations.sol/{EntryPointSimulations.json → EntryPointSimulations08.json} +1 -1
  11. package/contracts/Exec.sol/Exec.json +1 -1
  12. package/contracts/IAccount.sol/IAccount.json +1 -1
  13. package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -1
  14. package/contracts/IAggregator.sol/IAggregator.json +1 -1
  15. package/contracts/IERC165.sol/IERC165.json +1 -1
  16. package/contracts/IERC5267.sol/IERC5267.json +1 -1
  17. package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -1
  18. package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -1
  19. package/contracts/INonceManager.sol/INonceManager.json +1 -1
  20. package/contracts/IPaymaster.sol/IPaymaster.json +1 -1
  21. package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -1
  22. package/contracts/IStakeManager.sol/IStakeManager.json +1 -1
  23. package/contracts/LibBytes.sol/LibBytes.json +1 -0
  24. package/contracts/Math.sol/Math.json +1 -1
  25. package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -1
  26. package/contracts/NonceManager.sol/NonceManager.json +1 -1
  27. package/contracts/Panic.sol/Panic.json +1 -1
  28. package/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -0
  29. package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
  30. package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -1
  31. package/contracts/SafeCast.sol/SafeCast.json +1 -1
  32. package/contracts/SenderCreator.sol/SenderCreator.json +1 -1
  33. package/contracts/ShortStrings.sol/ShortStrings.json +1 -1
  34. package/contracts/SignedMath.sol/SignedMath.json +1 -1
  35. package/contracts/StakeManager.sol/StakeManager.json +1 -1
  36. package/contracts/StorageSlot.sol/StorageSlot.json +1 -1
  37. package/contracts/Strings.sol/Strings.json +1 -1
  38. package/contracts/TransientSlot.sol/TransientSlot.json +1 -1
  39. package/contracts/UserOperation.sol/UserOperationLib.json +1 -1
  40. package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -1
  41. package/contracts/build-info/4a223f6420e18feb.json +1 -0
  42. package/contracts/build-info/ad2dc60de86c0e4f.json +1 -0
  43. package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
  44. package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
  45. package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
  46. package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
  47. package/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
  48. package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
  49. package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
  50. package/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
  51. package/esm/cli/config/bundler.d.ts +440 -416
  52. package/esm/cli/config/bundler.js +12 -2
  53. package/esm/cli/config/bundler.js.map +1 -1
  54. package/esm/cli/config/options.js +27 -4
  55. package/esm/cli/config/options.js.map +1 -1
  56. package/esm/cli/deploySimulationsContract.d.ts +2 -0
  57. package/esm/cli/deploySimulationsContract.js +56 -25
  58. package/esm/cli/deploySimulationsContract.js.map +1 -1
  59. package/esm/cli/handler.js +18 -6
  60. package/esm/cli/handler.js.map +1 -1
  61. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -0
  62. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -0
  63. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -0
  64. package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -0
  65. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -0
  66. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -0
  67. package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -0
  68. package/esm/createConfig.d.ts +2 -1
  69. package/esm/createConfig.js +2 -0
  70. package/esm/createConfig.js.map +1 -1
  71. package/esm/executor/executor.d.ts +10 -4
  72. package/esm/executor/executor.js +109 -55
  73. package/esm/executor/executor.js.map +1 -1
  74. package/esm/executor/executorManager.d.ts +8 -1
  75. package/esm/executor/executorManager.js +75 -76
  76. package/esm/executor/executorManager.js.map +1 -1
  77. package/esm/executor/filterOpsAndEstimateGas.d.ts +25 -0
  78. package/esm/executor/filterOpsAndEstimateGas.js +251 -0
  79. package/esm/executor/filterOpsAndEstimateGas.js.map +1 -0
  80. package/esm/executor/utils.js +1 -1
  81. package/esm/executor/utils.js.map +1 -1
  82. package/esm/mempool/mempool.js +15 -4
  83. package/esm/mempool/mempool.js.map +1 -1
  84. package/esm/rpc/estimation/gasEstimationsV06.js +12 -4
  85. package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -1
  86. package/esm/rpc/estimation/gasEstimationsV07.d.ts +1 -1
  87. package/esm/rpc/estimation/gasEstimationsV07.js +26 -23
  88. package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
  89. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +14 -4
  90. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
  91. package/esm/rpc/validation/SafeValidator.js +17 -9
  92. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  93. package/esm/types/contracts/EntryPointSimulationsV6.d.ts +0 -1
  94. package/esm/types/contracts/EntryPointSimulationsV6.js +0 -2
  95. package/esm/types/contracts/EntryPointSimulationsV6.js.map +1 -1
  96. package/esm/types/contracts/PimlicoSimulations.d.ts +284 -0
  97. package/esm/types/contracts/PimlicoSimulations.js +368 -0
  98. package/esm/types/contracts/PimlicoSimulations.js.map +1 -0
  99. package/esm/types/contracts/index.d.ts +1 -1
  100. package/esm/types/contracts/index.js +1 -1
  101. package/esm/types/contracts/index.js.map +1 -1
  102. package/esm/types/mempool.d.ts +11 -7
  103. package/esm/types/mempool.js.map +1 -1
  104. package/esm/utils/eip7702.d.ts +1 -1
  105. package/esm/utils/eip7702.js +3 -0
  106. package/esm/utils/eip7702.js.map +1 -1
  107. package/esm/utils/entryPointOverrides.d.ts +16 -0
  108. package/esm/utils/entryPointOverrides.js +64 -0
  109. package/esm/utils/entryPointOverrides.js.map +1 -0
  110. package/esm/utils/helpers.d.ts +1 -0
  111. package/esm/utils/helpers.js +4 -0
  112. package/esm/utils/helpers.js.map +1 -1
  113. package/esm/utils/validation.d.ts +5 -0
  114. package/esm/utils/validation.js +17 -7
  115. package/esm/utils/validation.js.map +1 -1
  116. package/package.json +2 -2
  117. package/contracts/EntryPointCodeOverride.sol/EntryPointCodeOverride.json +0 -1
  118. package/contracts/PimlicoEntryPointSimulationsV7.sol/PimlicoEntryPointSimulationsV7.json +0 -1
  119. package/contracts/PimlicoEntryPointSimulationsV8.sol/PimlicoEntryPointSimulationsV8.json +0 -1
  120. package/contracts/build-info/96c79d1c9e9e095f.json +0 -1
  121. package/contracts/build-info/b400ff92e5db9cf3.json +0 -1
  122. package/esm/contracts/PimlicoEntryPointSimulationsV7.sol/PimlicoEntryPointSimulationsV7.json +0 -1
  123. package/esm/contracts/PimlicoEntryPointSimulationsV8.sol/PimlicoEntryPointSimulationsV8.json +0 -1
  124. package/esm/executor/filterOpsAndEStimateGas.d.ts +0 -29
  125. package/esm/executor/filterOpsAndEStimateGas.js +0 -198
  126. package/esm/executor/filterOpsAndEStimateGas.js.map +0 -1
  127. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -25
  128. package/esm/types/contracts/PimlicoEntryPointSimulations.js +0 -39
  129. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
@@ -0,0 +1,284 @@
1
+ export declare const PimlicoSimulationsAbi: readonly [{
2
+ readonly type: "constructor";
3
+ readonly inputs: readonly [];
4
+ readonly stateMutability: "nonpayable";
5
+ }, {
6
+ readonly type: "function";
7
+ readonly name: "filterOps06";
8
+ readonly inputs: readonly [{
9
+ readonly name: "userOps";
10
+ readonly type: "tuple[]";
11
+ readonly internalType: "struct UserOperation[]";
12
+ readonly components: readonly [{
13
+ readonly name: "sender";
14
+ readonly type: "address";
15
+ readonly internalType: "address";
16
+ }, {
17
+ readonly name: "nonce";
18
+ readonly type: "uint256";
19
+ readonly internalType: "uint256";
20
+ }, {
21
+ readonly name: "initCode";
22
+ readonly type: "bytes";
23
+ readonly internalType: "bytes";
24
+ }, {
25
+ readonly name: "callData";
26
+ readonly type: "bytes";
27
+ readonly internalType: "bytes";
28
+ }, {
29
+ readonly name: "callGasLimit";
30
+ readonly type: "uint256";
31
+ readonly internalType: "uint256";
32
+ }, {
33
+ readonly name: "verificationGasLimit";
34
+ readonly type: "uint256";
35
+ readonly internalType: "uint256";
36
+ }, {
37
+ readonly name: "preVerificationGas";
38
+ readonly type: "uint256";
39
+ readonly internalType: "uint256";
40
+ }, {
41
+ readonly name: "maxFeePerGas";
42
+ readonly type: "uint256";
43
+ readonly internalType: "uint256";
44
+ }, {
45
+ readonly name: "maxPriorityFeePerGas";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }, {
49
+ readonly name: "paymasterAndData";
50
+ readonly type: "bytes";
51
+ readonly internalType: "bytes";
52
+ }, {
53
+ readonly name: "signature";
54
+ readonly type: "bytes";
55
+ readonly internalType: "bytes";
56
+ }];
57
+ }, {
58
+ readonly name: "beneficiary";
59
+ readonly type: "address";
60
+ readonly internalType: "address payable";
61
+ }, {
62
+ readonly name: "entryPoint";
63
+ readonly type: "address";
64
+ readonly internalType: "contract IEntryPoint";
65
+ }];
66
+ readonly outputs: readonly [{
67
+ readonly name: "";
68
+ readonly type: "tuple";
69
+ readonly internalType: "struct PimlicoSimulations.FilterOpsResult";
70
+ readonly components: readonly [{
71
+ readonly name: "gasUsed";
72
+ readonly type: "uint256";
73
+ readonly internalType: "uint256";
74
+ }, {
75
+ readonly name: "balanceChange";
76
+ readonly type: "uint256";
77
+ readonly internalType: "uint256";
78
+ }, {
79
+ readonly name: "rejectedUserOps";
80
+ readonly type: "tuple[]";
81
+ readonly internalType: "struct PimlicoSimulations.RejectedUserOp[]";
82
+ readonly components: readonly [{
83
+ readonly name: "userOpHash";
84
+ readonly type: "bytes32";
85
+ readonly internalType: "bytes32";
86
+ }, {
87
+ readonly name: "revertReason";
88
+ readonly type: "bytes";
89
+ readonly internalType: "bytes";
90
+ }];
91
+ }];
92
+ }];
93
+ readonly stateMutability: "nonpayable";
94
+ }, {
95
+ readonly type: "function";
96
+ readonly name: "filterOps07";
97
+ readonly inputs: readonly [{
98
+ readonly name: "userOps";
99
+ readonly type: "tuple[]";
100
+ readonly internalType: "struct PackedUserOperation[]";
101
+ readonly components: readonly [{
102
+ readonly name: "sender";
103
+ readonly type: "address";
104
+ readonly internalType: "address";
105
+ }, {
106
+ readonly name: "nonce";
107
+ readonly type: "uint256";
108
+ readonly internalType: "uint256";
109
+ }, {
110
+ readonly name: "initCode";
111
+ readonly type: "bytes";
112
+ readonly internalType: "bytes";
113
+ }, {
114
+ readonly name: "callData";
115
+ readonly type: "bytes";
116
+ readonly internalType: "bytes";
117
+ }, {
118
+ readonly name: "accountGasLimits";
119
+ readonly type: "bytes32";
120
+ readonly internalType: "bytes32";
121
+ }, {
122
+ readonly name: "preVerificationGas";
123
+ readonly type: "uint256";
124
+ readonly internalType: "uint256";
125
+ }, {
126
+ readonly name: "gasFees";
127
+ readonly type: "bytes32";
128
+ readonly internalType: "bytes32";
129
+ }, {
130
+ readonly name: "paymasterAndData";
131
+ readonly type: "bytes";
132
+ readonly internalType: "bytes";
133
+ }, {
134
+ readonly name: "signature";
135
+ readonly type: "bytes";
136
+ readonly internalType: "bytes";
137
+ }];
138
+ }, {
139
+ readonly name: "beneficiary";
140
+ readonly type: "address";
141
+ readonly internalType: "address payable";
142
+ }, {
143
+ readonly name: "entryPoint";
144
+ readonly type: "address";
145
+ readonly internalType: "contract IEntryPoint";
146
+ }];
147
+ readonly outputs: readonly [{
148
+ readonly name: "";
149
+ readonly type: "tuple";
150
+ readonly internalType: "struct PimlicoSimulations.FilterOpsResult";
151
+ readonly components: readonly [{
152
+ readonly name: "gasUsed";
153
+ readonly type: "uint256";
154
+ readonly internalType: "uint256";
155
+ }, {
156
+ readonly name: "balanceChange";
157
+ readonly type: "uint256";
158
+ readonly internalType: "uint256";
159
+ }, {
160
+ readonly name: "rejectedUserOps";
161
+ readonly type: "tuple[]";
162
+ readonly internalType: "struct PimlicoSimulations.RejectedUserOp[]";
163
+ readonly components: readonly [{
164
+ readonly name: "userOpHash";
165
+ readonly type: "bytes32";
166
+ readonly internalType: "bytes32";
167
+ }, {
168
+ readonly name: "revertReason";
169
+ readonly type: "bytes";
170
+ readonly internalType: "bytes";
171
+ }];
172
+ }];
173
+ }];
174
+ readonly stateMutability: "nonpayable";
175
+ }, {
176
+ readonly type: "function";
177
+ readonly name: "filterOps08";
178
+ readonly inputs: readonly [{
179
+ readonly name: "userOps";
180
+ readonly type: "tuple[]";
181
+ readonly internalType: "struct PackedUserOperation[]";
182
+ readonly components: readonly [{
183
+ readonly name: "sender";
184
+ readonly type: "address";
185
+ readonly internalType: "address";
186
+ }, {
187
+ readonly name: "nonce";
188
+ readonly type: "uint256";
189
+ readonly internalType: "uint256";
190
+ }, {
191
+ readonly name: "initCode";
192
+ readonly type: "bytes";
193
+ readonly internalType: "bytes";
194
+ }, {
195
+ readonly name: "callData";
196
+ readonly type: "bytes";
197
+ readonly internalType: "bytes";
198
+ }, {
199
+ readonly name: "accountGasLimits";
200
+ readonly type: "bytes32";
201
+ readonly internalType: "bytes32";
202
+ }, {
203
+ readonly name: "preVerificationGas";
204
+ readonly type: "uint256";
205
+ readonly internalType: "uint256";
206
+ }, {
207
+ readonly name: "gasFees";
208
+ readonly type: "bytes32";
209
+ readonly internalType: "bytes32";
210
+ }, {
211
+ readonly name: "paymasterAndData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
214
+ }, {
215
+ readonly name: "signature";
216
+ readonly type: "bytes";
217
+ readonly internalType: "bytes";
218
+ }];
219
+ }, {
220
+ readonly name: "beneficiary";
221
+ readonly type: "address";
222
+ readonly internalType: "address payable";
223
+ }, {
224
+ readonly name: "entryPoint";
225
+ readonly type: "address";
226
+ readonly internalType: "contract IEntryPoint";
227
+ }];
228
+ readonly outputs: readonly [{
229
+ readonly name: "";
230
+ readonly type: "tuple";
231
+ readonly internalType: "struct PimlicoSimulations.FilterOpsResult";
232
+ readonly components: readonly [{
233
+ readonly name: "gasUsed";
234
+ readonly type: "uint256";
235
+ readonly internalType: "uint256";
236
+ }, {
237
+ readonly name: "balanceChange";
238
+ readonly type: "uint256";
239
+ readonly internalType: "uint256";
240
+ }, {
241
+ readonly name: "rejectedUserOps";
242
+ readonly type: "tuple[]";
243
+ readonly internalType: "struct PimlicoSimulations.RejectedUserOp[]";
244
+ readonly components: readonly [{
245
+ readonly name: "userOpHash";
246
+ readonly type: "bytes32";
247
+ readonly internalType: "bytes32";
248
+ }, {
249
+ readonly name: "revertReason";
250
+ readonly type: "bytes";
251
+ readonly internalType: "bytes";
252
+ }];
253
+ }];
254
+ }];
255
+ readonly stateMutability: "nonpayable";
256
+ }, {
257
+ readonly type: "function";
258
+ readonly name: "simulateEntryPoint";
259
+ readonly inputs: readonly [{
260
+ readonly name: "entryPointSimulation";
261
+ readonly type: "address";
262
+ readonly internalType: "address";
263
+ }, {
264
+ readonly name: "entryPoint";
265
+ readonly type: "address";
266
+ readonly internalType: "address payable";
267
+ }, {
268
+ readonly name: "data";
269
+ readonly type: "bytes[]";
270
+ readonly internalType: "bytes[]";
271
+ }];
272
+ readonly outputs: readonly [{
273
+ readonly name: "";
274
+ readonly type: "bytes[]";
275
+ readonly internalType: "bytes[]";
276
+ }];
277
+ readonly stateMutability: "nonpayable";
278
+ }, {
279
+ readonly type: "event";
280
+ readonly name: "PimlicoSimulationV7Deployed";
281
+ readonly inputs: readonly [];
282
+ readonly anonymous: false;
283
+ }];
284
+ //# sourceMappingURL=PimlicoSimulations.d.ts.map
@@ -0,0 +1,368 @@
1
+ export const PimlicoSimulationsAbi = [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "filterOps06",
10
+ "inputs": [
11
+ {
12
+ "name": "userOps",
13
+ "type": "tuple[]",
14
+ "internalType": "struct UserOperation[]",
15
+ "components": [
16
+ {
17
+ "name": "sender",
18
+ "type": "address",
19
+ "internalType": "address"
20
+ },
21
+ {
22
+ "name": "nonce",
23
+ "type": "uint256",
24
+ "internalType": "uint256"
25
+ },
26
+ {
27
+ "name": "initCode",
28
+ "type": "bytes",
29
+ "internalType": "bytes"
30
+ },
31
+ {
32
+ "name": "callData",
33
+ "type": "bytes",
34
+ "internalType": "bytes"
35
+ },
36
+ {
37
+ "name": "callGasLimit",
38
+ "type": "uint256",
39
+ "internalType": "uint256"
40
+ },
41
+ {
42
+ "name": "verificationGasLimit",
43
+ "type": "uint256",
44
+ "internalType": "uint256"
45
+ },
46
+ {
47
+ "name": "preVerificationGas",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ },
51
+ {
52
+ "name": "maxFeePerGas",
53
+ "type": "uint256",
54
+ "internalType": "uint256"
55
+ },
56
+ {
57
+ "name": "maxPriorityFeePerGas",
58
+ "type": "uint256",
59
+ "internalType": "uint256"
60
+ },
61
+ {
62
+ "name": "paymasterAndData",
63
+ "type": "bytes",
64
+ "internalType": "bytes"
65
+ },
66
+ {
67
+ "name": "signature",
68
+ "type": "bytes",
69
+ "internalType": "bytes"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "name": "beneficiary",
75
+ "type": "address",
76
+ "internalType": "address payable"
77
+ },
78
+ {
79
+ "name": "entryPoint",
80
+ "type": "address",
81
+ "internalType": "contract IEntryPoint"
82
+ }
83
+ ],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "tuple",
88
+ "internalType": "struct PimlicoSimulations.FilterOpsResult",
89
+ "components": [
90
+ {
91
+ "name": "gasUsed",
92
+ "type": "uint256",
93
+ "internalType": "uint256"
94
+ },
95
+ {
96
+ "name": "balanceChange",
97
+ "type": "uint256",
98
+ "internalType": "uint256"
99
+ },
100
+ {
101
+ "name": "rejectedUserOps",
102
+ "type": "tuple[]",
103
+ "internalType": "struct PimlicoSimulations.RejectedUserOp[]",
104
+ "components": [
105
+ {
106
+ "name": "userOpHash",
107
+ "type": "bytes32",
108
+ "internalType": "bytes32"
109
+ },
110
+ {
111
+ "name": "revertReason",
112
+ "type": "bytes",
113
+ "internalType": "bytes"
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "stateMutability": "nonpayable"
121
+ },
122
+ {
123
+ "type": "function",
124
+ "name": "filterOps07",
125
+ "inputs": [
126
+ {
127
+ "name": "userOps",
128
+ "type": "tuple[]",
129
+ "internalType": "struct PackedUserOperation[]",
130
+ "components": [
131
+ {
132
+ "name": "sender",
133
+ "type": "address",
134
+ "internalType": "address"
135
+ },
136
+ {
137
+ "name": "nonce",
138
+ "type": "uint256",
139
+ "internalType": "uint256"
140
+ },
141
+ {
142
+ "name": "initCode",
143
+ "type": "bytes",
144
+ "internalType": "bytes"
145
+ },
146
+ {
147
+ "name": "callData",
148
+ "type": "bytes",
149
+ "internalType": "bytes"
150
+ },
151
+ {
152
+ "name": "accountGasLimits",
153
+ "type": "bytes32",
154
+ "internalType": "bytes32"
155
+ },
156
+ {
157
+ "name": "preVerificationGas",
158
+ "type": "uint256",
159
+ "internalType": "uint256"
160
+ },
161
+ {
162
+ "name": "gasFees",
163
+ "type": "bytes32",
164
+ "internalType": "bytes32"
165
+ },
166
+ {
167
+ "name": "paymasterAndData",
168
+ "type": "bytes",
169
+ "internalType": "bytes"
170
+ },
171
+ {
172
+ "name": "signature",
173
+ "type": "bytes",
174
+ "internalType": "bytes"
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "name": "beneficiary",
180
+ "type": "address",
181
+ "internalType": "address payable"
182
+ },
183
+ {
184
+ "name": "entryPoint",
185
+ "type": "address",
186
+ "internalType": "contract IEntryPoint"
187
+ }
188
+ ],
189
+ "outputs": [
190
+ {
191
+ "name": "",
192
+ "type": "tuple",
193
+ "internalType": "struct PimlicoSimulations.FilterOpsResult",
194
+ "components": [
195
+ {
196
+ "name": "gasUsed",
197
+ "type": "uint256",
198
+ "internalType": "uint256"
199
+ },
200
+ {
201
+ "name": "balanceChange",
202
+ "type": "uint256",
203
+ "internalType": "uint256"
204
+ },
205
+ {
206
+ "name": "rejectedUserOps",
207
+ "type": "tuple[]",
208
+ "internalType": "struct PimlicoSimulations.RejectedUserOp[]",
209
+ "components": [
210
+ {
211
+ "name": "userOpHash",
212
+ "type": "bytes32",
213
+ "internalType": "bytes32"
214
+ },
215
+ {
216
+ "name": "revertReason",
217
+ "type": "bytes",
218
+ "internalType": "bytes"
219
+ }
220
+ ]
221
+ }
222
+ ]
223
+ }
224
+ ],
225
+ "stateMutability": "nonpayable"
226
+ },
227
+ {
228
+ "type": "function",
229
+ "name": "filterOps08",
230
+ "inputs": [
231
+ {
232
+ "name": "userOps",
233
+ "type": "tuple[]",
234
+ "internalType": "struct PackedUserOperation[]",
235
+ "components": [
236
+ {
237
+ "name": "sender",
238
+ "type": "address",
239
+ "internalType": "address"
240
+ },
241
+ {
242
+ "name": "nonce",
243
+ "type": "uint256",
244
+ "internalType": "uint256"
245
+ },
246
+ {
247
+ "name": "initCode",
248
+ "type": "bytes",
249
+ "internalType": "bytes"
250
+ },
251
+ {
252
+ "name": "callData",
253
+ "type": "bytes",
254
+ "internalType": "bytes"
255
+ },
256
+ {
257
+ "name": "accountGasLimits",
258
+ "type": "bytes32",
259
+ "internalType": "bytes32"
260
+ },
261
+ {
262
+ "name": "preVerificationGas",
263
+ "type": "uint256",
264
+ "internalType": "uint256"
265
+ },
266
+ {
267
+ "name": "gasFees",
268
+ "type": "bytes32",
269
+ "internalType": "bytes32"
270
+ },
271
+ {
272
+ "name": "paymasterAndData",
273
+ "type": "bytes",
274
+ "internalType": "bytes"
275
+ },
276
+ {
277
+ "name": "signature",
278
+ "type": "bytes",
279
+ "internalType": "bytes"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "name": "beneficiary",
285
+ "type": "address",
286
+ "internalType": "address payable"
287
+ },
288
+ {
289
+ "name": "entryPoint",
290
+ "type": "address",
291
+ "internalType": "contract IEntryPoint"
292
+ }
293
+ ],
294
+ "outputs": [
295
+ {
296
+ "name": "",
297
+ "type": "tuple",
298
+ "internalType": "struct PimlicoSimulations.FilterOpsResult",
299
+ "components": [
300
+ {
301
+ "name": "gasUsed",
302
+ "type": "uint256",
303
+ "internalType": "uint256"
304
+ },
305
+ {
306
+ "name": "balanceChange",
307
+ "type": "uint256",
308
+ "internalType": "uint256"
309
+ },
310
+ {
311
+ "name": "rejectedUserOps",
312
+ "type": "tuple[]",
313
+ "internalType": "struct PimlicoSimulations.RejectedUserOp[]",
314
+ "components": [
315
+ {
316
+ "name": "userOpHash",
317
+ "type": "bytes32",
318
+ "internalType": "bytes32"
319
+ },
320
+ {
321
+ "name": "revertReason",
322
+ "type": "bytes",
323
+ "internalType": "bytes"
324
+ }
325
+ ]
326
+ }
327
+ ]
328
+ }
329
+ ],
330
+ "stateMutability": "nonpayable"
331
+ },
332
+ {
333
+ "type": "function",
334
+ "name": "simulateEntryPoint",
335
+ "inputs": [
336
+ {
337
+ "name": "entryPointSimulation",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ },
341
+ {
342
+ "name": "entryPoint",
343
+ "type": "address",
344
+ "internalType": "address payable"
345
+ },
346
+ {
347
+ "name": "data",
348
+ "type": "bytes[]",
349
+ "internalType": "bytes[]"
350
+ }
351
+ ],
352
+ "outputs": [
353
+ {
354
+ "name": "",
355
+ "type": "bytes[]",
356
+ "internalType": "bytes[]"
357
+ }
358
+ ],
359
+ "stateMutability": "nonpayable"
360
+ },
361
+ {
362
+ "type": "event",
363
+ "name": "PimlicoSimulationV7Deployed",
364
+ "inputs": [],
365
+ "anonymous": false
366
+ }
367
+ ];
368
+ //# sourceMappingURL=PimlicoSimulations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PimlicoSimulations.js","sourceRoot":"","sources":["../../../types/contracts/PimlicoSimulations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAC9B;IACF;QACE,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,EAAE;QACZ,iBAAiB,EAAE,YAAY;KAChC;IACD;QACE,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE;YACR;gBACE,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,SAAS;gBACjB,cAAc,EAAE,wBAAwB;gBACxC,YAAY,EAAE;oBACZ;wBACE,MAAM,EAAE,QAAQ;wBAChB,MAAM,EAAE,SAAS;wBACjB,cAAc,EAAE,SAAS;qBAC1B;oBACD;wBACE,MAAM,EAAE,OAAO;wBACf,MAAM,EAAE,SAAS;wBACjB,cAAc,EAAE,SAAS;qBAC1B;oBACD;wBACE,MAAM,EAAE,UAAU;wBAClB,MAAM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cAAc,EAAE,4CAA4C;wBAC5D,YAAY,EAAE;4BACZ;gCACE,MAAM,EAAE,YAAY;gCACpB,MAAM,EAAE,SAAS;gCACjB,cAAc,EAAE,SAAS;6BAC1B;4BACD;gCACE,MAAM,EAAE,cAAc;gCACtB,MAAM,EAAE,OAAO;gCACf,cAAc,EAAE,OAAO;6BACxB;yBACF;qBACF;iBACF;aACF;SACF;QACD,iBAAiB,EAAE,YAAY;KAChC;IACD;QACE,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,oBAAoB;QAC5B,QAAQ,EAAE;YACR;gBACE,MAAM,EAAE,sBAAsB;gBAC9B,MAAM,EAAE,SAAS;gBACjB,cAAc,EAAE,SAAS;aAC1B;YACD;gBACE,MAAM,EAAE,YAAY;gBACpB,MAAM,EAAE,SAAS;gBACjB,cAAc,EAAE,iBAAiB;aAClC;YACD;gBACE,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,SAAS;gBACjB,cAAc,EAAE,SAAS;aAC1B;SACF;QACD,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,cAAc,EAAE,SAAS;aAC1B;SACF;QACD,iBAAiB,EAAE,YAAY;KAChC;IACD;QACE,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,6BAA6B;QACrC,QAAQ,EAAE,EAAE;QACZ,WAAW,EAAE,KAAK;KACnB;CACO,CAAA"}
@@ -10,7 +10,7 @@ export * from "./SimpleAccountFactory.js";
10
10
  export * from "./CodeHashGetter.js";
11
11
  export * from "./EntryPointSimulationsV6.js";
12
12
  export * from "./EntryPointSimulationsV7.js";
13
- export * from "./PimlicoEntryPointSimulations.js";
13
+ export * from "./PimlicoSimulations.js";
14
14
  export * from "./ArbitrumL1FeeAbi.js";
15
15
  export * from "./MantleBvmGasPriceOracle.js";
16
16
  export * from "./OpL1FeeAbi.js";
@@ -10,7 +10,7 @@ export * from "./SimpleAccountFactory.js";
10
10
  export * from "./CodeHashGetter.js";
11
11
  export * from "./EntryPointSimulationsV6.js";
12
12
  export * from "./EntryPointSimulationsV7.js";
13
- export * from "./PimlicoEntryPointSimulations.js";
13
+ export * from "./PimlicoSimulations.js";
14
14
  export * from "./ArbitrumL1FeeAbi.js";
15
15
  export * from "./MantleBvmGasPriceOracle.js";
16
16
  export * from "./OpL1FeeAbi.js";